[med-svn] [Git][med-team/python-pbcommand][master] 3 commits: Make sure some valid version of pbcommand is returned by pkg_resources

Andreas Tille gitlab at salsa.debian.org
Mon Dec 9 14:00:43 GMT 2019



Andreas Tille pushed to branch master at Debian Med / python-pbcommand


Commits:
bae4e6a2 by Andreas Tille at 2019-12-09T13:35:56Z
Make sure some valid version of pbcommand is returned by pkg_resources

- - - - -
8c52a388 by Andreas Tille at 2019-12-09T13:50:04Z
Add myself to Uploaders

- - - - -
0d30cd27 by Andreas Tille at 2019-12-09T13:52:23Z
Strip unwanted files from binary package

- - - - -


5 changed files:

- debian/changelog
- debian/control
- + debian/patches/fix_version.patch
- debian/patches/series
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -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 at debian.org>  Sat, 07 Dec 2019 21:44:15 +0100
 


=====================================
debian/control
=====================================
@@ -1,5 +1,6 @@
 Source: python-pbcommand
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
 Section: python
 Priority: optional
 Build-Depends: debhelper-compat (= 12),


=====================================
debian/patches/fix_version.patch
=====================================
@@ -0,0 +1,18 @@
+Author: Andreas Tille <tille at 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
=====================================
@@ -1 +1,2 @@
 python3.patch
+fix_version.patch


=====================================
debian/rules
=====================================
@@ -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



View it on GitLab: https://salsa.debian.org/med-team/python-pbcommand/compare/a852f4d0a67730855f42f3e2e607d2543986aae8...0d30cd2723065ca0ac93088e97558509f701c944

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-pbcommand/compare/a852f4d0a67730855f42f3e2e607d2543986aae8...0d30cd2723065ca0ac93088e97558509f701c944
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20191209/ef223dbb/attachment-0001.html>


More information about the debian-med-commit mailing list