15
0
forked from pool/python-dparse

- Switch to autosetup and pyproject macros.

- Stop using greedy globs in %files.
- Add patch fix-configparser-parsing.patch:
  * Use non-deprecated/removed functions from ConfigParser.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dparse?expand=0&rev=15
This commit is contained in:
2024-01-15 05:34:25 +00:00
committed by Git OBS Bridge
parent 61b41f1370
commit 71f6e243bf
3 changed files with 60 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dparse
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -22,10 +22,13 @@ Version: 0.6.3
Release: 0
Summary: Python dependency file parser
License: MIT
Group: Development/Languages/Python
URL: https://github.com/jayfk/dparse
Source: https://files.pythonhosted.org/packages/source/d/dparse/dparse-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#pyupio/dparse#a3d83e8bdfd694e873b5775881ab5aa62fdbb674
Patch0: fix-configparser-parsing.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
@@ -44,14 +47,14 @@ BuildRequires: %{python_module pytest}
A parser for Python dependency files.
%prep
%setup -q -n dparse-%{version}
%autosetup -p1 -n dparse-%{version}
# Note vendor/toml.py could be unvendored
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
@@ -65,6 +68,7 @@ A parser for Python dependency files.
%files %{python_files}
%license LICENSE
%doc README.rst HISTORY.rst
%{python_sitelib}/*
%{python_sitelib}/dparse
%{python_sitelib}/dparse-%{version}.dist-info
%changelog