diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-07-24 11:03:59 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-07-24 11:03:59 -0400 |
commit | e87d2180079f42a6003d425f9486ee33d32a872d (patch) | |
tree | f445c58df54f0aee309c4ee545e43cb44f67d242 | |
parent | 289222bd5ec1186ddae613cb74b59963ac3f87b8 (diff) | |
download | python-coveragepy-git-e87d2180079f42a6003d425f9486ee33d32a872d.tar.gz |
build: generalize download_gha_artifacts so other repos can use it
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | ci/download_gha_artifacts.py | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -95,7 +95,7 @@ kit_local: find ~/Library/Caches/pip/wheels -name 'coverage-*' -delete download_kits: ## Download the built kits from GitHub. - python ci/download_gha_artifacts.py + python ci/download_gha_artifacts.py nedbat/coveragepy check_kits: ## Check that dist/* are well-formed. python -m twine check dist/* diff --git a/ci/download_gha_artifacts.py b/ci/download_gha_artifacts.py index e47d4fb9..d3d2e932 100644 --- a/ci/download_gha_artifacts.py +++ b/ci/download_gha_artifacts.py @@ -6,6 +6,7 @@ import datetime import os import os.path +import sys import time import zipfile @@ -43,7 +44,7 @@ def utc2local(timestring): return local.strftime("%Y-%m-%d %H:%M:%S") dest = "dist" -repo_owner = "nedbat/coveragepy" +repo_owner = sys.argv[1] temp_zip = "artifacts.zip" if not os.path.exists(dest): |