File: disable-git-versioning.patch

package info (click to toggle)
toolz 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 588 kB
  • sloc: python: 4,223; makefile: 137
file content (25 lines) | stat: -rw-r--r-- 741 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
Author: Diane Trout <diane@ghic.org>
Forwarded: no

Description: Upstream uses a package setuptools-git-versioning to
 figure out the current version from the git tree, but the package
 isn't packaged, and the git repository wouldn't be available in
 sbuild, so this removes it, and debian/rules patches the debian
 package version number directly into the pyproject.toml file

--- a/pyproject.toml
+++ b/pyproject.toml
@@ -2,12 +2,11 @@
 build-backend = "setuptools.build_meta"
 requires = [
   "setuptools >=77",
-  "setuptools-git-versioning >=2.0",
 ]
 
 [project]
 name = "toolz"
-dynamic = ["version"]
+version = VERSION
 description = "List processing tools and functional utilities"
 readme = "README.rst"
 requires-python = ">=3.9"