Skip to content

Commit aa1253c

Browse files
committed
minor fixes to pypi upload machinery
Signed-off-by: Giampaolo Rodola <[email protected]>
1 parent a307e8f commit aa1253c

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,22 @@ jobs:
7979
uses: styfle/[email protected]
8080
with:
8181
access_token: ${{ github.token }}
82+
8283
- uses: actions/checkout@v3
84+
8385
- uses: actions/setup-python@v4
8486
with:
8587
python-version: "${{ matrix.python }}"
8688
architecture: "${{ matrix.architecture }}"
8789
cache: pip
8890
cache-dependency-path: .github/workflows/build.yml
91+
8992
- name: Download wheels
9093
uses: actions/download-artifact@v3
9194
with:
9295
name: wheels
9396
path: wheelhouse
97+
9498
- name: Run tests
9599
run: |
96100
mkdir .tests

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,6 @@ sdist: ## Create tar.gz source distribution.
256256
$(PYTHON) setup.py sdist
257257
$(PYTHON) -m twine check dist/*.tar.gz
258258

259-
upload-src: ## Upload source tarball on https://pypi.org/project/psutil/
260-
${MAKE} sdist
261-
$(PYTHON) -m twine upload dist/*.tar.gz
262-
263-
upload-wheels: ## Upload wheels in dist/* directory on PyPI.
264-
$(PYTHON) -m twine upload dist/*.whl
265-
266259
# --- others
267260

268261
check-sdist: ## Create source distribution and checks its sanity (MANIFEST)
@@ -293,6 +286,7 @@ pre-release: ## Check if we're ready to produce a new release.
293286
assert 'XXXX' not in history, 'XXXX in HISTORY.rst';"
294287

295288
release: ## Create a release (down/uploads tar.gz, wheels, git tag release).
289+
$(PYTHON) -m twine check dist/*
296290
$(PYTHON) -m twine upload dist/* # upload tar.gz and Windows wheels on PyPI
297291
${MAKE} git-tag-release
298292

scripts/internal/download_wheels_appveyor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
USER = "giampaolo"
2929
PROJECT = "psutil"
3030
BASE_URL = 'https://ci.appveyor.com/api'
31-
PY_VERSIONS = ['2.7', '3.7', '3.8', '3.9', '3.10']
31+
PY_VERSIONS = ['2.7']
3232
TIMEOUT = 30
3333

3434

0 commit comments

Comments
 (0)