15
0
forked from pool/python-blue

- Switch to pyproject macros.

- Simplify docs build.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blue?expand=0&rev=30
This commit is contained in:
2025-06-06 05:40:09 +00:00
committed by Git OBS Bridge
parent 000a4e75ee
commit 07f8e2ab7d
2 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 6 05:32:39 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Simplify docs build.
-------------------------------------------------------------------
Mon Mar 10 12:59:10 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -16,7 +16,6 @@
#
%define skip_python2 1
Name: python-blue
Version: 0.9.1
Release: 0
@@ -36,7 +35,9 @@ BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module black >= 21.7}
BuildRequires: %{python_module flake8 >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION doc and test requirements
@@ -74,12 +75,13 @@ HTML Documentation and examples for %name.
sed -i '/--cov/d' tox.ini
%build
%python_build
( cd docs ; PYTHONPATH=../build/lib make html )
%pyproject_wheel
make -C docs html
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/blue
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# gh#grantjenks/blue#72
@@ -96,7 +98,7 @@ sed -i '/--cov/d' tox.ini
%license LICENSE
%python_alternative %{_bindir}/blue
%{python_sitelib}/blue
%{python_sitelib}/blue-%{version}*-info
%{python_sitelib}/blue-%{version}.dist-info
%files -n python-blue-doc
%doc docs/_build/html