commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2020-06-05 19:58:51 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.3606 (New) Package is "python-cheroot" Fri Jun 5 19:58:51 2020 rev:14 rq:808801 version:8.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2020-05-20 18:36:25.268099786 +0200 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.3606/python-cheroot.changes 2020-06-05 19:58:54.595667993 +0200 @@ -1,0 +2,5 @@ +Mon May 25 10:59:14 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +--- Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.yAjneE/_old 2020-06-05 19:58:55.247670248 +0200 +++ /var/tmp/diff_new_pack.yAjneE/_new 2020-06-05 19:58:55.251670262 +0200 @@ -48,6 +48,8 @@ Requires: python-jaraco.functools Requires: python-more-itertools >= 2.6 Requires: python-six >= 1.11.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives # the package and distribution name is lowercase-cheroot, # but PyPI claims the name is capital-Cheroot # *smacks head against desk* @@ -77,16 +79,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/cheroot %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # Exclusions because of gh#cherrypy/cheroot#200 %pytest -k 'not test_tls_client_auth' +%post +%python_install_alternative cheroot + +%postun +%python_uninstall_alternative cheroot + %files %{python_files} %license LICENSE.md %doc README.rst CHANGES.rst -%python3_only %{_bindir}/cheroot +%python_alternative %{_bindir}/cheroot %{python_sitelib}/* %changelog
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2020-05-20 18:36:21 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.2738 (New) Package is "python-cheroot" Wed May 20 18:36:21 2020 rev:13 rq:807188 version:8.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2020-05-09 19:52:21.736838897 +0200 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.2738/python-cheroot.changes 2020-05-20 18:36:25.268099786 +0200 @@ -1,0 +2,6 @@ +Tue May 19 10:35:40 UTC 2020 - Tomáš Chvátal + +- Add patch to fix build with python 3.8.3: + * python383.patch + +--- New: python383.patch Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.Iit79V/_old 2020-05-20 18:36:27.092103609 +0200 +++ /var/tmp/diff_new_pack.Iit79V/_new 2020-05-20 18:36:27.096103617 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-cheroot # -# Copyright (c) 2020 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 @@ -28,7 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz # PATCH-FIX_UPSTREAM //github.com/cherrypy/cheroot/pull/282 Patch1: 0001-Avoid-race-condition-on-persistent-HTTP-connections.patch - +# PATCH-FIX-UPSTREAM pr#280 +Patch2: python383.patch BuildRequires: %{python_module jaraco.functools} BuildRequires: %{python_module jaraco.text >= 3.1} BuildRequires: %{python_module more-itertools >= 2.6} ++ python383.patch ++ >From 554972e7c3142c4e82e2ac38a019ef403f8f4e3d Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 12 Apr 2020 13:46:08 -0400 Subject: [PATCH 1/2] Remove fixture, undocumented and presumed unneeded. --- cheroot/test/test_server.py | 26 +- 1 file changed, 1 insertion(+), 25 deletions(-) Index: cheroot-8.3.0/cheroot/test/test_server.py === --- cheroot-8.3.0.orig/cheroot/test/test_server.py +++ cheroot-8.3.0/cheroot/test/test_server.py @@ -23,7 +23,6 @@ from ..testing import ( ANY_INTERFACE_IPV4, ANY_INTERFACE_IPV6, EPHEMERAL_PORT, -get_server_client, ) @@ -167,19 +166,19 @@ class _TestGateway(Gateway): @pytest.fixture -def peercreds_enabled_server_and_client(http_server, unix_sock_file): +def peercreds_enabled_server(http_server, unix_sock_file): """Construct a test server with ``peercreds_enabled``.""" httpserver = http_server.send(unix_sock_file) httpserver.gateway = _TestGateway httpserver.peercreds_enabled = True -return httpserver, get_server_client(httpserver) +return httpserver @unix_only_sock_test @non_macos_sock_test -def test_peercreds_unix_sock(peercreds_enabled_server_and_client): +def test_peercreds_unix_sock(peercreds_enabled_server): """Check that ``PEERCRED`` lookup works when enabled.""" -httpserver, testclient = peercreds_enabled_server_and_client +httpserver = peercreds_enabled_server bind_addr = httpserver.bind_addr if isinstance(bind_addr, six.binary_type): @@ -208,9 +207,9 @@ def test_peercreds_unix_sock(peercreds_e ) @unix_only_sock_test @non_macos_sock_test -def test_peercreds_unix_sock_with_lookup(peercreds_enabled_server_and_client): +def test_peercreds_unix_sock_with_lookup(peercreds_enabled_server): """Check that ``PEERCRED`` resolution works when enabled.""" -httpserver, testclient = peercreds_enabled_server_and_client +httpserver = peercreds_enabled_server httpserver.peercreds_resolve_enabled = True bind_addr = httpserver.bind_addr
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2020-05-09 19:52:13 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.2738 (New) Package is "python-cheroot" Sat May 9 19:52:13 2020 rev:12 rq:801107 version:8.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2020-03-27 00:25:19.176257478 +0100 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.2738/python-cheroot.changes 2020-05-09 19:52:21.736838897 +0200 @@ -1,0 +2,8 @@ +Thu May 7 09:33:29 UTC 2020 - Pablo Suárez Hernández + +- Avoid possible race condition on persistent HTTP connections (bsc#1169604) + +- Added: + * 0001-Avoid-race-condition-on-persistent-HTTP-connections.patch + +--- New: 0001-Avoid-race-condition-on-persistent-HTTP-connections.patch Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.9aggIA/_old 2020-05-09 19:52:23.376842418 +0200 +++ /var/tmp/diff_new_pack.9aggIA/_new 2020-05-09 19:52:23.380842426 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-cheroot # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2020 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 @@ -26,6 +26,9 @@ License:BSD-3-Clause URL:https://github.com/cherrypy/cheroot Source: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +# PATCH-FIX_UPSTREAM //github.com/cherrypy/cheroot/pull/282 +Patch1: 0001-Avoid-race-condition-on-persistent-HTTP-connections.patch + BuildRequires: %{python_module jaraco.functools} BuildRequires: %{python_module jaraco.text >= 3.1} BuildRequires: %{python_module more-itertools >= 2.6} ++ 0001-Avoid-race-condition-on-persistent-HTTP-connections.patch ++ >From 49a8934d726574f7ff85356e6acbfdc06ca7fbdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= Date: Wed, 6 May 2020 14:04:48 +0100 Subject: [PATCH] Avoid race condition on persistent HTTP connections Add a HTTP "Keep-Alive" header with "timeout" on the HTTP response to avoid a race condition on persistent HTTP connections when the HTTP client reuses a connection after the "socket.timeout" exception triggered on the HTTPServer but before the FIN packet is produced. When this happens, the client gets a "connection reset by peer" after writting the request. This commit makes a HTTP client to know about this "Keep-Alive" idle timeout by exposing it on the HTTP "Keep-Alive" response header, so the connection won't be reused if it was "idle" for that "timeout" after the last request response. --- cheroot/server.py | 5 + 1 file changed, 5 insertions(+) diff --git a/cheroot/server.py b/cheroot/server.py index 223bed86..f29559b4 100644 --- a/cheroot/server.py +++ b/cheroot/server.py @@ -1167,6 +1167,11 @@ class HTTPRequest: if not self.close_connection: self.outheaders.append((b'Connection', b'Keep-Alive')) +self.outheaders.append(( +b'Keep-Alive', +"timeout={}".format(self.server.timeout).encode('ISO-8859-1'), +)) + if (not self.close_connection) and (not self.chunked_read): # Read any remaining request body data on the socket. # "If an origin server receives a request that does not include an -- 2.23.0
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2020-03-27 00:25:15 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.3160 (New) Package is "python-cheroot" Fri Mar 27 00:25:15 2020 rev:11 rq:785565 version:8.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2020-03-08 22:23:01.892036520 +0100 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.3160/python-cheroot.changes 2020-03-27 00:25:19.176257478 +0100 @@ -1,0 +2,5 @@ +Mon Mar 16 10:23:16 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +--- Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.6LddNX/_old 2020-03-27 00:25:20.564258181 +0100 +++ /var/tmp/diff_new_pack.6LddNX/_new 2020-03-27 00:25:20.564258181 +0100 @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pypi_name cheroot +%bcond_without python2 Name: python-%{pypi_name} Version:8.3.0 Release:0 @@ -39,7 +40,6 @@ BuildRequires: %{python_module six >= 1.11.0} BuildRequires: %{python_module trustme} BuildRequires: fdupes -BuildRequires: python-backports.functools_lru_cache BuildRequires: python-rpm-macros Requires: python-jaraco.functools Requires: python-more-itertools >= 2.6 @@ -49,6 +49,9 @@ # *smacks head against desk* Provides: python-Cheroot = %{version} BuildArch: noarch +%if %{with python2} +BuildRequires: python-backports.functools_lru_cache +%endif %ifpython2 Requires: python-backports.functools_lru_cache %endif
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2020-03-08 22:22:56 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.26092 (New) Package is "python-cheroot" Sun Mar 8 22:22:56 2020 rev:10 rq:782539 version:8.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2019-11-04 17:08:31.476396904 +0100 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.26092/python-cheroot.changes 2020-03-08 22:23:01.892036520 +0100 @@ -1,0 +2,9 @@ +Sat Mar 7 14:09:21 UTC 2020 - Tomáš Chvátal + +- Update to 8.3.0: + * cherrypy/cherrypy#910 via #243: Provide TLS-related +details via WSGI environment interface. + * #248: Fix parsing of the --bind CLI option +for abstract UNIX sockets. + +--- Old: cheroot-8.2.1.tar.gz New: cheroot-8.3.0.tar.gz Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.Sa2cfP/_old 2020-03-08 22:23:03.064037243 +0100 +++ /var/tmp/diff_new_pack.Sa2cfP/_new 2020-03-08 22:23:03.068037246 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-cheroot # -# 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,17 +19,18 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pypi_name cheroot Name: python-%{pypi_name} -Version:8.2.1 +Version:8.3.0 Release:0 Summary:Pure-python HTTP server License:BSD-3-Clause -URL:https://github.com/cherrypy/%{pypi_name} +URL:https://github.com/cherrypy/cheroot Source: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: %{python_module jaraco.functools} +BuildRequires: %{python_module jaraco.text >= 3.1} BuildRequires: %{python_module more-itertools >= 2.6} BuildRequires: %{python_module pyOpenSSL} -BuildRequires: %{python_module pytest >= 2.8} -BuildRequires: %{python_module pytest-mock >= 1.10.4} +BuildRequires: %{python_module pytest >= 4.6} +BuildRequires: %{python_module pytest-mock >= 1.11.0} BuildRequires: %{python_module requests-unixsocket} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools >= 34.4} @@ -43,9 +44,6 @@ Requires: python-jaraco.functools Requires: python-more-itertools >= 2.6 Requires: python-six >= 1.11.0 -%ifpython2 -Requires: python-backports.functools_lru_cache -%endif # the package and distribution name is lowercase-cheroot, # but PyPI claims the name is capital-Cheroot # *smacks head against desk* @@ -54,6 +52,9 @@ %ifpython2 Requires: python-backports.functools_lru_cache %endif +%ifpython2 +Requires: python-backports.functools_lru_cache +%endif %python_subpackages %description @@ -62,7 +63,7 @@ %prep %autosetup -n cheroot-%{version} -p1 # do not require cov/xdist/etc -sed -i -e '/addopts/d' pytest.ini +rm pytest.ini %build %python_build ++ cheroot-8.2.1.tar.gz -> cheroot-8.3.0.tar.gz ++ 4279 lines of diff (skipped)
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2019-11-04 17:08:30 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.2990 (New) Package is "python-cheroot" Mon Nov 4 17:08:30 2019 rev:9 rq:742156 version:8.2.1 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2019-10-09 15:17:45.416761145 +0200 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.2990/python-cheroot.changes 2019-11-04 17:08:31.476396904 +0100 @@ -1,0 +2,11 @@ +Wed Oct 23 13:38:06 UTC 2019 - Marketa Calabkova + +- Update to 8.2.1 + * Deprecated use of negative timeouts as alias for infinite timeouts in ThreadPool.stop. + * For OPTION requests, bypass URI as path if it does not appear absolute. + * Workers are now request-based, addressing the long-standing issue with keep-alive connections + * Remove custom setup.cfg parser handling, allowing the project (including sdist) +to build/run on setuptools 41.4. Now building cheroot requires setuptools 30.3 or later +(for declarative config support) and preferably 34.4 or later (as indicated in pyproject.toml). + +--- Old: cheroot-7.0.0.tar.gz New: cheroot-8.2.1.tar.gz Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.9frw3c/_old 2019-11-04 17:08:32.068397536 +0100 +++ /var/tmp/diff_new_pack.9frw3c/_new 2019-11-04 17:08:32.068397536 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pypi_name cheroot Name: python-%{pypi_name} -Version:7.0.0 +Version:8.2.1 Release:0 Summary:Pure-python HTTP server License:BSD-3-Clause @@ -32,9 +32,9 @@ BuildRequires: %{python_module pytest-mock >= 1.10.4} BuildRequires: %{python_module requests-unixsocket} BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools >= 34.4} BuildRequires: %{python_module setuptools_scm >= 1.15.0} BuildRequires: %{python_module setuptools_scm_git_archive >= 1.0} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.11.0} BuildRequires: %{python_module trustme} BuildRequires: fdupes @@ -63,10 +63,6 @@ %autosetup -n cheroot-%{version} -p1 # do not require cov/xdist/etc sed -i -e '/addopts/d' pytest.ini -for file in "%{pypi_name}.egg-info/requires.txt" "setup.cfg"; do -sed -i "s/backports.functools_lru_cache$/backports.functools_lru_cache ; python_version < '3.3'/" \ -"${file}" -done %build %python_build ++ cheroot-7.0.0.tar.gz -> cheroot-8.2.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cheroot-7.0.0/.circleci/config.yml new/cheroot-8.2.1/.circleci/config.yml --- old/cheroot-7.0.0/.circleci/config.yml 2019-09-26 22:59:15.0 +0200 +++ new/cheroot-8.2.1/.circleci/config.yml 2019-10-18 02:59:30.0 +0200 @@ -35,7 +35,7 @@ - checkout - run: name: Run tests -command: tox -e py27,py34,py35,py36,py37,pypy3 -- -p no:sugar +command: tox -e py27,py34,py35,py36,py37,pypy3 -- -p no:sugar $(circleci tests glob **/test/**.py | circleci tests split --split-by=timings | grep -v '__init__.py') # Environment variables for py-cryptography library environment: LDFLAGS: "-L/usr/local/opt/openssl/lib" @@ -51,7 +51,7 @@ steps: - checkout - run: pip install tox -- run: tox -e py27,py34,py35,py36,py37 +- run: tox -e py27,py34,py35,py36,py37 -- $(circleci tests glob **/test/**.py | circleci tests split --split-by=timings | grep -v '__init__.py') workflows: version: 2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cheroot-7.0.0/.github/FUNDING.yml new/cheroot-8.2.1/.github/FUNDING.yml --- old/cheroot-7.0.0/.github/FUNDING.yml 1970-01-01 01:00:00.0 +0100 +++ new/cheroot-8.2.1/.github/FUNDING.yml 2019-10-18 02:59:30.0 +0200 @@ -0,0 +1,14 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +- jaraco +- webknjaz +# patreon: # Replace with a single Patreon username +# open_collective: # Replace with a single Open Collective username +# ko_fi: # Replace with a single Ko-fi username +tidelift: pypi/Cheroot # A single Tidelift platform-name/package-name e.g., npm/babel +# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +# liberapay: #
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2019-10-09 15:17:42 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.2352 (New) Package is "python-cheroot" Wed Oct 9 15:17:42 2019 rev:8 rq:734980 version:7.0.0 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2019-09-17 13:35:42.445859138 +0200 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.2352/python-cheroot.changes 2019-10-09 15:17:45.416761145 +0200 @@ -1,0 +2,8 @@ +Fri Oct 4 11:09:50 UTC 2019 - Marketa Calabkova + +- update to 7.0.0 + * Refactored “open URL” behavior in webtest to rely on retry_call. + * backports.functools_lru_cache is only required on Python 3.2 and earlier. + * Fix race condition in threadpool shrink code. + +--- Old: cheroot-6.5.8.tar.gz New: cheroot-7.0.0.tar.gz Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.hUaLKn/_old 2019-10-09 15:17:46.976757127 +0200 +++ /var/tmp/diff_new_pack.hUaLKn/_new 2019-10-09 15:17:46.980757117 +0200 @@ -19,17 +19,17 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pypi_name cheroot Name: python-%{pypi_name} -Version:6.5.8 +Version:7.0.0 Release:0 Summary:Pure-python HTTP server License:BSD-3-Clause -Group: Development/Languages/Python URL:https://github.com/cherrypy/%{pypi_name} Source: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildRequires: %{python_module jaraco.functools} BuildRequires: %{python_module more-itertools >= 2.6} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest >= 2.8} -BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest-mock >= 1.10.4} BuildRequires: %{python_module requests-unixsocket} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools_scm >= 1.15.0} @@ -40,8 +40,12 @@ BuildRequires: fdupes BuildRequires: python-backports.functools_lru_cache BuildRequires: python-rpm-macros +Requires: python-jaraco.functools Requires: python-more-itertools >= 2.6 Requires: python-six >= 1.11.0 +%ifpython2 +Requires: python-backports.functools_lru_cache +%endif # the package and distribution name is lowercase-cheroot, # but PyPI claims the name is capital-Cheroot # *smacks head against desk* ++ cheroot-6.5.8.tar.gz -> cheroot-7.0.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cheroot-6.5.8/.appveyor.yml new/cheroot-7.0.0/.appveyor.yml --- old/cheroot-6.5.8/.appveyor.yml 2019-09-05 11:21:53.0 +0200 +++ new/cheroot-7.0.0/.appveyor.yml 2019-09-26 22:59:15.0 +0200 @@ -15,8 +15,9 @@ - "mklink /d \"C:\\Program Files\\Python\" %PYTHON%" - "SET PYTHON=\"C:\\Program Files\\Python\"" - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" + - "python -m pip install --upgrade --force-reinstall virtualenv" - "python -m pip install tox" - - "python -m tox --notest" + - "python -m tox --notest -vv" before_build: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cheroot-6.5.8/.gitattributes new/cheroot-7.0.0/.gitattributes --- old/cheroot-6.5.8/.gitattributes2019-09-05 11:21:53.0 +0200 +++ new/cheroot-7.0.0/.gitattributes2019-09-26 22:59:15.0 +0200 @@ -3,3 +3,5 @@ # Needed for setuptools-scm-git-archive .git_archival.txt export-subst + +CHANGES.rstmerge=union diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cheroot-6.5.8/.gitignore new/cheroot-7.0.0/.gitignore --- old/cheroot-6.5.8/.gitignore2019-09-05 11:21:53.0 +0200 +++ new/cheroot-7.0.0/.gitignore2019-09-26 22:59:15.0 +0200 @@ -176,3 +176,6 @@ # mypy .mypy_cache + +# pip wheel dist info +pip-wheel-metadata/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cheroot-6.5.8/.travis.yml new/cheroot-7.0.0/.travis.yml --- old/cheroot-6.5.8/.travis.yml 2019-09-05 11:21:53.0 +0200 +++ new/cheroot-7.0.0/.travis.yml 2019-09-26 22:59:15.0 +0200 @@ -10,6 +10,12 @@ - 3.6 - pypy3 +env: + global: +GIT_INSTALLER_DIR_PATH: ${HOME}/.git-installers +GIT_VERSION: 2.20.1 +PYTHON_INSTALLER_DIR_PATH: ${HOME}/.python-installers + _base_envs: - _lint stage: _lint_name lint @@ -50,8 +56,14
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2019-09-17 13:35:41 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.7948 (New) Package is "python-cheroot" Tue Sep 17 13:35:41 2019 rev:7 rq:730490 version:6.5.8 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2019-09-07 11:31:47.154446547 +0200 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.7948/python-cheroot.changes 2019-09-17 13:35:42.445859138 +0200 @@ -1,0 +2,13 @@ +Fri Sep 13 04:50:22 UTC 2019 - Thomas Bechtold + +- update to 6.5.8: + - Fix socket.SO_PEERCRED constant fallback value under PowerPC. + - Fix race condition when toggling stats counting in the middle +of request processing. + - Improve post Python 3.9 compatibility checks. + - Fix support of abstract namespace sockets + - Fix HTTP parser to return 400 on invalid major-only HTTP version +in Request-Line. +- Drop cheroot_fix_so_peercred_ppc.patch . Applied upstream. + +--- Old: cheroot-6.5.5.tar.gz cheroot_fix_so_peercred_ppc.patch New: cheroot-6.5.8.tar.gz Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.dESQWF/_old 2019-09-17 13:35:42.877859069 +0200 +++ /var/tmp/diff_new_pack.dESQWF/_new 2019-09-17 13:35:42.877859069 +0200 @@ -19,14 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pypi_name cheroot Name: python-%{pypi_name} -Version:6.5.5 +Version:6.5.8 Release:0 Summary:Pure-python HTTP server License:BSD-3-Clause Group: Development/Languages/Python URL:https://github.com/cherrypy/%{pypi_name} Source: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz -Patch1: cheroot_fix_so_peercred_ppc.patch BuildRequires: %{python_module more-itertools >= 2.6} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest >= 2.8} ++ cheroot-6.5.5.tar.gz -> cheroot-6.5.8.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cheroot-6.5.5/.appveyor.yml new/cheroot-6.5.8/.appveyor.yml --- old/cheroot-6.5.5/.appveyor.yml 2018-12-20 18:15:21.0 +0100 +++ new/cheroot-6.5.8/.appveyor.yml 2019-09-05 11:21:53.0 +0200 @@ -30,7 +30,7 @@ version: '{build}' -after_test: +on_finish: - ps: | $wc = New-Object 'System.Net.WebClient' $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\junit-test-results.xml)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cheroot-6.5.5/.github/ISSUE_TEMPLATE.md new/cheroot-6.5.8/.github/ISSUE_TEMPLATE.md --- old/cheroot-6.5.5/.github/ISSUE_TEMPLATE.md 2019-02-04 21:44:20.0 +0100 +++ new/cheroot-6.5.8/.github/ISSUE_TEMPLATE.md 2019-09-05 11:21:53.0 +0200 @@ -1,12 +1,12 @@ ❓ **I'm submitting a ...** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cheroot-6.5.5/.github/workflows/python-linters.yml new/cheroot-6.5.8/.github/workflows/python-linters.yml --- old/cheroot-6.5.5/.github/workflows/python-linters.yml 1970-01-01 01:00:00.0 +0100 +++ new/cheroot-6.5.8/.github/workflows/python-linters.yml 2019-09-05 11:21:53.0 +0200 @@ -0,0 +1,45 @@ +name: Code quality + +on: + push: + pull_request: + schedule: + # Run every Friday at 18:02 UTC + # https://crontab.guru/#2_18_*_*_5 + - cron: 2 18 * * 5 + +jobs: + linters: +runs-on: ${{ matrix.os }} +strategy: + # max-parallel: 5 + matrix: +python-version: +- 3.7 +os: +- ubuntu-18.04 +env: +- TOXENV: pre-commit +- TOXENV: setup-check +# - TOXENV: pre-commit-failing +steps: +- uses: actions/checkout@master +- name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: +version: ${{ matrix.python-version }} +- name: Install tox + run: | +python -m pip install --upgrade tox +- name: 'Initialize tox envs: ${{ matrix.env.TOXENV }}' + run: | +python -m tox --parallel auto --notest + env: ${{ matrix.env }} +- name: Initialize pre-commit envs if needed + run: | +test -d .tox/pre-commit && .tox/pre-commit/bin/python -m pre_commit install-hooks || : +test -d .tox/pre-commit-failing &&
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2019-09-07 11:31:45 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.7948 (New) Package is "python-cheroot" Sat Sep 7 11:31:45 2019 rev:6 rq:728681 version:6.5.5 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2019-07-26 12:39:42.525931079 +0200 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.7948/python-cheroot.changes 2019-09-07 11:31:47.154446547 +0200 @@ -1,0 +2,12 @@ +Thu Sep 5 09:09:44 UTC 2019 - Michel Normand + +- Add cheroot_fix_so_peercred_ppc.patch + to solve python 2.7 tests failures for PowerPC, boo#1147151 + +--- +Mon Sep 2 18:49:49 UTC 2019 - Dan Čermák + +- Drop dependency on backports.functools_lru_cache for the python3 subpackage + This fixes bsc#1149124 + +--- New: cheroot_fix_so_peercred_ppc.patch Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.IgIufy/_old 2019-09-07 11:31:48.166446421 +0200 +++ /var/tmp/diff_new_pack.IgIufy/_new 2019-09-07 11:31:48.202446416 +0200 @@ -17,14 +17,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-cheroot +%define pypi_name cheroot +Name: python-%{pypi_name} Version:6.5.5 Release:0 Summary:Pure-python HTTP server License:BSD-3-Clause Group: Development/Languages/Python -URL:https://github.com/cherrypy/cheroot -Source: https://files.pythonhosted.org/packages/source/c/cheroot/cheroot-%{version}.tar.gz +URL:https://github.com/cherrypy/%{pypi_name} +Source: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Patch1: cheroot_fix_so_peercred_ppc.patch BuildRequires: %{python_module more-itertools >= 2.6} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest >= 2.8} @@ -55,9 +57,13 @@ Cheroot is the pure-Python HTTP server used by CherryPy. %prep -%setup -q -n cheroot-%{version} +%autosetup -n cheroot-%{version} -p1 # do not require cov/xdist/etc sed -i -e '/addopts/d' pytest.ini +for file in "%{pypi_name}.egg-info/requires.txt" "setup.cfg"; do +sed -i "s/backports.functools_lru_cache$/backports.functools_lru_cache ; python_version < '3.3'/" \ +"${file}" +done %build %python_build ++ cheroot_fix_so_peercred_ppc.patch ++ commit 621f4ee2c6cda819263be7b26f352abe879b3cd3 Author: Sviatoslav Sydorenko Date: Wed Sep 4 23:41:18 2019 +0200 Fix socket.SO_PEERCRED constant fallback @ PowerPC Resolves #222 Refs: https://bugzilla.redhat.com/show_bug.cgi?id=1733967 https://www.mail-archive.com/devel@lists.fedoraproject.org/msg136822.html http://ftp.linuxfoundation.org/pub/lsb/lsb-openjdk/openjdk7-lsb-overrides/lsb_flags.h https://git.wukl.net/wukl/uefi-musl/blob/29ec7677a73a5227badbb1064205be09e707e466/arch/powerpc/bits/socket.h --- cheroot/_compat.py |3 +++ cheroot/server.py |3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) Index: cheroot-6.5.5/cheroot/_compat.py === --- cheroot-6.5.5.orig/cheroot/_compat.py +++ cheroot-6.5.5/cheroot/_compat.py @@ -24,6 +24,9 @@ IS_WINDOWS = SYS_PLATFORM == 'Windows' IS_LINUX = SYS_PLATFORM == 'Linux' IS_MACOS = SYS_PLATFORM == 'Darwin' +PLATFORM_ARCH = platform.machine() +IS_PPC = PLATFORM_ARCH.startswith('ppc') + if six.PY3: def ntob(n, encoding='ISO-8859-1'): Index: cheroot-6.5.5/cheroot/server.py === --- cheroot-6.5.5.orig/cheroot/server.py +++ cheroot-6.5.5/cheroot/server.py @@ -86,6 +86,7 @@ from six.moves import urllib from . import errors, __version__ from ._compat import bton, ntou +from ._compat import IS_PPC from .workers import threadpool from .makefile import MakeFile, StreamWriter @@ -142,7 +143,7 @@ if not hasattr(socket, 'SO_PEERCRED'): which case the getsockopt() will hopefully fail. The arch specific value could be derived from platform.processor() """ -socket.SO_PEERCRED = 17 +socket.SO_PEERCRED = 21 if IS_PPC else 17 LF = b'\n'
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2019-07-26 12:39:40 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.4126 (New) Package is "python-cheroot" Fri Jul 26 12:39:40 2019 rev:5 rq:718251 version:6.5.5 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2019-06-18 14:45:00.545737682 +0200 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.4126/python-cheroot.changes 2019-07-26 12:39:42.525931079 +0200 @@ -9 +9 @@ -- Update to 6.5.5: +- Update to 6.5.5 bsc#1142582: Other differences: --
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2019-06-18 14:44:59 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.4811 (New) Package is "python-cheroot" Tue Jun 18 14:44:59 2019 rev:4 rq:707057 version:6.5.5 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2019-05-16 21:57:25.134853176 +0200 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.4811/python-cheroot.changes 2019-06-18 14:45:00.545737682 +0200 @@ -1,0 +2,5 @@ +Sun Jun 2 21:15:22 UTC 2019 - Jan Engelhardt + +- Ensure neutrality of description. + +--- Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.KBNtBw/_old 2019-06-18 14:45:01.117737624 +0200 +++ /var/tmp/diff_new_pack.KBNtBw/_new 2019-06-18 14:45:01.121737624 +0200 @@ -20,7 +20,7 @@ Name: python-cheroot Version:6.5.5 Release:0 -Summary:Highly-optimized, pure-python HTTP server +Summary:Pure-python HTTP server License:BSD-3-Clause Group: Development/Languages/Python URL:https://github.com/cherrypy/cheroot @@ -52,7 +52,7 @@ %python_subpackages %description -Cheroot is the high-performance, pure-Python HTTP server used by CherryPy. +Cheroot is the pure-Python HTTP server used by CherryPy. %prep %setup -q -n cheroot-%{version}
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2019-05-16 21:57:22 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.5148 (New) Package is "python-cheroot" Thu May 16 21:57:22 2019 rev:3 rq:702861 version:6.5.5 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2019-03-08 11:00:38.024548152 +0100 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.5148/python-cheroot.changes 2019-05-16 21:57:25.134853176 +0200 @@ -1,0 +2,10 @@ +Tue May 14 11:57:52 CEST 2019 - Matej Cepl + +- Update to 6.5.5: + - Sockets now collect statistics (bytes read and written) on +Python 3 same as Python 2. + - Ignore OpenSSL's 1.1+ Error 0 under any Python while wrapping +a socket. +- Switch off failing tests to avoid gh#cherrypy/cheroot#200 + +--- Old: cheroot-6.5.4.tar.gz New: cheroot-6.5.5.tar.gz Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.yWu6FT/_old 2019-05-16 21:57:25.714852923 +0200 +++ /var/tmp/diff_new_pack.yWu6FT/_new 2019-05-16 21:57:25.718852921 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cheroot -Version:6.5.4 +Version:6.5.5 Release:0 Summary:Highly-optimized, pure-python HTTP server License:BSD-3-Clause @@ -67,7 +67,8 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v +# Exclusions because of gh#cherrypy/cheroot#200 +%pytest -k 'not test_tls_client_auth' %files %{python_files} %license LICENSE.md ++ cheroot-6.5.4.tar.gz -> cheroot-6.5.5.tar.gz ++ 2067 lines of diff (skipped)
commit python-cheroot for openSUSE:Factory
Hello community, here is the log from the commit of package python-cheroot for openSUSE:Factory checked in at 2019-03-08 11:00:36 Comparing /work/SRC/openSUSE:Factory/python-cheroot (Old) and /work/SRC/openSUSE:Factory/.python-cheroot.new.28833 (New) Package is "python-cheroot" Fri Mar 8 11:00:36 2019 rev:2 rq:681736 version:6.5.4 Changes: --- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes 2017-04-28 10:45:35.468354963 +0200 +++ /work/SRC/openSUSE:Factory/.python-cheroot.new.28833/python-cheroot.changes 2019-03-08 11:00:38.024548152 +0100 @@ -1,0 +2,7 @@ +Tue Mar 5 12:26:41 UTC 2019 - Tomáš Chvátal + +- Update to 6.5.4: + * too many changes to enumerate see CHANGES.rst +- Make sure to execute testsuite + +--- Old: cheroot-5.4.0.tar.gz New: cheroot-6.5.4.tar.gz Other differences: -- ++ python-cheroot.spec ++ --- /var/tmp/diff_new_pack.bypZan/_old 2019-03-08 11:00:39.932547848 +0100 +++ /var/tmp/diff_new_pack.bypZan/_new 2019-03-08 11:00:39.964547842 +0100 @@ -1,7 +1,7 @@ # -# spec file for package python-Cheroot +# spec file for package python-cheroot # -# Copyright (c) 2017 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 @@ -12,28 +12,43 @@ # 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-cheroot -Version:5.4.0 +Version:6.5.4 Release:0 -License:BSD-3-Clause Summary:Highly-optimized, pure-python HTTP server -Url:https://github.com/cherrypy/cheroot +License:BSD-3-Clause Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/C/Cheroot/cheroot-%{version}.tar.gz -BuildRequires: python-rpm-macros +URL:https://github.com/cherrypy/cheroot +Source: https://files.pythonhosted.org/packages/source/c/cheroot/cheroot-%{version}.tar.gz +BuildRequires: %{python_module more-itertools >= 2.6} +BuildRequires: %{python_module pyOpenSSL} +BuildRequires: %{python_module pytest >= 2.8} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module requests-unixsocket} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools_scm >= 1.15.0} +BuildRequires: %{python_module setuptools_scm_git_archive >= 1.0} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module six >= 1.11.0} +BuildRequires: %{python_module trustme} +BuildRequires: fdupes +BuildRequires: python-backports.functools_lru_cache +BuildRequires: python-rpm-macros +Requires: python-more-itertools >= 2.6 +Requires: python-six >= 1.11.0 # the package and distribution name is lowercase-cheroot, # but PyPI claims the name is capital-Cheroot # *smacks head against desk* Provides: python-Cheroot = %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - +%ifpython2 +Requires: python-backports.functools_lru_cache +%endif %python_subpackages %description @@ -41,18 +56,23 @@ %prep %setup -q -n cheroot-%{version} +# do not require cov/xdist/etc +sed -i -e '/addopts/d' pytest.ini %build %python_build %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -#%%check -# apparently the test suite is nonfunctional and is exercised by CherryPy only +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %files %{python_files} -%defattr(-,root,root,-) +%license LICENSE.md +%doc README.rst CHANGES.rst +%python3_only %{_bindir}/cheroot %{python_sitelib}/* %changelog ++ cheroot-5.4.0.tar.gz -> cheroot-6.5.4.tar.gz ++ 10720 lines of diff (skipped)