From nobody Wed Aug 31 18:51:59 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MHtZR5yY8z4Zxlg; Wed, 31 Aug 2022 18:51:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MHtZR5DKrz3N6h; Wed, 31 Aug 2022 18:51:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661971919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YATibbxYrns8C+Pllvlno9/QPGpVGkzz857VGlTX+es=; b=eVO/N5dm0Osyk223yqrtHzuUopM437keIWOu9CBRV1eag463EeJa8jQyMI31g01nHkKEEo 3rC0VWrJXLrK8yfSV8QrGeaux/XgmyRt+766IdCL1OmZ44JVgGOMPryEViOrxMyq9epGV2 rnYPmu1eB81ulyK1khqDP0j+AeGz8uVkzyrFEmNQEaMChSsk1A5bxMjpsJrlC7mAFQiz89 F7+mya2EXQvOZLF/T/A1XAZKlXrA98/LGVpLmBPUgCcPJQBeyBjXiN4bEkgOiENOvf1WNO gClQVmTD3gEZZqrNfbsZWz/lPc5ioMVRijVrwf4M2pYdlleDNlOtCa50glt1kg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MHtZR41gwz1CcY; Wed, 31 Aug 2022 18:51:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27VIpxPu039649; Wed, 31 Aug 2022 18:51:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27VIpxXf039648; Wed, 31 Aug 2022 18:51:59 GMT (envelope-from git) Date: Wed, 31 Aug 2022 18:51:59 GMT Message-Id: <202208311851.27VIpxXf039648@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: cf1dbb43b3ce - main - www/py-uvicorn: Update to 0.18.3 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cf1dbb43b3ce8e18d9c083467d2aca5ffca237d4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661971919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YATibbxYrns8C+Pllvlno9/QPGpVGkzz857VGlTX+es=; b=NnysqlP5u/7oJQUHr+1cMTCqy6IsqwtPkWjvBdrvQdQluNyFxoouCCJiFj3kuNR/62/c9o AYOZ7haRnNiDQHCKvYzLp0ihvld737RpgXnAhjHIonyjDh/piCxypO0UzaqhImwi6vZLFt f54Qflwdx2NungPZiGj5l7XkRNMzNzt57LXegsTo4+XFISLI4iRt3SHauOUmReyLAxNiIn BFXsiYSLDlBjTnBOaw03E/WG8t9FVLgjbjjkMGFeyW6onv8wDvEXlKSR5WWuhqZXZGjuc7 QuMsI9YZQzGyvtQipGvXd3msshkus7b/iKtO+Ntu/7A7nVrhZRho9tkIXShGlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661971919; a=rsa-sha256; cv=none; b=HWwegWIfWEISHBR5ndUsmIlV4sXdw/IcZduyA6yBnPNI6qq5jhqJguNvOt7h2oJqkHE6R3 /Tk3d1Ou/W+QPC3rWTStwXLab/FUoyELWHbtPQHodmbc4x+XgpzxSkyHgOxW6mPdeGc2Eg CWVzcicOXKqqPsxDdFUyATqqNLryUE+oo6j9rr/8Si1X5jZ43qSsr4Z04fP30aE9FuNAZh 9h/8amia25Jl9JgmPi7YOKiiWkTxmLse1nYaUIi+Y6Dw2YxlwwZycbi0DS+xR78n/Ozn+l 4Ri53qCFZzWb7LdCz8FuDSK7ZAz775x8WTr9H2AJhmdbqnS8cr9Mt5hsTJNt/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=cf1dbb43b3ce8e18d9c083467d2aca5ffca237d4 commit cf1dbb43b3ce8e18d9c083467d2aca5ffca237d4 Author: Po-Chuan Hsieh AuthorDate: 2022-08-31 18:28:14 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-08-31 18:49:46 +0000 www/py-uvicorn: Update to 0.18.3 Changes: https://github.com/encode/uvicorn/releases --- www/py-uvicorn/Makefile | 6 ++++- www/py-uvicorn/distinfo | 6 ++--- www/py-uvicorn/files/setup.py | 56 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 4 deletions(-) diff --git a/www/py-uvicorn/Makefile b/www/py-uvicorn/Makefile index b67b9ef63a66..ceeace3a0ce3 100644 --- a/www/py-uvicorn/Makefile +++ b/www/py-uvicorn/Makefile @@ -1,5 +1,5 @@ PORTNAME= uvicorn -PORTVERSION= 0.18.2 +PORTVERSION= 0.18.3 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -36,4 +36,8 @@ STANDARD_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httptools>=0.4.0:www/py-httptools@$ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} .endif +post-patch: + @${RM} ${WRKSRC}/pyproject.toml + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + .include diff --git a/www/py-uvicorn/distinfo b/www/py-uvicorn/distinfo index 203b67b9c34e..0947de06d1eb 100644 --- a/www/py-uvicorn/distinfo +++ b/www/py-uvicorn/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1656522326 -SHA256 (uvicorn-0.18.2.tar.gz) = cade07c403c397f9fe275492a48c1b869efd175d5d8a692df649e6e7e2ed8f4e -SIZE (uvicorn-0.18.2.tar.gz) = 41639 +TIMESTAMP = 1661950958 +SHA256 (uvicorn-0.18.3.tar.gz) = 9a66e7c42a2a95222f76ec24a4b754c158261c4696e683b9dadc72b590e0311b +SIZE (uvicorn-0.18.3.tar.gz) = 36898 diff --git a/www/py-uvicorn/files/setup.py b/www/py-uvicorn/files/setup.py new file mode 100644 index 000000000000..29748683c34e --- /dev/null +++ b/www/py-uvicorn/files/setup.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +setup( + name='uvicorn', + version='%%PORTVERSION%%', + description='The lightning-fast ASGI server.', + long_description='

