Skip to content

Updates to the documentation #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
*.pyc
quantities.egg-info
build
_build
dist
.project
.pydevproject
.settings
.idea
33 changes: 33 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,39 @@
CHANGES
=======


-----
0.12.0
-----

Removed support for Python 2.6, since NumPy removed support for it as of
version 1.12. Numpy-1.8.2 or later is now required.

Added more ufuncs: equal, not_equal, less, less_equal, greater, greater_equal


Bugs fixed
**********

https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aissue%20is%3Aclosed%20updated%3A2015-12-06..2017-08-01


-----
0.11.0
-----

Added many new unit definitions, including aliases for American/British spellings of liter/litre
The Quantity class can now be subclassed.
Supports `np.fabs`
The test suite is now run with Travis CI


Bugs fixed
**********

https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aissue%20is%3Aclosed%20updated%3A2011-09-27..2015-12-06


-----
0.10.0
-----
Expand Down
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ quantities

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

Expand Down
6 changes: 1 addition & 5 deletions conda.recipe/run_test.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import os
import sys


if sys.version.startswith('2.6') or sys.version.startswith('3.1'):
import unittest2 as unittest
else:
import unittest
import unittest

suite = unittest.TestLoader().discover('quantities')
unittest.TextTestRunner(verbosity=1).run(suite)
3 changes: 1 addition & 2 deletions doc/devel/devnotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ unittest package. Unit tests can be run with the following::
python setup.py test

This works with the version of unittest provided by the python-2.7 and
python-3.2 standard library. If you are running python-2.6 or python-3.1, you
need to install unittest2 to run the test suite.
python-3.2+ standard library.
12 changes: 4 additions & 8 deletions doc/user/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ Prerequisites

Quantities has a few dependencies:

* Python_ (>=2.6)
* NumPy_ (>=1.4)

If you want to run the test suite on python-2.6 or python-3.1, install the
unittest2_ or unittest2py3k_ package, respectively.
* Python_ (>=2.7)
* NumPy_ (>=1.8.2)


Source Code Installation
========================

To install Quantities, download the Quantites sourcecode from PyPi_
and run "python setup.py install" in the quantities source directory.
and run "python setup.py install" in the quantities source directory,
or run "pip install quantities".

Development
===========
Expand All @@ -35,6 +33,4 @@ website.
.. _Python: http://www.python.org/
.. _NumPy: http://www.scipy.org
.. _PyPi: http://pypi.python.org/pypi/quantities
.. _unittest2: http://pypi.python.org/pypi/unittest2
.. _unittest2py3k: http://pypi.python.org/pypi/unittest2py3k
.. _github: http://github.com/python-quantities/python-quantities
5 changes: 1 addition & 4 deletions quantities/tests/common.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import sys
if sys.version.startswith('2.6') or sys.version.startswith('3.1'):
import unittest2 as unittest
else:
import unittest
import unittest

import numpy as np

Expand Down
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ def finalize_options(self):

def run(self):
import sys
if sys.version.startswith('2.6') or sys.version.startswith('3.1'):
import unittest2 as unittest
else:
import unittest
import unittest
suite = unittest.TestLoader().discover('.')
global TEST_RESULT
TEST_RESULT = unittest.TextTestRunner(verbosity=self.verbosity+1).run(suite)
Expand Down Expand Up @@ -139,7 +136,7 @@ def run(self):
packages = packages,
platforms = 'Any',
requires = [
'python (>=2.6.0)',
'python (>=2.7.0)',
'numpy (>=1.8.2)',
],
url = 'http://packages.python.org/quantities',
Expand Down