Package: src:cssmin Version: 0.2.0-1 Severity: normal Dear Maintainer,
Please add python3-cssmin binary package (I have a project that uses it, I don't care about /usr/bin/cssmin script, just the library). It looks like python3-webassets needs it as well (and incorrectly suggests cssmin package now). Attached patch also switches dh buildsystem to pybuild as it makes it easier to add new binary packages. Please also consider removing DESTDIR line from attached patch and change debian/control to rename cssmin to python-cssmin (as requested in 781319) - unfortunately you will need transitional package now.
diff -Nru cssmin-0.2.0/debian/changelog cssmin-0.2.0/debian/changelog --- cssmin-0.2.0/debian/changelog 2014-01-10 13:53:07.000000000 +0100 +++ cssmin-0.2.0/debian/changelog 2016-05-04 11:31:36.000000000 +0200 @@ -1,3 +1,11 @@ +cssmin (0.2.0-2) UNRELEASED; urgency=medium + + * Add python3-cssmin binary package + + switch dh build system to pybuild + + add dh-python, python3-all and python3-setuptools to Build-Depends + + -- Piotr Ożarowski <pi...@debian.org> Wed, 04 May 2016 11:30:10 +0200 + cssmin (0.2.0-1) unstable; urgency=medium * New upstream release. diff -Nru cssmin-0.2.0/debian/control cssmin-0.2.0/debian/control --- cssmin-0.2.0/debian/control 2014-01-10 13:53:07.000000000 +0100 +++ cssmin-0.2.0/debian/control 2016-05-04 11:30:06.000000000 +0200 @@ -3,8 +3,11 @@ Priority: optional Maintainer: Stuart Prescott <stu...@debian.org> Build-Depends: debhelper (>= 9), + dh-python, python-all, - python-setuptools + python-setuptools, + python3-all, + python3-setuptools Homepage: http://github.com/zacharyvoase/cssmin Standards-Version: 3.9.5 @@ -19,3 +22,11 @@ cssmin is a Python port of the YUI Cascading Style Sheet (CSS) compressor. It can be used as a module from other Python programs, including as a filter for python-webassets bundles. It can also be used from the command line. + +Package: python3-cssmin +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends}, +Description: YUI CSS compression algorithm in Python 3 + cssmin is a Python port of the YUI Cascading Style Sheet (CSS) compressor. + It can be used as a module from other Python programs, including as a filter + for python-webassets bundles. It can also be used from the command line. diff -Nru cssmin-0.2.0/debian/rules cssmin-0.2.0/debian/rules --- cssmin-0.2.0/debian/rules 2014-01-10 13:53:07.000000000 +0100 +++ cssmin-0.2.0/debian/rules 2016-05-04 12:11:32.000000000 +0200 @@ -1,7 +1,13 @@ #!/usr/bin/make -f +export PYBUILD_NAME=cssmin +# remove /usr/bin/cssmin from python3-cssmin package (only cssmin package provides it) +export PYBUILD_AFTER_INSTALL_python3=rm -r {destdir}/usr/bin/ +# remove next line after renaming binary package cssmin to python-cssmin +export PYBUILD_DESTDIR_python2=debian/cssmin + %: - dh $@ --with=python2 + dh $@ --with=python2,python3 --buildsystem=pybuild override_dh_auto_clean: rm -rf src/cssmin.egg-info/