Skip to content

Commits on Source 3

......@@ -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
......
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),
......
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('.'))
python3.patch
fix_version.patch
......@@ -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