From nobody Mon Oct 03 17:14:35 2022 X-Original-To: dev-commits-ports-main@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 4Mh6rr02Qfz4dkFV; Mon, 3 Oct 2022 17:14:36 +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 4Mh6rq6Xtwz3g1L; Mon, 3 Oct 2022 17:14:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664817275; 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=k2VHUdVL9imv3e7vwTeLq+F+vXl62ftKlSEG68n6Okk=; b=t1Cy9bQ8qNGLzFCm44t2qq7CCZpy0+UBd1cO12cIG/jB1HeARf18CAyqxLwJdrF+JnFtoU oq141mV9pJxWr5PPuddXWLrOil5utLNszIwA42zwW0YGhwgUH3RNx4nPmkYOrOn6jO9WzX x7GoNlWdi/UaSCj+/pFUX6NPKJvH1pZaV8L1i80oAaiNNzn1pK36aOjPqFnhBlx00sxQeR yUNAAsvaksTcrx2/Po9rS50YNbpa+4+PCWUK+eLG9LlTkPYKa5aQ+f57hJUik3KzU3XzZM oJ4wWvaeU/uePdEwLsA14rT7MHmsg/JjmBp88tNGOIhakxC8Lq8WY676xdGzkw== 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 4Mh6rq5cfxzHC3; Mon, 3 Oct 2022 17:14:35 +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 293HEZaM014489; Mon, 3 Oct 2022 17:14:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 293HEZcP014488; Mon, 3 Oct 2022 17:14:35 GMT (envelope-from git) Date: Mon, 3 Oct 2022 17:14:35 GMT Message-Id: <202210031714.293HEZcP014488@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: 7a3f455e550b - main - www/py-starlette: Update to 0.21.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: 7a3f455e550be25de67a63f66a5a49f601e68729 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664817275; 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=k2VHUdVL9imv3e7vwTeLq+F+vXl62ftKlSEG68n6Okk=; b=j9vrqY/kZfs7s0rzLx7dRePuW1msKHydJLjfh1eyLGNwku0tuThOM5HxI8R0AUwFT9K1Y5 MGEeBba6EoegetR5EzNg0Kj9RHy5yqNkCs+bhjMjmUk0RwVXE+ZHC5PoqAyT2bMGk/40d6 ghYz9dolHjZn/5fvvM5eJ0ABGo2IC+oWamRO1F1/iDPnPmyBQ4KWtLp3+IyORAmbcBG5VV p6FF1IBg718pMMv1UJ0FSLOU6P4pFti3LvWHPOfScaJ1a6o7RT/TitePSHuqgzEF9I2n00 gtcVOXa1r2XZ7NNA3ySbSM4LcHJnbqtPikA1gfdq9NwMfUZJguWOueWjbWGnMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664817275; a=rsa-sha256; cv=none; b=Jso+gTfM/NoDfHqEkBRabOf7XmcGiFEGlu2eiFQkiS7n9px4I229mUuZXZ10E88g2eORpC gbMd25duw9cziIjGkID3FXepZLb4d/soY16MwctH4PFHkxqenc47Rog1YGsaELz9L9q+PX 9rzMDExamtZ27PrIozs6G7fzijYiqkXY8SjMpqN34XY3yLCKi6F25kJG8zdLOvVa4n5DfV Kfg7MOGm6/j6S/ff0Hwo3n7iE8ealr+O3yTQIm5Nm8CcxKVtXsb7yy5xAhhGViLtJpz+cw NDp8149A4Wrf9Gxm9E57gJ1Cu/bni8EQhd2riD55LWP8wNrXX4AhqFSZK4pA+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=7a3f455e550be25de67a63f66a5a49f601e68729 commit 7a3f455e550be25de67a63f66a5a49f601e68729 Author: Po-Chuan Hsieh AuthorDate: 2022-10-03 17:06:28 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-10-03 17:10:44 +0000 www/py-starlette: Update to 0.21.0 Changes: https://github.com/encode/starlette/blob/master/docs/release-notes.md https://www.starlette.io/release-notes/ --- www/py-starlette/Makefile | 6 +++++- www/py-starlette/distinfo | 6 +++--- www/py-starlette/files/setup.py | 42 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 4 deletions(-) diff --git a/www/py-starlette/Makefile b/www/py-starlette/Makefile index e9eee48511b4..c6e6e9df7da4 100644 --- a/www/py-starlette/Makefile +++ b/www/py-starlette/Makefile @@ -1,5 +1,5 @@ PORTNAME= starlette -PORTVERSION= 0.20.4 +PORTVERSION= 0.21.0 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -34,4 +34,8 @@ FULL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}itsdangerous>=0:security/py-itsdangerou RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.10.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-starlette/distinfo b/www/py-starlette/distinfo index e9abe25fb857..8939fcfc75db 100644 --- a/www/py-starlette/distinfo +++ b/www/py-starlette/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1656522324 -SHA256 (starlette-0.20.4.tar.gz) = 42fcf3122f998fefce3e2c5ad7e5edbf0f02cf685d646a83a08d404726af5084 -SIZE (starlette-0.20.4.tar.gz) = 51897 +TIMESTAMP = 1664768018 +SHA256 (starlette-0.21.0.tar.gz) = b1b52305ee8f7cfc48cde383496f7c11ab897cd7112b33d998b1317dc8ef9027 +SIZE (starlette-0.21.0.tar.gz) = 48843 diff --git a/www/py-starlette/files/setup.py b/www/py-starlette/files/setup.py new file mode 100644 index 000000000000..082cd8f8a428 --- /dev/null +++ b/www/py-starlette/files/setup.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +setup( + name='starlette', + version='%%PORTVERSION%%', + description='The little ASGI library that shines.', + long_description='

