commit python-treq for openSUSE:Factory

2020-07-26 Thread root
Hello community,

here is the log from the commit of package python-treq for openSUSE:Factory 
checked in at 2020-07-26 16:18:47

Comparing /work/SRC/openSUSE:Factory/python-treq (Old)
 and  /work/SRC/openSUSE:Factory/.python-treq.new.3592 (New)


Package is "python-treq"

Sun Jul 26 16:18:47 2020 rev:6 rq:822412 version:20.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-treq/python-treq.changes  2020-03-25 
23:50:05.564023801 +0100
+++ /work/SRC/openSUSE:Factory/.python-treq.new.3592/python-treq.changes
2020-07-26 16:19:43.220829405 +0200
@@ -1,0 +2,8 @@
+Thu Jul 23 13:10:39 UTC 2020 - Marketa Calabkova 
+
+- update to 20.4.1
+  * Support for Python 3.8 and PyPy3: treq is now tested with these 
interpreters.
+  * `treq.client.HTTPClient.request()` and its aliases no longer raise 
`UnicodeEncodeError` when passed a Unicode *url* and non-empty *params*.
+  * In treq 20.3.0 the *params* argument didn't accept parameter names or 
values that contain the characters ``&`` or ``#``.
+
+---

Old:

  treq-20.3.0.tar.gz

New:

  treq-20.4.1.tar.gz



Other differences:
--
++ python-treq.spec ++
--- /var/tmp/diff_new_pack.3HxFTS/_old  2020-07-26 16:19:44.764830849 +0200
+++ /var/tmp/diff_new_pack.3HxFTS/_new  2020-07-26 16:19:44.764830849 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-treq
-Version:20.3.0
+Version:20.4.1
 Release:0
 Summary:HTTP library inspired by python-requests
 License:MIT
@@ -28,6 +28,7 @@
 BuildRequires:  %{python_module Twisted >= 16.4.0}
 BuildRequires:  %{python_module attrs}
 BuildRequires:  %{python_module httpbin}
+BuildRequires:  %{python_module hyperlink >= 19.0.0}
 BuildRequires:  %{python_module incremental}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module requests >= 2.1.0}
@@ -38,6 +39,7 @@
 BuildRequires:  python-rpm-macros
 Requires:   python-Twisted >= 18.7.0
 Requires:   python-attrs
+Requires:   python-hyperlink >= 19.0.0
 Requires:   python-incremental
 Requires:   python-requests >= 2.1.0
 Requires:   python-six

++ treq-20.3.0.tar.gz -> treq-20.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/treq-20.3.0/CHANGELOG.rst 
new/treq-20.4.1/CHANGELOG.rst
--- old/treq-20.3.0/CHANGELOG.rst   2020-03-16 04:39:03.0 +0100
+++ new/treq-20.4.1/CHANGELOG.rst   2020-04-17 07:00:02.0 +0200
@@ -8,6 +8,38 @@
 
 .. towncrier release notes start
 
+20.4.1 (2020-04-16)
+===
+
+Bugfixes
+
+
+- Correct a typo in the treq 20.4.0 package metadata that prevented upload to 
PyPI (`pypa/twine#589 `__)
+
+20.4.0 (2020-04-16)
+===
+
+Features
+
+
+- Support for Python 3.8 and PyPy3: treq is now tested with these 
interpreters. (`#271 `__)
+
+
+Bugfixes
+
+
+- `treq.client.HTTPClient.request()` and its aliases no longer raise 
`UnicodeEncodeError` when passed a Unicode *url* and non-empty *params*.
+  Now the URL and query parameters are concatenated as documented. (`#264 
`__)
+- In treq 20.3.0 the *params* argument didn't accept parameter names or values 
that contain the characters ``&`` or ``#``.
+  Now these characters are properly escaped. (`#282 
`__)
+
+
+Improved Documentation
+--
+
+- The treq documentation has been revised to emphasize use of 
`treq.client.HTTPClient` over the module-level convenience functions in the 
`treq` module. (`#276 `__)
+
+
 20.3.0 (2020-03-15)
 ===
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/treq-20.3.0/PKG-INFO new/treq-20.4.1/PKG-INFO
--- old/treq-20.3.0/PKG-INFO2020-03-16 04:39:35.0 +0100
+++ new/treq-20.4.1/PKG-INFO2020-04-17 07:01:10.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: treq
-Version: 20.3.0
+Version: 20.4.1
 Summary: High-level Twisted HTTP Client API
 Home-page: https://github.com/twisted/treq
 Author: David Reid
