summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog38
-rw-r--r--debian/control24
-rw-r--r--debian/copyright35
-rw-r--r--debian/docs1
-rw-r--r--debian/pybuild.testfiles1
-rwxr-xr-xdebian/rules9
-rw-r--r--debian/salsa-ci.yml17
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control3
-rwxr-xr-xdebian/tests/run-unit-test19
-rw-r--r--debian/watch3
11 files changed, 151 insertions, 0 deletions
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 <pollo@debian.org> 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 <byang@debian.org> 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 <crusoe@debian.org> 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 <crusoe@debian.org> Sun, 07 Nov 2021 16:14:07 +0100
+
+python-tomli (1.2.1-1) unstable; urgency=medium
+
+ * Initial release. (Closes: #994599)
+
+ -- Michael R. Crusoe <crusoe@debian.org> 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 <team+python@tracker.debian.org>
+Testsuite: autopkgtest-pkg-python
+Uploaders: Michael R. Crusoe <crusoe@debian.org>
+Build-Depends: debhelper-compat (= 13),
+ dh-python,
+ python3-all,
+ flit (>= 3.2.0),
+ pybuild-plugin-pyproject,
+ python3-pytest-xdist <!nocheck>,
+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 <crusoe@debian.org>
+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