forked from pool/python-python-gnupg
Accepting request 668267 from devel:languages:python
- Enable tests - Update to 0.4.4: * Changed how any return value from the ``on_data`` callable is processed. In earlier versions, the return value was ignored. In this version, if the return value is ``False``, the data received from ``gpg`` is not buffered. Otherwise (if the value is ``None`` or ``True``, for example), the data is buffered as normal. This functionality can be used to do your own buffering, or to prevent buffering altogether. The ``on_data`` callable is also called once with an empty byte-string to signal the end of data from ``gpg``. * Added an additional attribute ``check_fingerprint_collisions`` to ``GPG`` instances, which defaults to ``False``. It seems that ``gpg`` is happy to have duplicate keys and fingerprints in a keyring, so we can't be too strict. A user can set this attribute of an instance to ``True`` to trigger a check for collisions. * With GnuPG 2.2.7 or later, provide the fingerprint of a signing key for a failed signature verification, if available. * For verification where multiple signatures are involved, a mapping of signature_ids to fingerprint, keyid, username, creation date, creation timestamp and expiry timestamp is provided. * Added a check to disallow certain control characters ('\r', '\n', NUL) in passphrases. OBS-URL: https://build.opensuse.org/request/show/668267 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-gnupg?expand=0&rev=5
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2d158dfc6b54927752b945ebe57e6a0c45da27747fa3b9ae66eccc0d2147ac0d
|
||||
size 46958
|
3
python-gnupg-0.4.4.tar.gz
Normal file
3
python-gnupg-0.4.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:45daf020b370bda13a1429c859fcdff0b766c0576844211446f9266cae97fb0e
|
||||
size 48292
|
@@ -1,3 +1,33 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 24 10:07:27 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Enable tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 24 09:31:19 UTC 2019 - Karol Babioch <kbabioch@suse.de>
|
||||
|
||||
- Update to 0.4.4:
|
||||
* Changed how any return value from the ``on_data`` callable is processed. In
|
||||
earlier versions, the return value was ignored. In this version, if the
|
||||
return value is ``False``, the data received from ``gpg`` is not buffered.
|
||||
Otherwise (if the value is ``None`` or ``True``, for example), the data is
|
||||
buffered as normal. This functionality can be used to do your own
|
||||
buffering, or to prevent buffering altogether. The ``on_data`` callable is
|
||||
also called once with an empty byte-string to signal the end of data from
|
||||
``gpg``.
|
||||
* Added an additional attribute ``check_fingerprint_collisions`` to
|
||||
``GPG`` instances, which defaults to ``False``. It seems that ``gpg`` is
|
||||
happy to have duplicate keys and fingerprints in a keyring, so we can't be
|
||||
too strict. A user can set this attribute of an instance to ``True`` to
|
||||
trigger a check for collisions.
|
||||
* With GnuPG 2.2.7 or later, provide the fingerprint of a signing key for a
|
||||
failed signature verification, if available.
|
||||
* For verification where multiple signatures are involved, a mapping of
|
||||
signature_ids to fingerprint, keyid, username, creation date, creation
|
||||
timestamp and expiry timestamp is provided.
|
||||
* Added a check to disallow certain control characters ('\r', '\n', NUL) in
|
||||
passphrases.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:53:04 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-gnupg
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,9 +18,8 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
%bcond_with test
|
||||
Name: python-python-gnupg
|
||||
Version: 0.4.3
|
||||
Version: 0.4.4
|
||||
Release: 0
|
||||
Summary: A wrapper for the GNU Privacy Guard (GPG or GnuPG)
|
||||
License: BSD-3-Clause
|
||||
@@ -29,20 +28,16 @@ URL: http://pythonhosted.org/python-gnupg/index.html
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-gnupg/python-gnupg-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gpg2
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: gpg2
|
||||
Obsoletes: python-gnupg < %{version}
|
||||
Provides: python-gnupg = %{version}
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: gpg2
|
||||
%endif
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-gnupg < %{version}
|
||||
Provides: %{oldpython}-gnupg = %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
Obsoletes: python3-gnupg < %{version}
|
||||
Provides: python3-gnupg = %{version}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -59,10 +54,9 @@ encryption and signature functionality from Python programs.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
export NO_EXTERNAL_TESTS=true
|
||||
%python_exec test_gnupg.py
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
Reference in New Issue
Block a user