[packages/python3-exceptiongroup] - updated to 1.3.0
qboosh
qboosh at pld-linux.org
Sat Jul 5 19:15:28 CEST 2025
commit 873cbf5277cb9eff9be78d44cde14fd3ce002a84
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 5 19:16:58 2025 +0200
- updated to 1.3.0
python3-exceptiongroup.spec | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/python3-exceptiongroup.spec b/python3-exceptiongroup.spec
index 5a2750e..d11ddf4 100644
--- a/python3-exceptiongroup.spec
+++ b/python3-exceptiongroup.spec
@@ -1,27 +1,31 @@
#
# Conditional build:
-%bcond_with tests # unit tests (missing in sdist)
+%bcond_without tests # unit tests
Summary: Backport of PEP 654 (exception groups)
Summary(pl.UTF-8): Backport PEP 654 (grup wyjątków)
Name: python3-exceptiongroup
-Version: 1.1.0
-Release: 3
+Version: 1.3.0
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/exceptiongroup/
Source0: https://files.pythonhosted.org/packages/source/e/exceptiongroup/exceptiongroup-%{version}.tar.gz
-# Source0-md5: 2a5d49d1c727e2895b8f58893446d8fa
+# Source0-md5: 85af34d4754844f5becff4fb0f9f87e2
URL: https://pypi.org/project/exceptiongroup/
-# TODO
-#BuildRequires: python3-flit_scm
+BuildRequires: python3-build
+BuildRequires: python3-flit_scm
+BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest >= 6
+%if "%{_ver_lt %{py3_ver} 3.13}" != "1"
+BuildRequires: python3-typing_extensions >= 4.6.0
+%endif
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: rpmbuild(macros) >= 2.044
Requires: python3-modules >= 1:3.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,29 +41,25 @@ Pythona 3.11.
%prep
%setup -q -n exceptiongroup-%{version}
-cat >setup.py <<EOF
-from setuptools import setup
-setup()
-EOF
-
%build
-%py3_build
+%py3_build_pyproject
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
%{__python3} -m pytest tests
%endif
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE README.rst
+%doc CHANGES.rst LICENSE README.rst
%{py3_sitescriptdir}/exceptiongroup
-%{py3_sitescriptdir}/exceptiongroup-%{version}-py*.egg-info
+%{py3_sitescriptdir}/exceptiongroup-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-exceptiongroup.git/commitdiff/873cbf5277cb9eff9be78d44cde14fd3ce002a84
More information about the pld-cvs-commit
mailing list