commit python-pyhibp for openSUSE:Factory
Hello community, here is the log from the commit of package python-pyhibp for openSUSE:Factory checked in at 2020-04-07 10:32:06 Comparing /work/SRC/openSUSE:Factory/python-pyhibp (Old) and /work/SRC/openSUSE:Factory/.python-pyhibp.new.3248 (New) Package is "python-pyhibp" Tue Apr 7 10:32:06 2020 rev:4 rq:791910 version:4.1.0 Changes: --- /work/SRC/openSUSE:Factory/python-pyhibp/python-pyhibp.changes 2019-08-28 18:37:07.869266500 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyhibp.new.3248/python-pyhibp.changes 2020-04-07 10:32:50.586617544 +0200 @@ -1,0 +2,10 @@ +Mon Apr 6 18:35:28 UTC 2020 - Martin Hauke + +- Update to version 4.1.0 + * Adds the capability to request that the Pwned Passwords API +return padding to the responses to calls made via +pwnedpasswords. Set the parameter add_padding to True on +suffix_search or is_password_breached. See the HIBP API for +additional information. + +--- Old: pyhibp-4.0.0.tar.gz New: pyhibp-4.1.0.tar.gz Other differences: -- ++ python-pyhibp.spec ++ --- /var/tmp/diff_new_pack.aNdPyc/_old 2020-04-07 10:32:51.054618153 +0200 +++ /var/tmp/diff_new_pack.aNdPyc/_new 2020-04-07 10:32:51.058618159 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyhibp # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pyhibp -Version:4.0.0 +Version:4.1.0 Release:0 Summary:An interface to Troy Hunt's 'Have I Been Pwned' public API License:AGPL-3.0-or-later ++ pyhibp-4.0.0.tar.gz -> pyhibp-4.1.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyhibp-4.0.0/CHANGELOG.md new/pyhibp-4.1.0/CHANGELOG.md --- old/pyhibp-4.0.0/CHANGELOG.md 2019-08-11 06:27:23.0 +0200 +++ new/pyhibp-4.1.0/CHANGELOG.md 2020-04-06 15:55:42.0 +0200 @@ -1,5 +1,11 @@ pyHIBP Changelog +v4.1.0 (2020-04-06) + +- Adds the capability to request that the Pwned Passwords API return padding to the responses to calls made via + ``pwnedpasswords``. Set the parameter ``add_padding`` to ``True`` on ``suffix_search`` or ``is_password_breached``. + See [the HIBP API](https://haveibeenpwned.com/API/v3#PwnedPasswordsPadding) for additional information. + v4.0.0 (2019-08-11) - **Breaking API change**: The HIBP API now requires an API key for calls which search by account. This means calls to @@ -27,6 +33,18 @@ - ``get_single_breach`` -> ``{} / dict`` - ``get_pastes`` -> ``[] / list`` +v3.2.0 (2020-03-28) +--- +- **FINAL SUPPORTED PYTHON 2.7 RELEASE**: All following releases will require Python 3. CPython discontinued support as of + January 1, 2020, and we dropped support in v4.0.0. (Yes, we dropped support and are releasing a backport; ironic.) +- **Backported functions (from v4.0.0)**: The following functions are required to consume the API, either in general (user agent), or for querying for specific account information (API key). +- `pyhibp.set_user_agent(ua=agent)`: The HIBP API requires the calling application to set a descriptive UA string to + describe the application consuming the API. This must be called prior to invoking any functions in + `pyhibp` or `pwnedpasswords` which actually make requests to the HIBP API. +- `pyhibp.set_api_key(key=your_key)`: For `pyhibp` functions which retrieve information about specific accounts, an + API key must be purchased from the HIBP website. This must be set prior to calling the relevant functions. +- Note: As this is was a backport, this change is not in the main master branch of source control, however the tagged release may [be found here](https://gitlab.com/kitsunix/pyHIBP/pyHIBP/-/tags/v3.2.0). + v3.1.0 (2019-06-30) --- - **New function**: ``pwnedpasswords.suffix_search(hash_prefix=prefix)`` was created in order to have a dedicated function diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyhibp-4.0.0/MANIFEST.in new/pyhibp-4.1.0/MANIFEST.in --- old/pyhibp-4.0.0/MANIFEST.in2019-08-10 02:55:56.0 +0200 +++ new/pyhibp-4.1.0/MANIFEST.in2020-04-06 15:55:42.0 +0200 @@ -6,8 +6,11 @@ include Pipfile include
commit python-pyhibp for openSUSE:Factory
Hello community, here is the log from the commit of package python-pyhibp for openSUSE:Factory checked in at 2019-08-28 18:37:02 Comparing /work/SRC/openSUSE:Factory/python-pyhibp (Old) and /work/SRC/openSUSE:Factory/.python-pyhibp.new.7948 (New) Package is "python-pyhibp" Wed Aug 28 18:37:02 2019 rev:3 rq:726615 version:4.0.0 Changes: --- /work/SRC/openSUSE:Factory/python-pyhibp/python-pyhibp.changes 2019-07-02 10:39:47.186708781 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyhibp.new.7948/python-pyhibp.changes 2019-08-28 18:37:07.869266500 +0200 @@ -1,0 +2,12 @@ +Tue Aug 27 14:45:31 UTC 2019 - Marketa Calabkova + +- update to version 4.0.0 + * Breaking API change: The HIBP API now requires an API key for +calls which search by account. + * A User Agent must now be manually set. + * Python 2.7 Support Dropped + * Function modified: suffix_search(hash_prefix=prefix) is now the +method to search for hash suffixes. + * Read upstream changelog for more info. + +--- Old: pyhibp-3.1.0.tar.gz New: pyhibp-4.0.0.tar.gz Other differences: -- ++ python-pyhibp.spec ++ --- /var/tmp/diff_new_pack.plwHdw/_old 2019-08-28 18:37:08.737266349 +0200 +++ /var/tmp/diff_new_pack.plwHdw/_new 2019-08-28 18:37:08.737266349 +0200 @@ -17,22 +17,20 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-pyhibp -Version:3.1.0 +Version:4.0.0 Release:0 Summary:An interface to Troy Hunt's 'Have I Been Pwned' public API License:AGPL-3.0-or-later Group: Development/Languages/Python URL:https://gitlab.com/kitsunix/pyHIBP/pyHIBP Source: https://files.pythonhosted.org/packages/source/p/pyhibp/pyhibp-%{version}.tar.gz -BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests >= 2.20.0 } BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module tox} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-requests >= 2.20.0 -Requires: python-six >= 1.11.0 BuildArch: noarch %python_subpackages ++ pyhibp-3.1.0.tar.gz -> pyhibp-4.0.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyhibp-3.1.0/CHANGELOG.md new/pyhibp-4.0.0/CHANGELOG.md --- old/pyhibp-3.1.0/CHANGELOG.md 2019-06-30 10:46:01.0 +0200 +++ new/pyhibp-4.0.0/CHANGELOG.md 2019-08-11 06:27:23.0 +0200 @@ -1,6 +1,33 @@ pyHIBP Changelog -v3.1.0 (In progress...) +v4.0.0 (2019-08-11) + +- **Breaking API change**: The HIBP API now requires an API key for calls which search by account. This means calls to + ``pyhibp.get_account_breaches()`` and ``pyhibp.get_pastes()``. API keys can be obtained [the HIBP website](https://haveibeenpwned.com/API/Key), + and must be loaded into the module by calling ``pyhibp.set_api_key(key="your_key")`` prior to calling the affected + functions. +- The other functions inside ``pyhibp``, as well as ``pwnedpasswords``, do not require an API key to use. +- As a note, our testing harness has not been tested against valid API keys, however we anticipate no issues. If issues + are discovered, please raise an issue with details, ideally with a merge request to fix the issue. +- **A User Agent must now be manually set**: As per the HIBP API, the User-Agent header set in calls to the API must + reflect the name of the calling application. Directly from the API documentation, "the user agent should accurately + describe the nature of the API consumer such that it can be clearly identified in the request. Not doing so may result + in the request being blocked." As such, users of this module must now set the User-Agent by calling + ``pyhibp.set_user_agent(ua=ua_string)``, where ``ua_string`` is a string which identifies the application implementing + the ``pyhibp`` module. +- **Python 2.7 Support Dropped**: With Python 2.7 support being dropped in January 2020, as stated in the notes for v3.0.0 + and v3.1.0, ``pyhibp`` is dropping support for Python 2.7. +- **Function modified**: ``suffix_search(hash_prefix=prefix)`` is now the method to search for hash suffixes. The compatability + shim left when introducing the function in v3.1.0 has been removed (and thus ``first_5_hash_chars`` is no longer a valid + parameter to the function ``is_password_breached()``). +- **Return type changes**: As per the changelog from v3.1.0, the return type for empty sets has changed as follows for the + following functions in the ``pyhibp``
commit python-pyhibp for openSUSE:Factory
Hello community, here is the log from the commit of package python-pyhibp for openSUSE:Factory checked in at 2019-07-02 10:39:46 Comparing /work/SRC/openSUSE:Factory/python-pyhibp (Old) and /work/SRC/openSUSE:Factory/.python-pyhibp.new.4615 (New) Package is "python-pyhibp" Tue Jul 2 10:39:46 2019 rev:2 rq:712996 version:3.1.0 Changes: --- /work/SRC/openSUSE:Factory/python-pyhibp/python-pyhibp.changes 2019-02-01 11:45:44.184534553 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyhibp.new.4615/python-pyhibp.changes 2019-07-02 10:39:47.186708781 +0200 @@ -1,0 +2,24 @@ +Mon Jul 1 12:34:45 UTC 2019 - Martin Hauke + +- Update to version 3.1.0 + * New function: pwnedpasswords.suffix_search(hash_prefix=prefix) +was created in order to have a dedicated function return the +suffix list. + * Function modification notice: pwnedpasswords.is_password_breached +will be modified in an upcoming release to remove the ability +to search for suffixes; use suffix_search(hash_prefix=prefix) +instead. The parameter first_5_hash_chars will be removed as a +consequence. + * Upcoming return type change for empty sets: For the functions +get_account_breaches, get_all_breaches, get_single_breach, and +get_pastes--all contained in the pyhibp module--when no items +would be returned from the HIBP backend, the returned item will +be an empty object matching the standard return type for the +function, and not a Boolean False. +This will occur when v4.0.0 is released. Return types will be: +- get_account_breaches -> [] / list +- get_all_breaches -> [] / list +- get_single_breach -> {} / dict +- get_pastes -> [] / list + +--- Old: pyhibp-3.0.0.tar.gz New: pyhibp-3.1.0.tar.gz Other differences: -- ++ python-pyhibp.spec ++ --- /var/tmp/diff_new_pack.YoruMU/_old 2019-07-02 10:39:47.642709476 +0200 +++ /var/tmp/diff_new_pack.YoruMU/_new 2019-07-02 10:39:47.646709481 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-pyHIBP +# spec file for package python-pyhibp # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # @@ -12,12 +12,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyhibp -Version:3.0.0 +Version:3.1.0 Release:0 Summary:An interface to Troy Hunt's 'Have I Been Pwned' public API License:AGPL-3.0-or-later @@ -50,7 +51,7 @@ ### Tests need network access to https://haveibeenpwned.com #%%check -#%%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitelib} py.test-%%{$python_version} +#%%pytest %files %{python_files} %license LICENSE ++ pyhibp-3.0.0.tar.gz -> pyhibp-3.1.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyhibp-3.0.0/CHANGELOG.md new/pyhibp-3.1.0/CHANGELOG.md --- old/pyhibp-3.0.0/CHANGELOG.md 2018-11-10 01:39:46.0 +0100 +++ new/pyhibp-3.1.0/CHANGELOG.md 2019-06-30 10:46:01.0 +0200 @@ -1,11 +1,34 @@ pyHIBP Changelog -v3.0.0 (UNRELEASED) +v3.1.0 (In progress...) +--- +- **New function**: ``pwnedpasswords.suffix_search(hash_prefix=prefix)`` was created in order to have a dedicated function + return the suffix list. +- **Function modification notice**: ``pwnedpasswords.is_password_breached`` will be modified in an upcoming release to + remove the ability to search for suffixes; use ``suffix_search(hash_prefix=prefix)`` instead. The parameter + ``first_5_hash_chars`` will be removed as a consequence. +- **Upcoming return type change for empty sets**: For the functions ``get_account_breaches``, ``get_all_breaches``, + ``get_single_breach``, and ``get_pastes``--all contained in the ``pyhibp`` module--when no items would be returned + from the HIBP backend, the returned item will be an empty object matching the standard return type for the function, + and not a Boolean ``False``. This will occur when ``v4.0.0`` is released. Return types will be: +- ``get_account_breaches`` -> ``[] / list`` +- ``get_all_breaches`` -> ``[] / list`` +- ``get_single_breach`` -> ``{} / dict`` +- ``get_pastes`` -> ``[] / list`` +- As a reminder, Python 2.7 support will be dropped from support in the near future. This will occur at the same time + as the removal of the range search functionality available