[Python-modules-commits] [pytest-runner] 01/01: Set SETUPTOOLS_SCM_PRETEND_VERSION during build to fix building from Debian git
Ondřej Nový
onovy-guest at moszumanska.debian.org
Wed May 25 18:32:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
onovy-guest pushed a commit to branch master
in repository pytest-runner.
commit dc550807affda7410bca72d677692f508704aa1b
Author: Ondřej Nový <novy at ondrej.org>
Date: Wed May 25 20:30:06 2016 +0200
Set SETUPTOOLS_SCM_PRETEND_VERSION during build to fix building from Debian git
---
debian/changelog | 2 ++
debian/rules | 2 ++
2 files changed, 4 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 399d868..77da5a0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ pytest-runner (2.7.1-2) UNRELEASED; urgency=medium
* Standards-Version is 3.9.8 now (no changes needed)
* Distinguish between Py2 and Py3 version in short description
* Added upstream changelog
+ * Set SETUPTOOLS_SCM_PRETEND_VERSION during build to fix building from
+ Debian git
-- Ondřej Nový <novy at ondrej.org> Wed, 25 May 2016 16:31:17 +0200
diff --git a/debian/rules b/debian/rules
index 79375d6..e670e2b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,8 @@
# -*- makefile -*-
export PYBUILD_NAME=pytest-runner
+export DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
+export SETUPTOOLS_SCM_PRETEND_VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//')
%:
dh $@ --with python2,python3 --buildsystem=pybuild
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pytest-runner.git
More information about the Python-modules-commits
mailing list