Skip to content

remove setup.cfg

remove setup.cfg #28

Workflow file for this run

name: Release
on:
release:
types:
- published
push:
branches:
- main
- gh-actions # TODO: remove before merging PR
jobs:
package:
name: Build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install -U pip build
python -m pip install -r requirements.txt .
- name: Build dist
run: |
python -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs:
- package
environment:
name: release
url: https://pypi.org/p/aardvark
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
pypi-test-publish:
name: Upload release to TestPyPI
runs-on: ubuntu-latest
needs:
- package
environment:
name: release
url: https://test.pypi.org/p/aardvark
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/