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 :
5862 uses : RalfG/python-wheels-manylinux-build@v0.4.2
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__
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 :
8591 uses : RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_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