Skip to content

Commit 1e5e28c

Browse files
create contributing guide
1 parent bab075c commit 1e5e28c

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

CONTRIBUTING.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Contributing to bpython
2+
=======================
3+
4+
Thanks for working on bpython!
5+
6+
On the [GitHub issue tracker](https://github.com/bpython/bpython/issues)
7+
some issues are labeled
8+
["bite-size"](https://github.com/bpython/bpython/labels/bitesize) -
9+
these are particularly good ones to start out with.
10+
11+
See http://bpython-interpreter.org/community for a list of resources.
12+
`#bpython` on freenode is particularly useful, but you might have to wait for a while
13+
to get a question answered depending on the time of day.
14+
15+
Getting your development environment set up
16+
-------------------------------------------
17+
18+
Using a virtual environment is probably a good idea. Create a virtual environment with
19+
20+
$ virtualenv bpython-dev
21+
$ source bpython-dev/bin/activate # this step is necssary every time you work on bpython
22+
<hack on bpython>
23+
$ deactivate # back to normal system environment
24+
25+
Fork bpython in the GitHub web interace, then clone the repo:
26+
27+
$ git clone git@github.com:YOUR_GITHUB_USERNAME/bpython.git
28+
29+
Next install this development version of bpython:
30+
31+
$ pip install pygments curtsies greenlet watchdog urwid # install all the dependencies
32+
$ pip install sphinx mock # development dependencies
33+
$ cd bpython
34+
$ python setup.py develop
35+
<modify a file in some way>
36+
$ bpython-curtsies # this runs your modified copy of bpython!
37+
38+
As a first dev task, I recommend getting bpython to print your name every time you hit a specific key.
39+
40+
To run tests:
41+
42+
$ python -m unittest discover bpython
43+
44+
To build the docs:
45+
------------------
46+
47+
TODO
48+
49+
To hack on the site:
50+
--------------------
51+
52+
TODO

0 commit comments

Comments
 (0)