18
18
steps :
19
19
20
20
- uses : actions/checkout@v3
21
+ with :
22
+ fetch-depth : 0
21
23
22
24
- name : Set up Python ${{ matrix.python-version }}
23
25
uses : actions/setup-python@v1
@@ -27,20 +29,22 @@ jobs:
27
29
- name : Install dependencies
28
30
run : |
29
31
python -m pip install --upgrade pip
30
- pip install setuptools wheel twine Cython
32
+ pip install setuptools wheel twine Cython build
31
33
32
34
- name : Build and publish wheel
33
35
env :
34
36
TWINE_USERNAME : __token__
35
37
TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_TOKEN }}
36
38
run : |
37
- python setup.py bdist_wheel
38
- twine upload dist/*
39
+ python -m build
40
+ twine upload dist/*.whl
39
41
40
42
linux_wheels :
41
43
runs-on : ubuntu-latest
42
44
steps :
43
45
- uses : actions/checkout@v3
46
+ with :
47
+ fetch-depth : 0
44
48
- name : Set up Python
45
49
uses : actions/setup-python@v1
46
50
with :
58
62
59
63
with :
60
64
python-versions : ' cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
61
- build-requirements : ' setuptools cython'
65
+ build-requirements : ' setuptools cython setuptools_scm '
62
66
- name : Build and publish wheel
63
67
env :
64
68
TWINE_USERNAME : __token__
70
74
runs-on : ubuntu-latest
71
75
steps :
72
76
- uses : actions/checkout@v3
77
+ with :
78
+ fetch-depth : 0
73
79
- name : Set up Python
74
80
uses : actions/setup-python@v1
75
81
with :
85
91
uses :
RalfG/[email protected] _aarch64
86
92
with :
87
93
python-versions : ' cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
88
- build-requirements : ' setuptools cython'
94
+ build-requirements : ' setuptools cython setuptools_scm '
89
95
- name : Build and publish wheel
90
96
env :
91
97
TWINE_USERNAME : __token__
@@ -104,11 +110,11 @@ jobs:
104
110
- name : Install dependencies
105
111
run : |
106
112
python -m pip install --upgrade pip
107
- pip install setuptools wheel twine Cython
113
+ pip install setuptools wheel twine Cython build
108
114
- name : Build and publish
109
115
env :
110
116
TWINE_USERNAME : __token__
111
117
TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_TOKEN }}
112
118
run : |
113
- python setup.py sdist
114
- twine upload dist/*
119
+ python -m build
120
+ twine upload dist/*.tar.gz
0 commit comments