pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/py-sanic py-sanic: updated to 21.6.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/1e78424b9930
branches: trunk
changeset: 456410:1e78424b9930
user: adam <adam%pkgsrc.org@localhost>
date: Wed Jul 28 12:14:16 2021 +0000
description:
py-sanic: updated to 21.6.1
Version 21.6.1
Bugfixes
Update sanic-routing to allow for better splitting of complex URI templates
Proper handling of chunked request bodies to resolve phantom 503 in logs
Resolve regression in exception logging
Cleanup request info in pipelined requests
Version 21.6.0
Features
Add response.eof() method for closing a stream in a handler
Allow case-insensitive HTTP Upgrade header
Explicit usage of CIMultiDict getters
Consistent use of error loggers
New client_ip access of connection info instance
Alternatate classes on instantiation for Config and Sanic.ctx
Implement new version of AST router
Proper differentiation between alpha and string param types
Adds a slug param type, example: <foo:slug>
Deprecates <foo:string> in favor of <foo:str>
Deprecates <foo:number> in favor of <foo:float>
Adds a route.uri accessor
CLI improvements with new optional params
Add version_prefix to URL builders
Event autoregistration with EVENT_AUTOREGISTER
Require stricter names on Sanic() and Blueprint()
Infinitely reusable and nestable Blueprint and BlueprintGroup
Upgrade websockets dependency to min version
Allow for maximum header sizes to be increased: REQUEST_MAX_HEADER_SIZE
Allow app factory pattern in CLI
Change HTTP methods to enums
Allow auto-reloading on additional directories
Add simple HTTP server to CLI
Additional methods for attaching HTTPMethodView
Bugfixes
Fix UserWarning in ASGI mode for missing __slots__
Fix static request handler logging exception on 404
Fix request.args.pop removes parameters inconsistently
Fix type hinting for load_env
Make sure ASGI ws subprotocols is a list
Fix issue where Blueprint exception handlers do not consistently route to proper handler
Deprecations and Removals
Remove config value REQUEST_BUFFER_QUEUE_SIZE
CompositionView deprecated and marked for removal in 21.12
Deprecate StreamingHTTPResponse
Developer infrastructure
Remove Travis CI in favor of GitHub Actions
Improved Documentation
Fix typo in documentation
Remove documentation for non-existent arguments
Version 21.3.2
Bugfixes
Disable response timeout on websocket connections
Make sure that blueprints with no slash is maintained when applied
Version 21.3.1
Bugfixes
Static files inside subfolders are not accessible (404)
Version 21.3.0
Release Notes
Features
Unified streaming server
New Request.id property
Allow Pathlib Path objects to be passed to app.static() helper
New startup-optimized router
Listeners for main server process
Add raw header info to request object
Introduce Signals API
Add __str__ and __repr__ to Sanic and Blueprint
Enable versioning and strict slash on BlueprintGroup
Make get_app name argument optional
JSON encoder change via app
App and connection level context objects
Bugfixes and issues resolved
Resolve 1420 url_for where strict_slashes are on for a path ending in /
Resolve 1525 Routing is incorrect with some special characters
Resolve 1653 ASGI headers in body
Resolve 1722 Using curl in chunk mode
Resolve 1730 Extra content in ASGI streaming response
Resolve 1749 Restore broken middleware edge cases
Resolve 1785 1804 Synchronous error handlers
Resolve 1790 Protocol errors did not support async error handlers
Resolve 1824 Timeout on specific methods
Resolve 1875 Response timeout error from all routes after returning several timeouts from a specific route
Resolve 1988 Handling of safe methods with body
Raise ValueError when cookie max-age is not an integer
Deprecations and Removals
Config using from_envvar
Config using from_pyfile
Config using from_object
Remove Sanic test client to its own package
Drop Python 3.6 support
Request.endpoint deprecated in favor of Request.name
handler type name prefixes removed (static, websocket, etc)
Developer infrastructure
Create FUNDING.yml
Add codeql to CI pipeline
Codecov configuration updates
Updated setup.py to use find_packages
Improved Documentation
Documentation for sanic.log.* is missing
Add documentation on calver and LTS
Support mounting application elsewhere than at root path
Upgraded type annotations and improved docstrings and API documentation
Fix some examples and docs
Miscellaneous
Request.route property
Better websocket subprotocols support
Resolve bug with middleware in Blueprint Group when passed callable
Moves common logic between Blueprint and Sanic into mixins
Route naming changed to be more consistent
request endpoint is the route name
route names are fully namespaced
Some new convenience decorators:
@app.main_process_start
@app.main_process_stop
@app.before_server_start
@app.after_server_start
@app.before_server_stop
@app.after_server_stop
@app.on_request
@app.on_response
Fixes Allow header that did not include HEAD
Using "name" keyword in url_for for a "static" route where name does not exist
Cannot have multiple app.static() without using the named param
Using "filename" keyword in url_for on a file route
unquote in route def (not automatic)
routes_all is tuples
Handler arguments are kwarg only
request.match_info is now a cached (and not computed) property
Unknown static file mimetype is sent as application/octet-stream
_host keyword in url_for
Add charset default to utf-8 for text and js content types if not specified
Version for a route can be str, float, or int
Route has ctx property
App has routes_static, routes_dynamic, routes_regex
Code cleanup and refactoring
Remove BaseSanic metaclass
Performance adjustments in handle_request_
diffstat:
www/py-sanic/Makefile | 9 ++---
www/py-sanic/PLIST | 56 ++++++++++++++++++++++++++++++------
www/py-sanic/distinfo | 11 +++---
www/py-sanic/patches/patch-setup.py | 26 -----------------
4 files changed, 55 insertions(+), 47 deletions(-)
diffs (167 lines):
diff -r 683eced4286f -r 1e78424b9930 www/py-sanic/Makefile
--- a/www/py-sanic/Makefile Wed Jul 28 12:11:13 2021 +0000
+++ b/www/py-sanic/Makefile Wed Jul 28 12:14:16 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2021/02/16 18:56:05 adam Exp $
+# $NetBSD: Makefile,v 1.20 2021/07/28 12:14:16 adam Exp $
-DISTNAME= sanic-20.12.2
+DISTNAME= sanic-21.6.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/sanic/}
@@ -12,12 +12,11 @@
DEPENDS+= ${PYPKGPREFIX}-aiofiles>=0.6.0:../../devel/py-aiofiles
DEPENDS+= ${PYPKGPREFIX}-httptools>=0.0.10:../../www/py-httptools
-DEPENDS+= ${PYPKGPREFIX}-httpx>=0.15.4:../../www/py-httpx
DEPENDS+= ${PYPKGPREFIX}-multidict>=5.0.0:../../databases/py-multidict
DEPENDS+= ${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson
DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop
-DEPENDS+= ${PYPKGPREFIX}-websockets>=8.1:../../www/py-websockets
-TEST_DEPENDS+= ${PYPKGPREFIX}-uvicorn-[0-9]*:../../www/py-uvicorn
+DEPENDS+= ${PYPKGPREFIX}-sanic-routing>=0.7.0:../../www/py-sanic-routing
+DEPENDS+= ${PYPKGPREFIX}-websockets>=9.0:../../www/py-websockets
USE_LANGUAGES= # none
diff -r 683eced4286f -r 1e78424b9930 www/py-sanic/PLIST
--- a/www/py-sanic/PLIST Wed Jul 28 12:11:13 2021 +0000
+++ b/www/py-sanic/PLIST Wed Jul 28 12:14:16 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2021/01/03 22:41:44 adam Exp $
+@comment $NetBSD: PLIST,v 1.11 2021/07/28 12:14:16 adam Exp $
bin/sanic-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -21,6 +21,9 @@
${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/blueprint_group.py
${PYSITELIB}/sanic/blueprint_group.pyc
${PYSITELIB}/sanic/blueprint_group.pyo
@@ -39,9 +42,6 @@
${PYSITELIB}/sanic/cookies.py
${PYSITELIB}/sanic/cookies.pyc
${PYSITELIB}/sanic/cookies.pyo
-${PYSITELIB}/sanic/deprecated.py
-${PYSITELIB}/sanic/deprecated.pyc
-${PYSITELIB}/sanic/deprecated.pyo
${PYSITELIB}/sanic/errorpages.py
${PYSITELIB}/sanic/errorpages.pyc
${PYSITELIB}/sanic/errorpages.pyo
@@ -57,9 +57,45 @@
${PYSITELIB}/sanic/helpers.py
${PYSITELIB}/sanic/helpers.pyc
${PYSITELIB}/sanic/helpers.pyo
+${PYSITELIB}/sanic/http.py
+${PYSITELIB}/sanic/http.pyc
+${PYSITELIB}/sanic/http.pyo
${PYSITELIB}/sanic/log.py
${PYSITELIB}/sanic/log.pyc
${PYSITELIB}/sanic/log.pyo
+${PYSITELIB}/sanic/mixins/__init__.py
+${PYSITELIB}/sanic/mixins/__init__.pyc
+${PYSITELIB}/sanic/mixins/__init__.pyo
+${PYSITELIB}/sanic/mixins/exceptions.py
+${PYSITELIB}/sanic/mixins/exceptions.pyc
+${PYSITELIB}/sanic/mixins/exceptions.pyo
+${PYSITELIB}/sanic/mixins/listeners.py
+${PYSITELIB}/sanic/mixins/listeners.pyc
+${PYSITELIB}/sanic/mixins/listeners.pyo
+${PYSITELIB}/sanic/mixins/middleware.py
+${PYSITELIB}/sanic/mixins/middleware.pyc
+${PYSITELIB}/sanic/mixins/middleware.pyo
+${PYSITELIB}/sanic/mixins/routes.py
+${PYSITELIB}/sanic/mixins/routes.pyc
+${PYSITELIB}/sanic/mixins/routes.pyo
+${PYSITELIB}/sanic/mixins/signals.py
+${PYSITELIB}/sanic/mixins/signals.pyc
+${PYSITELIB}/sanic/mixins/signals.pyo
+${PYSITELIB}/sanic/models/__init__.py
+${PYSITELIB}/sanic/models/__init__.pyc
+${PYSITELIB}/sanic/models/__init__.pyo
+${PYSITELIB}/sanic/models/asgi.py
+${PYSITELIB}/sanic/models/asgi.pyc
+${PYSITELIB}/sanic/models/asgi.pyo
+${PYSITELIB}/sanic/models/futures.py
+${PYSITELIB}/sanic/models/futures.pyc
+${PYSITELIB}/sanic/models/futures.pyo
+${PYSITELIB}/sanic/models/handler_types.py
+${PYSITELIB}/sanic/models/handler_types.pyc
+${PYSITELIB}/sanic/models/handler_types.pyo
+${PYSITELIB}/sanic/models/protocol_types.py
+${PYSITELIB}/sanic/models/protocol_types.pyc
+${PYSITELIB}/sanic/models/protocol_types.pyo
${PYSITELIB}/sanic/py.typed
${PYSITELIB}/sanic/reloader_helpers.py
${PYSITELIB}/sanic/reloader_helpers.pyc
@@ -76,12 +112,12 @@
${PYSITELIB}/sanic/server.py
${PYSITELIB}/sanic/server.pyc
${PYSITELIB}/sanic/server.pyo
-${PYSITELIB}/sanic/static.py
-${PYSITELIB}/sanic/static.pyc
-${PYSITELIB}/sanic/static.pyo
-${PYSITELIB}/sanic/testing.py
-${PYSITELIB}/sanic/testing.pyc
-${PYSITELIB}/sanic/testing.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/utils.py
${PYSITELIB}/sanic/utils.pyc
${PYSITELIB}/sanic/utils.pyo
diff -r 683eced4286f -r 1e78424b9930 www/py-sanic/distinfo
--- a/www/py-sanic/distinfo Wed Jul 28 12:11:13 2021 +0000
+++ b/www/py-sanic/distinfo Wed Jul 28 12:14:16 2021 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.16 2021/02/16 18:56:05 adam Exp $
+$NetBSD: distinfo,v 1.17 2021/07/28 12:14:16 adam Exp $
-SHA1 (sanic-20.12.2.tar.gz) = 8802e0cc5dd7c3752faccdda92adbdd25aa410a3
-RMD160 (sanic-20.12.2.tar.gz) = 930c877e13771ab012de385d67af733d973b4176
-SHA512 (sanic-20.12.2.tar.gz) = dee7e1688fb3f450b490d95dae7ec47b2f6d2823756e86480931f0f3a56862d3e97df31eb091b66cecc7a141d4a82b4e4bd615d7762767e8b78e13030be9d5d4
-Size (sanic-20.12.2.tar.gz) = 147979 bytes
-SHA1 (patch-setup.py) = bcd9b4baaff7c6ffc08d34d0ed2db1e35e97dd7f
+SHA1 (sanic-21.6.1.tar.gz) = 75001f74aa39be97b6a7cc0884737ae05b6e85df
+RMD160 (sanic-21.6.1.tar.gz) = 260c06a4f05305fd47811c961c9960cdd64cb09e
+SHA512 (sanic-21.6.1.tar.gz) = ff1ea9269b25c60be3cb982f42b9ed391111b818f10efb02c221e7d150a3f50a6620385691e004e808b5043d1bbf3a2c01714c5871ff86cfc8a2c86b0b375474
+Size (sanic-21.6.1.tar.gz) = 173788 bytes
diff -r 683eced4286f -r 1e78424b9930 www/py-sanic/patches/patch-setup.py
--- a/www/py-sanic/patches/patch-setup.py Wed Jul 28 12:11:13 2021 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-$NetBSD: patch-setup.py,v 1.9 2021/01/03 22:41:44 adam Exp $
-
-Allow newer versions.
-
---- setup.py.orig 2020-12-28 21:58:53.000000000 +0000
-+++ setup.py
-@@ -89,15 +89,15 @@ requirements = [
- "aiofiles>=0.6.0",
- "websockets>=8.1,<9.0",
- "multidict>=5.0,<6.0",
-- "httpx==0.15.4",
-+ "httpx>=0.15.4",
- ]
-
- tests_require = [
-- "pytest==5.2.1",
-+ "pytest>=5.2.1",
- "multidict>=5.0,<6.0",
-- "gunicorn==20.0.4",
-+ "gunicorn>=20.0.4",
- "pytest-cov",
-- "httpcore==0.11.*",
-+ "httpcore>=0.11.*",
- "beautifulsoup4",
- uvloop,
- ujson,
Home |
Main Index |
Thread Index |
Old Index