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 <[email protected]>
+
+- 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.000000000 +0100
+++ new/requests-hawk-1.0.1/CHANGES.txt 2020-01-20 11:35:24.000000000 +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-INFO    2015-12-15 14:53:06.000000000 +0100
+++ new/requests-hawk-1.0.1/PKG-INFO    2020-01-20 11:35:24.000000000 +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
             from requests_hawk import HawkAuth
@@ -69,16 +69,16 @@
         requests to a distant server in a nice and easy way. Under the hood, 
``httpie``
         uses the requests library. We've made it simple for you to plug hawk 
with it.
         
-        If you know the id and key, use it like that::
+        If you know the id and key, use it like that:
         
-          .. code-block:: bash
+        .. code-block:: bash
         
            http POST localhost:5000/registration\
            --auth-type=hawk --auth='id:key'
         
-        Or, if you want to use the hawk session token, you can do as follows::
+        Or, if you want to use the hawk session token, you can do as follows:
         
-          .. code-block:: bash
+        .. code-block:: bash
         
            http POST localhost:5000/registration\
            --auth-type=hawk 
--auth='c0d8cd2ec579a3599bef60f060412f01f5dc46f90465f42b5c47467481315f51:'
@@ -95,17 +95,17 @@
         hawk credentials.
         
         Do an HKDF derivation on the given session token. You'll need to use 
the
-        following parameters::
+        following parameters:
         
-          .. code-block:: python
+        .. code-block:: python
         
             key_material = HKDF(hawk_session, '', 
'identity.mozilla.com/picl/v1/sessionToken', 32*2)
         
         The key material you'll get out of the HKDF needs to be separated into 
two
         parts, the first 32 hex characters are the ``hawk id``, and the next 
32 ones are the
-        ``hawk key``::
+        ``hawk key``:
         
