Skip to content

Commit ecf6baf

Browse files
committed
Get sdist building working again
1 parent dff8dbe commit ecf6baf

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ __pycache__/
1818
build/
1919
dist/
2020
*.egg-info/
21+
.eggs/
2122

2223
# Unit test / coverage reports
2324
htmlcov/

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ platform:
1010

1111
environment:
1212
global:
13-
PYTHONUNBUFFERED: True
13+
PYTHONUNBUFFERED: 'True'
1414
PYTHONWARNINGS: 'ignore:::wheel.pep425tags:'
1515
CODECOV_ENV: PYTHON_VERSION, PLATFORM
1616

@@ -33,6 +33,7 @@ install:
3333
- pip install --upgrade -r requirements.txt --quiet
3434

3535
build_script:
36+
- python setup.py configure
3637
# Create clean `sdist`. Only used for releases
3738
- python setup.py --quiet sdist
3839
- python setup.py bdist_wheel

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ pytest==3.2.5
33
psutil
44
pycparser
55
wheel
6+
setuptools
7+
setuptools_scm

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ def finalize_options(self):
216216
license="MIT",
217217
author="The Contributors of the Python.NET Project",
218218
author_email="pythonnet@python.org",
219+
setup_requires=["setuptools_scm"],
219220
install_requires=["pycparser"],
220221
long_description=long_description,
221222
# data_files=[("{install_platlib}", ["{build_lib}/pythonnet"])],

0 commit comments

Comments
 (0)