[packages/python3-nocasedict] - up to 2.1.0

baggins baggins at pld-linux.org
Wed Jun 4 01:52:07 CEST 2025


commit f95dea9c04f93a6a61900fd8ce2b2eb87e5dae61
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jun 4 01:57:16 2025 +0200

    - up to 2.1.0

 python3-nocasedict.spec | 80 +++++++++----------------------------------------
 1 file changed, 14 insertions(+), 66 deletions(-)
---
diff --git a/python3-nocasedict.spec b/python3-nocasedict.spec
index 6905f03..0858061 100644
--- a/python3-nocasedict.spec
+++ b/python3-nocasedict.spec
@@ -1,40 +1,28 @@
 #
 # Conditional build:
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 Summary:	A case-insensitive ordered dictionary for Python
 Summary(pl.UTF-8):	Uporządkowany słownik dla Pythona ignorujący wielkość liter
 Name:		python3-nocasedict
-# keep 1.x here for python2 support
-Version:	1.1.2
-Release:	3
+Version:	2.1.0
+Release:	1
 License:	LGPL v2+
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/nocasedict/
 Source0:	https://files.pythonhosted.org/packages/source/n/nocasedict/nocasedict-%{version}.tar.gz
-# Source0-md5:	19771bb79c0376a1eb128697dcf5963f
+# Source0-md5:	23892628af81e55fd8192bc6fa2c4d0f
 URL:		https://pypi.org/project/nocasedict/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-pytest >= 4.3.1
-BuildRequires:	python-six >= 1.14.0
-%endif
-%endif
-%if %{with python3}
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
 BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-pytest >= 6.2.5
 BuildRequires:	python3-six >= 1.14.0
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.8
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -46,70 +34,30 @@ preserves the original lexical case of its keys.
 Klasa NocaseDict to ignorujący wielkość liter, uporządkowany słownik,
 zachowujący oryginalną wielkość liter kluczy.
 
-%package -n python3-nocasedict
-Summary:	A case-insensitive ordered dictionary for Python
-Summary(pl.UTF-8):	Uporządkowany słownik dla Pythona ignorujący wielkość liter
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-nocasedict
-Class NocaseDict is a case-insensitive ordered dictionary that
-preserves the original lexical case of its keys.
-
-%description -n python3-nocasedict -l pl.UTF-8
-Klasa NocaseDict to ignorujący wielkość liter, uporządkowany słownik,
-zachowujący oryginalną wielkość liter kluczy.
-
 %prep
 %setup -q -n nocasedict-%{version}
 
 %build
-%if %{with python2}
-%py_build
+%py3_build_pyproject
 
 %if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
-%endif
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
+%py3_install_pyproject
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.rst
-%{py_sitescriptdir}/nocasedict
-%{py_sitescriptdir}/nocasedict-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-nocasedict
-%defattr(644,root,root,755)
-%doc README.rst
+%doc AUTHORS.md README.md SECURITY.md
 %{py3_sitescriptdir}/nocasedict
-%{py3_sitescriptdir}/nocasedict-%{version}-py*.egg-info
-%endif
+%{py3_sitescriptdir}/nocasedict-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-nocasedict.git/commitdiff/f95dea9c04f93a6a61900fd8ce2b2eb87e5dae61



More information about the pld-cvs-commit mailing list