From 5a2a4f7927e9a433c257236dc0681650dc72fff3 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Fri, 21 Feb 2025 09:59:31 +0200 Subject: [PATCH] build: Remove workaround for hatchling upgrades Apparently Dependabot now supports upgrading build-system.requires: we don't need the workarounds anymore. Signed-off-by: Jussi Kukkonen --- .github/workflows/cd.yml | 2 +- pyproject.toml | 5 +---- requirements/build.txt | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 06e4a70e76..a91fbd1f54 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -33,7 +33,7 @@ jobs: - name: Build binary wheel, source tarball and changelog run: | - PIP_CONSTRAINT=requirements/build.txt python3 -m build --sdist --wheel --outdir dist/ . + python3 -m build --sdist --wheel --outdir dist/ . awk "/## $GITHUB_REF_NAME/{flag=1; next} /## v/{flag=0} flag" docs/CHANGELOG.md > changelog - name: Store build artifacts diff --git a/pyproject.toml b/pyproject.toml index f6ce7c3db1..a5c24fc987 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,5 @@ [build-system] -# Dependabot cannot do `build-system.requires` (dependabot/dependabot-core#8465) -# workaround to get reproducibility and auto-updates: -# PIP_CONSTRAINT=requirements/build.txt python3 -m build ... -requires = ["hatchling"] +requires = ["hatchling==1.27.0"] build-backend = "hatchling.build" [project] diff --git a/requirements/build.txt b/requirements/build.txt index 1b35b08239..2d7aef17f9 100644 --- a/requirements/build.txt +++ b/requirements/build.txt @@ -2,4 +2,3 @@ # during CI and CD Github workflows build==1.2.2.post1 tox==4.1.2 -hatchling==1.27.0