Rename examples/*-deploy-only.yml to examples/*-deploy.yml, and keep sdist in dist/ in examples/github-deploy.yml

This commit is contained in:
Yannick Jadoul
2020-06-02 17:07:18 +02:00
parent 896337cbb1
commit 9c3f44d086
5 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -33,4 +33,4 @@ Obviously, manual steps are for chumps, so we can automate this a little by usin
If you don't need much control over the release of a package, you can set up cibuildwheel to deliver the wheels straight to PyPI. This doesn't require anycloud storage to work - you just need to bump the version and tag it.
[`examples/travis-deploy-only.yml`](https://github.com/joerick/cibuildwheel/blob/master/examples/travis-deploy-only.yml) and [`examples/github-deploy-only.yml`](https://github.com/joerick/cibuildwheel/blob/master/examples/travis-deploy-only.yml) are example configurations that automatocially upload wheels to PyPI. Also check out [this example repo](https://github.com/joerick/cibuildwheel-autopypi-example) for more detailed instructions on how to set this up.
[`examples/travis-deploy.yml`](https://github.com/joerick/cibuildwheel/blob/master/examples/travis-deploy.yml) and [`examples/github-deploy.yml`](https://github.com/joerick/cibuildwheel/blob/master/examples/travis-deploy.yml) are example configurations that automatocially upload wheels to PyPI. Also check out [this example repo](https://github.com/joerick/cibuildwheel-autopypi-example) for more detailed instructions on how to set this up.
+2 -2
View File
@@ -15,7 +15,7 @@ Commit this file, and push to Github - either to your default branch, or to a PR
For more info on this file, check out the [docs](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions).
[`examples/github-deploy-only.yml`](https://github.com/joerick/cibuildwheel/blob/master/examples/github-deploy-only.yml) extends this minimal example with a demonstration of how to automatically upload the built wheels to PyPI.
[`examples/github-deploy.yml`](https://github.com/joerick/cibuildwheel/blob/master/examples/github-deploy.yml) extends this minimal example with a demonstration of how to automatically upload the built wheels to PyPI.
# Azure Pipelines [linux/mac/windows] {: #azure-pipelines}
@@ -48,7 +48,7 @@ Commit this file, enable building of your repo on Travis CI, and push.
Then setup a deployment method by following the [Travis CI deployment docs](https://docs.travis-ci.com/user/deployment/), or see [Delivering to PyPI](deliver-to-pypi.md). For more info on `.travis.yml`, check out the [docs](https://docs.travis-ci.com/).
[`examples/travis-deploy-only.yml`](https://github.com/joerick/cibuildwheel/blob/master/examples/travis-deploy-only.yml) extends this minimal example with a demonstration of how to automatically upload the built wheels to PyPI.
[`examples/travis-deploy.yml`](https://github.com/joerick/cibuildwheel/blob/master/examples/travis-deploy.yml) extends this minimal example with a demonstration of how to automatically upload the built wheels to PyPI.
# CircleCI [linux/mac] {: #circleci}
@@ -33,7 +33,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
@@ -47,11 +47,11 @@ jobs:
python-version: '3.7'
- name: Build sdist
run: python setup.py sdist -d wheelhouse/
run: python setup.py sdist
- uses: actions/upload-artifact@v2
with:
path: wheelhouse/*.tar.gz
path: dist/*.tar.gz
upload_pypi:
needs: [build_wheels, build_sdist]
@@ -68,14 +68,13 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: artifact
path: wheelhouse
path: dist
- run: twine check wheelhouse/*
- run: twine check dist/*
- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages_dir: ./wheelhouse/
# To test: repository_url: https://test.pypi.org/legacy/
if: github.event_name == 'release' && github.event.action == 'published'
+1 -1
View File
@@ -33,4 +33,4 @@ jobs:
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse
path: ./wheelhouse/*.whl