Skip to content
GitLab
Explore
Sign in
Register
Commits on Source
3
Make sure some valid version of pbcommand is returned by pkg_resources
· bae4e6a2
Andreas Tille
authored
Dec 09, 2019
bae4e6a2
Add myself to Uploaders
· 8c52a388
Andreas Tille
authored
Dec 09, 2019
8c52a388
Strip unwanted files from binary package
· 0d30cd27
Andreas Tille
authored
Dec 09, 2019
0d30cd27
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
0d30cd27
...
...
@@ -3,8 +3,11 @@ python-pbcommand (1.1.1+git20191122.ec024c3-1) UNRELEASED; urgency=medium
* New upstream version Git checkout
Drop Python2 support and switch to Python3
Closes: #932543, #938008
* Afif removed himself from Uploaders
* Add myself to Uploaders
* debhelper-compat 12
* Standards-Version: 4.4.1
* Make sure some valid version of pbcommand is returned by pkg_resources
-- Andreas Tille <tille@debian.org> Sat, 07 Dec 2019 21:44:15 +0100
...
...
debian/control
View file @
0d30cd27
Source: python-pbcommand
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Uploaders: Andreas Tille <tille@debian.org>
Section: python
Priority: optional
Build-Depends: debhelper-compat (= 12),
...
...
debian/patches/fix_version.patch
0 → 100644
View file @
0d30cd27
Author: Andreas Tille <tille@debian.org>
Last-Update: Sat, 07 Dec 2019 21:44:15 +0100
Description: For some reason pkg_resources.get_distribution('pbcommand') fails
This patch makes sure a valid version will be set initially
.
FIXME: Needs to be adapted fro new upstream versions
--- a/pbcommand/__init__.py
+++ b/pbcommand/__init__.py
@@ -4,7 +4,7 @@
import sys
try:
__VERSION__ = pkg_resources.get_distribution('pbcommand').version
except Exception:
- __VERSION__ = 'unknown'
+ __VERSION__ = '1.1.1'
VERSION = (int(x) for x in __VERSION__.split('.'))
debian/patches/series
View file @
0d30cd27
python3.patch
fix_version.patch
debian/rules
View file @
0d30cd27
...
...
@@ -9,3 +9,7 @@ export PYBUILD_NAME=pbcommand
%:
LC_ALL=C.UTF-8 dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
dh_install
find debian \( -name .coverage -o -name coverage.xml -o -name nosetests.xml \) -delete
\ No newline at end of file