Skip to content

Commit adf0dbd

Browse files
author
Darren Dale
committed
updated documentation to include enthought in credits, instructions for running
unit tests with code coverage
1 parent 7f14aee commit adf0dbd

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

doc/devel/devnotes.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ Development
22
===========
33

44
In order to work on quantities development, after installing the dependencies,
5-
it is recommended to do the following:
5+
it is recommended to do the following::
66

7-
python setup.py develop
7+
python setup.py develop
88

99
This uses setuptools to install a link in your site-packages directory which
1010
points to your source directory. This allows you to make changes in the source
@@ -13,3 +13,13 @@ changing extension code, which needs to be compiled, you will need to run
1313
"python setup.py develop" again. Also note that executable scripts are copied
1414
to their install directory, rather than being linked, so you need to run
1515
"python setup.py develop" after editing scripts.
16+
17+
Unit tests are collected by the nose package, and can be run with the following::
18+
19+
python setup.py nosetests --with-coverage --cover-package=quantities \
20+
--cover-erase --cover-tests
21+
22+
This assumes you have both nose_ and coverage_ installed on your system.
23+
24+
.. _nose: http://somethingaboutorange.com/mrl/projects/nose
25+
.. _coverage: http://nedbatchelder.com/code/modules/rees-coverage.html

doc/users/credits.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Charles Doutriaux
1616
wrote the python wrapper for unit conversions with the UDUnits
1717
library (no longer used)
1818

19+
Enthought Inc.
20+
the original units registry was developed at Enthought for the
21+
Enthought Tool Suite.
22+
1923
John Salvatier
2024
added support for the Quantity iterator, contributed to support for
2125
simplified representations of units, comparison operators, and

doc/users/installation.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The following are also recommended:
1515

1616
* setuptools_ (version 0.6c8 or later, for developers and unit tests)
1717
* nose_ (for unit tests)
18+
* coverage_ (for unit tests)
1819

1920
Source Code Installation
2021
========================
@@ -41,6 +42,7 @@ website.
4142
.. _Python: http://www.python.org/
4243
.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools
4344
.. _NumPy: http://www.scipy.org
44-
.. _Nose: http://somethingaboutorange.com/mrl/projects/nose
45+
.. _nose: http://somethingaboutorange.com/mrl/projects/nose
46+
.. _coverage: http://nedbatchelder.com/code/modules/rees-coverage.html
4547
.. _PyPi: http://pypi.python.org/pypi/quantities
4648
.. _launchpad: https://launchpad.net/python-quantities

0 commit comments

Comments
 (0)