Skip to content

Commit 33da356

Browse files
committed
Update build commands
1 parent 4adddbe commit 33da356

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@ jobs:
4141
python -m pip install --upgrade pip
4242
pip install pytest Cython wheel build
4343
44-
- name: Build sdist
44+
- name: Build sdist and wheel
4545
run: |
4646
python -m build
4747
48-
- name: Build wheel
49-
run: |
50-
python setup.py bdist_wheel
51-
5248
- name: Install vpython
5349
run: |
5450
pip install .

.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

0 commit comments

Comments
 (0)