From d6f8ce83f43fb57f2790a5ce48c371d93a347dfebcbcde16dc0855f16454c6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 29 Jun 2021 08:57:01 +0000 Subject: [PATCH 1/3] - update to 20.1.0 - gevent and evenlet are BuildRequires for check - add suggests * document WEB_CONCURRENCY is set by, at least, Heroku * capture peername from accept: Avoid calls to getpeername by capturing the peer name returned by accept * log a warning when a worker was terminated due to a signal * fix tornado usage with latest versions of Django * add support for python -m gunicorn * fix systemd socket activation example * allows to set wsgi application in configg file using wsgi_app * document --timeout = 0 * always close a connection when the number of requests exceeds the max requests * Disable keepalive during graceful shutdown * kill tasks in the gthread workers during upgrade * fix latency in gevent worker when accepting new requests * fix file watcher: handle errors when new worker reboot and ensure the list of files is kept * document the default name and path of the configuration file * document how variable impact configuration * document the $PORT environment variable * added milliseconds option to request_time in access_log * added PIP requirements to be used for example * remove version from the Server header * fix sendfile: use socket.sendfile instead of os.sendfile * reloader: use absolute path to prevent empty to prevent0 InotifyError when a file is added to the working directory * Add --print-config option to print the resolved settings at startup. * remove the --log-dict-config CLI flag because it never had a working format OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gunicorn?expand=0&rev=48 --- gunicorn-20.0.4.tar.gz | 3 --- gunicorn-20.1.0.tar.gz | 3 +++ python-gunicorn.changes | 33 +++++++++++++++++++++++++++++++++ python-gunicorn.spec | 12 +++++++++--- 4 files changed, 45 insertions(+), 6 deletions(-) delete mode 100644 gunicorn-20.0.4.tar.gz create mode 100644 gunicorn-20.1.0.tar.gz diff --git a/gunicorn-20.0.4.tar.gz b/gunicorn-20.0.4.tar.gz deleted file mode 100644 index 6061abb..0000000 --- a/gunicorn-20.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1904bb2b8a43658807108d59c3f3d56c2b6121a701161de0ddf9ad140073c626 -size 373841 diff --git a/gunicorn-20.1.0.tar.gz b/gunicorn-20.1.0.tar.gz new file mode 100644 index 0000000..3a2065f --- /dev/null +++ b/gunicorn-20.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8 +size 370601 diff --git a/python-gunicorn.changes b/python-gunicorn.changes index 83ca0f5..4920a54 100644 --- a/python-gunicorn.changes +++ b/python-gunicorn.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Tue Jun 29 08:52:40 UTC 2021 - Ondřej Súkup + +- update to 20.1.0 +- gevent and evenlet are BuildRequires for check +- add suggests + * document WEB_CONCURRENCY is set by, at least, Heroku + * capture peername from accept: Avoid calls to getpeername by capturing + the peer name returned by accept + * log a warning when a worker was terminated due to a signal + * fix tornado usage with latest versions of Django + * add support for python -m gunicorn + * fix systemd socket activation example + * allows to set wsgi application in configg file using wsgi_app + * document --timeout = 0 + * always close a connection when the number of requests exceeds the max requests + * Disable keepalive during graceful shutdown + * kill tasks in the gthread workers during upgrade + * fix latency in gevent worker when accepting new requests + * fix file watcher: handle errors when new worker reboot and ensure + the list of files is kept + * document the default name and path of the configuration file + * document how variable impact configuration + * document the $PORT environment variable + * added milliseconds option to request_time in access_log + * added PIP requirements to be used for example + * remove version from the Server header + * fix sendfile: use socket.sendfile instead of os.sendfile + * reloader: use absolute path to prevent empty to prevent0 InotifyError + when a file is added to the working directory + * Add --print-config option to print the resolved settings at startup. + * remove the --log-dict-config CLI flag because it never had a working format + ------------------------------------------------------------------- Fri Dec 4 01:58:26 UTC 2020 - Benjamin Greiner diff --git a/python-gunicorn.spec b/python-gunicorn.spec index bbd94ff..269d41a 100644 --- a/python-gunicorn.spec +++ b/python-gunicorn.spec @@ -1,7 +1,7 @@ # # spec file for package python-gunicorn # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,13 +19,15 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-gunicorn -Version: 20.0.4 +Version: 20.1.0 Release: 0 Summary: WSGI HTTP Server for UNIX License: MIT Group: Development/Languages/Python URL: https://gunicorn.org Source: https://files.pythonhosted.org/packages/source/g/gunicorn/gunicorn-%{version}.tar.gz +BuildRequires: %{python_module eventlet} +BuildRequires: %{python_module gevent} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 3.0} BuildRequires: fdupes @@ -34,6 +36,11 @@ BuildRequires: python3-Sphinx Requires: python-setuptools >= 3.0 Requires(post): update-alternatives Requires(postun): update-alternatives +Suggests: %{python_module evenlet} +Suggests: %{python_module gevent} +Suggests: %{python_module gthread} +Suggests: %{python_module setproctitle} +Suggests: %{python_module tornado} BuildArch: noarch %python_subpackages @@ -90,4 +97,3 @@ sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html %doc README.rst NOTICE THANKS docs/build/html %changelog - From d056c0c80983eb0ea8db7f9026ad37e8b8312ae85d309d528f5904b23deaaa19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 29 Jun 2021 09:19:31 +0000 Subject: [PATCH 2/3] fix OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gunicorn?expand=0&rev=49 --- python-gunicorn.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-gunicorn.spec b/python-gunicorn.spec index 269d41a..57f082f 100644 --- a/python-gunicorn.spec +++ b/python-gunicorn.spec @@ -36,11 +36,11 @@ BuildRequires: python3-Sphinx Requires: python-setuptools >= 3.0 Requires(post): update-alternatives Requires(postun): update-alternatives -Suggests: %{python_module evenlet} -Suggests: %{python_module gevent} -Suggests: %{python_module gthread} -Suggests: %{python_module setproctitle} -Suggests: %{python_module tornado} +Suggests: python-evenlet +Suggests: python-gevent +Suggests: python-gthread +Suggests: python-setproctitle +Suggests: python-tornado BuildArch: noarch %python_subpackages From 3ce04a9bcff529e11350c3e14d656abeb68501f06eacf2e032a6e54dec2e12eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 7 Jul 2021 08:43:45 +0000 Subject: [PATCH 3/3] Accepting request 904227 from home:alarrosa:branches:devel:languages:python - Add a _multibuild file to separate the tests in another build in order to break a cycle between: python-Django, python-aiohttp, python-eventlet, python-geoip2, python-gunicorn, python-paramiko, python-pyzmq and python-semantic_version. OBS-URL: https://build.opensuse.org/request/show/904227 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gunicorn?expand=0&rev=50 --- _multibuild | 3 +++ python-gunicorn.changes | 8 ++++++++ python-gunicorn.spec | 33 ++++++++++++++++++++++++--------- 3 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-gunicorn.changes b/python-gunicorn.changes index 4920a54..458c7f0 100644 --- a/python-gunicorn.changes +++ b/python-gunicorn.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jul 5 15:12:53 UTC 2021 - Antonio Larrosa + +- Add a _multibuild file to separate the tests in another build + in order to break a cycle between: python-Django, python-aiohttp, + python-eventlet, python-geoip2, python-gunicorn, python-paramiko, + python-pyzmq and python-semantic_version. + ------------------------------------------------------------------- Tue Jun 29 08:52:40 UTC 2021 - Ondřej Súkup diff --git a/python-gunicorn.spec b/python-gunicorn.spec index 57f082f..2cee756 100644 --- a/python-gunicorn.spec +++ b/python-gunicorn.spec @@ -1,5 +1,5 @@ # -# spec file for package python-gunicorn +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -16,9 +16,17 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-gunicorn +Name: python-gunicorn%{psuffix} Version: 20.1.0 Release: 0 Summary: WSGI HTTP Server for UNIX @@ -26,16 +34,19 @@ License: MIT Group: Development/Languages/Python URL: https://gunicorn.org Source: https://files.pythonhosted.org/packages/source/g/gunicorn/gunicorn-%{version}.tar.gz -BuildRequires: %{python_module eventlet} -BuildRequires: %{python_module gevent} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 3.0} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx +%if %{with test} +BuildRequires: %{python_module eventlet} +BuildRequires: %{python_module gevent >= 1.4} +BuildRequires: %{python_module gunicorn} +BuildRequires: %{python_module pytest} +%endif Requires: python-setuptools >= 3.0 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Suggests: python-evenlet Suggests: python-gevent Suggests: python-gthread @@ -69,6 +80,12 @@ sed -i -e '/cover/d' requirements_test.txt # do not check coverage sed -i -e 's/--cov[^ ]*//' -e 's/--cov-report[^ ]*//' setup.cfg +%if %{with test} +%check +%pytest + +%else # without test + %build %python_build sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html @@ -78,9 +95,6 @@ sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html %python_clone -a %{buildroot}%{_bindir}/gunicorn %python_expand %fdupes %{buildroot}%{$python_sitelib} -%check -%pytest - %post %python_install_alternative gunicorn @@ -95,5 +109,6 @@ sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html %files -n python-gunicorn-doc %license LICENSE %doc README.rst NOTICE THANKS docs/build/html +%endif %changelog