Sun Jan 20 13:20:02 2019 UTC ()
py-waitress: updated to 1.2.0

1.2.0:
No changes since the last beta release. Enjoy Waitress!

1.2.0b3:
Bugfixes
- Modified clear_untrusted_proxy_headers to be usable without a
  trusted_proxy.

- Modified trusted_proxy_count to error when used without a
  trusted_proxy.

1.2.0b2:
Bugfixes
- Fixed logic to no longer warn on writes where the output is required to have
  a body but there may not be any data to be written. Solves issue posted on
  the Pylons Project mailing list with 1.2.0b1.

1.2.0b1:
Happy New Year!

Features
- Setting the trusted_proxy setting to '*' (wildcard) will allow all
  upstreams to be considered trusted proxies, thereby allowing services behind
  Cloudflare/ELBs to function correctly whereby there may not be a singular IP
  address that requests are received from.

  Using this setting is potentially dangerous if your server is also available
  from anywhere on the internet, and further protections should be used to lock
  down access to Waitress.

- Waitress has increased its support of the X-Forwarded-* headers and includes
  Forwarded (RFC7239) support. This may be used to allow proxy servers to
  influence the WSGI environment.

  This also provides a new security feature when using Waitress behind a proxy
  in that it is possible to remove untrusted proxy headers thereby making sure
  that downstream WSGI applications don't accidentally use those proxy headers
  to make security decisions.

  The documentation has more information, see the following new arguments:

  - trusted_proxy_count
  - trusted_proxy_headers
  - clear_untrusted_proxy_headers
  - log_untrusted_proxy_headers (useful for debugging)

  Be aware that the defaults for these are currently backwards compatible with
  older versions of Waitress, this will change in a future release of waitress.
  If you expect to need this behaviour please explicitly set these variables in
  your configuration, or pin this version of waitress.

  Documentation:
  https://docs.pylonsproject.org/projects/waitress/en/latest/reverse-proxy.html

- Waitress can now accept a list of sockets that are already pre-bound rather
  than creating its own to allow for socket activation. Support for init
  systems/other systems that create said activated sockets is not included.

- Server header can be omitted by specifying ident=None or ident=''.

Bugfixes
- Waitress will no longer send Transfer-Encoding or Content-Length for 1xx,
  204, or 304 responses, and will completely ignore any message body sent by
  the WSGI application, making sure to follow the HTTP standard.

Compatibility
- Waitress has now "vendored" asyncore into itself as waitress.wasyncore.
  This is to cope with the eventuality that asyncore will be removed from
  the Python standard library in 3.8 or so.

Documentation
- Bring in documentation of paste.translogger from Pyramid. Reorganize and
  clean up documentation.


(adam)
diff -r1.1 -r1.2 pkgsrc/www/py-waitress/ALTERNATIVES
diff -r1.4 -r1.5 pkgsrc/www/py-waitress/Makefile
diff -r1.4 -r1.5 pkgsrc/www/py-waitress/distinfo
diff -r1.3 -r1.4 pkgsrc/www/py-waitress/PLIST

cvs diff -r1.1 -r1.2 pkgsrc/www/py-waitress/ALTERNATIVES (expand / switch to unified diff)

--- pkgsrc/www/py-waitress/ALTERNATIVES 2017/07/09 21:24:24 1.1
+++ pkgsrc/www/py-waitress/ALTERNATIVES 2019/01/20 13:20:02 1.2

