summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 00:45:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 00:45:27 +0000
commit33f8cba54805782922fb495355bc0ad1101c9df9 (patch)
tree5c9b06d1867913cd5e455a9b44f9b39e60bf3805
parentAdding upstream version 0.2.8. (diff)
downloadruamel.yaml.clib-33f8cba54805782922fb495355bc0ad1101c9df9.tar.xz
ruamel.yaml.clib-33f8cba54805782922fb495355bc0ad1101c9df9.zip
Adding debian version 0.2.8-1.debian/0.2.8-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/changelog68
-rw-r--r--debian/control27
-rw-r--r--debian/copyright30
-rw-r--r--debian/lintian-overrides3
-rwxr-xr-xdebian/rules30
-rw-r--r--debian/salsa-ci.yml4
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control6
-rw-r--r--debian/tests/data/test-yaml.py23
-rw-r--r--debian/tests/data/test-yaml.yaml10
-rwxr-xr-xdebian/tests/smoke10
-rw-r--r--debian/upstream/metadata15
-rw-r--r--debian/watch4
13 files changed, 231 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..78ea6fd
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,68 @@
+ruamel.yaml.clib (0.2.8-1) unstable; urgency=medium
+
+ * Team Upload.
+ * New upstream version
+ - compatibility with Python 3.12 (Closes: #1055724)
+ * Update standards version to 4.6.2, no changes needed.
+ * Use pybuild-plugin-pyproject with build system.
+ * Fix up lintian-overrides for new format.
+ * Add simple autopkgtest to test that clib is built, loads and is minimally
+ functinoal.
+
+ -- Stuart Prescott <stuart@debian.org> Sat, 09 Dec 2023 19:01:39 +1100
+
+ruamel.yaml.clib (0.2.7-1) unstable; urgency=medium
+
+ * New upstream version
+ * Standards-Version: 4.6.1 (routine-update)
+
+ -- Michael R. Crusoe <crusoe@debian.org> Sat, 29 Oct 2022 18:49:45 +0200
+
+ruamel.yaml.clib (0.2.6-1) unstable; urgency=medium
+
+ [ Debian Janitor ]
+ * Update standards version to 4.5.1, no changes needed.
+
+ [ Michael R. Crusoe ]
+ * New upstream version
+ * Standards-Version: 4.6.0 (routine-update)
+
+ -- Michael R. Crusoe <crusoe@debian.org> Fri, 22 Oct 2021 14:15:45 +0200
+
+ruamel.yaml.clib (0.2.2-1) unstable; urgency=medium
+
+ [ Michael R. Crusoe ]
+ * Mark the binary package as Multi-Arch: same
+
+ [ Ondřej Nový ]
+ * d/control: Update Maintainer field with new Debian Python Team
+ contact address.
+ * d/control: Update Vcs-* fields with new Debian Python Team Salsa
+ layout.
+
+ [ Michael R. Crusoe ]
+ * New upstream version
+ * debhelper-compat 13 (routine-update)
+
+ -- Michael R. Crusoe <crusoe@debian.org> Thu, 08 Oct 2020 14:56:56 +0200
+
+ruamel.yaml.clib (0.2.0-3) unstable; urgency=medium
+
+ * autopkgtest-pkg-python doesn't work with namespace packages, so don't use
+ it.
+
+ -- Michael R. Crusoe <crusoe@debian.org> Thu, 18 Jun 2020 16:17:23 +0200
+
+ruamel.yaml.clib (0.2.0-2) unstable; urgency=medium
+
+ * Testsuite: autopkgtest-pkg-python (routine-update)
+ * Rules-Requires-Root: no (routine-update)
+ * Breaks+Replaces ruamel.yaml before 0.16.10 (Closes: #962971)
+
+ -- Michael R. Crusoe <crusoe@debian.org> Wed, 17 Jun 2020 10:22:10 +0200
+
+ruamel.yaml.clib (0.2.0-1) unstable; urgency=medium
+
+ * Initial packaging (Closes: #955282)
+
+ -- Michael R. Crusoe <crusoe@debian.org> Thu, 04 Jun 2020 13:31:19 +0200
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f89a9b1
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,27 @@
+Source: ruamel.yaml.clib
+Section: python
+Priority: optional
+Maintainer: Debian Python Team <team+python@tracker.debian.org>
+Uploaders: Michael R. Crusoe <crusoe@debian.org>
+Build-Depends: debhelper-compat (= 13),
+ dh-python,
+ cython3,
+ pybuild-plugin-pyproject,
+ python3-all-dev,
+ python3-setuptools
+Standards-Version: 4.6.2
+Vcs-Browser: https://salsa.debian.org/python-team/packages/ruamel.yaml.clib
+Vcs-Git: https://salsa.debian.org/python-team/packages/ruamel.yaml.clib.git
+Homepage: https://sourceforge.net/p/ruamel-yaml-clib
+Rules-Requires-Root: no
+
+Package: python3-ruamel.yaml.clib
+Architecture: any
+Multi-Arch: same
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
+Breaks: python3-ruamel.yaml (<< 0.16.10)
+Replaces: python3-ruamel.yaml (<< 0.16.10)
+Description: C version of reader, parser and emitter for ruamel.yaml
+ This package was split of from ruamel.yaml, so that ruamel.yaml can be build
+ as a universal wheel as the C code is seldom changing, and it takes a long
+ time to compile for all platforms,
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..001047d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ruamel.yaml.clib
+Source: https://sourceforge.net/p/ruamel-yaml-clib/code/ci/default/tree
+
+Files: *
+Copyright: 2019, Anthon van der Neut, Ruamel bvba <a.van.der.neut@ruamel.eu>
+License: Expat
+
+Files: debian/*
+Copyright: 2020 Michael R. Crusoe <michael.crusoe@gmail.com>
+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/lintian-overrides b/debian/lintian-overrides
new file mode 100644
index 0000000..037592a
--- /dev/null
+++ b/debian/lintian-overrides
@@ -0,0 +1,3 @@
+# No static linking is done. The internal yaml library happens to also
+# be named libyaml, hence the confusion.
+python3-ruamel.yaml.clib: embedded-library libyaml [usr/lib/python3/dist-packages/_ruamel_yaml.cpython-*.so]
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f6203d8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=ruamel.yaml.clib
+export RUAMEL_NO_PIP_INSTALL_CHECK=True
+#PYBUILD_INSTALL_ARGS=--single-version-externally-managed
+
+# DH_VERBOSE := 1
+export LC_ALL=C.UTF-8
+
+include /usr/share/dpkg/default.mk
+# this provides:
+# DEB_SOURCE: the source package name
+# DEB_VERSION: the full version of the package (epoch + upstream vers. + revision)
+# DEB_VERSION_EPOCH_UPSTREAM: the package's version without the Debian revision
+# DEB_VERSION_UPSTREAM_REVISION: the package's version without the Debian epoch
+# DEB_VERSION_UPSTREAM: the package's upstream version
+# DEB_DISTRIBUTION: the distribution(s) listed in the current entry of debian/changelog
+# SOURCE_DATE_EPOCH: the source release date as seconds since the epoch, as
+# specified by <https://reproducible-builds.org/specs/source-date-epoch/>
+
+# for hardening you might like to uncomment this:
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ echo "There is no test suite available"
+endif
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
new file mode 100644
index 0000000..33c3a64
--- /dev/null
+++ b/debian/salsa-ci.yml
@@ -0,0 +1,4 @@
+---
+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
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..30f529a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,6 @@
+Tests: smoke
+Depends:
+ python3-all,
+ python3-pytest,
+ python3-ruamel.yaml,
+Restrictions: superficial, allow-stderr
diff --git a/debian/tests/data/test-yaml.py b/debian/tests/data/test-yaml.py
new file mode 100644
index 0000000..7a1bf9e
--- /dev/null
+++ b/debian/tests/data/test-yaml.py
@@ -0,0 +1,23 @@
+# very crude smoke test of the yaml package
+
+import ruamel.yaml as yaml
+
+
+def test_load_clib():
+ import ruamel.yaml.cyaml
+
+def test_safe_load():
+
+ with open("test-yaml.yaml") as fh:
+ y = yaml.safe_load(fh)
+
+ assert len(y['testdata']) == 2
+
+ assert len(y['testdata']['test1']) == 3
+
+ assert len(y['testdata']['test-data-2']) == 2
+
+
+if __name__ == "__main__":
+ test_safe_load()
+ print("Complete.")
diff --git a/debian/tests/data/test-yaml.yaml b/debian/tests/data/test-yaml.yaml
new file mode 100644
index 0000000..770019f
--- /dev/null
+++ b/debian/tests/data/test-yaml.yaml
@@ -0,0 +1,10 @@
+testdata:
+
+ test1:
+ - value1
+ - value2
+ - value3
+
+ test-data-2:
+ - value21
+ - value22
diff --git a/debian/tests/smoke b/debian/tests/smoke
new file mode 100755
index 0000000..d417a88
--- /dev/null
+++ b/debian/tests/smoke
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e -u
+
+cp -r debian/tests/data "$AUTOPKGTEST_TMP"
+cd "$AUTOPKGTEST_TMP/data"
+
+for py in $(py3versions -s); do
+ $py -m pytest -v test-yaml.py
+done
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..b84a891
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,15 @@
+Repository: http://hg.code.sf.net/p/ruamel-yaml-clib/code
+Repository-Browse: https://sourceforge.net/p/ruamel-yaml-clib/code/ci/default/tree/
+Bug-Database: https://sourceforge.net/p/ruamel-yaml-clib/tickets/
+Reference:
+ Author:
+ Title:
+ Journal:
+ Year:
+ Volume:
+ Number:
+ Pages:
+ DOI:
+ PMID:
+ URL:
+ eprint:
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..37eaad6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/ruamel.yaml.clib/ruamel.yaml.clib-@ANY_VERSION@@ARCHIVE_EXT@