diff --git a/debian/changelog b/debian/changelog index d140d7b7d2e1d2c24ca6e05410257dc6060dc554..ce62f6dc40d57c6406686ca521bf0aa81e3274f7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -python-xstatic-jquery.tablesorter (2.14.5.1-3) UNRELEASED; urgency=medium +python-xstatic-jquery.tablesorter (2.14.5.1-3.1) UNRELEASED; urgency=medium [ Ondřej Nový ] * d/control: Set Vcs-* to salsa.debian.org @@ -12,7 +12,13 @@ python-xstatic-jquery.tablesorter (2.14.5.1-3) UNRELEASED; urgency=medium * Removing gbp.conf, not used anymore or should be specified in the developers dotfiles. - -- Ondřej Nový Sun, 28 Feb 2016 15:54:38 +0100 + [ Thomas Goirand ] + * Add missing dh-python build-depends. + * Removed Python 2 support. + * Fixed long desc. + * Standards-Version is now 4.1.3. + + -- Thomas Goirand Mon, 02 Apr 2018 15:13:30 +0200 python-xstatic-jquery.tablesorter (2.14.5.1-2) unstable; urgency=medium diff --git a/debian/control b/debian/control index 7d51c8a91bcb597a08a08831f224020b47b83c2e..4d35bab8af34feec192402a729b1bdb7051dc87d 100644 --- a/debian/control +++ b/debian/control @@ -6,49 +6,17 @@ Uploaders: Thomas Goirand , Build-Depends: debhelper (>= 9), - python-all (>= 2.6.6-3~), - python-setuptools, + dh-python, + openstack-pkg-tools (>= 75~), python3-all, python3-setuptools, Build-Conflicts: - python-xstatic, python3-xstatic, -Standards-Version: 4.1.0 +Standards-Version: 4.1.3 Vcs-Browser: https://salsa.debian.org/openstack-team/xstatic/python-xstatic-jquery.tablesorter Vcs-Git: https://salsa.debian.org/openstack-team/xstatic/python-xstatic-jquery.tablesorter.git Homepage: https://github.com/stackforge/xstatic-jquery.tablesorter -Package: python-xstatic-jquery.tablesorter -Architecture: all -Depends: - libjs-jquery-tablesorter (>= 2.14.5), - python-xstatic, - ${misc:Depends}, - ${python:Depends}, -Description: JQuery Tablesorter XStatic support - Python 2.x - XStatic is a packaging standard to package external (often 3rd party) static - files as a Python package, so they are easily usable on all operating systems, - with any package management system or even without one. - . - Many Python projects need to use some specific data files, like javascript, - css, java applets, images, etc. Sometimes these files belong to YOUR project - (then you may want to package them separately, but you could also just put - them into your main package). But in many other cases, those files are - maintained by someone else (like jQuery javascript library or even much bigger - js libraries or applications) and you definitely do not really want to merge - them into your project. So, you want to have static file packages, but you - don’t want to get lots of stuff you do not want. Thus, stuff required by - XStatic file packages (especially the main, toplevel XStatic package) tries to - obey to be a MINIMAL, no-fat thing. XStatic doesn't "sell" any web framework - or other stuff you don't want. Maybe there will be optional XStatic extensions - for all sorts of stuff, but they won't be required if you just want the files. - . - By having static files in packages, it is also easier to build virtual envs, - support linux/bsd/... distribution package maintainers and even windows - installs using the same mechanism. - . - This package provides JQuery Tablesorter support as a Python 2.x module. - Package: python3-xstatic-jquery.tablesorter Architecture: all Depends: @@ -57,25 +25,10 @@ Depends: ${misc:Depends}, ${python3:Depends}, Description: JQuery Tablesorter XStatic support - Python 3.x - XStatic is a packaging standard to package external (often 3rd party) static - files as a Python package, so they are easily usable on all operating systems, - with any package management system or even without one. - . - Many Python projects need to use some specific data files, like javascript, - css, java applets, images, etc. Sometimes these files belong to YOUR project - (then you may want to package them separately, but you could also just put - them into your main package). But in many other cases, those files are - maintained by someone else (like jQuery javascript library or even much bigger - js libraries or applications) and you definitely do not really want to merge - them into your project. So, you want to have static file packages, but you - don’t want to get lots of stuff you do not want. Thus, stuff required by - XStatic file packages (especially the main, toplevel XStatic package) tries to - obey to be a MINIMAL, no-fat thing. XStatic doesn't "sell" any web framework - or other stuff you don't want. Maybe there will be optional XStatic extensions - for all sorts of stuff, but they won't be required if you just want the files. - . - By having static files in packages, it is also easier to build virtual envs, - support linux/bsd/... distribution package maintainers and even windows - installs using the same mechanism. + XStatic is a Python web development tool for handling required static data + files from external projects, such as CSS, images, and JavaScript. It provides + a lightweight infrastructure to manage them via Python modules that your app + can depend on in a portable, virtualenv-friendly way instead of using embedded + copies. . This package provides JQuery Tablesorter support as a Python 3.x module. diff --git a/debian/rules b/debian/rules index b9a8d61719fc92869faa2c1e5f263e496dd878a8..0621fa50a396694a8aa7ca59851fe63995eb4572 100755 --- a/debian/rules +++ b/debian/rules @@ -1,25 +1,20 @@ #!/usr/bin/make -f -PYTHONS:=$(shell pyversions -vr) -PYTHON3S:=$(shell py3versions -vr) - UPSTREAM_GIT := https://github.com/openstack/xstatic-jquery.tablesorter.git --include /usr/share/openstack-pkg-tools/pkgos.make +include /usr/share/openstack-pkg-tools/pkgos.make %: - dh $@ --buildsystem=python_distutils --with python2,python3 + dh $@ --buildsystem=python_distutils --with python3 + +override_dh_auto_clean: + echo "Do nothing..." + +override_dh_auto_build: + echo "Do nothing..." -override_dh_install: - set -e && for pyvers in $(PYTHONS); do \ - python$$pyvers setup.py install --install-layout=deb \ - --root $(CURDIR)/debian/python-xstatic-jquery.tablesorter; \ - done - set -e && for pyvers in $(PYTHON3S); do \ - python$$pyvers setup.py install --install-layout=deb \ - --root $(CURDIR)/debian/python3-xstatic-jquery.tablesorter; \ - done - rm -rf $(CURDIR)/debian/python*-xstatic-jquery.tablesorter/usr/lib/python*/dist-packages/xstatic/pkg/jquery_tablesorter/data/ - rm -rf $(CURDIR)/debian/python*-xstatic-jquery.tablesorter/usr/lib/python*/dist-packages/*.pth +override_dh_auto_install: + pkgos-dh_auto_install --no-py2 + rm -rf $(CURDIR)/debian/python3-xstatic-jquery.tablesorter/usr/lib/python3/dist-packages/xstatic/pkg/jquery_tablesorter/data/ override_dh_clean: dh_clean -O--buildsystem=python_distutils