Removed Python 2 support (Closes: #937859).
Thomas Goirand
4 years ago
0 | python-json-pointer (1.10-2) UNRELEASED; urgency=medium | |
0 | python-json-pointer (1.10-2) unstable; urgency=medium | |
1 | 1 | |
2 | 2 | [ Ondřej Nový ] |
3 | 3 | * d/rules: Changed UPSTREAM_GIT protocol to https |
5 | 5 | * d/tests: Use AUTOPKGTEST_TMP instead of ADTTMP |
6 | 6 | * d/control: Use team+openstack@tracker.debian.org as maintainer |
7 | 7 | * Use debhelper-compat instead of debian/compat. |
8 | * d/control: Set Vcs-* to salsa.debian.org | |
8 | 9 | |
9 | 10 | [ Daniel Baumann ] |
10 | * Updating vcs fields. | |
11 | 11 | * Updating copyright format url. |
12 | 12 | * Updating maintainer field. |
13 | 13 | * Running wrap-and-sort -bast. |
14 | * Updating standards version to 4.0.0. | |
15 | 14 | * Removing gbp.conf, not used anymore or should be specified in the |
16 | 15 | developers dotfiles. |
17 | 16 | * Correcting permissions in debian packaging files. |
18 | * Updating standards version to 4.0.1. | |
19 | 17 | * Updating standards version to 4.1.0. |
20 | 18 | |
21 | [ Ondřej Nový ] | |
22 | * d/control: Set Vcs-* to salsa.debian.org | |
23 | * d/control: Add trailing tilde to min version depend to allow | |
24 | backports | |
19 | [ Thomas Goirand ] | |
20 | * Removed Python 2 support (Closes: #937859). | |
25 | 21 | |
26 | -- Ondřej Nový <novy@ondrej.org> Thu, 19 May 2016 21:18:08 +0200 | |
22 | -- Thomas Goirand <zigo@debian.org> Sun, 08 Sep 2019 14:04:49 +0200 | |
27 | 23 | |
28 | 24 | python-json-pointer (1.10-1) unstable; urgency=medium |
29 | 25 |
6 | 6 | Build-Depends: |
7 | 7 | debhelper-compat (= 9), |
8 | 8 | dh-python, |
9 | openstack-pkg-tools, | |
10 | python-all, | |
11 | python-setuptools, | |
12 | python-sphinx, | |
9 | openstack-pkg-tools (>= 99~), | |
10 | python3-sphinx, | |
13 | 11 | python3-all, |
14 | 12 | python3-setuptools, |
15 | 13 | Standards-Version: 4.1.0 |
16 | 14 | Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-json-pointer |
17 | 15 | Vcs-Git: https://salsa.debian.org/openstack-team/python/python-json-pointer.git |
18 | 16 | Homepage: https://github.com/stefankoegl/python-json-pointer |
19 | ||
20 | Package: python-json-pointer | |
21 | Architecture: all | |
22 | Depends: | |
23 | ${misc:Depends}, | |
24 | ${python:Depends}, | |
25 | Description: resolve JSON pointers - Python 2.7 | |
26 | Python-json-pointer is a small library to resolve JSON pointers according to | |
27 | the IETF draft specification. JSON Pointer defines a string syntax for | |
28 | identifying a specific value within a JavaScript Object Notation (JSON) | |
29 | document. | |
30 | . | |
31 | This package provides the module for Python 2.x. | |
32 | 17 | |
33 | 18 | Package: python-json-pointer-doc |
34 | 19 | Section: doc |
0 | #!/bin/sh | |
1 | ||
2 | set -e | |
3 | ||
4 | if [ "$1" = "configure" ] ; then | |
5 | update-alternatives --install /usr/bin/jsonpointer jsonpointer /usr/bin/python2-jsonpointer 300 | |
6 | fi | |
7 | ||
8 | #DEBHELPER# | |
9 | ||
10 | exit 0 |
0 | #!/bin/sh | |
1 | ||
2 | set -e | |
3 | ||
4 | if [ "$1" = "remove" ] || [ "$1" = "disappear" ]; then | |
5 | update-alternatives --remove jsonpointer /usr/bin/python2-jsonpointer | |
6 | fi | |
7 | ||
8 | #DEBHELPER# | |
9 | ||
10 | exit 0 |
0 | #!/bin/sh | |
1 | ||
2 | set -e | |
3 | ||
4 | if [ "$1" = "remove" ] ; then | |
5 | update-alternatives --remove jsonpointer /usr/bin/python2-jsonpointer | |
6 | fi | |
7 | ||
8 | #DEBHELPER# | |
9 | ||
10 | exit 0 |
0 | #!/bin/sh | |
1 | ||
2 | set -e | |
3 | ||
4 | if [ "$1" = "configure" ] ; then | |
5 | update-alternatives --install /usr/bin/jsonpointer jsonpointer /usr/bin/python3-jsonpointer 200 | |
6 | fi | |
7 | ||
8 | #DEBHELPER# | |
9 | ||
10 | exit 0 |
0 | 0 | #!/usr/bin/make -f |
1 | 1 | |
2 | PYTHONS:=$(shell pyversions -vr) | |
3 | PYTHON3S:=$(shell py3versions -vr) | |
4 | ||
5 | 2 | UPSTREAM_GIT := https://github.com/stefankoegl/python-json-pointer.git |
6 | ||
7 | 3 | include /usr/share/openstack-pkg-tools/pkgos.make |
8 | 4 | |
9 | 5 | %: |
10 | dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc | |
6 | dh $@ --buildsystem=python_distutils --with python3,sphinxdoc | |
11 | 7 | |
8 | override_dh_auto_clean: | |
9 | rm -rf build .egg-info | |
10 | find . -iname '*.pyc' -delete | |
11 | for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done | |
12 | ||
13 | override_dh_auto_build: | |
14 | echo "Do nothing..." | |
15 | ||
16 | override_dh_auto_install: | |
17 | pkgos-dh_auto_install --no-py2 | |
18 | ||
19 | override_dh_auto_test: | |
12 | 20 | ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
13 | override_dh_auto_test: | |
14 | set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \ | |
21 | set -e ; for pyvers in $(PYTHON3S); do \ | |
15 | 22 | python$$pyvers ./tests.py ; \ |
16 | 23 | done |
17 | 24 | endif |
18 | 25 | |
19 | override_dh_auto_install: | |
20 | set -e ; for pyvers in $(PYTHONS); do \ | |
21 | python$$pyvers setup.py install --install-layout=deb \ | |
22 | --root $(CURDIR)/debian/python-json-pointer; \ | |
23 | done | |
24 | set -e ; for pyvers in $(PYTHON3S); do \ | |
25 | python$$pyvers setup.py install --install-layout=deb \ | |
26 | --root $(CURDIR)/debian/python3-json-pointer; \ | |
27 | done | |
28 | mv $(CURDIR)/debian/python-json-pointer/usr/bin/jsonpointer $(CURDIR)/debian/python-json-pointer/usr/bin/python2-jsonpointer | |
29 | mv $(CURDIR)/debian/python3-json-pointer/usr/bin/jsonpointer $(CURDIR)/debian/python3-json-pointer/usr/bin/python3-jsonpointer | |
30 | rm -rf $(CURDIR)/debian/python*-json-pointer/usr/lib/python*/dist-packages/*.pth | |
31 | ||
32 | 26 | override_dh_python3: |
33 | 27 | dh_python3 --shebang=/usr/bin/python3 |
34 | 28 | |
35 | override_dh_auto_clean: | |
36 | dh_auto_clean | |
37 | rm -rf build .egg-info | |
38 | ||
39 | ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) | |
40 | 29 | override_dh_sphinxdoc: |
41 | sphinx-build -b html doc $(CURDIR)/debian/python-json-pointer-doc/usr/share/doc/python-json-pointer-doc/html | |
30 | ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) | |
31 | python3 -m sphinx -b html doc $(CURDIR)/debian/python-json-pointer-doc/usr/share/doc/python-json-pointer-doc/html | |
42 | 32 | dh_sphinxdoc -O--buildsystem=python_distutils |
43 | 33 | endif |
5 | 5 | |
6 | 6 | cd "$AUTOPKGTEST_TMP" |
7 | 7 | |
8 | HELP_CLIS=('jsonpointer' 'python2-jsonpointer' 'python3-jsonpointer') | |
9 | for cli in "${HELP_CLIS[@]}"; do | |
10 | if ! $cli -h 2>&1 > /dev/null; then | |
11 | echo "ERROR, ${cli} is not running" | |
12 | exit 1 | |
13 | else | |
14 | echo "OK: ${cli} is running" | |
15 | fi | |
16 | done | |
8 | if ! jsonpointer -h 2>&1 > /dev/null; then | |
9 | echo "ERROR, ${cli} is not running" | |
10 | exit 1 | |
11 | else | |
12 | echo "OK: ${cli} is running" | |
13 | fi | |
17 | 14 | exit 0 |
0 | 0 | Tests: cli |
1 | 1 | Depends: |
2 | python-json-pointer, | |
3 | 2 | python3-json-pointer, |
4 | ||
5 | Test-Command: cd "$AUTOPKGTEST_TMP" ; python -c "import jsonpointer; print jsonpointer.__version__" | |
6 | Depends: | |
7 | python-json-pointer, | |
8 | 3 | |
9 | 4 | Test-Command: cd "$AUTOPKGTEST_TMP" ; python3 -c "import jsonpointer; print(jsonpointer.__version__)" |
10 | 5 | Depends: |