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 19.12.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2d573bc5bb24
branches:  trunk
changeset: 420884:2d573bc5bb24
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Jan 08 21:03:21 2020 +0000

description:
py-sanic: updated to 19.12.2

Version 19.12.0

Bugfixes

Fix blueprint middleware application

Currently, any blueprint middleware registered, irrespective of which blueprint was used to do so, was being applied to all of the routes created by the @app and @blueprint alike.

As part of this change, the blueprint based middleware application is enforced based on where they are registered.

If you register a middleware via @blueprint.middleware then it will apply only to the routes defined by the blueprint.
If you register a middleware via @blueprint_group.middleware then it will apply to all blueprint based routes that are part of the group.
If you define a middleware via @app.middleware then it will be applied on all available routes
Fix url_for behavior with missing SERVER_NAME

If the SERVER_NAME was missing in the app.config entity, the url_for on the request and app were failing due to an AttributeError. This fix makes the availability of SERVER_NAME on our app.config an 
optional behavior.

Improved Documentation

Move docs from RST to MD

Moved all docs from markdown to restructured text like the rest of the docs to unify the scheme and make it easier in the future to update documentation.

Fix documentation for get and getlist of the request.args

Add additional example for showing the usage of getlist and fix the documentation string for request.args behavior

Version 19.6.3

Enable Towncrier Support
As part of this feature, towncrier is being introduced as a mechanism to partially automate the process of generating and managing change logs as part of each of pull requests.

Improved Documentation
Documentation infrastructure changes
Enable having a single common CHANGELOG file for both GitHub page and documentation
Fix Sphinix deprecation warnings
Fix documentation warnings due to invalid rst indentation
Enable common contribution guidelines file across GitHub and documentation via CONTRIBUTING.rst

Version 19.6.2

Features
* Remove aiohttp dependencey and create new SanicTestClient based upon requests-async
* Added ASGI support (Beta)
* Add Configure support from object string

Bugfixes
* Add missing handle for Expect header.
* Allow to disable Transfer-Encoding: chunked.
* Fix graceful shutdown.
* Strict Slashes behavior fix

Deprecations and Removals
* Drop dependency on distutil
* Drop support for Python 3.5
* Deprecate route removal.

Warning
Sanic will not support Python 3.5 from version 19.6 and forward. However, version 18.12LTS will have its support period extended thru December 2020, and therefore passing Python's official support 
version 3.5, which is set to expire in September 2020.

diffstat:

 www/py-sanic/Makefile               |  10 +++++++---
 www/py-sanic/PLIST                  |  14 +++++++++++++-
 www/py-sanic/distinfo               |  12 ++++++------
 www/py-sanic/patches/patch-setup.py |  16 +++++++---------
 4 files changed, 33 insertions(+), 19 deletions(-)

diffs (117 lines):

diff -r 605b66d93d89 -r 2d573bc5bb24 www/py-sanic/Makefile
--- a/www/py-sanic/Makefile     Wed Jan 08 20:58:29 2020 +0000
+++ b/www/py-sanic/Makefile     Wed Jan 08 21:03:21 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2019/04/26 13:14:21 maya Exp $
+# $NetBSD: Makefile,v 1.11 2020/01/08 21:03:21 adam Exp $
 
-DISTNAME=      sanic-19.3.1
+DISTNAME=      sanic-19.12.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/sanic/}
@@ -12,10 +12,14 @@
 
 DEPENDS+=      ${PYPKGPREFIX}-aiofiles>=0.3.0:../../devel/py-aiofiles
 DEPENDS+=      ${PYPKGPREFIX}-httptools>=0.0.10:../../www/py-httptools
