pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-sanic



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Jan 13 18:23:57 UTC 2022

Modified Files:
        pkgsrc/www/py-sanic: Makefile PLIST distinfo

Log Message:
py-sanic: updated to 21.12.1

Version 21.12.1
* Only display MOTD on startup
* Add config.update support for all config values
* Ignore name argument in Python 3.7

Version 21.12.0
Features

* Allow early Blueprint registrations to still apply later added objects
* Noisy exceptions - force logging of all exceptions
* Optional uvloop by configuration
* Vhost support using multiple TLS certificates
* Change signal routing for increased consistency
BREAKING CHANGE: If you were manually routing signals there is a breaking change. The signal router's get is no longer 100% determinative. There is now an additional step to loop thru the returned 
signals for proper matching on the requirements. If signals are being dispatched using app.dispatch or bp.dispatch, there is no change.
* Add contextual exceptions
* Increase join concat performance
* Restructure of CLI and application state with new displays and more command parity with app.run
* Add route context at definition time
* Named tasks and new API for managing background tasks
* On app auto-reload, provide insight of changed files
* Auto extend application with Sanic Extensions if it is installed, and provide first class support for accessing the extensions
* Builtin signals changed to Enum
* Support additional config implementation use case
* Refactor environment variable hydration logic
* Prevent sending multiple or mixed responses on a single request
* Custom type casting on environment variables
* Make all deprecation notices consistent
* Allow underscore to start instance names

Bugfixes

* Replace assignation by typing for websocket_handshake
* Fix IPv6 display in startup logs
* Dispatch http.lifecyle.response from exception handler

Deprecations and Removals

* Removal of deprecated items
Sanic and Blueprint may no longer have arbitrary properties attached to them
Sanic and Blueprint forced to have compliant names
alphanumeric + _ + -
must start with letter or _
load_env keyword argument of Sanic
sanic.exceptions.abort
sanic.views.CompositionView
sanic.response.StreamingHTTPResponse
NOTE: the stream() response method (where you pass a callable streaming function) has been deprecated and will be removed in v22.6. You should upgrade all streaming responses to the new style: 
https://sanicframework.org/en/guide/advanced/streaming.html#response-streaming
* Remove app instance from Config for error handler setting

Developer infrastructure

* Change dev install command
* Change codeclimate complexity threshold from 5 to 10
* Update host test function names so they are not overwritten
* Fail CI on error
* Do not run tests for draft PRs
* Remove paths from coverage checks
* Cleanup ports on tests

Improved Documentation

* Cleanup typos and fix language

Miscellaneous

* Add Python 3.10 support
* Add/correct missing type annotations
* Fix examples to use modern implementations

Version 21.9.2
* Make HTTP connections start in IDLE stage, avoiding delays and error messages
* More consistent config setting with post-FALLBACK_ERROR_FORMAT apply

Version 21.9.1
* Allow non-conforming ErrorHandlers

Version 21.9.0

Features

* Complete overhaul of I/O to websockets
* Add new 17 signals into server and request lifecycles
* Smarter auto fallback formatting upon exception
* Introduce implementation for copying a Blueprint
* Accept header parsing
* Log remote address if available
* Add convenience methods to BP groups
* Add default messages to SanicExceptions
* Type annotation convenience for annotated handlers with path parameters
* Allow Falsey (but not-None) responses from route handlers
* Add exception decorator to Blueprint Groups
* Explicit static directive for serving file or dir (ex: static(..., resource_type="file"))
* Close HTTP loop when connection task cancelled

Bugfixes

* Fix the handling of the end of a chunked request
* Resolve unexpected error handling on static requests
* Make blueprint-based exceptions attach and trigger in a more intuitive manner
* Fixed for handling exceptions of asgi app call
* Fix bug where ws exceptions not being logged
* Cleaner closing of tasks by using abort() in strategic places to avoid dangling sockets
* Fix logging of auto-reload status in debug mode
* Account for BP with exception handler but no routes

Developer infrastructure

* HTTP unit tests with raw client
* Switch to codeclimate
* Try Reopening Windows Tests
* Refactor HttpProtocol into a base class
* Refactor server.py into multi-file module

Miscellaneous

