Skip to content

Commit

Permalink
Merge pull request #691 from lukpueh/upgrade-hatchling
Browse files Browse the repository at this point in the history
build: Upgrade hatchling to 1.19.1
  • Loading branch information
jku authored Dec 15, 2023
2 parents 017aafc + c6e4813 commit 35148a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
python-version: '3.x'

- name: Install build dependency
run: python3 -m pip install -r requirements-build.txt
run: python3 -m pip install --constraint requirements-build.txt build

- name: Build binary wheel and source tarball
run: python3 -m build --sdist --wheel --outdir dist/ .
run: PIP_CONSTRAINT=requirements-build.txt python3 -m build --sdist --wheel --outdir dist/ .

- name: Store build artifacts
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[build-system]
# Version needs manual updates (dependabot/dependabot-core#8465)
requires = ["hatchling==1.18.0"]
# 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"]
build-backend = "hatchling.build"

[project]
Expand Down
1 change: 1 addition & 0 deletions requirements-build.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build==1.0.3
hatchling==1.20.0

0 comments on commit 35148a0

Please sign in to comment.