Wed Jan 10 10:33:07 2024 UTC (138d)
py-uvicorn: updated to 0.25.0

0.25.0 - 2023-12-17

Added

Support the WebSocket Denial Response ASGI extension
Fixed

Allow explicit hidden file paths on --reload-include
Properly annotate uvicorn.run()

0.24.0.post1 - 2023-11-06

Fixed

Revert mkdocs-material from 9.1.21 to 9.2.6

0.24.0 - 2023-11-04

Added

Support Python 3.12
Allow setting app via environment variable UVICORN_APP

0.23.2 - 2023-07-31

Fixed

Maintain the same behavior of websockets from 10.4 on 11.0

0.23.1 - 2023-07-18

Fixed

Add typing_extensions for Python 3.10 and lower

0.23.0 - 2023-07-10

Added

Add --ws-max-queue parameter WebSockets

Removed

Drop support for Python 3.7
Remove asgiref as typing dependency

Fixed

Set scope["scheme"] to ws or wss instead of http or https on ProxyHeadersMiddleware for WebSockets

Changed

Raise ImportError on circular import
Use logger.getEffectiveLevel() instead of logger.level to check if log level is TRACE

0.22.0 - 2023-04-28

Added

Add --timeout-graceful-shutdown parameter
Handle SIGBREAK on Windows

Fixed

Shutdown event is now being triggered on Windows when using hot reload
--reload-delay is effectively used on the watchfiles reloader

0.21.1 - 2023-03-16

Fixed

Reset lifespan state on each request

0.21.0 - 2023-03-09

Added

Introduce lifespan state
Allow headers to be sent as iterables on H11 implementation
Improve discoverability when --port=0 is used

Changed

Avoid importing h11 and pyyaml when not needed to improve import time
Replace current native WSGIMiddleware implementation by a2wsgi
Change default --app-dir from "." (dot) to "" (empty string)

Fixed

Send code 1012 on shutdown for WebSockets
Use surrogateescape to encode headers on websockets implementation
Fix warning message on reload failure

0.20.0 - 2022-11-20

Added

Check if handshake is completed before sending frame on wsproto shutdown
Add default headers to WebSockets implementations
Warn user when reload and workers flag are used together

Fixed

Use correct WebSocket error codes on close
Send disconnect event on connection lost for wsproto
Add SIGQUIT handler to UvicornWorker
Fix crash on exist with "--uds" if socket doesn't exist
Annotate CONFIG_KWARGS in UvicornWorker class

Removed

Remove conditional on RemoteProtocolError.event_hint on wsproto
Remove unused handle_no_connect on wsproto implementation


(adam)
diff -r1.35 -r1.36 pkgsrc/www/py-uvicorn/Makefile
diff -r1.11 -r1.12 pkgsrc/www/py-uvicorn/PLIST
diff -r1.29 -r1.30 pkgsrc/www/py-uvicorn/distinfo

cvs diff -r1.35 -r1.36 pkgsrc/www/py-uvicorn/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-uvicorn/Makefile 2023/10/28 19:57:25 1.35
+++ pkgsrc/www/py-uvicorn/Makefile 2024/01/10 10:33:07 1.36
@@ -1,40 +1,38 @@ @@ -1,40 +1,38 @@
1# $NetBSD: Makefile,v 1.35 2023/10/28 19:57:25 wiz Exp $ 1# $NetBSD: Makefile,v 1.36 2024/01/10 10:33:07 adam Exp $
2 2
3DISTNAME= uvicorn-0.18.3 3DISTNAME= uvicorn-0.25.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5PKGREVISION= 1 
6CATEGORIES= www python 5CATEGORIES= www python
7MASTER_SITES= ${MASTER_SITE_PYPI:=u/uvicorn/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=u/uvicorn/}
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.uvicorn.org/ 9HOMEPAGE= https://www.uvicorn.org/
11COMMENT= The lightning-fast ASGI server 10COMMENT= The lightning-fast ASGI server
12LICENSE= modified-bsd 11LICENSE= modified-bsd
13 12
14TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling 13TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
15DEPENDS+= ${PYPKGPREFIX}-click>=7.0:../../devel/py-click 14DEPENDS+= ${PYPKGPREFIX}-click>=7.0:../../devel/py-click
16DEPENDS+= ${PYPKGPREFIX}-h11>=0.8:../../www/py-h11 15DEPENDS+= ${PYPKGPREFIX}-h11>=0.8:../../www/py-h11
17# standard 16# standard
18DEPENDS+= ${PYPKGPREFIX}-dotenv>=0.13:../../devel/py-dotenv 17DEPENDS+= ${PYPKGPREFIX}-dotenv>=0.13:../../devel/py-dotenv
19DEPENDS+= ${PYPKGPREFIX}-httptools>=0.4.0:../../www/py-httptools 18DEPENDS+= ${PYPKGPREFIX}-httptools>=0.5.0:../../www/py-httptools
20DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.15.2:../../devel/py-uvloop 19DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.15.2:../../devel/py-uvloop
21DEPENDS+= ${PYPKGPREFIX}-websockets>=10.0:../../www/py-websockets 20DEPENDS+= ${PYPKGPREFIX}-watchfiles>=0.13:../../misc/py-watchfiles
 21DEPENDS+= ${PYPKGPREFIX}-websockets>=10.4:../../www/py-websockets
 22DEPENDS+= ${PYPKGPREFIX}-yaml>=5.1:../../textproc/py-yaml
