Skip to content

Commit f0529a5

Browse files
committed
Added initial files
0 parents  commit f0529a5

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed

LICENSE

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Copyright (c) 2019, Thomas P. Robitaille
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.rst

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
This is a meta-package which can be used in ``pyproject.toml`` files to
2+
automatically provide the oldest supported version of Numpy without having to
3+
list them all. In other words,
4+
5+
```toml
6+
[build-system]
7+
requires = [
8+
"wheel",
9+
"setuptools",
10+
"numpy==1.13.3; python_version=='3.5',
11+
"numpy==1.13.3; python_version=='3.6',
12+
"numpy==1.14.5; python_version=='3.7',
13+
"numpy==1.17.3; python_version>='3.8'
14+
]
15+
```
16+
17+
can be replaced by:
18+
19+
```toml
20+
[build-system]
21+
requires = [
22+
"wheel",
23+
"setuptools",
24+
"oldest-supported-numpy"
25+
]
26+
```
27+
28+
And as new Python versions are released, the ``pyproject.toml`` file does not
29+
need to be updated.

setup.cfg

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[metadata]
2+
name = oldest-supported-numpy
3+
description = Meta-package that provides the oldest supported version of Numpy
4+
author = Thomas Robitaille
5+
author_email = [email protected]
6+
license = BSD
7+
url = https://reproject.readthedocs.io
8+
version = 0.1
9+
10+
# The Numpy pinnings below have been adapted from those in the
11+
# SciPy package, which is released under a 3-clause BSD license:
12+
# https://github.com/scipy/scipy/blob/master/LICENSE.txt
13+
14+
[options]
15+
python_requires = >=3.5
16+
install_requires =
17+
numpy==1.13.3; python_version=='3.5' and platform_system!='AIX'
18+
numpy==1.13.3; python_version=='3.6' and platform_system!='AIX'
19+
numpy==1.14.5; python_version=='3.7' and platform_system!='AIX'
20+
numpy==1.17.3; python_version>='3.8' and platform_system!='AIX'
21+
numpy==1.16.0; python_version=='3.5' and platform_system=='AIX'
22+
numpy==1.16.0; python_version=='3.6' and platform_system=='AIX'
23+
numpy==1.16.0; python_version=='3.7' and platform_system=='AIX'
24+
numpy==1.17.3; python_version>='3.8' and platform_system=='AIX'
25+
26+
[bdist_wheel]
27+
universal = 1

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from setuptools import setup
2+
setup()

0 commit comments

Comments
 (0)