Remove unhelpful wheel settings #30
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: Release | |
on: | |
release: | |
types: | |
- published | |
push: | |
branches: | |
- release-testing | |
jobs: | |
upload: | |
name: "Upload to Python Package Index" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
- name: Write version | |
run: | | |
if [ $GITHUB_REF_TYPE == 'tag' ]; then | |
python scripts/freeze_version.py "$GITHUB_REF_NAME" | |
else | |
# We use the commit count rather than the short hash to comply with | |
# the scheme described in PEP-440. | |
python scripts/freeze_version.py 0.0.1.dev`git rev-list --count HEAD` | |
fi | |
- name: Build package | |
run: python -m build | |
# - name: Publish distribution to PyPI | |
# uses: pypa/gh-action-pypi-publish@master | |
# with: | |
# password: ${{ secrets.PYPI_API_TOKEN }} |