| 1 |
From: Sophie Brun <[email protected]> |
| 2 |
Date: Fri, 13 Sep 2019 09:48:25 +0200 |
| 3 |
Subject: Don't change the version during setup |
| 4 |
|
| 5 |
Last-Update: 2019-09-13 |
| 6 |
Description: if pybindgen/version.py is changed during the setup (to add |
| 7 |
the +dfsg1 suffix) dpkg-source fails because the source files changed. |
| 8 |
--- |
| 9 |
setup.py | 5 ++--- |
| 10 |
1 file changed, 2 insertions(+), 3 deletions(-) |
| 11 |
|
| 12 |
diff --git a/setup.py b/setup.py |
| 13 |
index 8368acb..2fee052 100644 |
| 14 |
--- a/setup.py |
| 15 |
+++ b/setup.py |
| 16 |
@@ -4,11 +4,10 @@ from setuptools import setup |
| 17 |
with open('README.rst') as file_: |
| 18 |
LONG_DESCRIPTION = file_.read() |
| 19 |
|
| 20 |
+from pybindgen.version import version |
| 21 |
|
| 22 |
setup(name='PyBindGen', |
| 23 |
- use_scm_version={"version_scheme": "post-release", |
| 24 |
- "write_to": "pybindgen/version.py"}, |
| 25 |
- setup_requires=['setuptools_scm'], |
| 26 |
+ version=version, |
| 27 |
description='Python Bindings Generator', |
| 28 |
author='Gustavo Carneiro', |
| 29 |
author_email='[email protected]', |