8
0
Files
python-python-debian/python-python-debian.spec

73 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

- 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
2025-01-22 06:04:13 +00:00
#
# spec file for package python-python-debian
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-python-debian
Version: 0.1.52
Release: 0
Summary: Debian package related modules
License: GPL-3.0-or-later
URL: https://salsa.debian.org/python-debian-team/python-debian
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-charset-normalizer
- 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
2025-01-22 06:04:13 +00:00
Requires: zstd
BuildArch: noarch
Provides: python-debian = %{version}-%{release}
Obsoletes: python-debian < %{version}-%{release}
%python_subpackages
%description
This is a collection of modules that are for dealing with Debian related
data. Currently handled are:
* Debtags information (debian.debtags module)
* debian/changelog (debian.changelog module)
* Packages files, pdiffs (debian.debian_support module)
* Control files of single or multiple RFC822-style paragraphs, e.g.
debian/control, .changes, .dsc, Packages, Sources, Release, etc.
(debian.deb822 module)
* Raw .deb and .ar files, with (read-only) access to contained
files and meta-information
%prep
%setup -q -n python-debian-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%{python_sitelib}/debian
%{python_sitelib}/python_debian-%{version}.dist-info
%changelog