File: 01_setup_py.patch

package info (click to toggle)
trove-classifiers 2025.9.8.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204 kB
  • sloc: python: 1,089; makefile: 25
file content (33 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (2)
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
33
From: "Gudjon I. Gudjonsson" <gudjon@gudjon.org>
Date: Fri, 23 Dec 2022 19:53:51 +0000
Subject: Fix building with setuptools without using calver

Forwarded: not-needed
Last-Update: 2025-05-01
---
 setup.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index d8d85e4..aeb994b 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,5 @@
 from io import open
-from os import path
+from os import path, environ
 
 from setuptools import setup, find_packages
 
@@ -28,8 +28,9 @@ setup(
     package_dir={"": "src"},
     packages=find_packages(where="src"),
     package_data={"": ["py.typed"]},
-    use_calver="%Y.%m.%d.%H",
-    setup_requires=["calver"],
+    version=environ["DEB_VERSION_UPSTREAM"],
+    use_calver=False,
+    #setup_requires=["calver"],
     entry_points={
         "console_scripts": ["trove-classifiers=trove_classifiers.__main__:cli"],
     },