File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 5050 - name : Upload wheels
5151 uses : actions/upload-artifact@v2
5252 with :
53+ name : dist
5354 path : ./wheelhouse/*.whl
5455
5556 build_sdist :
7172 - name : Upload sdist
7273 uses : actions/upload-artifact@v2
7374 with :
75+ name : dist
7476 path : dist/*.tar.gz
7577
7678 build_pypy :
9799 - name : Upload wheels
98100 uses : actions/upload-artifact@v2
99101 with :
102+ name : dist
100103 path : dist/*.whl
Original file line number Diff line number Diff line change @@ -49,9 +49,12 @@ def utc2local(timestring):
4949os .chdir (dest )
5050
5151r = requests .get (f"https://api.github.com/repos/{ repo_owner } /actions/artifacts" )
52- latest = max (r .json ()["artifacts" ], key = lambda a : a ["created_at" ])
53-
54- print (f"Artifacts created at { utc2local (latest ['created_at' ])} " )
55- download_url (latest ["archive_download_url" ], temp_zip )
56- unpack_zipfile (temp_zip )
57- os .remove (temp_zip )
52+ dists = [a for a in r .json ()["artifacts" ] if a ["name" ] == "dist" ]
53+ if not dists :
54+ print (f"No recent dists!" )
55+ else :
56+ latest = max (dists , key = lambda a : a ["created_at" ])
57+ print (f"Artifacts created at { utc2local (latest ['created_at' ])} " )
58+ download_url (latest ["archive_download_url" ], temp_zip )
59+ unpack_zipfile (temp_zip )
60+ os .remove (temp_zip )
Original file line number Diff line number Diff line change 4444 - ELSE:
4545 $ make publish
4646- Kits:
47+ - Manually trigger the kit GitHub Action
48+ - https://github.com/nedbat/coveragepy/actions?query=workflow%3A%22Build+kits%22
4749 - Download built kits from GitHub Actions:
48- $ make download_kits
50+ $ make clean download_kits
4951 - examine the dist directory, and remove anything that looks malformed.
5052 - check the dist directory:
5153 $ python -m twine check dist/*
You can’t perform that action at this time.
0 commit comments