File: 0001-Replace-versioningit-with-generated-file.patch

package info (click to toggle)
python-datapoint 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: python: 3,062; makefile: 18
file content (32 lines) | stat: -rw-r--r-- 819 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Edward Betts <edward@4angle.com>
Date: Tue, 25 Feb 2025 15:43:10 -0500
Subject: Replace versioningit with generated file

During the build process, we do not have the version information from
the git repository available. Use version number from debian/changelog
instead.
---
 pyproject.toml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 8603fe3..e1fbb11 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
 [build-system]
-requires = ["hatchling", "versioningit"]
+requires = ["hatchling"]
 build-backend = "hatchling.build"
 
 [project]
@@ -40,7 +40,8 @@ exclude = [
 ]
 
 [tool.hatch.version]
-source = "versioningit"
+path = "debian/changelog"
+pattern = "^\\S+\\s+\\((?P<version>[^-]+)-\\d+\\)"
 
 [tool.isort]
 profile = "black"