@@ -79,6 +79,8 @@
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy

commit python-treq for openSUSE:Factory

2020-03-25 Thread root
Hello community,

here is the log from the commit of package python-treq for openSUSE:Factory 
checked in at 2020-03-25 23:48:17

Comparing /work/SRC/openSUSE:Factory/python-treq (Old)
 and  /work/SRC/openSUSE:Factory/.python-treq.new.3160 (New)


Package is "python-treq"

Wed Mar 25 23:48:17 2020 rev:5 rq:788271 version:20.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-treq/python-treq.changes  2019-10-05 
16:22:21.105117478 +0200
+++ /work/SRC/openSUSE:Factory/.python-treq.new.3160/python-treq.changes
2020-03-25 23:50:05.564023801 +0100
@@ -1,0 +2,16 @@
+Wed Mar 25 15:05:08 UTC 2020 - pgaj...@suse.com
+
+- version update to 20.3.0
+  - Python 3.7 support. (`#228 `__)
+  - `treq.testing.RequestTraversalAgent` now passes its memory reactor to the 
`twisted.web.server.Site` it creates, preventing the ``Site`` from polluting 
the global reactor. (`#225 `__)
+  - `treq.testing` no longer generates deprecation warnings about 
``twisted.test.proto_helpers.MemoryReactor``. (`#253 
`__)
+  - The ``download_file.py`` example has been updated to do a streaming 
download with *unbuffered=True*. (`#233 
`__)
+  - The *agent* parameter to `treq.request()` has been documented. (`#235 
`__)
+  - The type of the *headers* element of a response tuple passed to 
`treq.testing.RequestSequence` is now correctly documented as `str`. (`#237 
`__)
+  - Drop support for Python 3.4. (`#240 
`__)
+  - `#247 `__, `#248 
`__, `#249 
`__
+- deleted patches
+  - python37.patch (upstreamed)
+  - urlparsing.patch (upstreamed)
+
+---

Old:

  python37.patch
  treq-18.6.0.tar.gz
  urlparsing.patch

New:

  treq-20.3.0.tar.gz



Other differences:
--
++ python-treq.spec ++
--- /var/tmp/diff_new_pack.5gb2Kx/_old  2020-03-25 23:50:09.668022715 +0100
+++ /var/tmp/diff_new_pack.5gb2Kx/_new  2020-03-25 23:50:09.708022704 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-treq
 #
-# 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
@@ -18,15 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-treq
-Version:18.6.0
+Version:20.3.0
 Release:0
 Summary:HTTP library inspired by python-requests
 License:MIT
 Group:  Development/Languages/Python
 URL:https://github.com/twisted/treq
 Source: 
https://files.pythonhosted.org/packages/source/t/treq/treq-%{version}.tar.gz
-Patch0: python37.patch
-Patch1: urlparsing.patch
 BuildRequires:  %{python_module Twisted >= 16.4.0}
 BuildRequires:  %{python_module attrs}
 BuildRequires:  %{python_module httpbin}
@@ -38,7 +36,7 @@
 BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:   python-Twisted >= 16.4.0
+Requires:   python-Twisted >= 18.7.0
 Requires:   python-attrs
 Requires:   python-incremental
 Requires:   python-requests >= 2.1.0

++ treq-18.6.0.tar.gz -> treq-20.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/treq-18.6.0/CHANGELOG.rst 
new/treq-20.3.0/CHANGELOG.rst
--- old/treq-18.6.0/CHANGELOG.rst   1970-01-01 01:00:00.0 +0100
+++ new/treq-20.3.0/CHANGELOG.rst   2020-03-16 04:39:03.0 +0100
@@ -0,0 +1,44 @@
+=
+Changelog
+=
+
+.. currentmodule:: treq
+
+.. default-role:: any
+
+.. towncrier release notes start
+
+20.3.0 (2020-03-15)
+===
+
+Features
+
+
+- Python 3.7 support. (`#228 `__)
+
+
+Bugfixes
+
+
+- `treq.testing.RequestTraversalAgent` now passes its memory reactor to the 
`twisted.web.server.Site` it creates, preventing the ``Site`` from polluting 
the global reactor. (`#225 `__)
+- `treq.testing` no longer generates deprecation warnings about 
``twisted.test.proto_helpers.MemoryReactor``. (`#253 
`__)
+
+
+Improved Documentation
+--
+
+- The 

