File: dont-change-version-in-setup.patch

package info (click to toggle)
pybindgen 0.20.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,908 kB
  • sloc: python: 15,982; cpp: 1,889; ansic: 617; makefile: 86; sh: 4
file content (29 lines) | stat: -rw-r--r-- 969 bytes parent folder | download | duplicates (3)
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
From: Sophie Brun <sophie@offensive-security.com>
Date: Fri, 13 Sep 2019 09:48:25 +0200
Subject: Don't change the version during setup

Last-Update: 2019-09-13
Description: if pybindgen/version.py is changed during the setup (to add
the +dfsg1 suffix) dpkg-source fails because the source files changed.
---
 setup.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index 8368acb..2fee052 100644
--- a/setup.py
+++ b/setup.py
@@ -4,11 +4,10 @@ from setuptools import setup
 with open('README.rst') as file_:
     LONG_DESCRIPTION = file_.read()
 
+from pybindgen.version import version
 
 setup(name='PyBindGen',
-      use_scm_version={"version_scheme": "post-release",
-                       "write_to": "pybindgen/version.py"},
-      setup_requires=['setuptools_scm'],
+      version=version,
       description='Python Bindings Generator',
       author='Gustavo Carneiro',
       author_email='gjcarneiro@gmail.com',