\n \'uvicorn\'\n

\n\n

\nAn ASGI web server, for Python.\n

\n\n---\n\n[![Build Status](https://github.com/encode/uvicorn/workflows/Test%20Suite/badge.svg)](https://github.com/encode/uvicorn/actions)\n[![Package version](https://badge.fury.io/py/uvicorn.svg)](https://pypi.python.org/pypi/uvicorn)\n\n**Documentation**: [https://www.uvicorn.org](https://www.uvicorn.org)\n\n**Requirements**: Python 3.7+ (For Python 3.6 support, install version 0.16.0.)\n\nUvicorn is an ASGI web server implementation for Python.\n\nUntil recently Python has lacked a minimal low-level server/application interface for\nasync frameworks. The [ASGI specification][asgi] fills this gap, and means we\'re now able to\nstart building a common set of tooling usable across all async frameworks.\n\nUvicorn supports HTTP/1.1 and WebSockets.\n\n## Quickstart\n\nInstall using `pip`:\n\n```shell\n$ pip install uvicorn\n```\n\nThis will install uvicorn with minimal (pure Python) dependencies.\n\n```shell\n$ pip install uvicorn[standard]\n```\n\nThis will install uvicorn with "Cython-based" dependencies (where possible) and other "optional extras".\n\nIn this context, "Cython-based" means the following:\n\n- the event loop `uvloop` will be installed and used if possible.\n- the http protocol will be handled by `httptools` if possible.\n\nMoreover, "optional extras" means that:\n\n- the websocket protocol will be handled by `websockets` (should you want to use `wsproto` you\'d need to install it manually) if possible.\n- the `--reload` flag in development mode will use `watchfiles`.\n- windows users will have `colorama` installed for the colored logs.\n- `python-dotenv` will be installed should you want to use the `--env-file` option.\n- `PyYAML` will be installed to allow you to provide a `.yaml` file to `--log- config`, if desired.\n\nCreate an applicatio! n, in `example.py`:\n\n```python\nasync def app(scope, receive, send):\n assert scope[\'type\'] == \'http\'\n\n await send({\n \'type\': \'http.response.start\',\n \'status\': 200,\n \'headers\': [\n [b\'content-type\', b\'text/plain\'],\n ],\n })\n await send({\n \'type\': \'http.response.body\',\n \'body\': b\'Hello, world!\',\n })\n```\n\nRun the server:\n\n```shell\n$ uvicorn example:app\n```\n\n---\n\n## Why ASGI?\n\nMost well established Python Web frameworks started out as WSGI-based frameworks.\n\nWSGI applications are a single, synchronous callable that takes a request and returns a response.\nThis doesn’t allow for long-lived connections, like you get with long-poll HTTP or WebSocket connections,\nwhich WSGI doesn\'t support well.\n\nHaving an async concurrency model also allows for options such as lightweight background tasks,\nand can be less of a limiting factor for endpoints that have long periods be ing blocked on network\nI/O such as dealing with slow HTTP requests.\n\n---\n\n## Alternative ASGI servers\n\nA strength of the ASGI protocol is that it decouples the server implementation\nfrom the application framework. This allows for an ecosystem of interoperating\nwebservers and application frameworks.\n\n### Daphne\n\nThe first ASGI server implementation, originally developed to power Django Channels, is [the Daphne webserver][daphne].\n\nIt is run widely in production, and supports HTTP/1.1, HTTP/2, and WebSockets.\n\nAny of the example applications given here can equally well be run using `daphne` instead.\n\n```\n$ pip install daphne\n$ daphne app:App\n```\n\n### Hypercorn\n\n[Hypercorn][hypercorn] was initially part of the Quart web framework, before\nbeing separated out into a standalone ASGI server.\n\nHypercorn supports HTTP/1.1, HTTP/2, and WebSockets.\n\nIt also supports [the excellent `trio` async framework][trio], as an alternative to `asyncio`.\n\n```\n$ pip instal l hypercorn\n$ hypercorn app:App\n```\n\n###! Mangum\n! \n[Mangum][mangum] is an adapter for using ASGI applications with AWS Lambda & API Gateway.\n\n---\n\n

Uvicorn is BSD licensed code.
Designed & crafted with care.

— 🦄 —

\n\n[asgi]: https://asgi.readthedocs.io/en/latest/\n[daphne]: https://github.com/django/daphne\n[hypercorn]: https://gitlab.com/pgjones/hypercorn\n[mangum]: https://mangum.io\n[trio]: https://trio.readthedocs.io\n', + author_email='Tom Christie ', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Environment :: Web Environment', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', + 'Topic :: Internet :: WWW/HTTP', + ], + install_requires=[ + 'click>=7.0', + 'h11>=0.8', + 'typing-extensions; python_version < "3.8"', + ], + extras_require={ + 'standard': [ + 'colorama>=0.4; sys_platform == "win32"', + 'httptools>=0.4.0', + 'python-dotenv>=0.13', + 'pyyaml>=5.1', + 'uvloop!=0.15.0,!=0.15.1,>=0.14.0; sys_platform != "win32" and (sys_platform != "cygwin" and platform_python_implementation != "PyPy")', + 'watchfiles>=0.13', + 'websockets>=10.0', + ], + }, + entry_points={ + 'console_scripts': [ + 'uvicorn = uvicorn.main:main', + ], + }, + packages=[ + 'uvicorn', + 'uvicorn.lifespan', + 'uvicorn.loops', + 'uvicorn.middleware', + 'uvicorn.protocols', + 'uvicorn.protocols.http', + 'uvicorn.protocols.websockets', + 'uvicorn.supervisors', + ], +)