Skip to content

Commit 7c243aa

Browse files
committed
Follow NEP 29: Python 3.7+ and NumPy 1.18+
1 parent 7afdff2 commit 7c243aa

File tree

4 files changed

+13
-53
lines changed

4 files changed

+13
-53
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,8 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ ubuntu-latest ]
15-
python-version: [ "2.7", "3.5", "3.6", "3.7", "3.8" ]
16-
numpy-version: [
17-
"1.8.2",
18-
"1.9.3",
19-
"1.10.4",
20-
"1.11.3",
21-
"1.12.1",
22-
"1.13.3",
23-
"1.14.5",
24-
"1.15.1",
25-
"1.15.4",
26-
"1.16.1",
27-
"1.17.2",
28-
]
29-
exclude:
30-
- { python-version: "2.7", numpy-version: "1.16.1" }
31-
- { python-version: "2.7", numpy-version: "1.17.2" }
32-
33-
- { python-version: "3.5", numpy-version: "1.15.1" }
34-
- { python-version: "3.5", numpy-version: "1.15.4" }
35-
- { python-version: "3.5", numpy-version: "1.16.1" }
36-
- { python-version: "3.5", numpy-version: "1.17.2" }
37-
38-
- { python-version: "3.6", numpy-version: "1.17.2" }
39-
40-
- { python-version: "3.7", numpy-version: "1.8.2" }
41-
- { python-version: "3.7", numpy-version: "1.9.3" }
42-
- { python-version: "3.7", numpy-version: "1.10.4" }
43-
- { python-version: "3.7", numpy-version: "1.11.3" }
44-
- { python-version: "3.7", numpy-version: "1.12.1" }
45-
- { python-version: "3.7", numpy-version: "1.13.3" }
46-
47-
- { python-version: "3.8", numpy-version: "1.8.2" }
48-
- { python-version: "3.8", numpy-version: "1.9.3" }
49-
- { python-version: "3.8", numpy-version: "1.10.4" }
50-
- { python-version: "3.8", numpy-version: "1.11.3" }
51-
- { python-version: "3.8", numpy-version: "1.12.1" }
52-
- { python-version: "3.8", numpy-version: "1.13.3" }
53-
- { python-version: "3.8", numpy-version: "1.14.5" }
54-
- { python-version: "3.8", numpy-version: "1.15.1" }
55-
- { python-version: "3.8", numpy-version: "1.15.4" }
56-
- { python-version: "3.8", numpy-version: "1.16.1" }
15+
python-version: [ "3.7", "3.8", "3.9" ]
16+
numpy-version: [ "1.18", "1.19", "1.20", "1.21" ]
5717

5818
steps:
5919
- uses: actions/checkout@v2
@@ -90,5 +50,5 @@ jobs:
9050
9151
- name: Test
9252
run: |
93-
pytest
53+
PY_IGNORE_IMPORTMISMATCH=1 pytest
9454
python -m doctest README.rst

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ quantities
1010
:target: http://travis-ci.org/python-quantities/python-quantities
1111

1212
A Python package for handling physical quantities. The source code and issue
13-
tracker are hosted on github:
13+
tracker are hosted on GitHub:
1414

1515
https://www.github.com/python-quantities/python-quantities
1616

@@ -19,7 +19,7 @@ Download
1919
Get the latest version of quantities from
2020
https://pypi.python.org/pypi/quantities/
2121

22-
To get the git version do::
22+
To get the Git version do::
2323

2424
$ git clone git://github.com/python-quantities/python-quantities.git
2525

doc/user/installation.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ Prerequisites
88

99
Quantities has a few dependencies:
1010

11-
* Python_ (>=2.7)
12-
* NumPy_ (>=1.8.2)
11+
* Python_ (>=3.7)
12+
* NumPy_ (>=1.18)
1313

1414

1515
Source Code Installation
1616
========================
1717

18-
To install Quantities, download the Quantites sourcecode from PyPi_
18+
To install Quantities, download the Quantites sourcecode from PyPI_
1919
and run "python setup.py install" in the quantities source directory,
2020
or run "pip install quantities".
2121

@@ -26,11 +26,11 @@ You can follow and contribute to Quantities' development using git::
2626

2727
git clone git@github.com:python-quantities/python-quantities.git
2828

29-
Bugs, feature requests, and questions can be directed to the github_
29+
Bugs, feature requests, and questions can be directed to the GitHub_
3030
website.
3131

3232

3333
.. _Python: http://www.python.org/
3434
.. _NumPy: http://www.scipy.org
35-
.. _PyPi: http://pypi.python.org/pypi/quantities
36-
.. _github: http://github.com/python-quantities/python-quantities
35+
.. _PyPI: http://pypi.python.org/pypi/quantities
36+
.. _GitHub: http://github.com/python-quantities/python-quantities

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def run(self):
136136
packages = packages,
137137
platforms = 'Any',
138138
requires = [
139-
'python (>=2.7.0)',
140-
'numpy (>=1.8.2)',
139+
'python (>=3.7)',
140+
'numpy (>=1.18)',
141141
],
142142
url = 'http://python-quantities.readthedocs.io/',
143143
version = versioneer.get_version(),

0 commit comments

Comments
 (0)