Package: src:python-pathlib
Version: 1.0.1-2
Severity: normal
Tags: patch

Hi,

I know pathlib is deprecated, but one of the libraries I consider
packaging is requiring pathlib (and it's Python 3.X only).

Please consider adding python3-pathlib binary package, see attached
patch.
diff -Nru python-pathlib-1.0.1/debian/changelog 
python-pathlib-1.0.1/debian/changelog
--- python-pathlib-1.0.1/debian/changelog       2015-06-25 10:02:25.000000000 
+0200
+++ python-pathlib-1.0.1/debian/changelog       2017-09-04 11:51:22.000000000 
+0200
@@ -1,3 +1,9 @@
+python-pathlib (1.0.1-3) UNRELEASED; urgency=medium
+
+  * Add python3-pathlib binary package
+
+ -- Piotr Ożarowski <pi...@debian.org>  Mon, 04 Sep 2017 11:51:22 +0200
+
 python-pathlib (1.0.1-2) unstable; urgency=medium
 
   * Enable reproducible build py patching generation of manpage
diff -Nru python-pathlib-1.0.1/debian/control 
python-pathlib-1.0.1/debian/control
--- python-pathlib-1.0.1/debian/control 2015-06-24 15:38:23.000000000 +0200
+++ python-pathlib-1.0.1/debian/control 2017-09-04 11:51:22.000000000 +0200
@@ -5,6 +5,7 @@
 Build-Depends: debhelper (>= 9),
                dh-python,
                python-all (>= 2.6.6-3~),
+               python3-all,
                python-sphinx
 X-Python-Version: >= 2.6
 Standards-Version: 3.9.6
@@ -27,6 +28,22 @@
  .
  This is the Python 2 version of the package.
 
+Package: python3-pathlib
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: set of Python 3 classes to handle filesystem paths
+ Pathlib offers a set of classes to handle filesystem paths.
+ It offers the following advantages over using string objects:
+ .
+  * No more cumbersome use of os and os.path functions. Everything
+    can be done easily through operators, attribute accesses, and method calls.
+  * Embodies the semantics of different path types. For example,
+    comparing Windows paths ignores casing.
+  * Well-defined semantics, eliminating any warts or ambiguities
+    (forward vs. backward slashes, etc.).
+ .
+ This is the Python 3 version of the package.
+
 Package: python-pathlib-doc
 Architecture: all
 Section: doc
diff -Nru python-pathlib-1.0.1/debian/rules python-pathlib-1.0.1/debian/rules
--- python-pathlib-1.0.1/debian/rules   2015-06-24 15:38:23.000000000 +0200
+++ python-pathlib-1.0.1/debian/rules   2017-09-04 11:51:22.000000000 +0200
@@ -6,7 +6,7 @@
 BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
 
 %:
-       dh $@ --with python2,sphinxdoc --buildsystem=pybuild
+       dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_clean:
        dh_auto_clean

Reply via email to