10000 Require a sufficiently new Cython to avoid exc_traceback complaints · DavidKorczynski/http-parser@190a178 · GitHub
[go: up one dir, main page]

Skip to content

Commit 190a178

committed
Require a sufficiently new Cython to avoid exc_traceback complaints
1 parent 2306df2 commit 190a178

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file is renamed to "setup.toml.dev" in release tarballs so that
2+
# Pip won't try to use it.
3+
4+
[build-system]
5+
# In addition to setuptools and wheel, we need modern Cython, because we are
6+
# not a packaged release.
7+
requires = ["setuptools", "wheel", "cython>=0.28.3"]
8+

pyproject.toml.release

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file is renamed to "setup.toml" in release tarballs so that
2+
# Pip will use it.
3+
4+
[build-system]
5+
# Release packages only need the standard setuptools and wheel.
6+
requires = ["setuptools", "wheel"]
7+

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pytest
2-
cython
2+
cython>=0.28.3

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,16 @@ def run(self):
7474
if os.path.exists('Makefile'):
7575
make()
7676
os.rename('Makefile', 'Makefile.ext')
77+
os.rename('pyproject.toml', 'pyproject.toml.dev')
78+
os.rename('pyproject.toml.release', 'pyproject.toml')
7779
renamed = True
7880
try:
7981
return _sdist.run(self)
8082
finally:
8183
if renamed:
8284
os.rename('Makefile.ext', 'Makefile')
85+
os.rename('pyproject.toml', 'pyproject.toml.release')
86+
os.rename('pyproject.toml.dev', 'pyproject.toml')
8387

8488
class BuildFailed(Exception):
8589
pass

0 commit comments

Comments
 (0)
0