forked from pool/python-git-url-parse
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:
commit
5118a0fb08
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user