15
0

- Switch to pyroject macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-contextvars?expand=0&rev=13
This commit is contained in:
2025-06-16 06:20:33 +00:00
committed by Git OBS Bridge
parent ba92b4ecf2
commit f9212a694f
2 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 16 06:14:47 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyroject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Tue Feb 18 10:20:41 UTC 2025 - Pablo Suárez Hernández <psuarezhernandez@suse.com>

View File

@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15allpythons}
%define skip_python2 1
Name: python-contextvars
@@ -27,7 +26,9 @@ Summary: PEP 567 (context variables) backport
URL: https://github.com/MagicStack/contextvars
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/c/contextvars/contextvars-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module immutables >= 0.9}
@@ -46,10 +47,10 @@ PEP 567 (Context Variables) backport.
%setup -q -n contextvars-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -58,6 +59,7 @@ PEP 567 (Context Variables) backport.
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/contextvars
%{python_sitelib}/contextvars-%{version}.dist-info
%changelog