From 1b563bf3501eefe5f2c805f153e020107a121fb7e46505953a3bee5ab5b2d9ba Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 22 Jan 2025 06:04:13 +0000 Subject: [PATCH 1/2] - Update to 0.1.52: * Add build-dependency on gpgv. * Tweaks to match changes in Python-land tooling: - Fix some stylistic things that the newly uploaded pylint 2.16 complains about. - Fix testing with wine to adapt to changes in wine packaging. - Fix tests to work with recent changes to pip that prevent installation outside of a venv. - Change version generation to be PEP440 compatible to satisfy new requirements from setuptools, python-packaging etc. This change is needed for any uploads outside of Debian sid (derivatives, Debian backports, Debian security/stable-updates, etc). * Fix file extraction from DebFile for cases where the .deb is generated from control or data tarballs without the optional entry for "." and the "./" prefix on all members; this isn't needed for dpkg-generated packages, but is needed for other tools such as 'cargo deb' (Closes: #1031674). * Demote Recommends to Suggests; it is up to the calling code to know what optional features of python-debian it is using rather than dragging in an ever-increasing list of optional extra packages (Closes: #1029727). * Drop shims for pre-PEP8 API after 14 years of deprecation. * Replace setup.py and config for pylint, mypy, pytest with pyproject.toml. * Switch package build system to use pyproject.toml. * Relocate tests and test data out of module; they are no longer included in the binary package or in the wheel. * Relocate module source from 'lib' to 'src' in line with current practice. * Change handling of package version to use setuptools_scm during development (but not at run time). * Update code to build pypi uploads (sdist and wheel). * Update copyright statements throughout. * Tweak pytest configuration for pytest 8.1.1 changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-debian?expand=0&rev=13 --- python-debian-0.1.49.tar.gz | 3 -- python-debian-0.1.52.tar.gz | 3 ++ python-python-debian.changes | 57 ++++++++++++++++++++++++++++++++++++ python-python-debian.spec | 25 +++++++++------- 4 files changed, 75 insertions(+), 13 deletions(-) delete mode 100644 python-debian-0.1.49.tar.gz create mode 100644 python-debian-0.1.52.tar.gz diff --git a/python-debian-0.1.49.tar.gz b/python-debian-0.1.49.tar.gz deleted file mode 100644 index a732f75..0000000 --- a/python-debian-0.1.49.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8cf677a30dbcb4be7a99536c17e11308a827a4d22028dc59a67f6c6dd3f0f58c -size 121690 diff --git a/python-debian-0.1.52.tar.gz b/python-debian-0.1.52.tar.gz new file mode 100644 index 0000000..2f8638f --- /dev/null +++ b/python-debian-0.1.52.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c310e1ca618ffa9e3654f4b7abd106487067d24ef5dc706df7cb20620695de6 +size 253447 diff --git a/python-python-debian.changes b/python-python-debian.changes index f225646..34e4181 100644 --- a/python-python-debian.changes +++ b/python-python-debian.changes @@ -1,3 +1,60 @@ +------------------------------------------------------------------- +Wed Jan 22 06:03:59 UTC 2025 - Steve Kowalik + +- Update to 0.1.52: + * Add build-dependency on gpgv. + * Tweaks to match changes in Python-land tooling: + - Fix some stylistic things that the newly uploaded pylint 2.16 complains + about. + - Fix testing with wine to adapt to changes in wine packaging. + - Fix tests to work with recent changes to pip that prevent installation + outside of a venv. + - Change version generation to be PEP440 compatible to satisfy new + requirements from setuptools, python-packaging etc. This change is + needed for any uploads outside of Debian sid (derivatives, Debian + backports, Debian security/stable-updates, etc). + * Fix file extraction from DebFile for cases where the .deb is generated + from control or data tarballs without the optional entry for "." and the + "./" prefix on all members; this isn't needed for dpkg-generated packages, + but is needed for other tools such as 'cargo deb' (Closes: #1031674). + * Demote Recommends to Suggests; it is up to the calling code to know what + optional features of python-debian it is using rather than dragging in an + ever-increasing list of optional extra packages (Closes: #1029727). + * Drop shims for pre-PEP8 API after 14 years of deprecation. + * Replace setup.py and config for pylint, mypy, pytest with pyproject.toml. + * Switch package build system to use pyproject.toml. + * Relocate tests and test data out of module; they are no longer included + in the binary package or in the wheel. + * Relocate module source from 'lib' to 'src' in line with current practice. + * Change handling of package version to use setuptools_scm during + development (but not at run time). + * Update code to build pypi uploads (sdist and wheel). + * Update copyright statements throughout. + * Tweak pytest configuration for pytest 8.1.1 changes. + * Fix test suite harness that runs tests under wine. + * Update Standards-Version to 4.7.0 (no changes required). + * Fix handling of whitespace-separated file lists in Copyright files with + thanks to Lasse Collin for the suggested fix (Closes: #1062437). + * Parse source field to extract source version in .deb packages from + binNMUs (Closes: #1082838). + * Switch to from chardet to charset-normalizer and make it in the code + (demoted to Suggests), with thanks to Michal Čihař for the initial work. + * Update Standards-Version to 4.7.0 (no changes required). + * Make 'Package-List' a multiline field for Dsc objects, thanks to Philipp + Hahn for the patch (Closes: #1052154). + * Use valid SPDX identified in python package metadata. + * Fix version number to be PEP440 compliant. + * Drop debian_bundle and top-level deb822 modules after 13 years of + deprecation. + * Fix typing errors from newer mypy in deb822.PkgRelation. + * Changelog parsing speed improvements. + * Add support for file location finding (line, col) in Deb822 files. + * Change some type annotations from Python 2 to Python 3 format. + * Clean up some old Python 2 methods. + * Fixes for pylint 3.1. +- Switch to salsa tarball to run the testsuite. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sat Dec 3 21:28:19 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-python-debian.spec b/python-python-debian.spec index 44a6308..fb1e582 100644 --- a/python-python-debian.spec +++ b/python-python-debian.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-debian # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2017 Free Software Foundation Europe e.V. # # All modifications and additions to the file contributed by third parties @@ -17,20 +17,21 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-debian -Version: 0.1.49 +Version: 0.1.52 Release: 0 Summary: Debian package related modules License: GPL-3.0-or-later -Group: Development/Languages/Python URL: https://salsa.debian.org/python-debian-team/python-debian -Source: https://files.pythonhosted.org/packages/source/p/python-debian/python-debian-%{version}.tar.gz +Source: https://salsa.debian.org/python-debian-team/python-debian/-/archive/%{version}/python-debian-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: gpg2 BuildRequires: python-rpm-macros -Requires: python-chardet -Requires: python-six +Requires: python-chardet-normalizer Requires: zstd BuildArch: noarch Provides: python-debian = %{version}-%{release} @@ -54,14 +55,18 @@ data. Currently handled are: %setup -q -n python-debian-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/debian +%{python_sitelib}/python_debian-%{version}.dist-info %changelog From ac921ccaaadd9e5385541508c84228fd4001c4f822078e2318210cd8493358cb Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Wed, 22 Jan 2025 14:25:06 +0000 Subject: [PATCH 2/2] Accepting request 1239554 from home:anag+factory:branches:devel:languages:python fix typo OBS-URL: https://build.opensuse.org/request/show/1239554 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-debian?expand=0&rev=14 --- python-python-debian.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-python-debian.spec b/python-python-debian.spec index fb1e582..f54d011 100644 --- a/python-python-debian.spec +++ b/python-python-debian.spec @@ -31,7 +31,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: gpg2 BuildRequires: python-rpm-macros -Requires: python-chardet-normalizer +Requires: python-charset-normalizer Requires: zstd BuildArch: noarch Provides: python-debian = %{version}-%{release}