summaryrefslogtreecommitdiff
path: root/www/py-gunicorn
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2019-11-20 11:32:32 +0000
committeradam <adam@pkgsrc.org>2019-11-20 11:32:32 +0000
commita4c933949c90021323e2dad59ed63914a538652f (patch)
treeabee488ad3fadf38ea3c11c3038cfe848acd13b8 /www/py-gunicorn
parent8f54612eb17daec125c25481d4424f557abd163c (diff)
downloadpkgsrc-a4c933949c90021323e2dad59ed63914a538652f.tar.gz
py-gunicorn: updated to 20.0.0
20.0: - Fixed `fdopen` `RuntimeWarning` in Python 3.8 - Added check and exception for str type on value in Response process_headers method. - Ensure WSGI header value is string before conducting regex search on it. - Added pypy3 to list of tested environments - Grouped `StopIteration` and `KeyboardInterrupt` exceptions with same body together in Arbiter.run() - Added `setproctitle` module to `extras_require` in setup.py - Avoid unnecessary chown of temporary files - Logging: Handle auth type case insensitively - Removed `util.import_module` - Removed fallback for `types.SimpleNamespace` in tests utils - Use `SourceFileLoader` instead instead of `execfile_` - Use `importlib` instead of `__import__` and eval` - Fixed eventlet patching - Added optional `datadog <https://www.datadoghq.com>`_ tags for statsd metrics - Header values now are encoded using latin-1, not ascii. - Rewritten `parse_address` util added test - Removed redundant super() arguments - Simplify `futures` import in gthread module - Fixed worker_connections` setting to also affects the Gthread worker type - Fixed setting max_requests - Bump minimum Eventlet and Gevent versions to 0.24 and 1.4 - Use Python default SSL cipher list by default - handle `wsgi.input_terminated` extension - Simplify Paste Deployment documentation - Fix root logging: root and logger are same level. - Fixed typo in ssl_version documentation - Documented systemd deployement unit examples - Added systemd sd_notify support - Fixed typo in gthread.py - Added `tornado <https://www.tornadoweb.org/>`_ 5 and 6 support - Declare our setuptools dependency - Added support to `--bind` to open file descriptors - Document how to serve WSGI app modules from Gunicorn - Provide guidance on X-Forwarded-For access log in documentation - Add support for named constants in the `--ssl-version` flag - Clarify log format usage of header & environment in documentation - Fixed systemd documentation to properly setup gunicorn unix socket - Prevent removal unix socket for reuse_port - Fix `ResourceWarning` when reading a Python config module - Remove unnecessary call to dict keys method - Support str and bytes for UNIX socket addresses - fixed `InotifyReloadeder`: handle `module.__file__` is None - `/dev/shm` as a convenient alternative to making your own tmpfs mount in fchmod FAQ - fix examples to work on python3 - Fix typo in `--max-requests` documentation - Clear tornado ioloop before os.fork - Miscellaneous fixes and improvement for linting using Pylint Breaking Change - Removed gaiohttp worker - Drop support for Python 2.x - Drop support for EOL Python 3.2 and 3.3
Diffstat (limited to 'www/py-gunicorn')
-rw-r--r--www/py-gunicorn/ALTERNATIVES1
-rw-r--r--www/py-gunicorn/Makefile9
-rw-r--r--www/py-gunicorn/PLIST27
-rw-r--r--www/py-gunicorn/distinfo11
-rw-r--r--www/py-gunicorn/patches/patch-requirements__test.txt13
5 files changed, 14 insertions, 47 deletions
diff --git a/www/py-gunicorn/ALTERNATIVES b/www/py-gunicorn/ALTERNATIVES
index 338deea4067..22a4220be07 100644
--- a/www/py-gunicorn/ALTERNATIVES
+++ b/www/py-gunicorn/ALTERNATIVES
@@ -1,2 +1 @@
bin/gunicorn @PREFIX@/bin/gunicorn-@PYVERSSUFFIX@
-bin/gunicorn_paster @PREFIX@/bin/gunicorn_paster-@PYVERSSUFFIX@
diff --git a/www/py-gunicorn/Makefile b/www/py-gunicorn/Makefile
index f8ed9b0e817..2d07bb7ea1f 100644
--- a/www/py-gunicorn/Makefile
+++ b/www/py-gunicorn/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2019/07/08 10:36:27 nia Exp $
+# $NetBSD: Makefile,v 1.16 2019/11/20 11:32:32 adam Exp $
-DISTNAME= gunicorn-19.9.0
+DISTNAME= gunicorn-20.0.0
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=g/gunicorn/}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -15,10 +15,11 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=2.4.0:../../devel/py-test-cov
USE_LANGUAGES= # none
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
- ${MV} gunicorn gunicorn-${PYVERSSUFFIX} && \
- ${MV} gunicorn_paster gunicorn_paster-${PYVERSSUFFIX} || ${TRUE}
+ ${MV} gunicorn gunicorn-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-gunicorn/PLIST b/www/py-gunicorn/PLIST
index b1627cf0490..ae1d0ad510c 100644
--- a/www/py-gunicorn/PLIST
+++ b/www/py-gunicorn/PLIST
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST,v 1.10 2018/07/04 03:43:12 adam Exp $
+@comment $NetBSD: PLIST,v 1.11 2019/11/20 11:32:32 adam Exp $
bin/gunicorn-${PYVERSSUFFIX}
-bin/gunicorn_paster-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -11,9 +10,6 @@ ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/gunicorn/__init__.py
${PYSITELIB}/gunicorn/__init__.pyc
${PYSITELIB}/gunicorn/__init__.pyo
-${PYSITELIB}/gunicorn/_compat.py
-${PYSITELIB}/gunicorn/_compat.pyc
-${PYSITELIB}/gunicorn/_compat.pyo
${PYSITELIB}/gunicorn/app/__init__.py
${PYSITELIB}/gunicorn/app/__init__.pyc
${PYSITELIB}/gunicorn/app/__init__.pyo
@@ -29,9 +25,6 @@ ${PYSITELIB}/gunicorn/app/wsgiapp.pyo
${PYSITELIB}/gunicorn/arbiter.py
${PYSITELIB}/gunicorn/arbiter.pyc
${PYSITELIB}/gunicorn/arbiter.pyo
-${PYSITELIB}/gunicorn/argparse_compat.py
-${PYSITELIB}/gunicorn/argparse_compat.pyc
-${PYSITELIB}/gunicorn/argparse_compat.pyo
${PYSITELIB}/gunicorn/config.py
${PYSITELIB}/gunicorn/config.pyc
${PYSITELIB}/gunicorn/config.pyo
@@ -47,9 +40,6 @@ ${PYSITELIB}/gunicorn/glogging.pyo
${PYSITELIB}/gunicorn/http/__init__.py
${PYSITELIB}/gunicorn/http/__init__.pyc
${PYSITELIB}/gunicorn/http/__init__.pyo
-${PYSITELIB}/gunicorn/http/_sendfile.py
-${PYSITELIB}/gunicorn/http/_sendfile.pyc
-${PYSITELIB}/gunicorn/http/_sendfile.pyo
${PYSITELIB}/gunicorn/http/body.py
${PYSITELIB}/gunicorn/http/body.pyc
${PYSITELIB}/gunicorn/http/body.pyo
@@ -80,15 +70,12 @@ ${PYSITELIB}/gunicorn/pidfile.pyo
${PYSITELIB}/gunicorn/reloader.py
${PYSITELIB}/gunicorn/reloader.pyc
${PYSITELIB}/gunicorn/reloader.pyo
-${PYSITELIB}/gunicorn/selectors.py
-${PYSITELIB}/gunicorn/selectors.pyc
-${PYSITELIB}/gunicorn/selectors.pyo
-${PYSITELIB}/gunicorn/six.py
-${PYSITELIB}/gunicorn/six.pyc
-${PYSITELIB}/gunicorn/six.pyo
${PYSITELIB}/gunicorn/sock.py
${PYSITELIB}/gunicorn/sock.pyc
${PYSITELIB}/gunicorn/sock.pyo
+${PYSITELIB}/gunicorn/socketfromfd.py
+${PYSITELIB}/gunicorn/socketfromfd.pyc
+${PYSITELIB}/gunicorn/socketfromfd.pyo
${PYSITELIB}/gunicorn/systemd.py
${PYSITELIB}/gunicorn/systemd.pyc
${PYSITELIB}/gunicorn/systemd.pyo
@@ -98,18 +85,12 @@ ${PYSITELIB}/gunicorn/util.pyo
${PYSITELIB}/gunicorn/workers/__init__.py
${PYSITELIB}/gunicorn/workers/__init__.pyc
${PYSITELIB}/gunicorn/workers/__init__.pyo
-${PYSITELIB}/gunicorn/workers/_gaiohttp.py
-${PLIST.py3x}${PYSITELIB}/gunicorn/workers/_gaiohttp.pyc
-${PLIST.py3x}${PYSITELIB}/gunicorn/workers/_gaiohttp.pyo
${PYSITELIB}/gunicorn/workers/base.py
${PYSITELIB}/gunicorn/workers/base.pyc
${PYSITELIB}/gunicorn/workers/base.pyo
${PYSITELIB}/gunicorn/workers/base_async.py
${PYSITELIB}/gunicorn/workers/base_async.pyc
${PYSITELIB}/gunicorn/workers/base_async.pyo
-${PYSITELIB}/gunicorn/workers/gaiohttp.py
-${PYSITELIB}/gunicorn/workers/gaiohttp.pyc
-${PYSITELIB}/gunicorn/workers/gaiohttp.pyo
${PYSITELIB}/gunicorn/workers/geventlet.py
${PYSITELIB}/gunicorn/workers/geventlet.pyc
${PYSITELIB}/gunicorn/workers/geventlet.pyo
diff --git a/www/py-gunicorn/distinfo b/www/py-gunicorn/distinfo
index e1c9ae83b7c..d2896fe5de3 100644
--- a/www/py-gunicorn/distinfo
+++ b/www/py-gunicorn/distinfo
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.9 2018/07/04 03:43:12 adam Exp $
+$NetBSD: distinfo,v 1.10 2019/11/20 11:32:32 adam Exp $
-SHA1 (gunicorn-19.9.0.tar.gz) = 4fa8b5a57c8be192b761ed2d76bcafe29b379aed
-RMD160 (gunicorn-19.9.0.tar.gz) = 89a61547e6540306e81371986bb941adf47248c2
-SHA512 (gunicorn-19.9.0.tar.gz) = 4a89f963daa7afe7741a4fb9aa4f14192429ac0e9ba5672547d683475dd2f2733efeed903ec99db9d831e2b05b9ed9e583e3cfec483a1b481d897aa77373e8a3
-Size (gunicorn-19.9.0.tar.gz) = 415774 bytes
-SHA1 (patch-requirements__test.txt) = 11a315b675db6af30bcf3e116b5da48ecf51755b
+SHA1 (gunicorn-20.0.0.tar.gz) = 8839f7fa7572307c7bdede42ecc545bea9d162b6
+RMD160 (gunicorn-20.0.0.tar.gz) = ac2c011b6aaec6f598514f18f18065552d1974c3
+SHA512 (gunicorn-20.0.0.tar.gz) = 2b68af60d09f1770a0aa503ba459f9be83ca9495da50c95008ab07ccffafeca9189d48cf0150eed500ba2c5f773a7a8d9de0960ebab421558336585f9b7df3ed
+Size (gunicorn-20.0.0.tar.gz) = 363029 bytes
diff --git a/www/py-gunicorn/patches/patch-requirements__test.txt b/www/py-gunicorn/patches/patch-requirements__test.txt
deleted file mode 100644
index 99b5b902084..00000000000
--- a/www/py-gunicorn/patches/patch-requirements__test.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-requirements__test.txt,v 1.4 2018/07/04 03:43:12 adam Exp $
-
-'coverage' is not (yet) needed for testing.
-Relax pytest requirements.
-
---- requirements_test.txt.orig 2018-06-17 20:17:58.000000000 +0000
-+++ requirements_test.txt
-@@ -1,3 +1,2 @@
--coverage>=4.0,<4.4 # TODO: https://github.com/benoitc/gunicorn/issues/1548
--pytest==3.2.5 # TODO: upgrade to latest version requires drop support to Python 2.6
--pytest-cov==2.5.1
-+pytest>=3.2.5 # TODO: upgrade to latest version requires drop support to Python 2.6
-+pytest-cov>=2.5.1