[packages/python3-frozenlist] up to 1.5.0

atler atler at pld-linux.org
Wed Mar 19 02:19:49 CET 2025


commit 353ddc9c6e0cfbb8fc1f0f8db26b8388d9997acf
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Mar 19 00:25:07 2025 +0100

    up to 1.5.0
    
    disable towncrier extension which requires files missing in dist tarball

 disable-towncrier.patch | 10 ++++++++++
 python3-frozenlist.spec | 29 +++++++++++++++++++----------
 2 files changed, 29 insertions(+), 10 deletions(-)
---
diff --git a/python3-frozenlist.spec b/python3-frozenlist.spec
index 377b9c8..02fcecb 100644
--- a/python3-frozenlist.spec
+++ b/python3-frozenlist.spec
@@ -7,23 +7,31 @@
 Summary:	A list-like structure which implements collections.abc.MutableSequence
 Summary(pl.UTF-8):	Podobna do listy struktura implementująca collections.abc.MutableSequence
 Name:		python3-%{module}
-Version:	1.3.3
-Release:	3
+Version:	1.5.0
+Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/frozenlist/
 Source0:	https://files.pythonhosted.org/packages/source/f/frozenlist/%{module}-%{version}.tar.gz
-# Source0-md5:	14e9ffd849c6a1dfa3c6b1fb1ff77b14
+# Source0-md5:	0882f528872840df39091fb5085e258a
+Patch0:		disable-towncrier.patch
 URL:		https://pypi.org/project/frozenlist/
-BuildRequires:	python3-devel >= 1:3.7
-BuildRequires:	python3-setuptools >= 1:46.4.0
+BuildRequires:	python3-Cython >= 3
+BuildRequires:	python3-build
+BuildRequires:	python3-devel >= 1:3.8
+BuildRequires:	python3-expandvars
+BuildRequires:	python3-installer
+BuildRequires:	python3-setuptools >= 1:47
+%if %{_ver_lt "%py3_ver" 3.11}
+BuildRequires:	python3-tomli
+%endif
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	rpmbuild(macros) >= 2.044
 %if %{with doc}
 BuildRequires:	python3-aiohttp_theme
 BuildRequires:	sphinx-pdg-3
 %endif
-Requires:	python3-modules >= 1:3.7
+Requires:	python3-modules >= 1:3.8
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -51,9 +59,10 @@ Dokumentacja API modułu Pythona %{module}.
 
 %prep
 %setup -q -n %{module}-%{version}
+%patch -P0 -p1
 
 %build
-%py3_build
+%py3_build_pyproject
 
 %if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
@@ -68,7 +77,7 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%py3_install
+%py3_install_pyproject
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -83,7 +92,7 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitedir}/%{module}/py.typed
 %attr(755,root,root) %{py3_sitedir}/%{module}/*.so
 %{py3_sitedir}/%{module}/__pycache__
-%{py3_sitedir}/%{module}-%{version}-py*.egg-info
+%{py3_sitedir}/%{module}-%{version}.dist-info
 
 %if %{with doc}
 %files apidocs
diff --git a/disable-towncrier.patch b/disable-towncrier.patch
new file mode 100644
index 0000000..d63a399
--- /dev/null
+++ b/disable-towncrier.patch
@@ -0,0 +1,10 @@
+--- frozenlist-1.5.0/docs/conf.py.orig	2024-10-23 06:58:38.000000000 +0200
++++ frozenlist-1.5.0/docs/conf.py	2025-03-19 00:19:51.998342081 +0100
+@@ -59,7 +59,6 @@
+     "sphinx.ext.viewcode",
+     "sphinx.ext.intersphinx",
+     # Third-party extensions:
+-    "sphinxcontrib.towncrier.ext",  # provides `towncrier-draft-entries` directive
+ ]
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-frozenlist.git/commitdiff/aa6b6877ba073923a8ca954648296edceca5769b



More information about the pld-cvs-commit mailing list