X Tutup
Skip to content

Commit ee48fb3

Browse files
committed
Update documentation
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent a85dafa commit ee48fb3

File tree

3 files changed

+50
-43
lines changed

3 files changed

+50
-43
lines changed

doc/sphinx/source/contributing.rst

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,52 +10,52 @@ these are particularly good ones to start out with.
1010

1111
See 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

1616
Getting 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.
111111
Hacking 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
125125
repositories:
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

doc/sphinx/source/index.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
.. bpython documentation master file, created by
2-
sphinx-quickstart on Mon Jun 8 11:58:16 2009.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
5-
61
bpython documentation
72
=====================
83
Welcome to the bpython documentation files. This is where you

doc/sphinx/source/releases.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,26 @@ After it is decided to release a new version of bpython the following checklist
1616
is followed:
1717

1818
* The repository is frozen, nobody pushes until the version is built.
19+
1920
* Bob (:ref:`authors`) makes a tarball of the new version and sends it to Simon
2021
(:ref:`authors`) who will host it on the bpython website.
22+
2123
* The package is then downloaded by all of the people who like to test it.
24+
2225
* Everybody checks if there are no great problems:
23-
- Version numbers correct?
24-
- CHANGELOG is correct?
25-
- AUTHORS?
26+
27+
* Version numbers correct?
28+
29+
* CHANGELOG is correct?
30+
31+
* AUTHORS?
32+
2633
* After everybody says 'yes' the website and PyPI are updated to point to this
2734
new version.
28-
- Simon (:ref:`authors`) also checks if all numbers on the website have been
35+
36+
* Simon (:ref:`authors`) also checks if all numbers on the website have been
2937
updated.
38+
3039
* 24 hours later package maintainers could update their stuff.
3140

3241
Checklist

0 commit comments

Comments
 (0)
X Tutup