From d8a08a53ea2f24e5d147732d75091aba7c4b3846 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:21:30 +0200 Subject: Adding debian version 2.0.1-2. Signed-off-by: Daniel Baumann --- debian/changelog | 38 ++++++++++++++++++++++++++++++++++++++ debian/control | 24 ++++++++++++++++++++++++ debian/copyright | 35 +++++++++++++++++++++++++++++++++++ debian/docs | 1 + debian/pybuild.testfiles | 1 + debian/rules | 9 +++++++++ debian/salsa-ci.yml | 17 +++++++++++++++++ debian/source/format | 1 + debian/tests/control | 3 +++ debian/tests/run-unit-test | 19 +++++++++++++++++++ debian/watch | 3 +++ 11 files changed, 151 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/pybuild.testfiles create mode 100755 debian/rules create mode 100644 debian/salsa-ci.yml create mode 100644 debian/source/format create mode 100644 debian/tests/control create mode 100755 debian/tests/run-unit-test create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1119f33 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,38 @@ +python-tomli (2.0.1-2) unstable; urgency=medium + + * Team upload. + * d/control: Build using the pyproject pybuild plugin. + + -- Louis-Philippe VĂ©ronneau Fri, 02 Dec 2022 12:58:37 -0500 + +python-tomli (2.0.1-1) unstable; urgency=medium + + * Team upload. + * debian/patches: Drop flit (<< 3.2.0) patch. (Closes: #1000665) + * New upstream version 2.0.1. + * Drop unused build-dep and test-build-dep: python3-dateutil. + * debian/control: Bump Standards-Version to 4.6.1. + * debian/docs: Install README.md. + + -- Boyuan Yang Wed, 29 Jun 2022 14:34:38 -0400 + +python-tomli (1.2.2-2) unstable; urgency=medium + + * Change binary package to be 'all', not 'any'. + + -- Michael R. Crusoe Sun, 07 Nov 2021 16:59:16 +0100 + +python-tomli (1.2.2-1) unstable; urgency=medium + + * debian/rules: #969352 and #994281 are fixed, remove workarounds. Closes: #997534 + * debian/watch: check the tags to find the latest version + * New upstream version + * Freshen debian/patches/flit_pre_3.2 + + -- Michael R. Crusoe Sun, 07 Nov 2021 16:14:07 +0100 + +python-tomli (1.2.1-1) unstable; urgency=medium + + * Initial release. (Closes: #994599) + + -- Michael R. Crusoe Sat, 18 Sep 2021 13:16:18 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..56ec12e --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: python-tomli +Section: python +Priority: optional +Maintainer: Debian Python Team +Testsuite: autopkgtest-pkg-python +Uploaders: Michael R. Crusoe +Build-Depends: debhelper-compat (= 13), + dh-python, + python3-all, + flit (>= 3.2.0), + pybuild-plugin-pyproject, + python3-pytest-xdist , +Standards-Version: 4.6.1 +Vcs-Browser: https://salsa.debian.org/python-team/packages/python-tomli +Vcs-Git: https://salsa.debian.org/python-team/packages/python-tomli.git +Homepage: https://github.com/hukkin/tomli +Rules-Requires-Root: no + +Package: python3-tomli +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Description: lil' TOML parser for Python + Tomli is a Python library for parsing TOML. https://toml.io/ + Tomli is fully compatible with TOML v1.0.0. https://toml.io/en/v1.0.0 diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d904399 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,35 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: tomli +Source: https://pypi.org/project/tomli/#files + +Files: * +Copyright: 2021 Taneli Hukkinen + 2021 Pradyun Gedam and Contributors + 2020 Bob Fang (bob.fang.london@gmail.com) + Rebecca Turner +License: Expat + +Files: debian/* +Copyright: 2021 Michael R. Crusoe +License: Expat + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/pybuild.testfiles b/debian/pybuild.testfiles new file mode 100644 index 0000000..cc736a3 --- /dev/null +++ b/debian/pybuild.testfiles @@ -0,0 +1 @@ +pyproject.toml diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..66332e2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +# DH_VERBOSE := 1 +export LC_ALL=C.UTF-8 +export PYBUILD_TEST_PYTEST=1 +export PYBUILD_TEST_ARGS=-n auto -k "not test_own_pyproject" {dir}/tests + +%: + dh $@ --with python3 --buildsystem pybuild diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..6f8ee02 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,17 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml + +# To exclude single tests you can use +#variables: +# SALSA_CI_DISABLE_APTLY: 1 +# SALSA_CI_DISABLE_AUTOPKGTEST: 1 +# SALSA_CI_DISABLE_BLHC: 1 +# SALSA_CI_DISABLE_LINTIAN: 1 +# SALSA_CI_DISABLE_PIUPARTS: 1 +# SALSA_CI_DISABLE_REPROTEST: 1 +# SALSA_CI_DISABLE_BUILD_PACKAGE_ALL: 1 +# SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 1 +# In case for instance i386 is explicitly excluded by Build-Depends +# SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1 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/tests/control b/debian/tests/control new file mode 100644 index 0000000..c5953ad --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: run-unit-test +Depends: python3-tomli, python3-pytest-xdist +Restrictions: allow-stderr diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test new file mode 100755 index 0000000..1ca1b94 --- /dev/null +++ b/debian/tests/run-unit-test @@ -0,0 +1,19 @@ +#!/bin/bash +set -ex + +pkg=python3-tomli + +START="$(dirname "$(dirname "$(dirname "$(readlink -fm "$0")")")")" + +if [ "$AUTOPKGTEST_TMP" = "" ] ; then + AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX) + trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM +fi + +cd "$AUTOPKGTEST_TMP" + +cp -r ${START}/tests ./ +cp -r ${START}/benchmark ./ + +python3 -m pytest -n auto -k "not test_own_pyproject" --strict-markers \ + --strict-config -o xfail_strict=true diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..be0b700 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts="filenamemangle=s%(?:.*?)?(\d[\d.]*)\.tar\.gz%@python-tomli-$1.tar.gz%" \ + https://github.com/hukkin/tomli/tags .*/refs/tags/@ANY_VERSION@\.tar\.gz -- cgit v1.2.3