12
12
13
13
jobs :
14
14
python_sdist :
15
- name : pyyaml sdist
15
+ name : PyYAML sdist
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - name : checkout pyyaml
18
+ - name : Checkout pyyaml
19
19
uses : actions/checkout@v2
20
20
21
- - name : install a python
21
+ - name : Install a python
22
22
uses : actions/setup-python@v2
23
23
with :
24
24
python-version : 3.x
25
25
26
- - name : install build deps
26
+ - name : Install build deps
27
27
run : |
28
28
python -V
29
29
python -m pip install build
30
30
31
- - name : build sdist
31
+ - name : Build sdist
32
32
run : |
33
- # we DO want to force Cythoning, at least until 6.0
33
+ # We DO want to force Cythoning, at least until 6.0.
34
34
export PYYAML_FORCE_CYTHON=1
35
- # we don't actually want to build the lib
35
+ # We don't actually want to build the lib.
36
36
export PYYAML_FORCE_LIBYAML=0
37
37
38
38
python -m build .
39
39
40
- # ensure exactly one artifact was produced
40
+ # Ensure exactly one artifact was produced.
41
41
[[ $(shopt -s nullglob; ls dist/*.tar.gz | wc -w) == 1 ]] || {
42
- echo "unexpected content in dist dir: $(ls dist/*.tar.gz)"
42
+ echo "Unexpected content in dist dir: ' $(ls dist/*.tar.gz)'. "
43
43
exit 1
44
44
}
45
45
46
- - name : test sdist
46
+ - name : Test sdist
47
47
run : |
48
- # install some libyaml headers
49
- # TODO should we smoke test the sdist against the libyaml we built?
48
+ # Install some libyaml headers.
49
+ # TODO Should we smoke test the sdist against the libyaml we built?
50
50
sudo apt update
51
51
sudo apt install libyaml-dev -y
52
52
53
- # ensure Cython is not present so we use only what's in the sdist
53
+ # Ensure Cython is not present so we use only what's in the sdist.
54
54
python -m pip uninstall Cython -y || true
55
55
56
- # pass no extra args- we should auto-install with libyaml since it's
57
- # present
56
+ # Pass no extra args.
57
+ # We should auto-install with libyaml since it's present.
58
58
python -m pip install dist/*.tar.gz -v
59
59
60
60
python packaging/build/smoketest.py
61
61
62
- - name : upload sdist artifact
62
+ - name : Upload sdist artifact
63
63
uses : actions/upload-artifact@v2
64
64
with :
65
65
name : dist
72
72
strategy :
73
73
matrix :
74
74
platform :
75
- # manylinux1 is forward-compatible to 2010/2014
75
+ # manylinux1 is forward-compatible to 2010/2014.
76
76
# - manylinux2014
77
77
# - manylinux2010
78
78
- manylinux1
@@ -81,18 +81,18 @@ jobs:
81
81
env :
82
82
DOCKER_IMAGE : quay.io/pypa/${{matrix.platform}}_${{matrix.arch}}
83
83
steps :
84
- - name : check cached libyaml state
84
+ - name : Check cached libyaml state
85
85
id : cached_libyaml
86
86
uses : actions/cache@v2
87
87
with :
88
88
path : libyaml
89
89
key : libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}}
90
90
91
- - name : checkout pyyaml
91
+ - name : Checkout pyyaml
92
92
uses : actions/checkout@v2
93
93
if : steps.cached_libyaml.outputs.cache-hit != 'true'
94
94
95
- - name : build libyaml
95
+ - name : Build libyaml
96
96
run : >
97
97
docker run --rm
98
98
--volume "$(pwd):/io"
@@ -110,16 +110,16 @@ jobs:
110
110
strategy :
111
111
matrix :
112
112
platform :
113
- # so long as manylinux1 container builds work, they're
114
- # forward-compatible to 2010/2014
113
+ # So long as manylinux1 container builds work, they're
114
+ # forward-compatible to 2010/2014.
115
115
# - manylinux2014
116
116
# - manylinux2010
117
117
- manylinux1
118
118
arch :
119
119
- x86_64
120
120
python_tag :
121
121
# NB manylinux >=2014 containers don't have Python 2.7, so we have to
122
- # use exclude to skip it
122
+ # use exclude to skip it.
123
123
- cp27-cp27mu
124
124
- cp36-cp36m
125
125
- cp37-cp37m
@@ -137,26 +137,26 @@ jobs:
137
137
steps :
138
138
- uses : actions/checkout@v2
139
139
140
- - name : fetch cached libyaml
140
+ - name : Fetch cached libyaml
141
141
id : cached_libyaml
142
142
uses : actions/cache@v2
143
143
with :
144
144
path : libyaml
145
145
key : libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}}
146
146
147
- - name : ensure libyaml fetched
147
+ - name : Ensure libyaml fetched
148
148
run : exit 1
149
149
if : steps.cached_libyaml.outputs.cache-hit != 'true'
150
150
151
- - name : start container
151
+ - name : Start container
152
152
run : >
153
153
docker run --rm --tty --detach
154
154
--name worker
155
155
--volume "$(pwd):/io"
156
156
"$DOCKER_IMAGE"
157
157
bash
158
158
159
- - name : build/test/package
159
+ - name : Build/Test/Package
160
160
run : >
161
161
docker exec
162
162
--env PYTHON_TAG
@@ -181,18 +181,18 @@ jobs:
181
181
arch :
182
182
- x86_64
183
183
steps :
184
- - name : check cached libyaml state
184
+ - name : Check cached libyaml state
185
185
id : cached_libyaml
186
186
uses : actions/cache@v2
187
187
with :
188
188
path : libyaml
189
189
key : libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}}
190
190
191
- - name : checkout pyyaml
191
+ - name : Checkout pyyaml
192
192
uses : actions/checkout@v2
193
193
if : steps.cached_libyaml.outputs.cache-hit != 'true'
194
194
195
- - name : build libyaml
195
+ - name : Build libyaml
196
196
env :
197
197
MACOSX_DEPLOYMENT_TARGET : ' 10.9'
198
198
run : |
@@ -217,26 +217,26 @@ jobs:
217
217
- cp38*
218
218
- cp39*
219
219
steps :
220
- - name : checkout pyyaml
220
+ - name : Checkout pyyaml
221
221
uses : actions/checkout@v2
222
222
223
- - name : get cached libyaml state
223
+ - name : Get cached libyaml state
224
224
id : cached_libyaml
225
225
uses : actions/cache@v2
226
226
with :
227
227
path : libyaml
228
228
key : libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}}
229
229
230
- - name : ensure libyaml fetched
230
+ - name : Ensure libyaml fetched
231
231
run : exit 1
232
232
if : steps.cached_libyaml.outputs.cache-hit != 'true'
233
233
234
- - name : install a python
234
+ - name : Install a python
235
235
uses : actions/setup-python@v2
236
236
with :
237
237
python-version : 3.x
238
238
239
- - name : build/test/package
239
+ - name : Build/Test/Package
240
240
env :
241
241
CIBW_BUILD : ${{matrix.python_tag}}
242
242
CIBW_BUILD_VERBOSITY : 1
0 commit comments