From 185b0844826ddecc129914fba2984d4d5623f9cfc2a4e17d84a9cc1ffc78ec66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 12 Dec 2023 14:00:25 +0000 Subject: [PATCH] Accepting request 1132659 from home:jtorres:branches:devel:languages:python - Version update to 2.0.2: * Surface fixes: * Fixed #31 whereby I changed the boolean response in 2.0.0 to a PAM constant. This reverts to the boolean response as existed in v1.8.5. The result code is still stored in the obj.code attribute. * Added the PamAuthenticate.authenticate() method signature and docstring to both of the new and legacy interfaces. * Changed the PamAuthenticate.authenticate() type hinting so it didn't interfere with the docstring. * Under the hood changes: * Start mocking the libpam methods so we can wholly disassociate ourselves from the underlying system. This lets us test more of the actual python code and lets us start injecting errors to test for. - Version update to 2.0.0: * The surface functionality hasn't changed much but a few bugs have been fixed. Under the hood, a lot has changed. Functionality has now been moved into a class that helped with value tracking. I planned on removing Python 2 support but was convinced to leave it in for now as apparently there are still a lot of python2 users. * Most testing has moved to occur underneath tox, this is superior as it provides for testing in a clean environment and an installed environment. OBS-URL: https://build.opensuse.org/request/show/1132659 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-pam?expand=0&rev=6 --- python-pam-1.8.4.tar.gz | 3 --- python-pam-2.0.2.tar.gz | 3 +++ python-python-pam.changes | 32 ++++++++++++++++++++++++++++++++ python-python-pam.spec | 17 ++++++++++------- 4 files changed, 45 insertions(+), 10 deletions(-) delete mode 100644 python-pam-1.8.4.tar.gz create mode 100644 python-pam-2.0.2.tar.gz diff --git a/python-pam-1.8.4.tar.gz b/python-pam-1.8.4.tar.gz deleted file mode 100644 index 807195a..0000000 --- a/python-pam-1.8.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c856d9c89fedb33951dd8a95727ae57c6887b02d065bbdffd2fd9dbc0183909b -size 4990 diff --git a/python-pam-2.0.2.tar.gz b/python-pam-2.0.2.tar.gz new file mode 100644 index 0000000..fe81132 --- /dev/null +++ b/python-pam-2.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97235235ba9b82dbae8068d1099508455949b275f77273ca22fdbd8b1fb5d950 +size 11439 diff --git a/python-python-pam.changes b/python-python-pam.changes index 23840c7..7e62a5b 100644 --- a/python-python-pam.changes +++ b/python-python-pam.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Tue Dec 12 12:02:21 UTC 2023 - Joan Torres + +- Version update to 2.0.2: + * Surface fixes: + * Fixed #31 whereby I changed the boolean response in 2.0.0 to + a PAM constant. This reverts to the boolean response as + existed in v1.8.5. The result code is still stored in the + obj.code attribute. + * Added the PamAuthenticate.authenticate() method signature + and docstring to both of the new and legacy interfaces. + * Changed the PamAuthenticate.authenticate() type hinting so it + didn't interfere with the docstring. + + * Under the hood changes: + * Start mocking the libpam methods so we can wholly disassociate + ourselves from the underlying system. This lets us test more + of the actual python code and lets us start injecting errors + to test for. + +- Version update to 2.0.0: + * The surface functionality hasn't changed much but a few bugs + have been fixed. Under the hood, a lot has changed. + Functionality has now been moved into a class that helped with + value tracking. I planned on removing Python 2 support but + was convinced to leave it in for now as apparently there are + still a lot of python2 users. + + * Most testing has moved to occur underneath tox, this is superior + as it provides for testing in a clean environment and an + installed environment. + ------------------------------------------------------------------- Fri Dec 7 10:39:12 UTC 2018 - Tomáš Chvátal diff --git a/python-python-pam.spec b/python-python-pam.spec index 7f0e84b..f0b556f 100644 --- a/python-python-pam.spec +++ b/python-python-pam.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-pam # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,22 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname python-pam Name: python-python-pam -Version: 1.8.4 +Version: 2.0.2 Release: 0 Summary: Python PAM module using ctypes, py3/py2 License: MIT Group: Development/Languages/Python URL: https://github.com/FirefighterBlu3/python-pam -Source: https://files.pythonhosted.org/packages/source/p/python-pam/%{modname}-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch + %python_subpackages %description @@ -39,15 +41,16 @@ Python pam module supporting py3 (and py2). %setup -q -n %{modname}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/pam +%{python_sitelib}/python_pam-%{version}* %changelog