public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pam] rawhide: Version 2.1.1 (#2535813)
@ 2026-11-01 21:22 Juan Orti Alcaine
0 siblings, 0 replies; only message in thread
From: Juan Orti Alcaine @ 2026-11-01 21:22 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pam
Branch : rawhide
Commit : 8292fbadb8135e1456ed8303166a7fae7194bd65
Author : Juan Orti Alcaine <jorti@pm.me>
Date : 2026-11-01T22:21:59+01:00
Stats : +13/-169 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/python-pam/c/8292fbadb8135e1456ed8303166a7fae7194bd65?branch=rawhide
Log:
Version 2.1.1 (#2535813)
---
diff --git a/.gitignore b/.gitignore
index 71524e0..9000849 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
/python-pam-1.8.4.tar.gz
/python-pam-2.0.0.tar.gz
/python-pam-2.0.2.tar.gz
+/python-pam-2.1.1.tar.gz
diff --git a/0001-Don-t-ship-pam.py-in-the-module.patch b/0001-Don-t-ship-pam.py-in-the-module.patch
deleted file mode 100644
index d3df98c..0000000
--- a/0001-Don-t-ship-pam.py-in-the-module.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From a472b5792b8c144a9855deb2bf00dcc05429132b Mon Sep 17 00:00:00 2001
-From: Adam Williamson <awilliam@redhat.com>
-Date: Fri, 4 Jul 2025 11:23:34 -0700
-Subject: [PATCH] Don't ship pam.py in the module
-
-The comment at the top of this file says:
-"This is a legacy file, it is not used. Here for example."
-so it seems sensible to no longer ship it as part of the pam
-module itself. This moves it to an examples/ directory which
-will not be included in builds of the actual module, and updates
-the comment.
-
-Signed-off-by: Adam Williamson <awilliam@redhat.com>
----
- MANIFEST.in | 1 +
- {src/pam => examples}/pam.py | 5 +++--
- 2 files changed, 4 insertions(+), 2 deletions(-)
- rename {src/pam => examples}/pam.py (95%)
-
-diff --git a/MANIFEST.in b/MANIFEST.in
-index 04f196a..a57adff 100644
---- a/MANIFEST.in
-+++ b/MANIFEST.in
-@@ -1,2 +1,3 @@
- include README.md
- include LICENSE
-+graft examples
-diff --git a/src/pam/pam.py b/examples/pam.py
-similarity index 95%
-rename from src/pam/pam.py
-rename to examples/pam.py
-index f16bf0c..fdb5e27 100644
---- a/src/pam/pam.py
-+++ b/examples/pam.py
-@@ -22,7 +22,8 @@
- '''
- PAM module for python
-
--This is a legacy file, it is not used. Here for example.
-+This is a legacy implementation of the real module, kept around as a usage
-+example.
-
- Provides an authenticate function that will allow the caller to authenticate
- a user against the Pluggable Authentication Modules (PAM) on the system.
-@@ -31,7 +32,7 @@ Implemented using ctypes, so no compilation is necessary.
- '''
-
- import six
--import __internals
-+import pam.__internals
-
- if __name__ == "__main__": # pragma: no cover
- import readline
---
-2.50.0
-
diff --git a/47-mod.patch b/47-mod.patch
deleted file mode 100644
index ae20745..0000000
--- a/47-mod.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From 8d6f8eefcb0b0edafa585d23d6b3f2169d8e1c6f Mon Sep 17 00:00:00 2001
-From: Fabio Fantoni <fantonifabio@tiscali.it>
-Date: Sat, 22 Feb 2025 12:52:58 +0100
-Subject: [PATCH] {src/pam,pyproject.toml}: Stop using six module. Deprecated.
-
-See https://bugs.debian.org/1098415 for details.
----
- pyproject.toml | 2 --
- src/pam/__internals.py | 10 ++++------
- 2 files changed, 4 insertions(+), 8 deletions(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 83d8bee..551da23 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -2,7 +2,6 @@
- requires = [
- 'setuptools>=44',
- 'wheel>=0.30.0',
-- 'six',
- ]
- build-backend = 'setuptools.build_meta'
-
-@@ -32,7 +31,6 @@ deps =
- bandit
- flake8
- mypy
-- types-six
- coverage
- pytest-cov
- pytest
-diff --git a/src/pam/__internals.py b/src/pam/__internals.py
-index 99a0397..ba40457 100644
---- a/src/pam/__internals.py
-+++ b/src/pam/__internals.py
-@@ -1,5 +1,4 @@
- import os
--import six
- import sys
- from ctypes import cdll
- from ctypes import CFUNCTYPE
-@@ -296,11 +295,11 @@ def __conv(n_messages, messages, p_response, app_data):
-
- return my_conv(n_messages, messages, p_response, self.libc, msg_list, password, encoding)
-
-- if isinstance(username, six.text_type):
-+ if isinstance(username, str):
- username = username.encode(encoding)
-- if isinstance(password, six.text_type):
-+ if isinstance(password, str):
- password = password.encode(encoding)
-- if isinstance(service, six.text_type):
-+ if isinstance(service, str):
- service = service.encode(encoding)
-
- if b'\x00' in username or b'\x00' in password or b'\x00' in service:
-@@ -482,9 +481,8 @@
- return PAM_SYSTEM_ERR
-
- # can't happen unless someone is using internals directly
-- if sys.version_info >= (3, ): # pragma: no branch
-- if isinstance(key, six.text_type): # pragma: no branch
-- key = key.encode(encoding)
-+ if isinstance(key, str): # pragma: no branch
-+ key = key.encode(encoding)
-
- value = self.pam_getenv(self.handle, key)
diff --git a/50.patch b/50.patch
deleted file mode 100644
index 2108538..0000000
--- a/50.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From 59cefe2ee9b4785bd52960a492dc579d8f38eb86 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
-Date: Tue, 29 Jul 2025 23:23:15 +0200
-Subject: [PATCH] Do not require wheel for building
-
- - current version of setuptools (70.1+) does not need wheel at all
- - older versions of setuptools would fetch wheel when building wheels (but not sdists)
----
- pyproject.toml | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 551da23..2e3377c 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -1,7 +1,6 @@
- [build-system]
- requires = [
- 'setuptools>=44',
-- 'wheel>=0.30.0',
- ]
- build-backend = 'setuptools.build_meta'
-
diff --git a/python-pam.spec b/python-pam.spec
index d25c2e1..dc39f2c 100644
--- a/python-pam.spec
+++ b/python-pam.spec
@@ -1,31 +1,13 @@
Name: python-pam
-Version: 2.0.2
-Release: 20%{?dist}
+Version: 2.1.1
+Release: 1%{?dist}
Summary: Pure Python interface to the Pluggable Authentication Modules system on Linux
License: MIT
URL: https://github.com/FirefighterBlu3/python-pam
-Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
-# https://github.com/FirefighterBlu3/python-pam/pull/49
-# Don't ship pam/pam.py, which appears to be solely a footgun
-Patch: 0001-Don-t-ship-pam.py-in-the-module.patch
-# https://github.com/FirefighterBlu3/python-pam/pull/47
-# Drop use of six, we haven't supported Python 2 for years
-# This was an undeclared dependency, seems better to drop it
-# than declare it
-# Modified to correct the indent issue and drop changes to pam.py
-# since the prior patch demotes it to an example
-Patch: 47-mod.patch
-# https://github.com/FirefighterBlu3/python-pam/pull/50
-# Do not require wheel for building
-# The dependency is not necessary and is undesired in RHEL;
-# upstream has closed the PR and switched to poetry-core instead,
-# but that change is more disruptive to backport (and also undesired in RHEL).
-Patch: https://github.com/FirefighterBlu3/python-pam/pull/50.patch
-
-
%generate_buildrequires
%pyproject_buildrequires
@@ -44,6 +26,10 @@ authenticate a given username / password against the PAM system on Linux.
%prep
%autosetup -p1
+# https://github.com/FirefighterBlu3/python-pam/issues/142
+# Remove reimplementation of the footgun
+rm -f python-pam/pam/pam.py
+
%build
%pyproject_wheel
@@ -55,10 +41,13 @@ authenticate a given username / password against the PAM system on Linux.
%pyproject_check_import
%files -n python3-pam -f %{pyproject_files}
-%doc README.md
+%doc README.md examples
%license LICENSE
%changelog
+* Sun Nov 01 2026 Juan Orti Alcaine <jortialc@redhat.com> - 2.1.1-1
+- Version 2.1.1 (#2535813)
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/sources b/sources
index d165b66..1b66203 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (python-pam-2.0.2.tar.gz) = a33279d47de07b32c5c5cadb0f666ea18b407de061cb80e0b1d6cd7370fd70ff14af8d2802a2e4dbdaaf102efd6cac83c4f2c5673615b3d174edca20a4f8b00a
+SHA512 (python-pam-2.1.1.tar.gz) = ef1c3f904d70dea81cb6f2c5166096db226939c657ed7bb397a100718973ca2bc0f9dad5d862f2e4b6fa57ec43ddc2bc86932a16fffa03b6f769d57f8b74fc1c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-01 21:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-01 21:22 [rpms/python-pam] rawhide: Version 2.1.1 (#2535813) Juan Orti Alcaine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox