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