From 4d5ef5fca48e97624d48bbdb005bb5e2f117fb58 Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Sun, 2 Jun 2024 22:20:04 -0700 Subject: [PATCH] Update publish GHA for pyproject.toml --- .github/workflows/python-publish.yml | 6 +++--- pyproject.toml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 5534a2c..983d3c8 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -20,16 +20,16 @@ jobs: - uses: FedericoCarboni/setup-ffmpeg@v1-beta id: setup-ffmpeg - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install build wheel twine - name: Build and publish run: | - python setup.py sdist bdist_wheel + python -m build --wheel - name: Publish package uses: pypa/gh-action-pypi-publish@v1.8.11 with: diff --git a/pyproject.toml b/pyproject.toml index 9dffc11..a0f5478 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,7 @@ build-backend = "hatchling.build" name = "audalign" version = "1.2.4" description = "Audio Alignment and Recognition in Python" +requires-python = ">= 3.8" readme = "README.md" license = "MIT" authors = [