Update python compatibility in README (#610) #467
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Python π distributions π¦ to PyPI | |
on: push | |
jobs: | |
build-n-publish: | |
name: Build and publish Python π distributions π¦ to PyPI | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.7 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.7 | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
pip install wheel; | |
rm -rf dist; | |
python setup.py sdist bdist_wheel | |
- name: Publish distribution π¦ to PyPI | |
if: startsWith(github.event.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.pypi_password }} |