From 4f9bef203a1af4f774f1ae1826c2b0f4c3ddebb2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:27:33 +0200 Subject: Adding debian version 1.0.0-2. Signed-off-by: Daniel Baumann --- debian/changelog | 33 +++++++++++++++++++++++++++++++++ debian/control | 25 +++++++++++++++++++++++++ debian/copyright | 34 ++++++++++++++++++++++++++++++++++ debian/gbp.conf | 2 ++ 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 | 21 +++++++++++++++++++++ debian/watch | 3 +++ 11 files changed, 149 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/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 (limited to 'debian') diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b45d6c6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,33 @@ +python-tomli-w (1.0.0-2) unstable; urgency=medium + + [ Sandro Tosi ] + * debian/control + - fix typo in short description (witer -> writer) + + [ Scott Kitterman ] + * debian/control + - Add pybuild-plugin-pyproject to build-depends + - Bump standards-version to 4.6.1 with no further changes + * debian/rules + - Drop environment variable to specify pybuild flit plugin + + -- Scott Kitterman Tue, 22 Nov 2022 15:44:43 -0500 + +python-tomli-w (1.0.0-1) unstable; urgency=medium + + * New upstream release + * Update autopkgtest to run for all supported python3 versions + + -- Scott Kitterman Sat, 04 Dec 2021 22:49:14 -0500 + +python-tomli-w (0.4.0-2) unstable; urgency=medium + + * Source only upload to allow binary to be built on buildd + + -- Scott Kitterman Wed, 01 Dec 2021 10:55:19 -0500 + +python-tomli-w (0.4.0-1) unstable; urgency=medium + + * Initial release. (Closes: #1000675) + + -- Scott Kitterman Fri, 26 Nov 2021 20:36:06 -0500 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a031e91 --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: python-tomli-w +Section: python +Priority: optional +Maintainer: Debian Python Team +Testsuite: autopkgtest-pkg-python +Uploaders: Scott Kitterman +Build-Depends: debhelper-compat (= 13), + dh-python, + pybuild-plugin-pyproject, + python3-all, + flit (>= 3.2), + python3-tomli, + python3-pytest-xdist +Standards-Version: 4.6.1 +Vcs-Browser: https://salsa.debian.org/python-team/packages/python-tomli-w +Vcs-Git: https://salsa.debian.org/python-team/packages/python-tomli-w.git +Homepage: https://github.com/hukkin/tomli-w +Rules-Requires-Root: no + +Package: python3-tomli-w +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Description: lil' TOML writer for Python + Tomli-w is a Python library for writing TOML. https://toml.io/ + Tomli-w 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..a3ed378 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: tomli +Source: https://pypi.org/project/tomli-w/#files + +Files: * +Copyright: 2021 Taneli Hukkinen + 2021 Pradyun Gedam and Contributors + 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/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..3879982 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +debian-branch=debian/master 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..ce868e1 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: run-unit-test +Depends: python3-all, python3-tomli-w, 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..9d5a3b7 --- /dev/null +++ b/debian/tests/run-unit-test @@ -0,0 +1,21 @@ +#!/bin/bash +set -ex + +pkg=python3-tomli-w + +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 ./ + +for py3vers in $(py3versions -s); do + echo "Testing with $py3vers:" + $py3vers -m pytest -v +done diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..29895fd --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts="filenamemangle=s%(?:.*?)?(\d[\d.]*)\.tar\.gz%@python-tomli-w-$1.tar.gz%" \ + https://github.com/hukkin/tomli-w/tags .*/refs/tags/@ANY_VERSION@\.tar\.gz -- cgit v1.2.3