From ce1d199634047fce17b9207658175c1b8b34a4c1 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Thu, 1 May 2025 06:43:12 +0100 Subject: [PATCH] Use standardised build metadata --- .github/workflows/release.yml | 8 ++------ pyproject.toml | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a84d2baf..1e449c80d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,12 +81,8 @@ jobs: echo "version=$new_tag" >> "$GITHUB_OUTPUT" - name: create python package run: | - python -m pip install wheel - python setup.py sdist bdist_wheel - - name: rename dist files - run: | - shopt -s nullglob - for file in dist/bc-*.gz; do mv "$file" "${file//bc-detect-secrets/bc_detect_secrets}" ; done + python -m pip install build + python -m build - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1 - name: sleep and wait for package to refresh diff --git a/pyproject.toml b/pyproject.toml index 16d1e3334..475241839 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["setuptools>=70"] +build-backend = "setuptools.build_meta" + [tool.ruff] line-length = 100