summaryrefslogtreecommitdiffstats
path: root/debian/patches/disable_scm_version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/disable_scm_version.patch')
-rw-r--r--debian/patches/disable_scm_version.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/disable_scm_version.patch b/debian/patches/disable_scm_version.patch
new file mode 100644
index 0000000..301a8bb
--- /dev/null
+++ b/debian/patches/disable_scm_version.patch
@@ -0,0 +1,34 @@
+Description: Don't use setuptools_scm_git_archive to get version
+Author: Samuel Henrique <samueloph@debian.org>
+Index: ansible-lint/setup.cfg
+===================================================================
+--- ansible-lint.orig/setup.cfg
++++ ansible-lint/setup.cfg
+@@ -6,6 +6,7 @@ universal = 1
+
+ [metadata]
+ name = ansible-lint
++version = DEB_VERSION_UPSTREAM
+ url = https://github.com/ansible/ansible-lint
+ project_urls =
+ Bug Tracker = https://github.com/ansible/ansible-lint/issues
+@@ -56,7 +57,7 @@ keywords =
+ lint
+
+ [options]
+-use_scm_version = True
++use_scm_version = False
+ python_requires = >=3.6
+ package_dir =
+ = lib
+@@ -65,8 +66,8 @@ zip_safe = False
+
+ # These are required during `setup.py` run:
+ setup_requires =
+- setuptools_scm>=1.15.0
+- setuptools_scm_git_archive>=1.0
++# setuptools_scm>=1.15.0
++# setuptools_scm_git_archive>=1.0
+
+ # These are required in actual runtime:
+ install_requires =