Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Commit 599cb87

Browse files
committed
fix: update build reqs and version lookup
1 parent f75dae3 commit 599cb87

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

pre-release-steps.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
with open(join(HERE, 'pyproject.toml'), 'r') as data:
2323
meta = toml.loads(data.read())
2424

25-
VERSION = meta['tool']['poetry']['version']
25+
VERSION = (
26+
meta.get('project', {}).get('version')
27+
or meta.get('tool', {}).get('poetry', {}).get('version')
28+
)
29+
if not VERSION:
30+
raise RuntimeError('version not found in pyproject.toml')
2631

2732

2833
log = lambda m: print(' ~ ' + m)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ include = [
4848
packages = ["vrelease"]
4949

5050
[build-system]
51-
requires = ["hatchling>=1.28.0"]
51+
requires = ["hatchling>=1.27.0,<1.28.0"]
5252
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)