[packages/python3-requests-kerberos] - python-requests-kerberos.spec updated to 1.15.0 for python 3.6+; now uses pyspnego for auth
qboosh
qboosh at pld-linux.org
Sun Apr 19 08:41:50 CEST 2026
commit 968800e22174bef9fdee10a67a9edc12248d9b97
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 19 08:42:27 2026 +0200
- python-requests-kerberos.spec updated to 1.15.0 for python 3.6+; now uses pyspnego for auth
python-requests-kerberos.spec | 124 ---------------------------------------
python3-requests-kerberos.spec | 68 +++++++++++++++++++++
requests-kerberos-requires.patch | 21 -------
3 files changed, 68 insertions(+), 145 deletions(-)
---
diff --git a/python-requests-kerberos.spec b/python-requests-kerberos.spec
deleted file mode 100644
index a13efac..0000000
--- a/python-requests-kerberos.spec
+++ /dev/null
@@ -1,124 +0,0 @@
-#
-# Conditional build:
-%bcond_with tests # unit tests (not in sdist)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Kerberos authentication handler for python-requests
-Summary(pl.UTF-8): Obsługa uwierzytelniania Kerberos dla python-requests
-Name: python-requests-kerberos
-# keep 0.12.x here for python2 support
-Version: 0.12.0
-Release: 1
-License: ISC
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/requests-kerberos/
-Source0: https://files.pythonhosted.org/packages/source/r/requests-kerberos/requests-kerberos-%{version}.tar.gz
-# Source0-md5: 51060bc1a7ea8bb2816194619efd7003
-Patch0: requests-kerberos-requires.patch
-URL: https://pypi.org/project/requests-kerberos/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-cryptography >= 1.3
-BuildRequires: python-kerberos >= 1.1.8
-BuildRequires: python-kerberos < 2
-BuildRequires: python-mock
-BuildRequires: python-requests >= 1.1.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.3
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-cryptography >= 1.3
-BuildRequires: python3-kerberos >= 1.1.8
-BuildRequires: python3-kerberos < 2
-BuildRequires: python3-requests >= 1.1.0
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.7
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Requests is an HTTP library, written in Python, for human beings. This
-library adds optional Kerberos/GSSAPI authentication support and
-supports mutual authentication.
-
-%description -l pl.UTF-8
-Requests to biblioteka HTTP, napisana w Pythonie dla ludzi. Niniejsza
-biblioteka dodaje opcjonalną obsługę uwierzytelniania Kerberos/GSSAPI
-i obsługuje wzajemne uwierzytelnianie.
-
-%package -n python3-requests-kerberos
-Summary: Kerberos authentication handler for python3-requests
-Summary(pl.UTF-8): Obsługa uwierzytelniania Kerberos dla python3-requests
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.3
-
-%description -n python3-requests-kerberos
-Requests is an HTTP library, written in Python, for human beings. This
-library adds optional Kerberos/GSSAPI authentication support and
-supports mutual authentication.
-
-%description -n python3-requests-kerberos -l pl.UTF-8
-Requests to biblioteka HTTP, napisana w Pythonie dla ludzi. Niniejsza
-biblioteka dodaje opcjonalną obsługę uwierzytelniania Kerberos/GSSAPI
-i obsługuje wzajemne uwierzytelnianie.
-
-%prep
-%setup -q -n requests-kerberos-%{version}
-%patch -P0 -p1
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m unittest discover -s test_requests_kerberos
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m unittest discover -s test_requests_kerberos
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc AUTHORS HISTORY.rst LICENSE README.rst
-%{py_sitescriptdir}/requests_kerberos
-%{py_sitescriptdir}/requests_kerberos-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-requests-kerberos
-%defattr(644,root,root,755)
-%doc AUTHORS HISTORY.rst LICENSE README.rst
-%{py3_sitescriptdir}/requests_kerberos
-%{py3_sitescriptdir}/requests_kerberos-%{version}-py*.egg-info
-%endif
diff --git a/python3-requests-kerberos.spec b/python3-requests-kerberos.spec
new file mode 100644
index 0000000..bb0d5eb
--- /dev/null
+++ b/python3-requests-kerberos.spec
@@ -0,0 +1,68 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Kerberos authentication handler for python-requests
+Summary(pl.UTF-8): Obsługa uwierzytelniania Kerberos dla python-requests
+Name: python3-requests-kerberos
+Version: 0.15.0
+Release: 1
+License: ISC
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/requests-kerberos/
+Source0: https://files.pythonhosted.org/packages/source/r/requests-kerberos/requests_kerberos-%{version}.tar.gz
+# Source0-md5: d150b2929f700aece8ee268352df724b
+URL: https://pypi.org/project/requests-kerberos/
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-cryptography >= 1.3
+# two following are pyspnego[kerberos] dependencies
+BuildRequires: python3-gssapi >= 1.6.0
+BuildRequires: python3-krb5 >= 0.3.0
+BuildRequires: python3-pyspnego
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-mock
+BuildRequires: python3-requests >= 1.1.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Requests is an HTTP library, written in Python, for human beings. This
+library adds optional Kerberos/GSSAPI authentication support and
+supports mutual authentication.
+
+%description -l pl.UTF-8
+Requests to biblioteka HTTP, napisana w Pythonie dla ludzi. Niniejsza
+biblioteka dodaje opcjonalną obsługę uwierzytelniania Kerberos/GSSAPI
+i obsługuje wzajemne uwierzytelnianie.
+
+%prep
+%setup -q -n requests_kerberos-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_mock.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS HISTORY.rst LICENSE README.rst
+%{py3_sitescriptdir}/requests_kerberos
+%{py3_sitescriptdir}/requests_kerberos-%{version}-py*.egg-info
diff --git a/requests-kerberos-requires.patch b/requests-kerberos-requires.patch
deleted file mode 100644
index 760cc60..0000000
--- a/requests-kerberos-requires.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- requests-kerberos-0.12.0/setup.py.orig 2026-04-18 19:08:45.939829087 +0200
-+++ requests-kerberos-0.12.0/setup.py 2026-04-18 19:09:15.199670572 +0200
-@@ -54,7 +54,7 @@ setup(
- ],
- extras_require={
- ':sys_platform=="win32"': ['winkerberos>=0.5.0'],
-- ':sys_platform!="win32"': ['pykerberos>=1.1.8,<2.0.0'],
-+ ':sys_platform!="win32"': ['kerberos>=1.1.8,<2.0.0'],
- },
- test_suite='test_requests_kerberos',
- tests_require=['mock'],
---- requests-kerberos-0.12.0/requirements.txt.orig 2026-04-18 19:10:20.625982794 +0200
-+++ requests-kerberos-0.12.0/requirements.txt 2026-04-18 19:10:29.775933225 +0200
-@@ -1,6 +1,6 @@
- requests>=1.1.0
- winkerberos >= 0.5.0; sys.platform == 'win32'
--pykerberos >= 1.1.8, < 2.0.0; sys.platform != 'win32'
-+kerberos >= 1.1.8, < 2.0.0; sys.platform != 'win32'
- cryptography>=1.3
- cryptography>=1.3; python_version!="3.3"
- cryptography>=1.3, <2; python_version=="3.3"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-requests-kerberos.git/commitdiff/968800e22174bef9fdee10a67a9edc12248d9b97
More information about the pld-cvs-commit
mailing list