-          .. code-block:: python
+        .. code-block:: python
         
             credentials = {
                 'id': keyMaterial[0:32]
@@ -116,9 +116,9 @@
         Run tests
         =========
         
-        To run test, you can use tox::
+        To run test, you can use tox:
         
-          .. code-block:: bash
+        .. code-block:: bash
         
             tox
         
@@ -126,6 +126,12 @@
         CHANGELOG
         =========
         
+        1.0.1 (2020-01-20)
+        ------------------
+        
+        - Add Python 3 support. (#22)
+        
+        
         1.0.0 (2015-12-15)
         ------------------
         
@@ -167,7 +173,8 @@
 Classifier: Programming Language :: Python
 Classifier: License :: OSI Approved :: Apache Software License
 Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-hawk-1.0.0/README.rst 
new/requests-hawk-1.0.1/README.rst
--- old/requests-hawk-1.0.0/README.rst  2015-12-15 14:53:05.000000000 +0100
+++ new/requests-hawk-1.0.1/README.rst  2020-01-20 11:35:24.000000000 +0100
@@ -16,15 +16,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
@@ -32,9 +32,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
     from requests_hawk import HawkAuth
@@ -61,16 +61,16 @@
 requests to a distant server in a nice and easy way. Under the hood, ``httpie``
 uses the requests library. We've made it simple for you to plug hawk with it.
 
-If you know the id and key, use it like that::
+If you know the id and key, use it like that:
 
-  .. code-block:: bash
+.. code-block:: bash
 
    http POST localhost:5000/registration\
    --auth-type=hawk --auth='id:key'
 
-Or, if you want to use the hawk session token, you can do as follows::
+Or, if you want to use the hawk session token, you can do as follows:
 
-  .. code-block:: bash
+.. code-block:: bash
 
    http POST localhost:5000/registration\
    --auth-type=hawk 
--auth='c0d8cd2ec579a3599bef60f060412f01f5dc46f90465f42b5c47467481315f51:'
@@ -87,17 +87,17 @@
 hawk credentials.
 
 Do an HKDF derivation on the given session token. You'll need to use the
-following parameters::
+following parameters:
 
-  .. code-block:: python
+.. code-block:: python
 
     key_material = HKDF(hawk_session, '', 
'identity.mozilla.com/picl/v1/sessionToken', 32*2)
 
 The key material you'll get out of the HKDF needs to be separated into two
 parts, the first 32 hex characters are the ``hawk id``, and the next 32 ones 
are the
-``hawk key``::
+``hawk key``:
 
-  .. code-block:: python
+.. code-block:: python
 
     credentials = {
         'id': keyMaterial[0:32]
@@ -108,8 +108,8 @@
 Run tests
 =========
 
-To run test, you can use tox::
+To run test, you can use tox:
 
-  .. code-block:: bash
+.. code-block:: bash
 
     tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/requests-hawk-1.0.0/requests_hawk/tests/test_hawkauth.py 
new/requests-hawk-1.0.1/requests_hawk/tests/test_hawkauth.py
--- old/requests-hawk-1.0.0/requests_hawk/tests/test_hawkauth.py        
2015-12-15 14:53:05.000000000 +0100
+++ new/requests-hawk-1.0.1/requests_hawk/tests/test_hawkauth.py        
2020-01-20 11:35:24.000000000 +0100
@@ -42,7 +42,7 @@
                         "Hash doesn't match")
         self.assertTrue('ts="1431698426"' in auth_header,
                         "Timestamp doesn't match")
-        self.assertEqual(r.body, '{"foo": "bar"}')
+        self.assertEqual(r.body, b'{"foo": "bar"}')
 
     def test_overriding_credentials_algorithm(self):
         auth = HawkAuth(id='test_id', key='test_key', algorithm='sha1')
@@ -94,4 +94,4 @@
 
         self.assertTrue('ts="1431698847"' in r.headers['Authorization'],
                         "Timestamp doesn't match")
-        self.assertEqual(r.body, '{"foo": "bar"}')
+        self.assertEqual(r.body, b'{"foo": "bar"}')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-hawk-1.0.0/requests_hawk.egg-info/PKG-INFO 
new/requests-hawk-1.0.1/requests_hawk.egg-info/PKG-INFO
--- old/requests-hawk-1.0.0/requests_hawk.egg-info/PKG-INFO     2015-12-15 
14:53:06.000000000 +0100
+++ new/requests-hawk-1.0.1/requests_hawk.egg-info/PKG-INFO     2020-01-20 
11:35:24.000000000 +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
             from requests_hawk import HawkAuth
@@ -69,16 +69,16 @@
         requests to a distant server in a nice and easy way. Under the hood, 
``httpie``
         uses the requests library. We've made it simple for you to plug hawk 
with it.
         
-        If you know the id and key, use it like that::
+        If you know the id and key, use it like that:
         
-          .. code-block:: bash
+        .. code-block:: bash
         
            http POST localhost:5000/registration\
            --auth-type=hawk --auth='id:key'
         
-        Or, if you want to use the hawk session token, you can do as follows::
+        Or, if you want to use the hawk session token, you can do as follows:
         
-          .. code-block:: bash
+        .. code-block:: bash
         
            http POST localhost:5000/registration\
            --auth-type=hawk 
--auth='c0d8cd2ec579a3599bef60f060412f01f5dc46f90465f42b5c47467481315f51:'
@@ -95,17 +95,17 @@
         hawk credentials.
         
         Do an HKDF derivation on the given session token. You'll need to use 
the
-        following parameters::
+        following parameters:
         
-          .. code-block:: python
+        .. code-block:: python
         
             key_material = HKDF(hawk_session, '', 
'identity.mozilla.com/picl/v1/sessionToken', 32*2)
         
         The key material you'll get out of the HKDF needs to be separated into 
two
         parts, the first 32 hex characters are the ``hawk id``, and the next 
32 ones are the
-        ``hawk key``::
+        ``hawk key``:
         
-          .. code-block:: python
+        .. code-block:: python
         
             credentials = {
                 'id': keyMaterial[0:32]
@@ -116,9 +116,9 @@
         Run tests
         =========
         
-        To run test, you can use tox::
+        To run test, you can use tox:
         
-          .. code-block:: bash
+        .. code-block:: bash
         
             tox
         
@@ -126,6 +126,12 @@
         CHANGELOG
         =========
         
+        1.0.1 (2020-01-20)
+        ------------------
+        
+        - Add Python 3 support. (#22)
+        
+        
         1.0.0 (2015-12-15)
         ------------------
         
@@ -167,7 +173,8 @@
 Classifier: Programming Language :: Python
 Classifier: License :: OSI Approved :: Apache Software License
 Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/requests-hawk-1.0.0/requests_hawk.egg-info/requires.txt 
new/requests-hawk-1.0.1/requests_hawk.egg-info/requires.txt
--- old/requests-hawk-1.0.0/requests_hawk.egg-info/requires.txt 2015-12-15 
14:53:06.000000000 +0100
+++ new/requests-hawk-1.0.1/requests_hawk.egg-info/requires.txt 2020-01-20 
11:35:24.000000000 +0100
@@ -1,2 +1,2 @@
-requests!=2.8.0
+requests
 mohawk
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-hawk-1.0.0/setup.cfg 
new/requests-hawk-1.0.1/setup.cfg
--- old/requests-hawk-1.0.0/setup.cfg   2015-12-15 14:53:06.000000000 +0100
+++ new/requests-hawk-1.0.1/setup.cfg   2020-01-20 11:35:24.000000000 +0100
@@ -10,5 +10,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-hawk-1.0.0/setup.py 
new/requests-hawk-1.0.1/setup.py
--- old/requests-hawk-1.0.0/setup.py    2015-12-15 14:53:05.000000000 +0100
+++ new/requests-hawk-1.0.1/setup.py    2020-01-20 11:35:24.000000000 +0100
@@ -10,10 +10,10 @@
 with codecs.open(os.path.join(here, 'CHANGES.txt'), encoding='utf-8') as f:
     CHANGES = f.read()
 
-requires = ['requests!=2.8.0', 'mohawk']
+requires = ['requests', 'mohawk']
 
 setup(name='requests-hawk',
-      version='1.0.0',
+      version='1.0.1',
       description='requests-hawk',
       long_description=README + '\n\n' + CHANGES,
       classifiers=[
@@ -21,10 +21,11 @@
           "Programming Language :: Python",
           "License :: OSI Approved :: Apache Software License",
           "Programming Language :: Python :: 2",
-          "Programming Language :: Python :: 2.6",
           "Programming Language :: Python :: 2.7",
           "Programming Language :: Python :: 3",
-          "Programming Language :: Python :: 3.4"
+          "Programming Language :: Python :: 3.6",
+          "Programming Language :: Python :: 3.7",
+          "Programming Language :: Python :: 3.8",
       ],
       entry_points={
           'httpie.plugins.auth.v1': [


Reply via email to