From e5f424146340c62a35044637dc8cd8b3be723662f991217dc4ca884b1663a8c1 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 6 Sep 2024 03:42:16 +0000 Subject: [PATCH] - Switch to pyproject and pytest macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-git-url-parse?expand=0&rev=10 --- python-git-url-parse.changes | 6 ++++++ python-git-url-parse.spec | 18 +++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/python-git-url-parse.changes b/python-git-url-parse.changes index 0d007bb..9e54a06 100644 --- a/python-git-url-parse.changes +++ b/python-git-url-parse.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 6 03:41:31 UTC 2024 - Steve Kowalik + +- Switch to pyproject and pytest macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Mon Mar 25 02:54:09 UTC 2019 - John Vandenberg diff --git a/python-git-url-parse.spec b/python-git-url-parse.spec index a330a35..82a8aef 100644 --- a/python-git-url-parse.spec +++ b/python-git-url-parse.spec @@ -1,7 +1,7 @@ # # spec file for package python-git-url-parse # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -16,20 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-git-url-parse Version: 1.2.2 Release: 0 Summary: A GIT URL parser for Python License: MIT -Group: Development/Languages/Python -Url: https://github.com/retr0h/git-url-parse +URL: https://github.com/retr0h/git-url-parse Source: https://files.pythonhosted.org/packages/source/g/git-url-parse/git-url-parse-%{version}.tar.gz BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module pbr} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} # /SECTION @@ -49,18 +48,19 @@ sed -i '/addopts/d' pytest.ini %build # Dont let pbr install yapf, which isnt a real test dependency echo > test-requirements.txt -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec -m pytest -v +%pytest %files %{python_files} %doc AUTHORS.rst CHANGELOG.rst README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/giturlparse +%{python_sitelib}/git_url_parse-%{version}.dist-info %changelog