+DEPENDS+=      ${PYPKGPREFIX}-httpx>=0.9.3:../../www/py-httpx
 DEPENDS+=      ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict
 DEPENDS+=      ${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson
 DEPENDS+=      ${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop
-DEPENDS+=      ${PYPKGPREFIX}-websockets>=6.0:../../www/py-websockets
+DEPENDS+=      ${PYPKGPREFIX}-websockets>=7.0:../../www/py-websockets
+TEST_DEPENDS+= ${PYPKGPREFIX}-uvicorn-[0-9]*:../../www/py-uvicorn
+
+USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
diff -r 605b66d93d89 -r 2d573bc5bb24 www/py-sanic/PLIST
--- a/www/py-sanic/PLIST        Wed Jan 08 20:58:29 2020 +0000
+++ b/www/py-sanic/PLIST        Wed Jan 08 21:03:21 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2019/04/04 12:25:38 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2020/01/08 21:03:21 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -10,15 +10,24 @@
 ${PYSITELIB}/sanic/__main__.py
 ${PYSITELIB}/sanic/__main__.pyc
 ${PYSITELIB}/sanic/__main__.pyo
+${PYSITELIB}/sanic/__version__.py
+${PYSITELIB}/sanic/__version__.pyc
+${PYSITELIB}/sanic/__version__.pyo
 ${PYSITELIB}/sanic/app.py
 ${PYSITELIB}/sanic/app.pyc
 ${PYSITELIB}/sanic/app.pyo
+${PYSITELIB}/sanic/asgi.py
+${PYSITELIB}/sanic/asgi.pyc
+${PYSITELIB}/sanic/asgi.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/compat.py
+${PYSITELIB}/sanic/compat.pyc
+${PYSITELIB}/sanic/compat.pyo
 ${PYSITELIB}/sanic/config.py
 ${PYSITELIB}/sanic/config.pyc
 ${PYSITELIB}/sanic/config.pyo
@@ -34,6 +43,9 @@
 ${PYSITELIB}/sanic/handlers.py
 ${PYSITELIB}/sanic/handlers.pyc
 ${PYSITELIB}/sanic/handlers.pyo
+${PYSITELIB}/sanic/headers.py
+${PYSITELIB}/sanic/headers.pyc
+${PYSITELIB}/sanic/headers.pyo
 ${PYSITELIB}/sanic/helpers.py
 ${PYSITELIB}/sanic/helpers.pyc
 ${PYSITELIB}/sanic/helpers.pyo
diff -r 605b66d93d89 -r 2d573bc5bb24 www/py-sanic/distinfo
--- a/www/py-sanic/distinfo     Wed Jan 08 20:58:29 2020 +0000
+++ b/www/py-sanic/distinfo     Wed Jan 08 21:03:21 2020 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.7 2019/04/04 12:25:38 adam Exp $
+$NetBSD: distinfo,v 1.8 2020/01/08 21:03:21 adam Exp $
 
-SHA1 (sanic-19.3.1.tar.gz) = c659db8a0139733cde46298e2daf8460b2a9d580
-RMD160 (sanic-19.3.1.tar.gz) = 243e4eb0ae0159f292167d9a842d98ca18d9cdf3
-SHA512 (sanic-19.3.1.tar.gz) = bcc41997b9ffc314bbe2703e248217410418a6bd6a27594d1100d06cafeff9157bfdf1459c207806d0320ffb916d970942a48b31bf4a25263f373cd57822ed31
-Size (sanic-19.3.1.tar.gz) = 117016 bytes
-SHA1 (patch-setup.py) = c5f769c23ca81c08212cfd87e093995fc615725b
+SHA1 (sanic-19.12.2.tar.gz) = 551764e7a1406be3ee20d655f6822aae1af77f52
+RMD160 (sanic-19.12.2.tar.gz) = af3bd32ab86c0d83d29387d009626c5b12862f1d
+SHA512 (sanic-19.12.2.tar.gz) = 1249551e45585959138028ad0d96ba0c560625f550c449480d405d5d0b2f3e361174552e24e328d1201b65074d3c1b7f4b886c7f45c99160752cdcf67d451c6b
+Size (sanic-19.12.2.tar.gz) = 135304 bytes
+SHA1 (patch-setup.py) = 12809b01cbd9ca950d64dabb2a2d1107cc361166
diff -r 605b66d93d89 -r 2d573bc5bb24 www/py-sanic/patches/patch-setup.py
--- a/www/py-sanic/patches/patch-setup.py       Wed Jan 08 20:58:29 2020 +0000
+++ b/www/py-sanic/patches/patch-setup.py       Wed Jan 08 21:03:21 2020 +0000
@@ -1,17 +1,15 @@
-$NetBSD: patch-setup.py,v 1.3 2019/04/04 12:25:38 adam Exp $
+$NetBSD: patch-setup.py,v 1.4 2020/01/08 21:03:21 adam Exp $
 
 Allow newer versions.
 
---- setup.py.orig      2019-03-23 02:52:58.000000000 +0000
+--- setup.py.orig      2020-01-02 21:35:13.000000000 +0000
 +++ setup.py
-@@ -81,8 +81,8 @@ requirements = [
-     uvloop,
-     ujson,
+@@ -84,7 +84,7 @@ requirements = [
      "aiofiles>=0.3.0",
--    "websockets>=6.0,<7.0",
--    "multidict>=4.0,<5.0",
-+    "websockets>=6.0",
-+    "multidict>=4.0",
+     "websockets>=7.0,<9.0",
+     "multidict>=4.0,<5.0",
+-    "httpx==0.9.3",
++    "httpx>=0.9.3",
  ]
  
  tests_require = [



Home | Main Index | Thread Index | Old Index