Compare commits
1 Commits
imports/c1
...
c9-beta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45869742ef |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/requests-gssapi-1.2.3.tar.gz
|
SOURCES/requests-gssapi-1.4.0.tar.gz
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
1d8120ef56f3401da5df2d9e23b96d9adc3e1456 SOURCES/requests-gssapi-1.2.3.tar.gz
|
de3d140a7ddca9c293dc3cf1e9f793acd12b7e49 SOURCES/requests-gssapi-1.4.0.tar.gz
|
||||||
|
|||||||
129
SOURCES/0001-downstream-Fix-build-config-for-setuptools-53.patch
Normal file
129
SOURCES/0001-downstream-Fix-build-config-for-setuptools-53.patch
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
From 128c76a07591c158dfbef359b70a6d23693a5392 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Julien Rische <jrische@redhat.com>
|
||||||
|
Date: Thu, 13 Nov 2025 14:34:22 +0100
|
||||||
|
Subject: [PATCH] [downstream] Fix build config for setuptools 53
|
||||||
|
|
||||||
|
setuptools v53 (current version on c9s) does not support the
|
||||||
|
"project.license" attribute. Classifiers must be used instead.
|
||||||
|
|
||||||
|
A setup.cfg file is added to contain metadata not supported for
|
||||||
|
pyproject.toml with this setuptools version.
|
||||||
|
---
|
||||||
|
pyproject.toml | 51 +-------------------------------------------------
|
||||||
|
setup.cfg | 40 +++++++++++++++++++++++++++++++++++++++
|
||||||
|
2 files changed, 41 insertions(+), 50 deletions(-)
|
||||||
|
create mode 100644 setup.cfg
|
||||||
|
|
||||||
|
diff --git a/pyproject.toml b/pyproject.toml
|
||||||
|
index d72e47f..e4b1493 100644
|
||||||
|
--- a/pyproject.toml
|
||||||
|
+++ b/pyproject.toml
|
||||||
|
@@ -1,58 +1,9 @@
|
||||||
|
[build-system]
|
||||||
|
requires = [
|
||||||
|
- "setuptools >= 77.0.0", # Support for SPDX license expressions
|
||||||
|
+ "setuptools >= 53.0.0",
|
||||||
|
]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
-[project]
|
||||||
|
-name = "requests-gssapi"
|
||||||
|
-description = "A GSSAPI authentication handler for python-requests"
|
||||||
|
-readme = "README.rst"
|
||||||
|
-requires-python = ">=3.8"
|
||||||
|
-license = "ISC"
|
||||||
|
-authors = [
|
||||||
|
- { name = "Robbie Harwood", email = "rharwood@redhat.com" },
|
||||||
|
- { name = "Ian Cordasco" },
|
||||||
|
- { name = "Cory Benfield" },
|
||||||
|
- { name = "Michael Komitee" },
|
||||||
|
-]
|
||||||
|
-keywords = ["gssapi", "requests", "auth"]
|
||||||
|
-classifiers = [
|
||||||
|
- "Programming Language :: Python :: 3",
|
||||||
|
- "Programming Language :: Python :: 3.8",
|
||||||
|
- "Programming Language :: Python :: 3.9",
|
||||||
|
- "Programming Language :: Python :: 3.10",
|
||||||
|
- "Programming Language :: Python :: 3.11",
|
||||||
|
- "Programming Language :: Python :: 3.12",
|
||||||
|
- "Programming Language :: Python :: 3.13",
|
||||||
|
- "Programming Language :: Python :: 3.14",
|
||||||
|
-]
|
||||||
|
-dependencies = [
|
||||||
|
- "requests >= 1.1.0",
|
||||||
|
- "gssapi",
|
||||||
|
-]
|
||||||
|
-dynamic = ["version"]
|
||||||
|
-
|
||||||
|
-[project.urls]
|
||||||
|
-homepage = "https://github.com/pythongssapi/requests-gssapi"
|
||||||
|
-
|
||||||
|
-[project.optional-dependencies]
|
||||||
|
-dev = [
|
||||||
|
- "black == 24.2.0",
|
||||||
|
- "isort == 5.13.2",
|
||||||
|
- "pytest",
|
||||||
|
- "tox >= 4.0.0",
|
||||||
|
-]
|
||||||
|
-
|
||||||
|
-[tool.setuptools]
|
||||||
|
-include-package-data = true
|
||||||
|
-
|
||||||
|
-[tool.setuptools.dynamic]
|
||||||
|
-version = { attr = "requests_gssapi.__version__" }
|
||||||
|
-
|
||||||
|
-[tool.setuptools.packages.find]
|
||||||
|
-where = ["src"]
|
||||||
|
-
|
||||||
|
[tool.black]
|
||||||
|
line-length = 120
|
||||||
|
include = '\.pyi?$'
|
||||||
|
diff --git a/setup.cfg b/setup.cfg
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..c19e9ad
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/setup.cfg
|
||||||
|
@@ -0,0 +1,40 @@
|
||||||
|
+[metadata]
|
||||||
|
+name = requests-gssapi
|
||||||
|
+description = A GSSAPI authentication handler for python-requests
|
||||||
|
+long_description = file: README.rst
|
||||||
|
+long_description_content_type = text/x-rst
|
||||||
|
+url = https://github.com/pythongssapi/requests-gssapi
|
||||||
|
+author = Robbie Harwood, Ian Cordasco, Cory Benfield, Michael Komitee
|
||||||
|
+author_email = rharwood@redhat.com
|
||||||
|
+keywords = gssapi, requests, auth
|
||||||
|
+classifiers =
|
||||||
|
+ License :: OSI Approved :: ISC License (ISCL)
|
||||||
|
+ Programming Language :: Python :: 3
|
||||||
|
+ Programming Language :: Python :: 3.8
|
||||||
|
+ Programming Language :: Python :: 3.9
|
||||||
|
+ Programming Language :: Python :: 3.10
|
||||||
|
+ Programming Language :: Python :: 3.11
|
||||||
|
+ Programming Language :: Python :: 3.12
|
||||||
|
+ Programming Language :: Python :: 3.13
|
||||||
|
+ Programming Language :: Python :: 3.14
|
||||||
|
+python_requires = >=3.8
|
||||||
|
+version = attr: requests_gssapi.__version__
|
||||||
|
+
|
||||||
|
+[options]
|
||||||
|
+packages = find:
|
||||||
|
+package_dir =
|
||||||
|
+ = src
|
||||||
|
+install_requires =
|
||||||
|
+ requests >= 1.1.0
|
||||||
|
+ gssapi
|
||||||
|
+include_package_data = True
|
||||||
|
+
|
||||||
|
+[options.packages.find]
|
||||||
|
+where = src
|
||||||
|
+
|
||||||
|
+[options.extras_require]
|
||||||
|
+dev =
|
||||||
|
+ black == 24.2.0
|
||||||
|
+ isort == 5.13.2
|
||||||
|
+ pytest
|
||||||
|
+ tox >= 4.0.0
|
||||||
|
--
|
||||||
|
2.51.1
|
||||||
|
|
||||||
@ -2,33 +2,35 @@
|
|||||||
%global s_name requests_gssapi
|
%global s_name requests_gssapi
|
||||||
|
|
||||||
Name: python-%{sname}
|
Name: python-%{sname}
|
||||||
Version: 1.2.3
|
Version: 1.4.0
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A GSSAPI/SPNEGO authentication handler for python-requests
|
Summary: A GSSAPI/SPNEGO authentication handler for python-requests
|
||||||
|
|
||||||
License: ISC
|
License: ISC
|
||||||
URL: https://github.com/pythongssapi/%{sname}
|
URL: https://github.com/pythongssapi/%{sname}
|
||||||
Source0: https://github.com/pythongssapi/%{sname}/releases/download/v%{version}/%{sname}-%{version}.tar.gz
|
Source0: https://github.com/pythongssapi/%{sname}/archive/v%{version}/%{sname}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
# Patches
|
# Patches
|
||||||
|
Patch0001: 0001-downstream-Fix-build-config-for-setuptools-53.patch
|
||||||
|
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3dist(pytest)
|
||||||
BuildRequires: python3-gssapi
|
|
||||||
BuildRequires: python3-requests
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
|
|
||||||
%global _description\
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires
|
||||||
|
|
||||||
|
%global _description %{expand:
|
||||||
Requests is an HTTP library, written in Python, for human beings. This\
|
Requests is an HTTP library, written in Python, for human beings. This\
|
||||||
library adds optional GSSAPI authentication support and supports\
|
library adds optional GSSAPI authentication support and supports\
|
||||||
mutual authentication. It includes a fully backward-compatible shim\
|
mutual authentication. It includes a fully backward-compatible shim\
|
||||||
for requests-kerberos.
|
for requests-kerberos.
|
||||||
|
}
|
||||||
|
|
||||||
%description %_description
|
%description %{_description}
|
||||||
|
|
||||||
%package -n python3-%{sname}
|
%package -n python3-%{sname}
|
||||||
Summary: %summary
|
Summary: %{summary}
|
||||||
Requires: python3-gssapi
|
Requires: python3-gssapi
|
||||||
Requires: python3-requests
|
Requires: python3-requests
|
||||||
%{?python_provide:%python_provide python3-%{sname}}
|
%{?python_provide:%python_provide python3-%{sname}}
|
||||||
@ -38,22 +40,25 @@ Requires: python3-requests
|
|||||||
%autosetup -S git_am -n %{sname}-%{version}
|
%autosetup -S git_am -n %{sname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
%py3_build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
|
%pyproject_save_files %{s_name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} -m unittest
|
%pyproject_check_import
|
||||||
|
%pytest
|
||||||
|
|
||||||
%files -n python3-%{sname}
|
%files -n python%{python3_pkgversion}-%{sname} -f %{pyproject_files}
|
||||||
%doc README.rst AUTHORS HISTORY.rst
|
%doc README.rst AUTHORS HISTORY.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/%{s_name}*
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 13 2025 Julien Rische <jrische@redhat.com> - 1.4.0-1
|
||||||
|
- New upstream release (1.4.0)
|
||||||
|
Resolves: RHEL-103416
|
||||||
|
|
||||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.3-3
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.3-3
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
Related: rhbz#1991688
|
Related: rhbz#1991688
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user