* Remove Duplicated Dependencies and PEP 517 Support
* Type annotation changes


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/www/py-sanic/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/www/py-sanic/PLIST
cvs rdiff -u -r1.20 -r1.21 pkgsrc/www/py-sanic/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-sanic/Makefile
diff -u pkgsrc/www/py-sanic/Makefile:1.24 pkgsrc/www/py-sanic/Makefile:1.25
--- pkgsrc/www/py-sanic/Makefile:1.24   Wed Jan  5 15:41:31 2022
+++ pkgsrc/www/py-sanic/Makefile        Thu Jan 13 18:23:57 2022
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2022/01/05 15:41:31 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2022/01/13 18:23:57 adam Exp $
 
-DISTNAME=      sanic-21.6.2
+DISTNAME=      sanic-21.12.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/sanic/}
 
@@ -17,7 +16,7 @@ DEPENDS+=     ${PYPKGPREFIX}-multidict>=5.0.
 DEPENDS+=      ${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson
 DEPENDS+=      ${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop
 DEPENDS+=      ${PYPKGPREFIX}-sanic-routing>=0.7.0:../../www/py-sanic-routing
-DEPENDS+=      ${PYPKGPREFIX}-websockets>=9.0:../../www/py-websockets
+DEPENDS+=      ${PYPKGPREFIX}-websockets>=10.0:../../www/py-websockets
 
 USE_LANGUAGES= # none
 

Index: pkgsrc/www/py-sanic/PLIST
diff -u pkgsrc/www/py-sanic/PLIST:1.11 pkgsrc/www/py-sanic/PLIST:1.12
--- pkgsrc/www/py-sanic/PLIST:1.11      Wed Jul 28 12:14:16 2021
+++ pkgsrc/www/py-sanic/PLIST   Thu Jan 13 18:23:57 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2021/07/28 12:14:16 adam Exp $
+@comment $NetBSD: PLIST,v 1.12 2022/01/13 18:23:57 adam Exp $
 bin/sanic-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -18,18 +18,48 @@ ${PYSITELIB}/sanic/__version__.pyo
 ${PYSITELIB}/sanic/app.py
 ${PYSITELIB}/sanic/app.pyc
 ${PYSITELIB}/sanic/app.pyo
+${PYSITELIB}/sanic/application/__init__.py
+${PYSITELIB}/sanic/application/__init__.pyc
+${PYSITELIB}/sanic/application/__init__.pyo
+${PYSITELIB}/sanic/application/ext.py
+${PYSITELIB}/sanic/application/ext.pyc
+${PYSITELIB}/sanic/application/ext.pyo
+${PYSITELIB}/sanic/application/logo.py
+${PYSITELIB}/sanic/application/logo.pyc
+${PYSITELIB}/sanic/application/logo.pyo
+${PYSITELIB}/sanic/application/motd.py
+${PYSITELIB}/sanic/application/motd.pyc
+${PYSITELIB}/sanic/application/motd.pyo
+${PYSITELIB}/sanic/application/state.py
+${PYSITELIB}/sanic/application/state.pyc
+${PYSITELIB}/sanic/application/state.pyo
 ${PYSITELIB}/sanic/asgi.py
 ${PYSITELIB}/sanic/asgi.pyc
 ${PYSITELIB}/sanic/asgi.pyo
-${PYSITELIB}/sanic/base.py
-${PYSITELIB}/sanic/base.pyc
-${PYSITELIB}/sanic/base.pyo
+${PYSITELIB}/sanic/base/__init__.py
+${PYSITELIB}/sanic/base/__init__.pyc
+${PYSITELIB}/sanic/base/__init__.pyo
+${PYSITELIB}/sanic/base/meta.py
+${PYSITELIB}/sanic/base/meta.pyc
+${PYSITELIB}/sanic/base/meta.pyo
+${PYSITELIB}/sanic/base/root.py
+${PYSITELIB}/sanic/base/root.pyc
+${PYSITELIB}/sanic/base/root.pyo
 ${PYSITELIB}/sanic/blueprint_group.py
 ${PYSITELIB}/sanic/blueprint_group.pyc
 ${PYSITELIB}/sanic/blueprint_group.pyo
 ${PYSITELIB}/sanic/blueprints.py
 ${PYSITELIB}/sanic/blueprints.pyc
 ${PYSITELIB}/sanic/blueprints.pyo
+${PYSITELIB}/sanic/cli/__init__.py
+${PYSITELIB}/sanic/cli/__init__.pyc
+${PYSITELIB}/sanic/cli/__init__.pyo
+${PYSITELIB}/sanic/cli/app.py
+${PYSITELIB}/sanic/cli/app.pyc
+${PYSITELIB}/sanic/cli/app.pyo
+${PYSITELIB}/sanic/cli/arguments.py
+${PYSITELIB}/sanic/cli/arguments.pyc
+${PYSITELIB}/sanic/cli/arguments.pyo
 ${PYSITELIB}/sanic/compat.py
 ${PYSITELIB}/sanic/compat.pyc
 ${PYSITELIB}/sanic/compat.pyo
@@ -96,6 +126,9 @@ ${PYSITELIB}/sanic/models/handler_types.
 ${PYSITELIB}/sanic/models/protocol_types.py
 ${PYSITELIB}/sanic/models/protocol_types.pyc
 ${PYSITELIB}/sanic/models/protocol_types.pyo
+${PYSITELIB}/sanic/models/server_types.py
+${PYSITELIB}/sanic/models/server_types.pyc
+${PYSITELIB}/sanic/models/server_types.pyo
 ${PYSITELIB}/sanic/py.typed
 ${PYSITELIB}/sanic/reloader_helpers.py
 ${PYSITELIB}/sanic/reloader_helpers.pyc
@@ -109,24 +142,87 @@ ${PYSITELIB}/sanic/response.pyo
 ${PYSITELIB}/sanic/router.py
 ${PYSITELIB}/sanic/router.pyc
 ${PYSITELIB}/sanic/router.pyo
-${PYSITELIB}/sanic/server.py
-${PYSITELIB}/sanic/server.pyc
-${PYSITELIB}/sanic/server.pyo
+${PYSITELIB}/sanic/server/__init__.py
+${PYSITELIB}/sanic/server/__init__.pyc
+${PYSITELIB}/sanic/server/__init__.pyo
+${PYSITELIB}/sanic/server/async_server.py
+${PYSITELIB}/sanic/server/async_server.pyc
+${PYSITELIB}/sanic/server/async_server.pyo
+${PYSITELIB}/sanic/server/events.py
+${PYSITELIB}/sanic/server/events.pyc
+${PYSITELIB}/sanic/server/events.pyo
+${PYSITELIB}/sanic/server/loop.py
+${PYSITELIB}/sanic/server/loop.pyc
+${PYSITELIB}/sanic/server/loop.pyo
+${PYSITELIB}/sanic/server/protocols/__init__.py
+${PYSITELIB}/sanic/server/protocols/__init__.pyc
+${PYSITELIB}/sanic/server/protocols/__init__.pyo
+${PYSITELIB}/sanic/server/protocols/base_protocol.py
+${PYSITELIB}/sanic/server/protocols/base_protocol.pyc
+${PYSITELIB}/sanic/server/protocols/base_protocol.pyo
+${PYSITELIB}/sanic/server/protocols/http_protocol.py
+${PYSITELIB}/sanic/server/protocols/http_protocol.pyc
+${PYSITELIB}/sanic/server/protocols/http_protocol.pyo
+${PYSITELIB}/sanic/server/protocols/websocket_protocol.py
+${PYSITELIB}/sanic/server/protocols/websocket_protocol.pyc
+${PYSITELIB}/sanic/server/protocols/websocket_protocol.pyo
+${PYSITELIB}/sanic/server/runners.py
+${PYSITELIB}/sanic/server/runners.pyc
+${PYSITELIB}/sanic/server/runners.pyo
+${PYSITELIB}/sanic/server/socket.py
+${PYSITELIB}/sanic/server/socket.pyc
+${PYSITELIB}/sanic/server/socket.pyo
+${PYSITELIB}/sanic/server/websockets/__init__.py
+${PYSITELIB}/sanic/server/websockets/__init__.pyc
+${PYSITELIB}/sanic/server/websockets/__init__.pyo
+${PYSITELIB}/sanic/server/websockets/connection.py
+${PYSITELIB}/sanic/server/websockets/connection.pyc
+${PYSITELIB}/sanic/server/websockets/connection.pyo
+${PYSITELIB}/sanic/server/websockets/frame.py
+${PYSITELIB}/sanic/server/websockets/frame.pyc
+${PYSITELIB}/sanic/server/websockets/frame.pyo
+${PYSITELIB}/sanic/server/websockets/impl.py
+${PYSITELIB}/sanic/server/websockets/impl.pyc
+${PYSITELIB}/sanic/server/websockets/impl.pyo
 ${PYSITELIB}/sanic/signals.py
 ${PYSITELIB}/sanic/signals.pyc
 ${PYSITELIB}/sanic/signals.pyo
 ${PYSITELIB}/sanic/simple.py
 ${PYSITELIB}/sanic/simple.pyc
 ${PYSITELIB}/sanic/simple.pyo
+${PYSITELIB}/sanic/tls.py
+${PYSITELIB}/sanic/tls.pyc
+${PYSITELIB}/sanic/tls.pyo
+${PYSITELIB}/sanic/touchup/__init__.py
+${PYSITELIB}/sanic/touchup/__init__.pyc
+${PYSITELIB}/sanic/touchup/__init__.pyo
+${PYSITELIB}/sanic/touchup/meta.py
+${PYSITELIB}/sanic/touchup/meta.pyc
+${PYSITELIB}/sanic/touchup/meta.pyo
+${PYSITELIB}/sanic/touchup/schemes/__init__.py
+${PYSITELIB}/sanic/touchup/schemes/__init__.pyc
+${PYSITELIB}/sanic/touchup/schemes/__init__.pyo
+${PYSITELIB}/sanic/touchup/schemes/base.py
+${PYSITELIB}/sanic/touchup/schemes/base.pyc
+${PYSITELIB}/sanic/touchup/schemes/base.pyo
+${PYSITELIB}/sanic/touchup/schemes/ode.py
+${PYSITELIB}/sanic/touchup/schemes/ode.pyc
+${PYSITELIB}/sanic/touchup/schemes/ode.pyo
+${PYSITELIB}/sanic/touchup/service.py
+${PYSITELIB}/sanic/touchup/service.pyc
+${PYSITELIB}/sanic/touchup/service.pyo
+${PYSITELIB}/sanic/types/__init__.py
+${PYSITELIB}/sanic/types/__init__.pyc
+${PYSITELIB}/sanic/types/__init__.pyo
+${PYSITELIB}/sanic/types/hashable_dict.py
+${PYSITELIB}/sanic/types/hashable_dict.pyc
+${PYSITELIB}/sanic/types/hashable_dict.pyo
 ${PYSITELIB}/sanic/utils.py
 ${PYSITELIB}/sanic/utils.pyc
 ${PYSITELIB}/sanic/utils.pyo
 ${PYSITELIB}/sanic/views.py
 ${PYSITELIB}/sanic/views.pyc
 ${PYSITELIB}/sanic/views.pyo
-${PYSITELIB}/sanic/websocket.py
-${PYSITELIB}/sanic/websocket.pyc
-${PYSITELIB}/sanic/websocket.pyo
 ${PYSITELIB}/sanic/worker.py
 ${PYSITELIB}/sanic/worker.pyc
 ${PYSITELIB}/sanic/worker.pyo

Index: pkgsrc/www/py-sanic/distinfo
diff -u pkgsrc/www/py-sanic/distinfo:1.20 pkgsrc/www/py-sanic/distinfo:1.21
--- pkgsrc/www/py-sanic/distinfo:1.20   Tue Oct 26 11:30:47 2021
+++ pkgsrc/www/py-sanic/distinfo        Thu Jan 13 18:23:57 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.20 2021/10/26 11:30:47 nia Exp $
+$NetBSD: distinfo,v 1.21 2022/01/13 18:23:57 adam Exp $
 
-BLAKE2s (sanic-21.6.2.tar.gz) = dcf8d3c1b91f925251094985b31d9a91365231e1d88491f6c85ec2d78df3d827
-SHA512 (sanic-21.6.2.tar.gz) = c655120292dd37e481e8a9e60743aff4c70d1527fa63afb07eecd7f2d1d8dd86b97672b045463e0e1e337e092bb6cc8ec95e756789ea8e0ccd2bbb8579e983c2
-Size (sanic-21.6.2.tar.gz) = 173950 bytes
+BLAKE2s (sanic-21.12.1.tar.gz) = 32986c1fc1452c29f1c491f15b789b6bc25fd378f9a7a182e125b24c164f6591
+SHA512 (sanic-21.12.1.tar.gz) = 922446fce87be6b043bf9b88dd0e1c4776b8bec1f2d12bec2f3bc7d659d602f555892d66689c511bfa2884a437bd83b661d6f2aead5a41e9c612fe9ed6c212b2
+Size (sanic-21.12.1.tar.gz) = 225688 bytes



Home | Main Index | Thread Index | Old Index