@@ -20,16 +20,12 @@ jobs:
2020 runs-on : ubuntu-latest
2121 steps :
2222 - uses : actions/checkout@v2
23- - uses : actions/setup-python@v2
24-
25- - name : Install deps
26- run : python -m pip install twine build
2723
2824 - name : Build SDist
29- run : python -m build -s
25+ run : pipx run build --sdist
3026
3127 - name : Check metadata
32- run : twine check dist/*
28+ run : pipx run twine check dist/*
3329
3430 - uses : actions/upload-artifact@v2
3531 with :
@@ -47,22 +43,12 @@ jobs:
4743 steps :
4844 - uses : actions/checkout@v2
4945
50- - uses : actions/setup-python@v2
51-
52- - name : Install cibuildwheel
53- run : python -m pip install cibuildwheel==1.6.3
54-
55- - name : Build wheel
56- run : python -m cibuildwheel --output-dir wheelhouse
46+ 5747 env :
5848 # Python 2.7 on Windows requires a workaround for C++11 support,
5949 # built separately below
6050 CIBW_SKIP : cp27-win*
6151
62- - name : Show files
63- run : ls -lh wheelhouse
64- shell : bash
65-
6652 - name : Verify clean directory
6753 run : git diff --exit-code
6854 shell : bash
@@ -79,19 +65,14 @@ jobs:
7965 runs-on : windows-latest
8066
8167 steps :
82- - uses : actions/checkout@v1
68+ - uses : actions/checkout@v2
8369 with :
8470 submodules : true
8571
86- - uses : actions/setup-python@v2
87-
88- - name : Install cibuildwheel
89- run : python -m pip install cibuildwheel==1.6.3
90-
9172 - uses : ilammy/msvc-dev-cmd@v1
9273
9374 - name : Build 64-bit wheel
94- run : python -m cibuildwheel --output-dir wheelhouse
75+ uses : joerick/ cibuildwheel@v1.10.0
9576 env :
9677 CIBW_BUILD : cp27-win_amd64
9778 DISTUTILS_USE_SDK : 1
@@ -102,16 +83,12 @@ jobs:
10283 arch : x86
10384
10485 - name : Build 32-bit wheel
105- run : python -m cibuildwheel --output-dir wheelhouse
86+ uses : joerick/ cibuildwheel@v1.10.0
10687 env :
10788 CIBW_BUILD : cp27-win32
10889 DISTUTILS_USE_SDK : 1
10990 MSSdk : 1
11091
111- - name : Show files
112- run : ls -lh wheelhouse
113- shell : bash
114-
11592 - name : Verify clean directory
11693 run : git diff --exit-code
11794 shell : bash
@@ -135,7 +112,7 @@ jobs:
135112 name : artifact
136113 path : dist
137114
138- 115+ 139116 with :
140117 user : __token__
141118 password : ${{ secrets.pypi_password }}
0 commit comments