Skip to content

Commit cc845c7

Browse files
committed
Updates to the documentation
1 parent acba339 commit cc845c7

File tree

8 files changed

+44
-26
lines changed

8 files changed

+44
-26
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
*.pyc
22
quantities.egg-info
33
build
4+
_build
45
dist
56
.project
67
.pydevproject
78
.settings
9+
.idea

CHANGES.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22
CHANGES
33
=======
44

5+
6+
-----
7+
0.12.0
8+
-----
9+
10+
Removed support for Python 2.6, since NumPy removed support for it as of
11+
version 1.12. Numpy-1.8.2 or later is now required.
12+
13+
Added more ufuncs: equal, not_equal, less, less_equal, greater, greater_equal
14+
15+
16+
Bugs fixed
17+
**********
18+
19+
https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aissue%20is%3Aclosed%20updated%3A2015-12-06..2017-08-01
20+
21+
22+
-----
23+
0.11.0
24+
-----
25+
26+
Added many new unit definitions, including aliases for American/British spellings of liter/litre
27+
The Quantity class can now be subclassed.
28+
Supports `np.fabs`
29+
The test suite is now run with Travis CI
30+
31+
32+
Bugs fixed
33+
**********
34+
35+
https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aissue%20is%3Aclosed%20updated%3A2011-09-27..2015-12-06
36+
37+
538
-----
639
0.10.0
740
-----

README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ quantities
66

77
.. |pypi version| image:: https://img.shields.io/pypi/v/quantities.png
88
:target: https://pypi.python.org/pypi/quantities
9-
.. |pypi download| image:: https://img.shields.io/pypi/dm/quantities.png
10-
:target: https://pypi.python.org/pypi/quantities
119
.. |Build status| image:: https://secure.travis-ci.org/python-quantities/python-quantities.png?branch=master
1210
:target: http://travis-ci.org/python-quantities/python-quantities
1311

conda.recipe/run_test.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import os
22
import sys
33

4-
5-
if sys.version.startswith('2.6') or sys.version.startswith('3.1'):
6-
import unittest2 as unittest
7-
else:
8-
import unittest
4+
import unittest
95

106
suite = unittest.TestLoader().discover('quantities')
117
unittest.TextTestRunner(verbosity=1).run(suite)

doc/devel/devnotes.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ unittest package. Unit tests can be run with the following::
88
python setup.py test
99

1010
This works with the version of unittest provided by the python-2.7 and
11-
python-3.2 standard library. If you are running python-2.6 or python-3.1, you
12-
need to install unittest2 to run the test suite.
11+
python-3.2+ standard library.

doc/user/installation.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@ Prerequisites
88

99
Quantities has a few dependencies:
1010

11-
* Python_ (>=2.6)
12-
* NumPy_ (>=1.4)
13-
14-
If you want to run the test suite on python-2.6 or python-3.1, install the
15-
unittest2_ or unittest2py3k_ package, respectively.
11+
* Python_ (>=2.7)
12+
* NumPy_ (>=1.8.2)
1613

1714

1815
Source Code Installation
1916
========================
2017

2118
To install Quantities, download the Quantites sourcecode from PyPi_
22-
and run "python setup.py install" in the quantities source directory.
19+
and run "python setup.py install" in the quantities source directory,
20+
or run "pip install quantities".
2321

2422
Development
2523
===========
@@ -35,6 +33,4 @@ website.
3533
.. _Python: http://www.python.org/
3634
.. _NumPy: http://www.scipy.org
3735
.. _PyPi: http://pypi.python.org/pypi/quantities
38-
.. _unittest2: http://pypi.python.org/pypi/unittest2
39-
.. _unittest2py3k: http://pypi.python.org/pypi/unittest2py3k
4036
.. _github: http://github.com/python-quantities/python-quantities

quantities/tests/common.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import sys
2-
if sys.version.startswith('2.6') or sys.version.startswith('3.1'):
3-
import unittest2 as unittest
4-
else:
5-
import unittest
2+
import unittest
63

74
import numpy as np
85

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ def finalize_options(self):
8585

8686
def run(self):
8787
import sys
88-
if sys.version.startswith('2.6') or sys.version.startswith('3.1'):
89-
import unittest2 as unittest
90-
else:
91-
import unittest
88+
import unittest
9289
suite = unittest.TestLoader().discover('.')
9390
global TEST_RESULT
9491
TEST_RESULT = unittest.TextTestRunner(verbosity=self.verbosity+1).run(suite)
@@ -139,7 +136,7 @@ def run(self):
139136
packages = packages,
140137
platforms = 'Any',
141138
requires = [
142-
'python (>=2.6.0)',
139+
'python (>=2.7.0)',
143140
'numpy (>=1.8.2)',
144141
],
145142
url = 'http://packages.python.org/quantities',

0 commit comments

Comments
 (0)