Package: python3-iniconfig
Version: 1.1.1-1
Severity: normal
Tags: patch

The setup.py in this package looks to Git to determine the package
version, but that obviously doesn't work in Debian builds.  This patch
fixes this by hard-coding the version number in setup.py.  It is not
ideal, as the patch will need updating every time the package is
updated.  An alternative would be to have a script which reads the
version number from debian/changelog, but that is probably overkill.

Best wishes,

   Julian
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,2 @@
 [build-system]
-requires = ["setuptools>=41.2.0", "wheel", "setuptools_scm>3"]
-
-
-[tool.setuptools_scm]
\ No newline at end of file
+requires = ["setuptools>=41.2.0"]
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@
         package_dir={'': 'src'},
         description='iniconfig: brain-dead simple config-ini parsing',
         long_description=readme,
-        use_scm_version=True,
+        version='1.1.1',
         url='http://github.com/RonnyPfannschmidt/iniconfig',
         license='MIT License',
         platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],

Reply via email to