\n \'starlette\'\n

\n

\n ✨ The little ASGI framework that shines. ✨\n

\n

\n\n Build Status\n\n\n Package version\n\n

\n\n---\n\n**Documentation**: [https://www.starlette.io/](https://www.starlette.io/)\n\n---\n\n# Starlette\n\nStarlette is a lightweight [ASGI][asgi] framework/toolkit,\nwhich is ideal for building async web services in Python.\n\nIt is production-ready, and gives you the following:\n\n* A lightweight, low-complexity HTTP web framework.\n* WebSocket support.\n* In-proc ess background tasks.\n* Startup and shutdown events.\n* Test client built on `httpx`.\n* CORS, GZip, Static Files, Streaming responses.\n* Session and Cookie support.\n* 100% test coverage.\n* 100% type annotated codebase.\n* Few hard dependencies.\n* Compatible with `asyncio` and `trio` backends.\n* Great overall performance [against independent benchmarks][techempower].\n\n## Requirements\n\nPython 3.7+ (For Python 3.6 support, install version 0.19.1)\n\n## Installation\n\n```shell\n$ pip3 install starlette\n```\n\nYou\'ll also want to install an ASGI server, such as [uvicorn](http://www.uvicorn.org/), [daphne](https://github.com/django/daphne/), or [hypercorn](https://pgjones.gitlab.io/hypercorn/).\n\n```shell\n$ pip3 install uvicorn\n```\n\n## Example\n\n**example.py**:\n\n```python\nfrom starlette.applications import Starlette\nfrom starlette.responses import JSONResponse\nfrom starlette.routing import Route\n\n\nasync def homepage(request):\n return JSONResponse({\'hello\' : \'world\'})\n\nroutes = [\n Route("/", ! endpoint=homepage)\n]\n\napp = Starlette(debug=True, routes=routes)\n```\n\nThen run the application using Uvicorn:\n\n```shell\n$ uvicorn example:app\n```\n\nFor a more complete example, see [encode/starlette-example](https://github.com/encode/starlette-example).\n\n## Dependencies\n\nStarlette only requires `anyio`, and the following are optional:\n\n* [`httpx`][httpx] - Required if you want to use the `TestClient`.\n* [`jinja2`][jinja2] - Required if you want to use `Jinja2Templates`.\n* [`python-multipart`][python-multipart] - Required if you want to support form parsing, with `request.form()`.\n* [`itsdangerous`][itsdangerous] - Required for `SessionMiddleware` support.\n* [`pyyaml`][pyyaml] - Required for `SchemaGenerator` support.\n\nYou can install all of these with `pip3 install starlette[full]`.\n\n## Framework or Toolkit\n\nStarlette is designed to be used either as a complete framework, or as\nan ASGI toolkit. You can use any of its components independently.\n\n```python \nfrom starlette.responses import PlainTextResponse\n\n\nasync def app(scope, receive, send):\n assert scope[\'type\'] == \'http\'\n response = PlainTextResponse(\'Hello, world!\')\n await response(scope, receive, send)\n```\n\nRun the `app` application in `example.py`:\n\n```shell\n$ uvicorn example:app\nINFO: Started server process [11509]\nINFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)\n```\n\nRun uvicorn with `--reload` to enable auto-reloading on code changes.\n\n## Modularity\n\nThe modularity that Starlette is designed on promotes building re-usable\ncomponents that can be shared between any ASGI framework. This should enable\nan ecosystem of shared middleware and mountable applications.\n\nThe clean API separation also means it\'s easier to understand each component\nin isolation.\n\n---\n\n

Starlette is BSD licensed code.
Designed & crafted with c are.

— ⭐️ —

\n\n[! asgi]: ht! tps://asgi.readthedocs.io/en/latest/\n[httpx]: https://www.python-httpx.org/\n[jinja2]: http://jinja.pocoo.org/\n[python-multipart]: https://andrew-d.github.io/python-multipart/\n[itsdangerous]: https://pythonhosted.org/itsdangerous/\n[sqlalchemy]: https://www.sqlalchemy.org\n[pyyaml]: https://pyyaml.org/wiki/PyYAMLDocumentation\n[techempower]: https://www.techempower.com/benchmarks/#hw=ph&test=fortune&l=zijzen-sf\n', + author_email='Tom Christie ', + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Environment :: Web Environment', + 'Framework :: AnyIO', + '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 :: 3.11', + 'Topic :: Internet :: WWW/HTTP', + ], + install_requires=[ + 'anyio<5,>=3.4.0', + 'typing-extensions>=3.10.0; python_version < "3.10"', + ], + extras_require={ + 'full': [ + 'httpx>=0.22.0', + 'itsdangerous', + 'jinja2', + 'python-multipart', + 'pyyaml', + ], + }, + packages=[ + 'starlette', + 'starlette.middleware', + ], +)