@@ -10,52 +10,52 @@ these are particularly good ones to start out with.
1010
1111See our section about the :ref: `community ` for a list of resources.
1212
13- `#bpython ` on freenode is particularly useful, but you might have to wait for a while
14- to get a question answered depending on the time of day.
13+ `#bpython ` on freenode is particularly useful, but you might have to wait for a
14+ while to get a question answered depending on the time of day.
1515
1616Getting your development environment set up
1717-------------------------------------------
1818
19- bpython supports Python 2.6, 2.7, 3.3 and 3.4. The code is written in Python
20- 2 and transformed for Python 3 with 2to3. This means that it's easier
21- to work on bpython with Python 2 because you can use ``python setup.py develop ``
22- or ``pip install -e . ``
23- (`development mode
24- <https://pythonhosted.org/setuptools/setuptools.html#development-mode> `_ installs
25- by linking to the bpython source instead of copying it over)
26- in a more straightforward way to have your changes immediately reflected by
27- your bpython installation and the `bpython `, `bpython-curses `, and `bpython-urwid `
28- commands.
19+ bpython supports Python 2.6, 2.7, 3.3 and 3.4. The code is compatible with all
20+ supported versions without the need to run post processing like `2to3 `.
2921
30- Using a virtual environment is probably a good idea. Create a virtual environment with
22+ Using a virtual environment is probably a good idea. Create a virtual
23+ environment with
3124
3225.. code-block :: bash
3326
34- $ virtualenv bpython-dev # determines Python version used
35- $ source bpython-dev/bin/activate # necessary every time you work on bpython
27+ # determines Python version used
28+ $ virtualenv bpython-dev
29+ # necessary every time you work on bpython
30+ $ source bpython-dev/bin/activate
3631
3732 Fork bpython in the GitHub web interface, then clone the repo:
3833
3934.. code-block :: bash
4035
4136 $ git clone git@github.com:YOUR_GITHUB_USERNAME/bpython.git
42- $ # or "git clone https://github.com/YOUR_GITHUB_USERNAME/bpython.git"
37+ # or "git clone https://github.com/YOUR_GITHUB_USERNAME/bpython.git"
4338
4439 Next install the install your development copy of bpython and its dependencies:
4540
4641.. code-block :: bash
4742
4843 $ cd bpython
49- $ pip install -e . # install bpython and required dependencies
50- $ pip install watchdog urwid # install optional dependencies
51- $ pip install sphinx mock nose # development dependencies
44+ # install bpython and required dependencies
45+ $ pip install -e .
46+ # install optional dependencies
47+ $ pip install watchdog urwid
48+ # development dependencies
49+ $ pip install sphinx mock nose
5250 < modify a file in some way>
53- $ bpython # this runs your modified copy of bpython!
51+ # this runs your modified copy of bpython!
52+ $ bpython
5453
5554 .. note ::
5655
5756 Many requirements are also available from your distribution's package
58- manager. On Debian/Ubuntu based systems, the following packages can be used:
57+ manager. On Debian/Ubuntu based systems, the following packages can be
58+ used:
5959
6060 .. code-block :: bash
6161
@@ -70,8 +70,8 @@ Next install the install your development copy of bpython and its dependencies:
7070
7171.. note ::
7272
73- Installation of some dependencies with ``pip `` requires Python headers and a
74- C compiler. These are also available from your package manager.
73+ Installation of some dependencies with ``pip `` requires Python headers and
74+ a C compiler. These are also available from your package manager.
7575
7676 .. code-block :: bash
7777
@@ -86,8 +86,8 @@ To run tests from the bpython directory:
8686
8787 $ nosetests
8888
89- If you want to skip test cases that are known to be slow, run `nosetests ` in the
90- following way:
89+ If you want to skip test cases that are known to be slow, run `nosetests ` in
90+ the following way:
9191
9292.. code-block :: bash
9393
@@ -111,17 +111,17 @@ Don't forget to recreate the HTML after you make changes.
111111Hacking on the site or theme
112112----------------------------
113113
114- The site (and its theme as well) is stored in a separate repository and built using
115- pelican. To start hacking on the site you need to start out with a checkout and
116- probably a virtual environment:
114+ The site (and its theme as well) is stored in a separate repository and built
115+ using pelican. To start hacking on the site you need to start out with a
116+ checkout and probably a virtual environment:
117117
118118.. code-block :: bash
119119
120120 $ virtualenv bpython-site-dev
121121 $ source bpython-site-dev/bin/activate
122122 $ pip install pelican
123123
124- Fork bsite and bsite-theme in the GitHub web interface, then clone the
124+ Fork bsite and bsite-theme in the GitHub web interface, then clone the
125125repositories:
126126
127127.. code-block :: bash
@@ -136,11 +136,14 @@ included configuration file.
136136.. code-block :: bash
137137
138138 $ source bpython-site-dev/bin/activate
139- $ cd bsite # if you want to fiddle on the text of the site otherwise go into bsite-theme
140- $ pelican -t ../bsite-theme -s pelicanconf.py # if you checked out the theme in a different place, use that path
141-
142- After this you can open the `output/index.html ` in your favourite browser and see
143- if your changes had an effect.
139+ # if you want to fiddle on the text of the site otherwise go into
140+ # bsite-theme
141+ $ cd bsite
142+ # if you checked out the theme in a different place, use that path
143+ $ pelican -t ../bsite-theme -s pelicanconf.py
144+
145+ After this you can open the `output/index.html ` in your favourite browser and
146+ see if your changes had an effect.
144147
145148.. _GitHub issue tracker : https://github.com/bpython/bpython/issues
146149.. _bite-size : https://github.com/bpython/bpython/labels/bitesize
0 commit comments