commit python-treq for openSUSE:Factory

2019-10-05 Thread root
Hello community,

here is the log from the commit of package python-treq for openSUSE:Factory 
checked in at 2019-10-05 16:21:56

Comparing /work/SRC/openSUSE:Factory/python-treq (Old)
 and  /work/SRC/openSUSE:Factory/.python-treq.new.2352 (New)


Package is "python-treq"

Sat Oct  5 16:21:56 2019 rev:4 rq:735394 version:18.6.0

Changes:

--- /work/SRC/openSUSE:Factory/python-treq/python-treq.changes  2019-09-13 
15:03:43.205277122 +0200
+++ /work/SRC/openSUSE:Factory/.python-treq.new.2352/python-treq.changes
2019-10-05 16:22:21.105117478 +0200
@@ -1,0 +2,6 @@
+Fri Oct  4 17:40:59 UTC 2019 - Aleksa Sarai 
+
+- Add service_identity BuildRequires so the integration tests don't fail on
+  Leap (required for boo#1153017).
+
+---



Other differences:
--
++ python-treq.spec ++
--- /var/tmp/diff_new_pack.oTlhWn/_old  2019-10-05 16:22:21.453116571 +0200
+++ /var/tmp/diff_new_pack.oTlhWn/_new  2019-10-05 16:22:21.457116560 +0200
@@ -33,6 +33,7 @@
 BuildRequires:  %{python_module incremental}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module requests >= 2.1.0}
+BuildRequires:  %{python_module service_identity}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  fdupes




commit python-treq for openSUSE:Factory

2019-09-13 Thread root
Hello community,

here is the log from the commit of package python-treq for openSUSE:Factory 
checked in at 2019-09-13 15:02:02

Comparing /work/SRC/openSUSE:Factory/python-treq (Old)
 and  /work/SRC/openSUSE:Factory/.python-treq.new.7948 (New)


Package is "python-treq"

Fri Sep 13 15:02:02 2019 rev:3 rq:730449 version:18.6.0

Changes:

--- /work/SRC/openSUSE:Factory/python-treq/python-treq.changes  2019-03-10 
09:34:34.152187824 +0100
+++ /work/SRC/openSUSE:Factory/.python-treq.new.7948/python-treq.changes
2019-09-13 15:03:43.205277122 +0200
@@ -1,0 +2,6 @@
+Thu Sep 12 17:21:23 UTC 2019 - Tomáš Chvátal 
+
+- Add patch to fix build with new Twisted releases:
+  * urlparsing.patch
+
+---

New:

  urlparsing.patch



Other differences:
--
++ python-treq.spec ++
--- /var/tmp/diff_new_pack.Cft3xT/_old  2019-09-13 15:03:44.801276783 +0200
+++ /var/tmp/diff_new_pack.Cft3xT/_new  2019-09-13 15:03:44.801276783 +0200
@@ -26,6 +26,7 @@
 URL:https://github.com/twisted/treq
 Source: 
https://files.pythonhosted.org/packages/source/t/treq/treq-%{version}.tar.gz
 Patch0: python37.patch
+Patch1: urlparsing.patch
 BuildRequires:  %{python_module Twisted >= 16.4.0}
 BuildRequires:  %{python_module attrs}
 BuildRequires:  %{python_module httpbin}
@@ -50,7 +51,7 @@
 
 %prep
 %setup -q -n treq-%{version}
-%patch0 -p1
+%autopatch -p1
 
 %build
 %python_build

++ urlparsing.patch ++
>From 2a81fb782353666f60151d52a79fc5a034dd2ebe Mon Sep 17 00:00:00 2001
From: Glyph 
Date: Tue, 11 Jun 2019 12:14:53 -0700
Subject: [PATCH] Fix to accommodate Twisted's new URL validity checking

---
 src/treq/test/test_testing.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/treq/test/test_testing.py b/src/treq/test/test_testing.py
