Skip to content

Formally deprecate python 2 #6

Formally deprecate python 2

Formally deprecate python 2 #6

# See: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
name: Publish Source Packages to PyPI
on:
release:
types: [published]
pull_request:
types: [assigned, opened, synchronize, reopened]
jobs:
build-and-publish:
name: Build and Publish Source Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install pypa/build
run: python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
# - name: Publish distribution to Test PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}