pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-waitress py-waitress: updated to 1.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d8d719b5e4d
branches:  trunk
changeset: 390370:6d8d719b5e4d
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Jan 20 13:20:02 2019 +0000

description:
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.

diffstat:

 www/py-waitress/ALTERNATIVES |   2 +-
 www/py-waitress/Makefile     |  10 +++++-----
 www/py-waitress/PLIST        |  10 ++++++++--
 www/py-waitress/distinfo     |  10 +++++-----
 4 files changed, 19 insertions(+), 13 deletions(-)

diffs (78 lines):

diff -r 8f3bcbf81e7f -r 6d8d719b5e4d www/py-waitress/ALTERNATIVES
--- a/www/py-waitress/ALTERNATIVES      Sun Jan 20 13:19:50 2019 +0000
+++ b/www/py-waitress/ALTERNATIVES      Sun Jan 20 13:20:02 2019 +0000
@@ -1,1 +1,1 @@
-bin/waitress-serve @PREFIX@/bin/waitress-serve@PYVERSSUFFIX@
+bin/waitress-serve @PREFIX@/bin/waitress-serve-@PYVERSSUFFIX@
diff -r 8f3bcbf81e7f -r 6d8d719b5e4d www/py-waitress/Makefile
--- a/www/py-waitress/Makefile  Sun Jan 20 13:19:50 2019 +0000
+++ b/www/py-waitress/Makefile  Sun Jan 20 13:20:02 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2017/10/16 12:07:24 adam Exp $
+# $NetBSD: Makefile,v 1.5 2019/01/20 13:20:02 adam Exp $
 
-DISTNAME=      waitress-1.1.0
+DISTNAME=      waitress-1.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/waitress/}
@@ -10,14 +10,14 @@
 COMMENT=       Production-quality pure-Python WSGI server
 LICENSE=       zpl-2.1
 
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
+TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
+TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
 
 USE_LANGUAGES= # none
 
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
-       ${MV} waitress-serve waitress-serve${PYVERSSUFFIX} || ${TRUE}
+       ${MV} waitress-serve waitress-serve-${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 8f3bcbf81e7f -r 6d8d719b5e4d www/py-waitress/PLIST
--- a/www/py-waitress/PLIST     Sun Jan 20 13:19:50 2019 +0000
+++ b/www/py-waitress/PLIST     Sun Jan 20 13:20:02 2019 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2017/10/16 12:07:24 adam Exp $
-bin/waitress-serve${PYVERSSUFFIX}
+@comment $NetBSD: PLIST,v 1.4 2019/01/20 13:20:02 adam Exp $
+bin/waitress-serve-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -119,9 +119,15 @@
 ${PYSITELIB}/waitress/tests/test_utilities.py
 ${PYSITELIB}/waitress/tests/test_utilities.pyc
 ${PYSITELIB}/waitress/tests/test_utilities.pyo
+${PYSITELIB}/waitress/tests/test_wasyncore.py
+${PYSITELIB}/waitress/tests/test_wasyncore.pyc
+${PYSITELIB}/waitress/tests/test_wasyncore.pyo
 ${PYSITELIB}/waitress/trigger.py
 ${PYSITELIB}/waitress/trigger.pyc
 ${PYSITELIB}/waitress/trigger.pyo
 ${PYSITELIB}/waitress/utilities.py
 ${PYSITELIB}/waitress/utilities.pyc
 ${PYSITELIB}/waitress/utilities.pyo
+${PYSITELIB}/waitress/wasyncore.py
+${PYSITELIB}/waitress/wasyncore.pyc
+${PYSITELIB}/waitress/wasyncore.pyo
diff -r 8f3bcbf81e7f -r 6d8d719b5e4d www/py-waitress/distinfo
--- a/www/py-waitress/distinfo  Sun Jan 20 13:19:50 2019 +0000
+++ b/www/py-waitress/distinfo  Sun Jan 20 13:20:02 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2017/10/16 12:07:24 adam Exp $
+$NetBSD: distinfo,v 1.5 2019/01/20 13:20:02 adam Exp $
 
-SHA1 (waitress-1.1.0.tar.gz) = 91a13b20e05ce197ab3b24431efa5f1c26079460
-RMD160 (waitress-1.1.0.tar.gz) = 355d7520e4578777340ae7f0ea7b739be080ffc8
-SHA512 (waitress-1.1.0.tar.gz) = d53cf027525aec6fbd49ab78c30fef1b83d8b58c6d2cbb191d45e69141d7c31d6cd195a0924ad862a4cc42e5d098813712c568f768f51825e96fac3dd4132fbe
-Size (waitress-1.1.0.tar.gz) = 126131 bytes
+SHA1 (waitress-1.2.0.tar.gz) = 9dd4498bdd3569c5c090aa9d269772faea50776b
+RMD160 (waitress-1.2.0.tar.gz) = da5f203000c12af71c52dbef3d71a72625cd8c0f
+SHA512 (waitress-1.2.0.tar.gz) = 1c3094aef5bf6f438f23eb2ff6c79e2dc16350f11ca52487ab803b615124c682426ce25b8525d2a711c9a2e44d7dd938fc5ccac07fe9fc9edaaf6ac05288dd4a
+Size (waitress-1.2.0.tar.gz) = 161902 bytes



Home | Main Index | Thread Index | Old Index