index 6a13881..20797bd 100644
--- a/src/treq/test/test_testing.py
+++ b/src/treq/test/test_testing.py
@@ -138,9 +138,9 @@ def test_handles_invalid_schemes(self):
 so even after a successful request.
 """
 stub = StubTreq(_StaticTestResource())
-self.failureResultOf(stub.get(""), SchemeNotSupported)
+self.failureResultOf(stub.get("x-unknown-1:"), SchemeNotSupported)
 self.successResultOf(stub.get("http://url.com;))
-self.failureResultOf(stub.get(""), SchemeNotSupported)
+self.failureResultOf(stub.get("x-unknown-2:"), SchemeNotSupported)
 
 def test_files_are_rejected(self):
 """



commit python-treq for openSUSE:Factory

2019-03-10 Thread root
Hello community,

here is the log from the commit of package python-treq for openSUSE:Factory 
checked in at 2019-03-10 09:34:28

Comparing /work/SRC/openSUSE:Factory/python-treq (Old)
 and  /work/SRC/openSUSE:Factory/.python-treq.new.28833 (New)


Package is "python-treq"

Sun Mar 10 09:34:28 2019 rev:2 rq:682433 version:18.6.0

Changes:

--- /work/SRC/openSUSE:Factory/python-treq/python-treq.changes  2018-11-10 
16:55:11.084061495 +0100
+++ /work/SRC/openSUSE:Factory/.python-treq.new.28833/python-treq.changes   
2019-03-10 09:34:34.152187824 +0100
@@ -1,0 +2,7 @@
+Thu Mar  7 11:33:03 UTC 2019 - Tomáš Chvátal 
+
+- Add patch to fix testrun on python3.7:
+  * python37.patch
+- Fix macro expansion to run the tests under python3
+
+---

New:

  python37.patch



Other differences:
--
++ python-treq.spec ++
--- /var/tmp/diff_new_pack.ZthQlW/_old  2019-03-10 09:34:36.004187381 +0100
+++ /var/tmp/diff_new_pack.ZthQlW/_new  2019-03-10 09:34:36.008187380 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-treq
 #
-# 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
@@ -25,6 +25,7 @@
 Group:  Development/Languages/Python
 URL:https://github.com/twisted/treq
 Source: 
https://files.pythonhosted.org/packages/source/t/treq/treq-%{version}.tar.gz
+Patch0: python37.patch
 BuildRequires:  %{python_module Twisted >= 16.4.0}
 BuildRequires:  %{python_module attrs}
 BuildRequires:  %{python_module httpbin}
@@ -49,6 +50,7 @@
 
 %prep
 %setup -q -n treq-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -59,7 +61,7 @@
 
 %check
 export PYTHONDONTWRITEBYTECODE=1
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
%{_bindir}/trial-%{python_bin_suffix} treq
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
%{_bindir}/trial-%{$python_bin_suffix} treq
 
 %files %{python_files}
 %license LICENSE

++ python37.patch ++
>From d7e141113d00541c9183b243d0a2f66ded2f0536 Mon Sep 17 00:00:00 2001
From: Chih-Hsuan Yen 
Date: Wed, 25 Jul 2018 20:53:50 +0800
Subject: [PATCH] Add Python 3.7 support and enable testing

---
 src/treq/test/test_multipart.py | 17 ++---
 4 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/src/treq/test/test_multipart.py b/src/treq/test/test_multipart.py
index 4aece22..e0d81a2 100644
--- a/src/treq/test/test_multipart.py
+++ b/src/treq/test/test_multipart.py
@@ -3,6 +3,7 @@
 # See LICENSE for details.
 
 import cgi
+import sys
 
 from io import BytesIO
 
@@ -594,9 +595,19 @@ def test_worksWithCgi(self):
 )
 )
 
-form = cgi.parse_multipart(BytesIO(output), {"boundary": b"heyDavid"})
-self.assertEqual(set([b'just a string\r\n', b'another string']),
- set(form['cfield']))
+form = cgi.parse_multipart(BytesIO(output), {
+"boundary": b"heyDavid",
+"CONTENT-LENGTH": str(len(output)),
+})
+
+# Since Python 3.7, the value for a non-file field is now a list
+# of strings, not bytes.
+if sys.version_info >= (3, 7):
+self.assertEqual(set(['just a string\r\n', 'another string']),
+ set(form['cfield']))
+else:
+self.assertEqual(set([b'just a string\r\n', b'another string']),
+ set(form['cfield']))
 
 self.assertEqual(set([b'my lovely bytes2']), set(form['efield']))
 self.assertEqual(set([b'my lovely bytes219']), set(form['xfield']))