Hello community,
here is the log from the commit of package python-requests-hawk for
openSUSE:Factory checked in at 2020-03-18 12:45:43
Comparing /work/SRC/openSUSE:Factory/python-requests-hawk (Old)
and /work/SRC/openSUSE:Factory/.python-requests-hawk.new.3160 (New)
Package is "python-requests-hawk"
Wed Mar 18 12:45:43 2020 rev:3 rq:786095 version:1.0.1
Changes:
---
/work/SRC/openSUSE:Factory/python-requests-hawk/python-requests-hawk.changes
2018-12-24 11:43:20.409348489 +0100
+++
/work/SRC/openSUSE:Factory/.python-requests-hawk.new.3160/python-requests-hawk.changes
2020-03-18 12:51:28.701177790 +0100
@@ -1,0 +2,7 @@
+Wed Mar 18 08:29:29 UTC 2020 - Tomáš Chvátal
+
+- Update to 1.0.1:
+ - Add Python 3 support. (#22)
+- Enable tests
+
+---
Old:
requests-hawk-1.0.0.tar.gz
New:
requests-hawk-1.0.1.tar.gz
Other differences:
--
++ python-requests-hawk.spec ++
--- /var/tmp/diff_new_pack.FBi5QH/_old 2020-03-18 12:51:32.513180067 +0100
+++ /var/tmp/diff_new_pack.FBi5QH/_new 2020-03-18 12:51:32.545180086 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-requests-hawk
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2017 The openSUSE Project.
#
# All modifications and additions to the file contributed by third parties
@@ -18,25 +18,21 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_with test
Name: python-requests-hawk
-Version:1.0.0
+Version:1.0.1
Release:0
Summary:Hawk authentication strategy for the requests python library
License:Apache-2.0
-Group: Development/Languages/Python
URL:https://github.com/mozilla-services/requests-hawk
Source:
https://files.pythonhosted.org/packages/source/r/requests-hawk/requests-hawk-%{version}.tar.gz
+BuildRequires: %{python_module mohawk}
+BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-mohawk
Requires: python-requests
BuildArch: noarch
-%if %{with test}
-BuildRequires: %{python_module mohawk}
-BuildRequires: %{python_module requests}
-%endif
%python_subpackages
%description
@@ -57,10 +53,8 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%if %{with test}
%check
%python_exec setup.py test
-%endif
%files %{python_files}
%license LICENSE.txt
++ requests-hawk-1.0.0.tar.gz -> requests-hawk-1.0.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-hawk-1.0.0/CHANGES.txt
new/requests-hawk-1.0.1/CHANGES.txt
--- old/requests-hawk-1.0.0/CHANGES.txt 2015-12-15 14:53:05.0 +0100
+++ new/requests-hawk-1.0.1/CHANGES.txt 2020-01-20 11:35:24.0 +0100
@@ -1,6 +1,12 @@
CHANGELOG
=
+1.0.1 (2020-01-20)
+--
+
+- Add Python 3 support. (#22)
+
+
1.0.0 (2015-12-15)
--
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-hawk-1.0.0/PKG-INFO
new/requests-hawk-1.0.1/PKG-INFO
--- old/requests-hawk-1.0.0/PKG-INFO2015-12-15 14:53:06.0 +0100
+++ new/requests-hawk-1.0.1/PKG-INFO2020-01-20 11:35:24.0 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: requests-hawk
-Version: 1.0.0
+Version: 1.0.1
Summary: requests-hawk
Home-page: https://github.com/mozilla-services/requests-hawk
Author: Mozilla Services
@@ -24,15 +24,15 @@
Great, how can I use it?
-First, you'll need to install it::
+First, you'll need to install it:
- .. code-block:: bash
+.. code-block:: bash
pip install requests-hawk
-Then, in your project, if you know the `id` and `key`, you can use::
+Then, in your project, if you know the `id` and `key`, you can use:
- .. code-block:: python
+.. code-block:: python
import requests
from requests_hawk import HawkAuth
@@ -40,9 +40,9 @@
hawk_auth = HawkAuth(id='my-hawk-id', key='my-hawk-secret-key')
requests.post("https://example.com/url";, auth=hawk_auth)
-Or if you need to derive them from the hawk session token, instead
use::
+Or if you need to derive them from the hawk session token, instead use:
- .. code-block:: python
+.. code-block:: python
import requests