14
0

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
This commit is contained in:
2023-12-12 14:00:25 +00:00
committed by Git OBS Bridge
parent cd95575850
commit 185b084482
4 changed files with 45 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c856d9c89fedb33951dd8a95727ae57c6887b02d065bbdffd2fd9dbc0183909b
size 4990

3
python-pam-2.0.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:97235235ba9b82dbae8068d1099508455949b275f77273ca22fdbd8b1fb5d950
size 11439

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
Tue Dec 12 12:02:21 UTC 2023 - Joan Torres <joan.torres@suse.com>
- 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 <tchvatal@suse.com> Fri Dec 7 10:39:12 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-python-pam # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 %global modname python-pam
Name: python-python-pam Name: python-python-pam
Version: 1.8.4 Version: 2.0.2
Release: 0 Release: 0
Summary: Python PAM module using ctypes, py3/py2 Summary: Python PAM module using ctypes, py3/py2
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/FirefighterBlu3/python-pam 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 setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -39,15 +41,16 @@ Python pam module supporting py3 (and py2).
%setup -q -n %{modname}-%{version} %setup -q -n %{modname}-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{python_sitelib}/* %{python_sitelib}/pam
%{python_sitelib}/python_pam-%{version}*
%changelog %changelog