Skip to content

Commit

Permalink
minor fixes to pypi upload machinery
Browse files Browse the repository at this point in the history
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
  • Loading branch information
giampaolo committed Nov 7, 2022
1 parent a307e8f commit aa1253c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -79,18 +79,22 @@ jobs:
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python }}"
architecture: "${{ matrix.architecture }}"
cache: pip
cache-dependency-path: .github/workflows/build.yml

- name: Download wheels
uses: actions/download-artifact@v3
with:
name: wheels
path: wheelhouse

- name: Run tests
run: |
mkdir .tests
Expand Down
8 changes: 1 addition & 7 deletions Makefile
Expand Up @@ -256,13 +256,6 @@ sdist: ## Create tar.gz source distribution.
$(PYTHON) setup.py sdist
$(PYTHON) -m twine check dist/*.tar.gz

upload-src: ## Upload source tarball on https://pypi.org/project/psutil/
${MAKE} sdist
$(PYTHON) -m twine upload dist/*.tar.gz

upload-wheels: ## Upload wheels in dist/* directory on PyPI.
$(PYTHON) -m twine upload dist/*.whl

# --- others

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

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

Expand Down
2 changes: 1 addition & 1 deletion scripts/internal/download_wheels_appveyor.py
Expand Up @@ -28,7 +28,7 @@
USER = "giampaolo"
PROJECT = "psutil"
BASE_URL = 'https://ci.appveyor.com/api'
PY_VERSIONS = ['2.7', '3.7', '3.8', '3.9', '3.10']
PY_VERSIONS = ['2.7']
TIMEOUT = 30


Expand Down

0 comments on commit aa1253c

Please sign in to comment.