From b958013ede1744b7f6260214c86c1cecd3925075ca9654336256069c79b36c4c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:14:03 +0000 Subject: [PATCH] - Switch to pyproject macros. - Specify files and directories explicitly in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathvalidate?expand=0&rev=21 --- python-pathvalidate.changes | 6 ++++++ python-pathvalidate.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-pathvalidate.changes b/python-pathvalidate.changes index c47e47c..d626be9 100644 --- a/python-pathvalidate.changes +++ b/python-pathvalidate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:50:32 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Specify files and directories explicitly in %files. + ------------------------------------------------------------------- Tue Jan 14 11:12:53 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-pathvalidate.spec b/python-pathvalidate.spec index 5072dcd..a31bc6c 100644 --- a/python-pathvalidate.spec +++ b/python-pathvalidate.spec @@ -22,10 +22,12 @@ Version: 3.2.3 Release: 0 Summary: Python library to sanitize/validate a string such as filenames License: MIT -Group: Development/Languages/Python URL: https://github.com/thombashi/pathvalidate Source: https://files.pythonhosted.org/packages/source/p/pathvalidate/pathvalidate-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 38.3.0} +BuildRequires: %{python_module setuptools_scm >= 8} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements @@ -35,7 +37,6 @@ BuildRequires: %{python_module click} BuildRequires: %{python_module pytest} BuildRequires: %{python_module tcolorpy} # /SECTION -Requires: python-setuptools >= 38.3.0 BuildArch: noarch %python_subpackages @@ -47,10 +48,10 @@ filenames/file-paths/etc. %setup -q -n pathvalidate-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -59,6 +60,7 @@ filenames/file-paths/etc. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/pathvalidate* +%{python_sitelib}/pathvalidate +%{python_sitelib}/pathvalidate-%{version}.dist-info %changelog