1
0

Accepting request 1199103 from devel:languages:python

- Switch to pyproject and pytest macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1199103
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-git-url-parse?expand=0&rev=4
This commit is contained in:
Ana Guerrero 2024-09-06 15:18:51 +00:00 committed by Git OBS Bridge
commit 5118a0fb08
2 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 6 03:41:31 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject and pytest macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 25 02:54:09 UTC 2019 - John Vandenberg <jayvdb@gmail.com> Mon Mar 25 02:54:09 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-git-url-parse # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Name: python-git-url-parse
Version: 1.2.2 Version: 1.2.2
Release: 0 Release: 0
Summary: A GIT URL parser for Python Summary: A GIT URL parser for Python
License: MIT 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 Source: https://files.pythonhosted.org/packages/source/g/git-url-parse/git-url-parse-%{version}.tar.gz
BuildRequires: %{python_module pbr} BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
# /SECTION # /SECTION
@ -49,18 +48,19 @@ sed -i '/addopts/d' pytest.ini
%build %build
# Dont let pbr install yapf, which isnt a real test dependency # Dont let pbr install yapf, which isnt a real test dependency
echo > test-requirements.txt echo > test-requirements.txt
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec -m pytest -v %pytest
%files %{python_files} %files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst %doc AUTHORS.rst CHANGELOG.rst README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/giturlparse
%{python_sitelib}/git_url_parse-%{version}.dist-info
%changelog %changelog