cvs diff -r1.4 -r1.5 pkgsrc/www/py-waitress/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-waitress/Makefile 2017/10/16 12:07:24 1.4
+++ pkgsrc/www/py-waitress/Makefile 2019/01/20 13:20:02 1.5
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1# $NetBSD: Makefile,v 1.4 2017/10/16 12:07:24 adam Exp $ 1# $NetBSD: Makefile,v 1.5 2019/01/20 13:20:02 adam Exp $
2 2
3DISTNAME= waitress-1.1.0 3DISTNAME= waitress-1.2.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= www python 5CATEGORIES= www python
6MASTER_SITES= ${MASTER_SITE_PYPI:=w/waitress/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=w/waitress/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/Pylons/waitress 9HOMEPAGE= https://github.com/Pylons/waitress
10COMMENT= Production-quality pure-Python WSGI server 10COMMENT= Production-quality pure-Python WSGI server
11LICENSE= zpl-2.1 11LICENSE= zpl-2.1
12 12
13BUILD_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage 13TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
14BUILD_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose 14TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
15 15
16USE_LANGUAGES= # none 16USE_LANGUAGES= # none
17 17
18post-install: 18post-install:
19 cd ${DESTDIR}${PREFIX}/bin && \ 19 cd ${DESTDIR}${PREFIX}/bin && \
20 ${MV} waitress-serve waitress-serve${PYVERSSUFFIX} || ${TRUE} 20 ${MV} waitress-serve waitress-serve-${PYVERSSUFFIX} || ${TRUE}
21 21
22.include "../../lang/python/egg.mk" 22.include "../../lang/python/egg.mk"
23.include "../../mk/bsd.pkg.mk" 23.include "../../mk/bsd.pkg.mk"

cvs diff -r1.4 -r1.5 pkgsrc/www/py-waitress/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-waitress/distinfo 2017/10/16 12:07:24 1.4
+++ pkgsrc/www/py-waitress/distinfo 2019/01/20 13:20:02 1.5
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.4 2017/10/16 12:07:24 adam Exp $ 1$NetBSD: distinfo,v 1.5 2019/01/20 13:20:02 adam Exp $
2 2
3SHA1 (waitress-1.1.0.tar.gz) = 91a13b20e05ce197ab3b24431efa5f1c26079460 3SHA1 (waitress-1.2.0.tar.gz) = 9dd4498bdd3569c5c090aa9d269772faea50776b
4RMD160 (waitress-1.1.0.tar.gz) = 355d7520e4578777340ae7f0ea7b739be080ffc8 4RMD160 (waitress-1.2.0.tar.gz) = da5f203000c12af71c52dbef3d71a72625cd8c0f
5SHA512 (waitress-1.1.0.tar.gz) = d53cf027525aec6fbd49ab78c30fef1b83d8b58c6d2cbb191d45e69141d7c31d6cd195a0924ad862a4cc42e5d098813712c568f768f51825e96fac3dd4132fbe 5SHA512 (waitress-1.2.0.tar.gz) = 1c3094aef5bf6f438f23eb2ff6c79e2dc16350f11ca52487ab803b615124c682426ce25b8525d2a711c9a2e44d7dd938fc5ccac07fe9fc9edaaf6ac05288dd4a
6Size (waitress-1.1.0.tar.gz) = 126131 bytes 6Size (waitress-1.2.0.tar.gz) = 161902 bytes

cvs diff -r1.3 -r1.4 pkgsrc/www/py-waitress/PLIST (expand / switch to unified diff)

--- pkgsrc/www/py-waitress/PLIST 2017/10/16 12:07:24 1.3
+++ pkgsrc/www/py-waitress/PLIST 2019/01/20 13:20:02 1.4
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1@comment $NetBSD: PLIST,v 1.3 2017/10/16 12:07:24 adam Exp $ 1@comment $NetBSD: PLIST,v 1.4 2019/01/20 13:20:02 adam Exp $
2bin/waitress-serve${PYVERSSUFFIX} 2bin/waitress-serve-${PYVERSSUFFIX}
3${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 3${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
4${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 4${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
5${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 5${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
6${PYSITELIB}/${EGG_INFODIR}/entry_points.txt 6${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
7${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 7${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
8${PYSITELIB}/${EGG_INFODIR}/requires.txt 8${PYSITELIB}/${EGG_INFODIR}/requires.txt
9${PYSITELIB}/${EGG_INFODIR}/top_level.txt 9${PYSITELIB}/${EGG_INFODIR}/top_level.txt
10${PYSITELIB}/waitress/__init__.py 10${PYSITELIB}/waitress/__init__.py
11${PYSITELIB}/waitress/__init__.pyc 11${PYSITELIB}/waitress/__init__.pyc
12${PYSITELIB}/waitress/__init__.pyo 12${PYSITELIB}/waitress/__init__.pyo
13${PYSITELIB}/waitress/__main__.py 13${PYSITELIB}/waitress/__main__.py
14${PYSITELIB}/waitress/__main__.pyc 14${PYSITELIB}/waitress/__main__.pyc
15${PYSITELIB}/waitress/__main__.pyo 15${PYSITELIB}/waitress/__main__.pyo
@@ -109,19 +109,25 @@ ${PYSITELIB}/waitress/tests/test_runner. @@ -109,19 +109,25 @@ ${PYSITELIB}/waitress/tests/test_runner.
109${PYSITELIB}/waitress/tests/test_runner.pyo 109${PYSITELIB}/waitress/tests/test_runner.pyo
110${PYSITELIB}/waitress/tests/test_server.py 110${PYSITELIB}/waitress/tests/test_server.py
111${PYSITELIB}/waitress/tests/test_server.pyc 111${PYSITELIB}/waitress/tests/test_server.pyc
112${PYSITELIB}/waitress/tests/test_server.pyo 112${PYSITELIB}/waitress/tests/test_server.pyo
113${PYSITELIB}/waitress/tests/test_task.py 113${PYSITELIB}/waitress/tests/test_task.py
114${PYSITELIB}/waitress/tests/test_task.pyc 114${PYSITELIB}/waitress/tests/test_task.pyc
115${PYSITELIB}/waitress/tests/test_task.pyo 115${PYSITELIB}/waitress/tests/test_task.pyo
116${PYSITELIB}/waitress/tests/test_trigger.py 116${PYSITELIB}/waitress/tests/test_trigger.py
117${PYSITELIB}/waitress/tests/test_trigger.pyc 117${PYSITELIB}/waitress/tests/test_trigger.pyc
118${PYSITELIB}/waitress/tests/test_trigger.pyo 118${PYSITELIB}/waitress/tests/test_trigger.pyo
119${PYSITELIB}/waitress/tests/test_utilities.py 119${PYSITELIB}/waitress/tests/test_utilities.py
120${PYSITELIB}/waitress/tests/test_utilities.pyc 120${PYSITELIB}/waitress/tests/test_utilities.pyc
121${PYSITELIB}/waitress/tests/test_utilities.pyo 121${PYSITELIB}/waitress/tests/test_utilities.pyo
 122${PYSITELIB}/waitress/tests/test_wasyncore.py
 123${PYSITELIB}/waitress/tests/test_wasyncore.pyc
 124${PYSITELIB}/waitress/tests/test_wasyncore.pyo
122${PYSITELIB}/waitress/trigger.py 125${PYSITELIB}/waitress/trigger.py
123${PYSITELIB}/waitress/trigger.pyc 126${PYSITELIB}/waitress/trigger.pyc
124${PYSITELIB}/waitress/trigger.pyo 127${PYSITELIB}/waitress/trigger.pyo
125${PYSITELIB}/waitress/utilities.py 128${PYSITELIB}/waitress/utilities.py
126${PYSITELIB}/waitress/utilities.pyc 129${PYSITELIB}/waitress/utilities.pyc
127${PYSITELIB}/waitress/utilities.pyo 130${PYSITELIB}/waitress/utilities.pyo
 131${PYSITELIB}/waitress/wasyncore.py
 132${PYSITELIB}/waitress/wasyncore.pyc
 133${PYSITELIB}/waitress/wasyncore.pyo