22 23
23PYTHON_VERSIONS_INCOMPATIBLE= 27 24USE_LANGUAGES= # none
24 25
25USE_PKG_RESOURCES= yes 26PYTHON_VERSIONS_INCOMPATIBLE= 27
26 27
27.include "../../lang/python/pyversion.mk" 28.include "../../lang/python/pyversion.mk"
28 29.if ${PYTHON_VERSION} < 311
29.if ${PYTHON_VERSION} < 308 30DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.0:../../devel/py-typing-extensions
30DEPENDS+= ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions 
31.endif 31.endif
32 32
33USE_LANGUAGES= # none 
34 
35post-install: 33post-install:
36 cd ${DESTDIR}${PREFIX}/bin && \ 34 cd ${DESTDIR}${PREFIX}/bin && \
37 ${MV} uvicorn uvicorn-${PYVERSSUFFIX} || ${TRUE} 35 ${MV} uvicorn uvicorn-${PYVERSSUFFIX} || ${TRUE}
38 36
39.include "../../lang/python/wheel.mk" 37.include "../../lang/python/wheel.mk"
40.include "../../mk/bsd.pkg.mk" 38.include "../../mk/bsd.pkg.mk"

cvs diff -r1.11 -r1.12 pkgsrc/www/py-uvicorn/PLIST (expand / switch to unified diff)

