From 4a3632388c18fe0e90f78f45f3b78e3aabddbc3b Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Sat, 6 Aug 2022 15:16:30 +0200 Subject: [PATCH 1/8] Initial Debian packaging for upstream v0.0.5 --- debian/changelog | 5 ++ debian/control | 28 +++++++ debian/copyright | 24 ++++++ debian/gbp.conf | 4 + debian/python3-gjson.lintian-overrides | 4 + debian/python3-gjson.manpages | 1 + debian/rules | 17 ++++ debian/source/format | 1 + debian/upstream/signing-key.asc | 109 +++++++++++++++++++++++++ debian/watch | 4 + 10 files changed, 197 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/python3-gjson.lintian-overrides create mode 100644 debian/python3-gjson.manpages create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/upstream/signing-key.asc create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..fb3feb8 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-gjson (0.0.5-1) unstable; urgency=medium + + * Initial Debian packaging. + + -- Riccardo Coccioli Sat, 06 Aug 2022 15:16:33 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..cc7c100 --- /dev/null +++ b/debian/control @@ -0,0 +1,28 @@ +Source: python-gjson +Section: python +Priority: optional +Maintainer: Riccardo Coccioli +Standards-Version: 4.6.1.0 +Build-Depends: + debhelper-compat (=13), + dh-python (>= 4.20201102), + gnupg, + python3, + python3-pytest, + python3-pytest-cov, + python3-pytest-runner, + python3-setuptools, + python3-setuptools-scm, + python3-sphinx, + python3-sphinx-argparse, + python3-sphinx-autodoc-typehints, + python3-sphinx-rtd-theme, +Homepage: https://volans-.github.io/gjson-py/ +X-Python3-Version: >= 3.9 + +Package: python3-gjson +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Description: Python library and binary to filter and extract data from JSON-like input + This Python3 library and binary provides a simple way to filter and extract + data from JSON-like objects or JSON files, using the GJSON syntax. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..682ff8d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: gjson-py +Source: https://github.com/volans-/gjson-py + +Files: * +Copyright: 2022 Riccardo Coccioli +License: GPL-3.0+ + +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..eb29ada --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[buildpackage] +upstream-tag = v%(version)s +upstream-branch = main +debian-branch = debian diff --git a/debian/python3-gjson.lintian-overrides b/debian/python3-gjson.lintian-overrides new file mode 100644 index 0000000..8a4acc0 --- /dev/null +++ b/debian/python3-gjson.lintian-overrides @@ -0,0 +1,4 @@ +# Although the package ships the 'gjson' application, it's mainly a Python +# library. +python3-gjson binary: application-in-library-section +python3-gjson binary: library-package-name-for-application diff --git a/debian/python3-gjson.manpages b/debian/python3-gjson.manpages new file mode 100644 index 0000000..d889031 --- /dev/null +++ b/debian/python3-gjson.manpages @@ -0,0 +1 @@ +doc/build/man/gjson.1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e7e6c99 --- /dev/null +++ b/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME = gjson-py +export PYBUILD_TEST_PYTEST = 1 +export HOME = /tmp + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_auto_test: + SETUPTOOLS_SCM_PRETEND_VERSION="$(shell dpkg-parsechangelog -S version | cut -d '+' -f 1)" python3 setup.py develop --user + py.test-3 --strict --cov-report=term-missing --cov=gjson tests/unit + +override_dh_installman: + SETUPTOOLS_SCM_PRETEND_VERSION="$(shell dpkg-parsechangelog -S version | cut -d '+' -f 1)" python3 setup.py build_sphinx -b man + sed -i='' -e 's/^\.B/.B /' doc/build/man/gjson.1 + dh_installman diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc new file mode 100644 index 0000000..a310768 --- /dev/null +++ b/debian/upstream/signing-key.asc @@ -0,0 +1,109 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFf6WoQBEADDFPjnhly7Pb+sTkSggkc6gRVBA9WMJwWiQG3HHmcc9dtHdnNI +65SZi/IqaNQv+rOLJhxHLSKhM5C3lEMXHiRCkX+MQFuHK4BL13ntznLlB9365gfu +nI5uGWN56OfftiPz0lFjq9eoOpQZS3YBE7Hsv7vdfG7Nf/sEkgfdHPhrBTWeRxpf +oyx7Dg7Wm3J+UCYR/W46R+N5Gu62ZOfY8gk6LoMVMP7jEyt5uVAQdclkPruj/vdb +I4dyiZGtjrgjrPCUcdOp9yAPRDAA3lOM1n8RZ1MXGb2HnU1waMW96OFV/Vu0KXp5 +lzcZOQuzWjmqgL2rRTOYTHeRREbFCLbC9k6gF0+nkKBiS6DDF2M1PUG4SeL0Zg8U +RvsTyuTAwEZqE9NUVCLSWQeLzV5eoTBMvvuGpIjmTOWiT2rc/DiMvradfsznzBpQ +ShNZ//9DIbxnoaLrhiCb3T7HmImga+vwXmWz+dMFJS3VV9fqdWlv9OgVcM6wc7aV +5r3Jglr53ZZzzfo+8m8t54QrS44h4lqOxOZFO5JPIgSnW5hq/iK/hPqwKHDlm1D6 +lvgoFLEpq96gCHDcsvqCx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yjZ1V4J7k5KLvCAY9Elk4w5 +Ktgj8oelnm/nm2O9HGRNQvoWk3lbXBHU47mqCb2WZyE0Ue5EQADHABEBAAGJAjwE +GAEKACYCGwwWIQRQ42VYc6ImbG4aqhV1Cc6kZQrmhAUCYcL7dQUJC8rH3gAKCRB1 +Cc6kZQrmhCRAD/wPZaZr5EaqwiFnmPiK6Gp+MmioDziV/K130/ut1FoGIXffsZ3q +rY8V9zSX5ZyR3CrRDyTXcTCdJjl3StAVsSOLO/IuMviOv3Ayqcy7oolHP/duGxpe +zPVU/Q9PV/dgUG/RjmeeDaMSnSV56QfuG7xNQjEDt4WRrRjBFEnjflklFnlAqoI1 +RY1XICbG7SfUZzyluPQ7UO08DFyWLwpsQH9K/NN4OmCEmUNLARpeSBEJEbg0Ekl1 +tigQjgtustDhbZr+CX4Ie8EDHMy4KquBxWiGhVsG1fvrOh+OqM3xt2YruVypdDCX +dkygl4VpM3lmTm3+bWeNPLNkwJaGZO8OUhemftZG4aK4CPQQ7S4PDUZnofb4qrta +1pUQDACEPU8SeD7JoolaZYMyCWss+K+HZ20Qebv/Ua0hf+ThyyvoJ+BHoTwAzvtb +07KxIn3z6nLN1WhNxwMe1VEMp5alVaVTtFUqSpA1j0sjBvcgE/zrUS7Y1wQ1k/8s +JyTczPSwIIrWJTC4+eoxU37DJR66ugBYlFxrG5zqtziOBo9Bq6x8Y8cy+kwDNnaH +bFHENle7dgTwvT3MJz34UNcBxvwLDuwDuCnD3spudEIB+mP1e/P7UW8p+FiCL1Hz +fr4yeX8POJkuw5LYBld4+E7DI2oAinj3p8Rn+pFoA0oWDrTY9FqQ/USTyw== +=HQ3r +-----END PGP PUBLIC KEY BLOCK----- diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..77aed6a --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.+\/v(\d\S+\.tar\.gz)/gjson-$1/,\ +pgpsigurlmangle=s/archive\/.+\/v(\d\S+)\.tar\.gz/releases\/download\/v$1\/gjson-py-$1\.tar\.gz\.asc/ \ + https://github.com/volans-/gjson-py/releases/latest .*/v(\d\S+)\.tar\.gz From 5e7475b1d698cc6e5a07d94dae452c4bb4d0d89c Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Mon, 3 Oct 2022 09:19:35 +0200 Subject: [PATCH 2/8] Upstream release v0.1.0 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index fb3feb8..a1e7a8e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-gjson (0.1.0-1) unstable; urgency=medium + + * v0.1.0 upstream release. + + -- Riccardo Coccioli Mon, 03 Oct 2022 07:18:03 -0000 + python-gjson (0.0.5-1) unstable; urgency=medium * Initial Debian packaging. From a467bd51c6358772ed8ef83072103abfd9a5f3e5 Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Tue, 4 Oct 2022 14:02:41 +0200 Subject: [PATCH 3/8] Fix debian/watch * GitHub has recently changed the way the release page shows artifacts, they are now dynamically loaded via Javascript and hence uscan fails to find them. * Convert the watch file to use the GitHub API instead to not rely on the HTML UI. --- debian/watch | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/debian/watch b/debian/watch index 77aed6a..f31d9c3 100644 --- a/debian/watch +++ b/debian/watch @@ -1,4 +1,13 @@ version=4 -opts=filenamemangle=s/.+\/v(\d\S+\.tar\.gz)/gjson-$1/,\ -pgpsigurlmangle=s/archive\/.+\/v(\d\S+)\.tar\.gz/releases\/download\/v$1\/gjson-py-$1\.tar\.gz\.asc/ \ - https://github.com/volans-/gjson-py/releases/latest .*/v(\d\S+)\.tar\.gz +# searchmode: use searchmode plain to search in the JSON returned by the API +# filenamemangle: extract from the URL the GitHub project name (the last path part before /tarball/) and the version, +# to generate a resulting tarball named: ${PROJECT_NAME}-${VERSION}.tar.gz +# pgpsigurlmangle: retrieve also the tarball PGP signature assuming it was uploaded with name ${PROJECT_NAME}-v${VERSION} +# extracting from the tarball download URL the GitHub username/organization, the GitHub project name and +# the version generating the signature URL as required by GitHub +# URL: use the project API URL to get the release information, looking for the tarball URL and extracting the version from +# the last part of the URL path. +opts=searchmode=plain,\ +filenamemangle=s~.+/([^/]+)/tarball/v(@ANY_VERSION@)~$1-$2.tar.gz~,\ +pgpsigurlmangle=s~api.github.com/repos/([^/]+)/([^/]+)/tarball/v(@ANY_VERSION@)~github.com/$1/$2/releases/download/v$3/$2-v$3.tar.gz.asc~ \ + https://api.github.com/repos/volans-/gjson-py/releases https://api\.github\.com/repos/[^/]+/[^/]+/tarball/v([^"]+) From ba4f4b3d8f630403e3385cecbeabdf10586f67dd Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Mon, 24 Oct 2022 22:58:28 +0200 Subject: [PATCH 4/8] Upstream release v0.2.0 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index a1e7a8e..8110814 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-gjson (0.2.0-1) unstable; urgency=medium + + * v0.2.0 upstream release. + + -- Riccardo Coccioli Mon, 24 Oct 2022 20:58:17 -0000 + python-gjson (0.1.0-1) unstable; urgency=medium * v0.1.0 upstream release. From d4b8a0fe5682a1cd607cc4f4c75c2956f3c3c7dd Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Tue, 25 Oct 2022 18:38:09 +0200 Subject: [PATCH 5/8] Upstream release v0.2.1 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 8110814..dd52a1c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-gjson (0.2.1-1) unstable; urgency=medium + + * v0.2.1 upstream release. + + -- Riccardo Coccioli Tue, 25 Oct 2022 16:38:05 -0000 + python-gjson (0.2.0-1) unstable; urgency=medium * v0.2.0 upstream release. From 84a0eca08ebec71cecc331d4909adac7042d03dc Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Thu, 10 Nov 2022 18:55:39 +0100 Subject: [PATCH 6/8] Upstream release v0.3.0 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index dd52a1c..9c54c00 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-gjson (0.3.0-1) unstable; urgency=medium + + * v0.3.0 upstream release. + + -- Riccardo Coccioli Thu, 10 Nov 2022 17:55:34 -0000 + python-gjson (0.2.1-1) unstable; urgency=medium * v0.2.1 upstream release. From 919e47149aa7777a51ca4f82f67b2c67053ba88f Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Sat, 12 Nov 2022 18:22:42 +0100 Subject: [PATCH 7/8] Upstream release v0.4.0 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 9c54c00..d85c92d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-gjson (0.4.0-1) unstable; urgency=medium + + * v0.4.0 upstream release. + + -- Riccardo Coccioli Sat, 12 Nov 2022 17:22:39 -0000 + python-gjson (0.3.0-1) unstable; urgency=medium * v0.3.0 upstream release. From d192002f120fb659ae554cb1f366fe50d7ddbabc Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Tue, 24 Jan 2023 12:44:40 +0100 Subject: [PATCH 8/8] Upstream release v1.0.0 --- debian/changelog | 13 +++++++++++++ debian/control | 4 ++-- debian/copyright | 2 +- debian/rules | 15 ++++++++------- debian/watch | 3 ++- 5 files changed, 26 insertions(+), 11 deletions(-) diff --git a/debian/changelog b/debian/changelog index d85c92d..ff5079b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,16 @@ +python-gjson (1.0.0-1) unstable; urgency=medium + + * v1.0.0 upstream release. + * debian/rules: remove X-Python3-Version, superseded. + * debian/rules: add Rules-Requires-Root: no. + * debian/rules: bump Standards-Version. + * debian/copyright: update copyright year. + * debian/rules: refactor to use SETUPTOOLS_SCM_PRETEND_VERSION and not + install the package or require a $HOME. Remove override_dh_auto_test. + * debian/watch: increment the amount of releases returned by GitHub APIs. + + -- Riccardo Coccioli Tue, 24 Jan 2023 10:41:42 -0000 + python-gjson (0.4.0-1) unstable; urgency=medium * v0.4.0 upstream release. diff --git a/debian/control b/debian/control index cc7c100..f6667fa 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: python-gjson Section: python Priority: optional Maintainer: Riccardo Coccioli -Standards-Version: 4.6.1.0 +Standards-Version: 4.6.2 Build-Depends: debhelper-compat (=13), dh-python (>= 4.20201102), @@ -18,7 +18,7 @@ Build-Depends: python3-sphinx-autodoc-typehints, python3-sphinx-rtd-theme, Homepage: https://volans-.github.io/gjson-py/ -X-Python3-Version: >= 3.9 +Rules-Requires-Root: no Package: python3-gjson Architecture: all diff --git a/debian/copyright b/debian/copyright index 682ff8d..2b7638d 100644 --- a/debian/copyright +++ b/debian/copyright @@ -3,7 +3,7 @@ Upstream-Name: gjson-py Source: https://github.com/volans-/gjson-py Files: * -Copyright: 2022 Riccardo Coccioli +Copyright: 2022-2023 Riccardo Coccioli License: GPL-3.0+ License: GPL-3.0+ diff --git a/debian/rules b/debian/rules index e7e6c99..f3bd341 100755 --- a/debian/rules +++ b/debian/rules @@ -1,17 +1,18 @@ #!/usr/bin/make -f -export PYBUILD_NAME = gjson-py +export PYBUILD_NAME = gjson export PYBUILD_TEST_PYTEST = 1 -export HOME = /tmp +export PYBUILD_TEST_ARGS = {dir}/tests/unit + +include /usr/share/dpkg/pkg-info.mk + +# tell the test suite and build_sphinx about our version number +export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM) %: dh $@ --with python3 --buildsystem=pybuild -override_dh_auto_test: - SETUPTOOLS_SCM_PRETEND_VERSION="$(shell dpkg-parsechangelog -S version | cut -d '+' -f 1)" python3 setup.py develop --user - py.test-3 --strict --cov-report=term-missing --cov=gjson tests/unit - override_dh_installman: - SETUPTOOLS_SCM_PRETEND_VERSION="$(shell dpkg-parsechangelog -S version | cut -d '+' -f 1)" python3 setup.py build_sphinx -b man + python3 setup.py build_sphinx -b man sed -i='' -e 's/^\.B/.B /' doc/build/man/gjson.1 dh_installman diff --git a/debian/watch b/debian/watch index f31d9c3..234b66e 100644 --- a/debian/watch +++ b/debian/watch @@ -1,4 +1,5 @@ version=4 + # searchmode: use searchmode plain to search in the JSON returned by the API # filenamemangle: extract from the URL the GitHub project name (the last path part before /tarball/) and the version, # to generate a resulting tarball named: ${PROJECT_NAME}-${VERSION}.tar.gz @@ -10,4 +11,4 @@ version=4 opts=searchmode=plain,\ filenamemangle=s~.+/([^/]+)/tarball/v(@ANY_VERSION@)~$1-$2.tar.gz~,\ pgpsigurlmangle=s~api.github.com/repos/([^/]+)/([^/]+)/tarball/v(@ANY_VERSION@)~github.com/$1/$2/releases/download/v$3/$2-v$3.tar.gz.asc~ \ - https://api.github.com/repos/volans-/gjson-py/releases https://api\.github\.com/repos/[^/]+/[^/]+/tarball/v([^"]+) + https://api.github.com/repos/volans-/gjson-py/releases?per_page=100 https://api\.github\.com/repos/[^/]+/[^/]+/tarball/v([^"]+)