Skip to content

Commit 6bc1d5e

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

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

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

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

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"]

setup.py

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

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

3241

42+
# When changing the version numbers here, also adjust them in `pyproject.toml`
3343
min_numpy_ver = '1.12.0'
3444
setuptools_kwargs = {
3545
'install_requires': [

0 commit comments

Comments
 (0)