From nobody Tue Mar 21 19:30:41 2023 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 4Ph1st0kH7z40jRW; Tue, 21 Mar 2023 19:30:42 +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 4Ph1ss5yt6z4W1B; Tue, 21 Mar 2023 19:30:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679427041; 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=EPbT/Db4DRUoTpVq9qiyE+eH8ScG8xWTfxn4PnUU4fw=; b=Mg7K5g9/+dRJKOvmJmBr5LBPmj75gYkv9ybMniPAXkgGiKVlz0XP9gYs3MEU14uRij+yaP UAc+8HrZUctJ0KYQvn2xtH7p13G/iYyQC7nqvrDrh50pPoWi7n+N47TJn7DpdGXCR/BQYw JIyD51sew3gHV3qv4ebJrWLNcORnW1ePGnU7tPWwXM1konIvspvk/mcLT59H3UNevrbicA RAsk3DtY3d0AuID/FibZTsDHlccaM4GhAbEY0teoxGchrv1luOb/GzG5Tf4g30IpiTl3+M a323tZRAmmMbecA8e4BsMZHH2K5iH5CC5dUE+4XwLNi91TLA8U9c9vBuPUfncw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679427041; 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=EPbT/Db4DRUoTpVq9qiyE+eH8ScG8xWTfxn4PnUU4fw=; b=p1PcPgKBym4vEEJuamQGfq+6CrFk/hfw4Ry1QvbBM9HLaU0v9oXqLXSABw2oEiTRzCRTlU u82658gUFtrWUUbLe58jr229ykM3PFcw7NFS39Hp5LxrA9OQaX6Gz/bSCgyNVzktCvtMaK a1A/CgMNUkuwXOoRWtYJ8PtwXUt20dmAXqErFjkLWyRh3FhONzG3ABgtyqiMWnLwEaBPmp pHVRKrui/8fATH9L3tDnD/eXU3xJYRt6RZo9Z1qPjrrkIwLjc2OrG1CvTvax7JFrQJXTqY MBCd6b0jb32e9kff7CvpYpHlFI6mQ7KGm66uacJVNhWb24eRlNNd+nbbjh/BYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679427041; a=rsa-sha256; cv=none; b=tqRnHUL58U+r5QOwI20uhtI3kk3E5d4ZiKRpYwKrdoC+M45fvSYryXD1npR1Tn/wJRqtoR ph+iMUPbGfSqomDOdKqP4FBqdZJZnZdC8VyfCq4Lc9S3/bQ99Z/YIaxdq8yXBgQN3uiY5r TXMRVcuFzQspwDlzMt3PUpHc0Zxuo6XG2EORItrrfWLZkabIDt4mIqzfNgBsck9ok3lJv3 LMT26ZM5WE0q+uy5LdWla6uD8vro8j//9DPMmZKTrNmMUZDzMGgrgWVTqxu8a1e+gPVkel BHvKa9xBq25x4kf4+rdLgRVQ6CziOUYmjGcIkJWL4YlEgnyPiiaiag08cFFMKQ== 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 4Ph1ss1ZrczPhK; Tue, 21 Mar 2023 19:30:41 +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 32LJUfNa043154; Tue, 21 Mar 2023 19:30:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32LJUfMD043153; Tue, 21 Mar 2023 19:30:41 GMT (envelope-from git) Date: Tue, 21 Mar 2023 19:30:41 GMT Message-Id: <202303211930.32LJUfMD043153@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: c4ee640c8973 - main - www/py-starlette: Convert to USE_PYTHON=pep517 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: c4ee640c8973b0885ed13668dbb64c67d138b57f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c4ee640c8973b0885ed13668dbb64c67d138b57f commit c4ee640c8973b0885ed13668dbb64c67d138b57f Author: Po-Chuan Hsieh AuthorDate: 2023-03-21 18:49:26 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-03-21 19:21:27 +0000 www/py-starlette: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- www/py-starlette/Makefile | 8 +++----- www/py-starlette/files/setup.py | 42 ----------------------------------------- 2 files changed, 3 insertions(+), 47 deletions(-) diff --git a/www/py-starlette/Makefile b/www/py-starlette/Makefile index af1665eb5996..1f2683e5f1b2 100644 --- a/www/py-starlette/Makefile +++ b/www/py-starlette/Makefile @@ -1,5 +1,6 @@ PORTNAME= starlette PORTVERSION= 0.23.1 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,10 +12,11 @@ WWW= https://github.com/encode/starlette LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.md +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=3.4.0<5:devel/py-anyio@${PY_FLAVOR} USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes @@ -34,8 +36,4 @@ 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/files/setup.py b/www/py-starlette/files/setup.py deleted file mode 100644 index 082cd8f8a428..000000000000 --- a/www/py-starlette/files/setup.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- 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', - ], -)