Skip to content

Commit 665b53c

Browse files
committed
Specify build requirements in pyproject.toml (PEP 517)
1 parent 0eddba8 commit 665b53c

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

Diff for: MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include LICENSE
33
include RELEASE.md
44
include README.md
55
include setup.py
6+
include pyproject.toml
67

78
graft doc
89
prune doc/build

Diff for: doc/source/whatsnew/v0.25.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Sparse
198198
Other
199199
^^^^^
200200

201-
-
201+
- Specify build-time requirement in ``pyproject.toml`` (:issue:`25193`)
202202
-
203203
-
204204

Diff for: pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# When changing the version numbers here, also adjust them in `setup.py`
2+
[build-system]
3+
requires = ["setuptools", "wheel", "cython >= 0.28.2", "numpy >= 1.12.0"]

Diff for: setup.py

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
from distutils.version import LooseVersion
1818
from setuptools import setup, Command, find_packages
1919

20+
# Taken from https://github.com/jupyterhub/traefik-proxy/commit/0f16dc307b72e613e71067b6498f82728461434a
21+
# ensure cwd is on sys.path
22+
# workaround bug in pip 19.0
23+
here = os.path.dirname(__file__)
24+
if here not in sys.path:
25+
sys.path.insert(0, here)
26+
2027
# versioning
2128
import versioneer
2229
cmdclass = versioneer.get_cmdclass()
@@ -30,6 +37,7 @@ def is_platform_mac():
3037
return sys.platform == 'darwin'
3138

3239

40+
# When changing the version numbers here, also adjust them in `pyproject.toml`
3341
min_numpy_ver = '1.12.0'
3442
setuptools_kwargs = {
3543
'install_requires': [

0 commit comments

Comments
 (0)