From 1d8dfbbc51f08e348a5ed2a63b8dabd853d50681 Mon Sep 17 00:00:00 2001 From: Jim Pivarski Date: Mon, 5 Feb 2024 14:12:54 -0600 Subject: [PATCH 1/2] chore: start using hatch-vcs for version numbers --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e8c29e5104..e9fcfebb89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,13 @@ [build-system] requires = [ "hatchling>=1.10.0", - "hatch-fancy-pypi-readme" + "hatch-fancy-pypi-readme", + "hatch-vcs" ] build-backend = "hatchling.build" [project] name = "awkward" -version = "2.6.0" description = "Manipulate JSON-like data with NumPy-like idioms." license = { text = "BSD-3-Clause" } requires-python = ">=3.8" @@ -111,6 +111,9 @@ path = "README.md" start-after = "" end-before = "" +[tool.hatch.version] +source = "vcs" + [tool.pytest.ini_options] minversion = "6.0" norecursedirs = [ From ac7514a3d9e310e4d04fa6e69185bafb600d9099 Mon Sep 17 00:00:00 2001 From: Jim Pivarski Date: Mon, 5 Feb 2024 14:20:50 -0600 Subject: [PATCH 2/2] the version is dynamic, so pass pre-commit --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e9fcfebb89..c4df4bdddc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,8 @@ dependencies = [ "fsspec>=2022.11.0" ] dynamic = [ - "readme" + "readme", + "version" ] [project.entry-points.numba_extensions]