Skip to content

Commit 5b0557e

Browse files
authored
Merge pull request #211 from mwcraig/use-setuptools-scm
Use setuptools_scm instead of versioneer
2 parents 4101321 + 33da356 commit 5b0557e

File tree

9 files changed

+40
-1009
lines changed

9 files changed

+40
-1009
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
steps:
1717

1818
- uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
1921

2022
- name: Set up Python ${{ matrix.python-version }}
2123
uses: actions/setup-python@v1
@@ -37,15 +39,11 @@ jobs:
3739
- name: Install dependencies
3840
run: |
3941
python -m pip install --upgrade pip
40-
pip install pytest Cython wheel
41-
42-
- name: Build sdist
43-
run: |
44-
python setup.py sdist
42+
pip install pytest Cython wheel build
4543
46-
- name: Build wheel
44+
- name: Build sdist and wheel
4745
run: |
48-
python setup.py bdist_wheel
46+
python -m build
4947
5048
- name: Install vpython
5149
run: |

.github/workflows/upload_pypi.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
steps:
1919

2020
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
2123

2224
- name: Set up Python ${{ matrix.python-version }}
2325
uses: actions/setup-python@v1
@@ -27,20 +29,22 @@ jobs:
2729
- name: Install dependencies
2830
run: |
2931
python -m pip install --upgrade pip
30-
pip install setuptools wheel twine Cython
32+
pip install setuptools wheel twine Cython build
3133
3234
- name: Build and publish wheel
3335
env:
3436
TWINE_USERNAME: __token__
3537
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_TOKEN }}
3638
run: |
37-
python setup.py bdist_wheel
38-
twine upload dist/*
39+
python -m build
40+
twine upload dist/*.whl
3941
4042
linux_wheels:
4143
runs-on: ubuntu-latest
4244
steps:
4345
- uses: actions/checkout@v3
46+
with:
47+
fetch-depth: 0
4448
- name: Set up Python
4549
uses: actions/setup-python@v1
4650
with:
@@ -58,7 +62,7 @@ jobs:
5862
uses: RalfG/[email protected]
5963
with:
6064
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
61-
build-requirements: 'setuptools cython'
65+
build-requirements: 'setuptools cython setuptools_scm'
6266
- name: Build and publish wheel
6367
env:
6468
TWINE_USERNAME: __token__
@@ -70,6 +74,8 @@ jobs:
7074
runs-on: ubuntu-latest
7175
steps:
7276
- uses: actions/checkout@v3
77+
with:
78+
fetch-depth: 0
7379
- name: Set up Python
7480
uses: actions/setup-python@v1
7581
with:
@@ -85,7 +91,7 @@ jobs:
8591
uses: RalfG/[email protected]_aarch64
8692
with:
8793
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
88-
build-requirements: 'setuptools cython'
94+
build-requirements: 'setuptools cython setuptools_scm'
8995
- name: Build and publish wheel
9096
env:
9197
TWINE_USERNAME: __token__
@@ -104,11 +110,11 @@ jobs:
104110
- name: Install dependencies
105111
run: |
106112
python -m pip install --upgrade pip
107-
pip install setuptools wheel twine Cython
113+
pip install setuptools wheel twine Cython build
108114
- name: Build and publish
109115
env:
110116
TWINE_USERNAME: __token__
111117
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_TOKEN }}
112118
run: |
113-
python setup.py sdist
114-
twine upload dist/*
119+
python -m build
120+
twine upload dist/*.tar.gz

MANIFEST.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
include CHANGES.txt
22
include LICENSE.txt
33
include README.md
4-
include ez_setup.py
5-
include versioneer.py
6-
include vpython/_version.py
74
include vpython/cyvector.pyx

0 commit comments

Comments
 (0)