1
- name : PyPi Upload
1
+ name : Check and PyPi Upload
2
2
3
3
on :
4
4
push :
11
11
- ' *'
12
12
13
13
jobs :
14
- ubuntu20 :
15
- name : Ubuntu 20 .04 x86_64
16
- runs-on : ubuntu-20 .04
14
+ ubuntu22 :
15
+ name : Ubuntu 22 .04 x86_64
16
+ runs-on : ubuntu-22 .04
17
17
steps :
18
18
- uses : actions/checkout@v1
19
19
with :
@@ -25,13 +25,13 @@ jobs:
25
25
echo $?
26
26
git tag --list
27
27
28
- - name : Install patchelf
29
- run : sudo apt-get install -y patchelf python3-pip
28
+ - name : Install pip
29
+ run : sudo apt-get install -y python3-pip
30
30
31
31
- name : Install prerequisites
32
32
run : |
33
- pip3 install -r requirements.txt -r requirements-dev.txt -r requirements-docs.txt
34
- pip3 install auditwheel twine
33
+ python3 -m pip install -r requirements.txt -r requirements-dev.txt -r requirements-docs.txt
34
+ python3 -m pip install auditwheel twine
35
35
36
36
- name : Create wheel
37
37
run : |
70
70
71
71
72
72
73
- ubuntu20 -other :
74
- name : Ubuntu 20 .04 ${{ matrix.arch }}
75
- runs-on : ubuntu-20 .04
73
+ ubuntu22 -other :
74
+ name : Ubuntu 22 .04 ${{ matrix.arch }}
75
+ runs-on : ubuntu-22 .04
76
76
77
77
strategy :
78
78
matrix :
@@ -95,13 +95,13 @@ jobs:
95
95
echo $?
96
96
git tag --list
97
97
98
- - name : Install patchelf
99
- run : sudo apt-get install -y patchelf python3-pip
98
+ - name : Install pip
99
+ run : sudo apt-get install -y python3-pip
100
100
101
101
- name : Install prerequisites
102
102
run : |
103
- pip3 install -r requirements.txt -r requirements-dev.txt
104
- pip3 install twine
103
+ python3 -m pip install -r requirements.txt -r requirements-dev.txt
104
+ python3 -m pip install twine
105
105
106
106
- name : Create wheel
107
107
run : |
@@ -139,12 +139,15 @@ jobs:
139
139
140
140
- name : Install prerequisites
141
141
run : |
142
- pip3 install -r requirements.txt -r requirements-dev.txt
143
- pip3 install delocate twine
142
+ python3 -m pip install -r requirements.txt
143
+ python3 -m pip install twine
144
+ python3 -m pip install --user delocate
144
145
145
146
- name : Create wheel
146
147
run : |
147
148
python3 setup.py bdist_wheel
149
+ export PATH="$(python3 -m site --user-base)/bin:$PATH"
150
+ echo "PATH: $PATH"
148
151
delocate-wheel -w wheelhouse -v dist/*.whl
149
152
ls wheelhouse/*any.whl | sed -e 'p;s/any/macosx_10_9_x86_64/' | xargs -n2 mv
150
153
@@ -188,17 +191,17 @@ jobs:
188
191
- name : Set up Python
189
192
uses : actions/setup-python@v2
190
193
with :
191
- python-version : 3.7
194
+ python-version : 3.10
192
195
architecture : ${{ matrix.arch }}
193
196
194
197
- name : Install prerequisites
195
198
run : |
196
- pip3 install -r requirements.txt -r requirements-dev.txt
197
- pip3 install twine wheel
199
+ python3 -m pip install -r requirements.txt -r requirements-dev.txt
200
+ python3 -m pip install twine wheel
198
201
199
202
- name : Create wheel
200
203
run : |
201
- python setup.py bdist_wheel
204
+ python3 setup.py bdist_wheel
202
205
Dir "dist/" | rename-item -NewName {$_.name -replace '-any.whl','-${{ matrix.wheel_arch }}.whl'}
203
206
204
207
- name : Check the artifacts
0 commit comments