Skip to content

Commit 0c08414

Browse files
update contrib docs
use pip install -e . instead of python setup.py develop install curtsies with above command instead of manually (this should prevent curtsies version problems) change suggested command from bpython-curtsies to bpython
1 parent 240c8dd commit 0c08414

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

doc/sphinx/source/contributing.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ Getting your development environment set up
1818

1919
bpython supports Python 2.6, 2.7, 3.3 and 3.4. The code is written in Python
2020
2 and transformed for Python 3 with 2to3. This means that it's easier
21-
to work on bpython with Python 2 because it's you can use `python setup.py develop`
21+
to work on bpython with Python 2 because you can use ``python setup.py develop``
22+
or ``pip install -e .``
2223
(`development mode
2324
<https://pythonhosted.org/setuptools/setuptools.html#development-mode>`_ installs
2425
by linking to the bpython source instead of copying it over)
2526
in a more straightforward way to have your changes immediately reflected by
26-
your bpython installation and the `bpython`, `bpython-curtsies`, and `bpython-urwid`
27+
your bpython installation and the `bpython`, `bpython-curses`, and `bpython-urwid`
2728
commands.
2829

2930
Using a virtual environment is probably a good idea. Create a virtual environment with
3031

3132
.. code-block:: bash
3233
3334
$ virtualenv bpython-dev # determines Python version used
34-
$ source bpython-dev/bin/activate # necssary every time you work on bpython
35+
$ source bpython-dev/bin/activate # necessary every time you work on bpython
3536
3637
Fork bpython in the GitHub web interface, then clone the repo:
3738

@@ -40,17 +41,16 @@ Fork bpython in the GitHub web interface, then clone the repo:
4041
$ git clone git@github.com:YOUR_GITHUB_USERNAME/bpython.git
4142
$ # or "git clone https://github.com/YOUR_GITHUB_USERNAME/bpython.git"
4243
43-
Next install the dependencies and install your development copy of bpython:
44+
Next install the install your development copy of bpython and its dependencies:
4445

4546
.. code-block:: bash
4647
47-
$ pip install pygments requests # install required dependencies
48-
$ pip install curtsies greenlet watchdog urwid # install optional dependencies
49-
$ pip install sphinx mock nosetests # development dependencies
5048
$ cd bpython
51-
$ python setup.py develop
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
5252
<modify a file in some way>
53-
$ bpython-curtsies # this runs your modified copy of bpython!
53+
$ bpython # this runs your modified copy of bpython!
5454
5555
As a first dev task, I recommend getting `bpython` to print your name every time you hit a specific key.
5656

@@ -60,8 +60,8 @@ To run tests from the bpython directory:
6060
6161
$ nosetests
6262
63-
To build the docs:
64-
------------------
63+
Building the documentation
64+
--------------------------
6565

6666
The documentation is included in the bpython repository. After
6767
checking out the bpython repository and installing `sphinx` as described in
@@ -75,7 +75,7 @@ repository to build the documentation:
7575
Afterwards you can point your browser to `doc/sphinx/build/html/index.html`.
7676
Don't forget to recreate the HTML after you make changes.
7777

78-
To hack on the site or theme
78+
Hacking on the site or theme
7979
----------------------------
8080

8181
The site (and its theme as well) is stored in a separate repository and built using

0 commit comments

Comments
 (0)