Codebase list python-json-pointer / bc6f053
Removed Python 2 support (Closes: #937859). Thomas Goirand 4 years ago
9 changed file(s) with 29 addition(s) and 110 deletion(s). Raw diff Collapse all Expand all
0 python-json-pointer (1.10-2) UNRELEASED; urgency=medium
0 python-json-pointer (1.10-2) unstable; urgency=medium
11
22 [ Ondřej Nový ]
33 * d/rules: Changed UPSTREAM_GIT protocol to https
55 * d/tests: Use AUTOPKGTEST_TMP instead of ADTTMP
66 * d/control: Use team+openstack@tracker.debian.org as maintainer
77 * Use debhelper-compat instead of debian/compat.
8 * d/control: Set Vcs-* to salsa.debian.org
89
910 [ Daniel Baumann ]
10 * Updating vcs fields.
1111 * Updating copyright format url.
1212 * Updating maintainer field.
1313 * Running wrap-and-sort -bast.
14 * Updating standards version to 4.0.0.
1514 * Removing gbp.conf, not used anymore or should be specified in the
1615 developers dotfiles.
1716 * Correcting permissions in debian packaging files.
18 * Updating standards version to 4.0.1.
1917 * Updating standards version to 4.1.0.
2018
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).
2521
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
2723
2824 python-json-pointer (1.10-1) unstable; urgency=medium
2925
66 Build-Depends:
77 debhelper-compat (= 9),
88 dh-python,
9 openstack-pkg-tools,
10 python-all,
11 python-setuptools,
12 python-sphinx,
9 openstack-pkg-tools (>= 99~),
10 python3-sphinx,
1311 python3-all,
1412 python3-setuptools,
1513 Standards-Version: 4.1.0
1614 Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-json-pointer
1715 Vcs-Git: https://salsa.debian.org/openstack-team/python/python-json-pointer.git
1816 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.
3217
3318 Package: python-json-pointer-doc
3419 Section: doc
+0
-11
debian/python-json-pointer.postinst less more
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
-11
debian/python-json-pointer.postrm less more
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
-11
debian/python-json-pointer.prerm less more
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
-11
debian/python3-json-pointer.postinst less more
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
00 #!/usr/bin/make -f
11
2 PYTHONS:=$(shell pyversions -vr)
3 PYTHON3S:=$(shell py3versions -vr)
4
52 UPSTREAM_GIT := https://github.com/stefankoegl/python-json-pointer.git
6
73 include /usr/share/openstack-pkg-tools/pkgos.make
84
95 %:
10 dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
6 dh $@ --buildsystem=python_distutils --with python3,sphinxdoc
117
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:
1220 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 \
1522 python$$pyvers ./tests.py ; \
1623 done
1724 endif
1825
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
3226 override_dh_python3:
3327 dh_python3 --shebang=/usr/bin/python3
3428
35 override_dh_auto_clean:
36 dh_auto_clean
37 rm -rf build .egg-info
38
39 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
4029 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
4232 dh_sphinxdoc -O--buildsystem=python_distutils
4333 endif
55
66 cd "$AUTOPKGTEST_TMP"
77
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
1714 exit 0
00 Tests: cli
11 Depends:
2 python-json-pointer,
32 python3-json-pointer,
4
5 Test-Command: cd "$AUTOPKGTEST_TMP" ; python -c "import jsonpointer; print jsonpointer.__version__"
6 Depends:
7 python-json-pointer,
83
94 Test-Command: cd "$AUTOPKGTEST_TMP" ; python3 -c "import jsonpointer; print(jsonpointer.__version__)"
105 Depends: