Skip to content

Commit 0dd489d

Browse files
committed
add basic developer info to the documentation
1 parent 0cadf76 commit 0dd489d

File tree

3 files changed

+132
-0
lines changed

3 files changed

+132
-0
lines changed

docsource/developers.rst

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
##############
2+
For Developers
3+
##############
4+
5+
If you would like to contribute, these instructions should help you get started. Patches, bug reports, and feature requests are all welcome through the `BitBucket site <http://bitbucket.org/dhellmann/virtualenvwrapper/>`_. Contributions in the form of patches or pull requests are easier to integrate and will receive priority attention.
6+
7+
Building Documentation
8+
======================
9+
10+
The documentation for virtualenvwrapper is written in reStructuredText and converted to HTML using Sphinx. The build itself is driven by Paver. You will need the following packages in order to build the docs:
11+
12+
- Sphinx
13+
- Paver
14+
- sphinxcontrib.paverutils
15+
16+
Once all of them are installed into a virtualenv using easy_install, run ``paver html`` to generate the HTML version of the documentation::
17+
18+
$ paver html
19+
---> pavement.html
20+
---> sphinxcontrib.paverutils.html
21+
mkdir ./docs/html (mode 511)
22+
sphinx-build -b html -d ./docs/doctrees -c sphinx/pkg -Aproject=virtualenvwrapper ./docsource ./docs/html
23+
Running Sphinx v0.6.1
24+
loading pickled environment... done
25+
building [html]: targets for 4 source files that are out of date
26+
updating environment: 1 added, 1 changed, 0 removed
27+
reading sources... [ 50%] developers
28+
reading sources... [100%] index
29+
30+
/Users/dhellmann/Devel/virtualenvwrapper/src/docsource/developers.rst:19: (WARNING/2) Literal block expected; none found.
31+
looking for now-outdated files... none found
32+
pickling environment... done
33+
checking consistency... done
34+
preparing documents... done
35+
writing output... [ 20%] command_ref
36+
writing output... [ 40%] developers
37+
writing output... [ 60%] history
38+
writing output... [ 80%] hooks
39+
writing output... [100%] index
40+
41+
writing additional files... search
42+
copying static files... WARNING: static directory '/Users/dhellmann/Devel/virtualenvwrapper/src/sphinx/pkg/static' does not exist
43+
done
44+
dumping search index... done
45+
dumping object inventory... done
46+
build succeeded, 2 warnings.
47+
rmtree virtualenvwrapper/docs () {}
48+
move docs/html virtualenvwrapper/docs
49+
50+
51+
Running Tests
52+
=============
53+
54+
The test suite for virtualenvwrapper uses `shunit2 <http://shunit2.googlecode.com/>`_. To run the tests under both bash and zsh, use ``paver test``. To add new tests, modify the ``tests/test.sh`` script with new test functions.
55+
56+
::
57+
58+
$ paver test
59+
---> pavement.test
60+
bash ./tests/test.sh
61+
62+
test_mkvirtualenv
63+
New python executable in env1/bin/python
64+
Installing setuptools............done.
65+
66+
test_cdvirtual
67+
68+
test_cdsitepackages
69+
70+
test_mkvirtualenv_activates
71+
New python executable in env2/bin/python
72+
Installing setuptools............done.
73+
74+
test_workon
75+
76+
test_postactivate_hook
77+
78+
test_deactivate
79+
80+
test_deactivate_hooks
81+
82+
test_virtualenvwrapper_show_workon_options
83+
84+
test_rmvirtualenv
85+
New python executable in deleteme/bin/python
86+
Installing setuptools............done.
87+
88+
test_rmvirtualenv_no_such_env
89+
90+
test_missing_workon_home
91+
92+
Ran 12 tests.
93+
94+
OK
95+
SHUNIT_PARENT=./tests/test.sh zsh -o shwordsplit ./tests/test.sh
96+
97+
test_mkvirtualenv
98+
New python executable in env1/bin/python
99+
Installing setuptools............done.
100+
101+
test_cdvirtual
102+
103+
test_cdsitepackages
104+
105+
test_mkvirtualenv_activates
106+
New python executable in env2/bin/python
107+
Installing setuptools............done.
108+
109+
test_workon
110+
111+
test_postactivate_hook
112+
113+
test_deactivate
114+
115+
test_deactivate_hooks
116+
117+
test_virtualenvwrapper_show_workon_options
118+
119+
test_rmvirtualenv
120+
New python executable in deleteme/bin/python
121+
Installing setuptools............done.
122+
123+
test_rmvirtualenv_no_such_env
124+
125+
test_missing_workon_home
126+
127+
Ran 12 tests.
128+
129+
OK

docsource/history.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Release History
55
1.18
66

77
- Remove warning during installation if sphinxcontrib.paverutils is not installed. (#10)
8+
- Added some basic developer information to the documentation.
9+
- Added documentation for deactivate command.
810

911
1.17
1012

docsource/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Details
4545
command_ref
4646
hooks
4747
history
48+
developers
4849

4950
==========
5051
References

0 commit comments

Comments
 (0)