--- pkgsrc/www/py-uvicorn/PLIST 2023/10/28 19:57:25 1.11
+++ pkgsrc/www/py-uvicorn/PLIST 2024/01/10 10:33:07 1.12
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.11 2023/10/28 19:57:25 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.12 2024/01/10 10:33:07 adam Exp $
2bin/uvicorn-${PYVERSSUFFIX} 2bin/uvicorn-${PYVERSSUFFIX}
3${PYSITELIB}/${WHEEL_INFODIR}/METADATA 3${PYSITELIB}/${WHEEL_INFODIR}/METADATA
4${PYSITELIB}/${WHEEL_INFODIR}/RECORD 4${PYSITELIB}/${WHEEL_INFODIR}/RECORD
5${PYSITELIB}/${WHEEL_INFODIR}/WHEEL 5${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
6${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt 6${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
7${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.md 7${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.md
8${PYSITELIB}/uvicorn/__init__.py 8${PYSITELIB}/uvicorn/__init__.py
9${PYSITELIB}/uvicorn/__init__.pyc 9${PYSITELIB}/uvicorn/__init__.pyc
10${PYSITELIB}/uvicorn/__init__.pyo 10${PYSITELIB}/uvicorn/__init__.pyo
11${PYSITELIB}/uvicorn/__main__.py 11${PYSITELIB}/uvicorn/__main__.py
12${PYSITELIB}/uvicorn/__main__.pyc 12${PYSITELIB}/uvicorn/__main__.pyc
13${PYSITELIB}/uvicorn/__main__.pyo 13${PYSITELIB}/uvicorn/__main__.pyo
14${PYSITELIB}/uvicorn/_subprocess.py 14${PYSITELIB}/uvicorn/_subprocess.py
@@ -46,29 +46,26 @@ ${PYSITELIB}/uvicorn/loops/auto.pyc @@ -46,29 +46,26 @@ ${PYSITELIB}/uvicorn/loops/auto.pyc
46${PYSITELIB}/uvicorn/loops/auto.pyo 46${PYSITELIB}/uvicorn/loops/auto.pyo
47${PYSITELIB}/uvicorn/loops/uvloop.py 47${PYSITELIB}/uvicorn/loops/uvloop.py
48${PYSITELIB}/uvicorn/loops/uvloop.pyc 48${PYSITELIB}/uvicorn/loops/uvloop.pyc
49${PYSITELIB}/uvicorn/loops/uvloop.pyo 49${PYSITELIB}/uvicorn/loops/uvloop.pyo
50${PYSITELIB}/uvicorn/main.py 50${PYSITELIB}/uvicorn/main.py
51${PYSITELIB}/uvicorn/main.pyc 51${PYSITELIB}/uvicorn/main.pyc
52${PYSITELIB}/uvicorn/main.pyo 52${PYSITELIB}/uvicorn/main.pyo
53${PYSITELIB}/uvicorn/middleware/__init__.py 53${PYSITELIB}/uvicorn/middleware/__init__.py
54${PYSITELIB}/uvicorn/middleware/__init__.pyc 54${PYSITELIB}/uvicorn/middleware/__init__.pyc
55${PYSITELIB}/uvicorn/middleware/__init__.pyo 55${PYSITELIB}/uvicorn/middleware/__init__.pyo
56${PYSITELIB}/uvicorn/middleware/asgi2.py 56${PYSITELIB}/uvicorn/middleware/asgi2.py
57${PYSITELIB}/uvicorn/middleware/asgi2.pyc 57${PYSITELIB}/uvicorn/middleware/asgi2.pyc
58${PYSITELIB}/uvicorn/middleware/asgi2.pyo 58${PYSITELIB}/uvicorn/middleware/asgi2.pyo
59${PYSITELIB}/uvicorn/middleware/debug.py 
60${PYSITELIB}/uvicorn/middleware/debug.pyc 
61${PYSITELIB}/uvicorn/middleware/debug.pyo 
62${PYSITELIB}/uvicorn/middleware/message_logger.py 59${PYSITELIB}/uvicorn/middleware/message_logger.py
63${PYSITELIB}/uvicorn/middleware/message_logger.pyc 60${PYSITELIB}/uvicorn/middleware/message_logger.pyc
64${PYSITELIB}/uvicorn/middleware/message_logger.pyo 61${PYSITELIB}/uvicorn/middleware/message_logger.pyo
65${PYSITELIB}/uvicorn/middleware/proxy_headers.py 62${PYSITELIB}/uvicorn/middleware/proxy_headers.py
66${PYSITELIB}/uvicorn/middleware/proxy_headers.pyc 63${PYSITELIB}/uvicorn/middleware/proxy_headers.pyc
67${PYSITELIB}/uvicorn/middleware/proxy_headers.pyo 64${PYSITELIB}/uvicorn/middleware/proxy_headers.pyo
68${PYSITELIB}/uvicorn/middleware/wsgi.py 65${PYSITELIB}/uvicorn/middleware/wsgi.py
69${PYSITELIB}/uvicorn/middleware/wsgi.pyc 66${PYSITELIB}/uvicorn/middleware/wsgi.pyc
70${PYSITELIB}/uvicorn/middleware/wsgi.pyo 67${PYSITELIB}/uvicorn/middleware/wsgi.pyo
71${PYSITELIB}/uvicorn/protocols/__init__.py 68${PYSITELIB}/uvicorn/protocols/__init__.py
72${PYSITELIB}/uvicorn/protocols/__init__.pyc 69${PYSITELIB}/uvicorn/protocols/__init__.pyc
73${PYSITELIB}/uvicorn/protocols/__init__.pyo 70${PYSITELIB}/uvicorn/protocols/__init__.pyo
74${PYSITELIB}/uvicorn/protocols/http/__init__.py 71${PYSITELIB}/uvicorn/protocols/http/__init__.py
@@ -91,26 +88,27 @@ ${PYSITELIB}/uvicorn/protocols/utils.pyc @@ -91,26 +88,27 @@ ${PYSITELIB}/uvicorn/protocols/utils.pyc
91${PYSITELIB}/uvicorn/protocols/utils.pyo 88${PYSITELIB}/uvicorn/protocols/utils.pyo
92${PYSITELIB}/uvicorn/protocols/websockets/__init__.py 89${PYSITELIB}/uvicorn/protocols/websockets/__init__.py
93${PYSITELIB}/uvicorn/protocols/websockets/__init__.pyc 90${PYSITELIB}/uvicorn/protocols/websockets/__init__.pyc
94${PYSITELIB}/uvicorn/protocols/websockets/__init__.pyo 91${PYSITELIB}/uvicorn/protocols/websockets/__init__.pyo
95${PYSITELIB}/uvicorn/protocols/websockets/auto.py 92${PYSITELIB}/uvicorn/protocols/websockets/auto.py
96${PYSITELIB}/uvicorn/protocols/websockets/auto.pyc 93${PYSITELIB}/uvicorn/protocols/websockets/auto.pyc
97${PYSITELIB}/uvicorn/protocols/websockets/auto.pyo 94${PYSITELIB}/uvicorn/protocols/websockets/auto.pyo
98${PYSITELIB}/uvicorn/protocols/websockets/websockets_impl.py 95${PYSITELIB}/uvicorn/protocols/websockets/websockets_impl.py
99${PYSITELIB}/uvicorn/protocols/websockets/websockets_impl.pyc 96${PYSITELIB}/uvicorn/protocols/websockets/websockets_impl.pyc
100${PYSITELIB}/uvicorn/protocols/websockets/websockets_impl.pyo 97${PYSITELIB}/uvicorn/protocols/websockets/websockets_impl.pyo
101${PYSITELIB}/uvicorn/protocols/websockets/wsproto_impl.py 98${PYSITELIB}/uvicorn/protocols/websockets/wsproto_impl.py
102${PYSITELIB}/uvicorn/protocols/websockets/wsproto_impl.pyc 99${PYSITELIB}/uvicorn/protocols/websockets/wsproto_impl.pyc
103${PYSITELIB}/uvicorn/protocols/websockets/wsproto_impl.pyo 100${PYSITELIB}/uvicorn/protocols/websockets/wsproto_impl.pyo
 101${PYSITELIB}/uvicorn/py.typed
104${PYSITELIB}/uvicorn/server.py 102${PYSITELIB}/uvicorn/server.py
105${PYSITELIB}/uvicorn/server.pyc 103${PYSITELIB}/uvicorn/server.pyc
106${PYSITELIB}/uvicorn/server.pyo 104${PYSITELIB}/uvicorn/server.pyo
107${PYSITELIB}/uvicorn/supervisors/__init__.py 105${PYSITELIB}/uvicorn/supervisors/__init__.py
108${PYSITELIB}/uvicorn/supervisors/__init__.pyc 106${PYSITELIB}/uvicorn/supervisors/__init__.pyc
109${PYSITELIB}/uvicorn/supervisors/__init__.pyo 107${PYSITELIB}/uvicorn/supervisors/__init__.pyo
110${PYSITELIB}/uvicorn/supervisors/basereload.py 108${PYSITELIB}/uvicorn/supervisors/basereload.py
111${PYSITELIB}/uvicorn/supervisors/basereload.pyc 109${PYSITELIB}/uvicorn/supervisors/basereload.pyc
112${PYSITELIB}/uvicorn/supervisors/basereload.pyo 110${PYSITELIB}/uvicorn/supervisors/basereload.pyo
113${PYSITELIB}/uvicorn/supervisors/multiprocess.py 111${PYSITELIB}/uvicorn/supervisors/multiprocess.py
114${PYSITELIB}/uvicorn/supervisors/multiprocess.pyc 112${PYSITELIB}/uvicorn/supervisors/multiprocess.pyc
115${PYSITELIB}/uvicorn/supervisors/multiprocess.pyo 113${PYSITELIB}/uvicorn/supervisors/multiprocess.pyo
116${PYSITELIB}/uvicorn/supervisors/statreload.py 114${PYSITELIB}/uvicorn/supervisors/statreload.py

cvs diff -r1.29 -r1.30 pkgsrc/www/py-uvicorn/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-uvicorn/distinfo 2022/09/08 15:23:23 1.29
+++ pkgsrc/www/py-uvicorn/distinfo 2024/01/10 10:33:07 1.30
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.29 2022/09/08 15:23:23 adam Exp $ 1$NetBSD: distinfo,v 1.30 2024/01/10 10:33:07 adam Exp $
2 2
3BLAKE2s (uvicorn-0.18.3.tar.gz) = 0dc92dc9bcd3c14eea98c5a532450a1bd29b2592ea0257b3f32b1870791f3d0d 3BLAKE2s (uvicorn-0.25.0.tar.gz) = 033df9733e6ccf520a80b6a7bdf1e0b754187ef27ac5d10b5171132c1d9594c1
4SHA512 (uvicorn-0.18.3.tar.gz) = f54f1e018e5b9e9dff865e7211199b4605088640579fa81bbe0a7cdf357d76fc33fb5fe6fe0806dcc08354320ddde9d7c3bb290205ea4de57cc79ae147a3d14a 4SHA512 (uvicorn-0.25.0.tar.gz) = d162f4ef678277a64a3e66995d4b9b0802db392cab68cb9bb760e31896c2a1f23c0efef82fbbefed4237b58ffb4453dac80604adac093a9df868d3d5e60b2002
5Size (uvicorn-0.18.3.tar.gz) = 36898 bytes 5Size (uvicorn-0.25.0.tar.gz) = 40724 bytes