[packages/python3-keyring] up to 23.5.0

atler atler at pld-linux.org
Thu Nov 3 18:10:07 CET 2022


commit 171cb65f1f78c804e14f73a06539029baa24314d
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Nov 3 18:09:02 2022 +0100

    up to 23.5.0
    
    last version providing its own setup.py without need for additional
    scripting to cover PEP 621

 python3-keyring.spec | 105 +++++++--------------------------------------------
 1 file changed, 14 insertions(+), 91 deletions(-)
---
diff --git a/python3-keyring.spec b/python3-keyring.spec
index c2ce3f0..d9839bb 100644
--- a/python3-keyring.spec
+++ b/python3-keyring.spec
@@ -2,35 +2,20 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# py.test tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define 	module	keyring
-Summary:	Python 2 library to access the system keyring service
-Summary(pl.UTF-8):	Biblioteka Pythona 2 do dostępu do systemowego pęku kluczy
-Name:		python-%{module}
-# keep 18.x here for python2 support
-Version:	18.0.1
-Release:	4
+Summary:	Python 3 library to access the system keyring service
+Summary(pl.UTF-8):	Biblioteka Pythona 3 do dostępu do systemowego pęku kluczy
+Name:		python3-%{module}
+Version:	23.5.0
+Release:	1
 License:	MIT, PSF
 Group:		Libraries/Python
 #Source0Download: https://pypi.python.org/simple/keyring
 Source0:	https://files.pythonhosted.org/packages/source/k/keyring/%{module}-%{version}.tar.gz
-# Source0-md5:	00cdec34da9c15ad804441979b70830b
+# Source0-md5:	4cdb787d6b2f4549b8ad63ec46674ea3
 URL:		https://pypi.python.org/pypi/keyring
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-setuptools
-BuildRequires:	python-setuptools_scm >= 1.15.0
-%if %{with tests}
-BuildRequires:	python-entrypoints
-BuildRequires:	python-pytest >= 2.8
-BuildRequires:	python-pytest-flake8
-BuildRequires:	python-secretstorage
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.3
+BuildRequires:	python3-devel >= 1:3.7
 BuildRequires:	python3-setuptools
 BuildRequires:	python3-setuptools_scm >= 1.15.0
 %if %{with tests}
@@ -39,19 +24,16 @@ BuildRequires:	python3-pytest >= 2.8
 BuildRequires:	python3-pytest-flake8
 BuildRequires:	python3-secretstorage
 %endif
-%endif
 %if %{with doc}
-BuildRequires:	python-Sphinx
-BuildRequires:	python-jaraco.packaging >= 3.2
-BuildRequires:	python-rst.linker >= 1.9
+BuildRequires:	python3-Sphinx
+BuildRequires:	python3-jaraco.packaging >= 3.2
+BuildRequires:	python3-rst.linker >= 1.9
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.7
 # kwalletd5 through dbus
-Suggests:	python-dbus
-Obsoletes:	python-keyring-gnome < 0.5.1
-Obsoletes:	python-keyring-kwallet < 0.5.1
+Suggests:	python3-dbus
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -65,24 +47,6 @@ Biblioteka Pythona keyring udostępnia prosty sposób dostępu do usługi
 systemowego pęku kluczy z poziomu Pythona. Może być używana w dowolnej
 aplikacji wymagającej bezpiecznego przechowywania haseł.
 
-%package -n python3-%{module}
-Summary:	Python 3 library to access the system keyring service
-Summary(pl.UTF-8):	Biblioteka Pythona 3 do dostępu do systemowego pęku kluczy
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.3
-# kwalletd5 through dbus
-Suggests:	python-dbus
-
-%description -n python3-%{module}
-The Python keyring lib provides a easy way to access the system
-keyring service from Python. It can be used in any application that
-needs safe password storage.
-
-%description -n python3-%{module} -l pl.UTF-8
-Biblioteka Pythona keyring udostępnia prosty sposób dostępu do usługi
-systemowego pęku kluczy z poziomu Pythona. Może być używana w dowolnej
-aplikacji wymagającej bezpiecznego przechowywania haseł.
-
 %package apidocs
 Summary:	API documentation for Python keyring library
 Summary(pl.UTF-8):	Dokumentacja API biblioteki Pythona keyring
@@ -98,19 +62,7 @@ Dokumentacja API biblioteki Pythona keyring.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build %{?with_doc:build_sphinx}
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS="pytest_flake8" \
-PYTHONPATH=$(pwd)/build-2/lib \
-%{__python} -m pytest tests keyring/tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
+%py3_build %{?with_doc:build_sphinx}
 
 %if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
@@ -118,55 +70,26 @@ PYTEST_PLUGINS="pytest_flake8" \
 PYTHONPATH=$(pwd)/build-3/lib \
 %{__python3} -m pytest tests keyring/tests
 %endif
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python3}
 %py3_install
 
-# keep base tests classes (for e.g. python-keyrings.alt tests), remove just backends unit tests
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/keyring/tests/backends
 # "keyring" name is too generic, add -py[version] suffix
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/keyring{,-py3}
-%endif
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-
-# keep base tests classes (for e.g. python-keyrings.alt tests), remove just backends unit tests
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/keyring/tests/backends
-# "keyring" name is too generic, add -py[version] suffix
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/keyring{,-py2}
-ln -sf keyring-py2 $RPM_BUILD_ROOT%{_bindir}/keyring-py
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGES.rst README.rst
-%attr(755,root,root) %{_bindir}/keyring-py
-%attr(755,root,root) %{_bindir}/keyring-py2
-%{py_sitescriptdir}/keyring
-%{py_sitescriptdir}/keyring-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
 %doc CHANGES.rst README.rst
 %attr(755,root,root) %{_bindir}/keyring-py3
 %{py3_sitescriptdir}/keyring
 %{py3_sitescriptdir}/keyring-%{version}-py*.egg-info
-%endif
 
-%if %{with python2} && %{with doc}
+%if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
 %doc build-2/sphinx/html/{_static,*.html,*.js}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-keyring.git/commitdiff/171cb65f1f78c804e14f73a06539029baa24314d



More information about the pld-cvs-commit mailing list