From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1831A158042 for ; Sat, 19 Oct 2024 08:53:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C5B4E0833; Sat, 19 Oct 2024 08:53:12 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 174CBE0833 for ; Sat, 19 Oct 2024 08:53:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5AC423430B7 for ; Sat, 19 Oct 2024 08:53:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EDE071F0F for ; Sat, 19 Oct 2024 08:53:09 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1729327981.6619664434efd0df02ce8565b16d50480e21c3f9.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/starlette/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/starlette/starlette-0.41.0-r2.ebuild X-VCS-Directories: dev-python/starlette/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6619664434efd0df02ce8565b16d50480e21c3f9 X-VCS-Branch: master Date: Sat, 19 Oct 2024 08:53:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 17d7cd15-0f54-489e-9692-85f70bb20767 X-Archives-Hash: e7702320201eabfd5e1a50768ba22f20 commit: 6619664434efd0df02ce8565b16d50480e21c3f9 Author: Michał Górny gentoo org> AuthorDate: Fri Oct 18 13:19:21 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Oct 19 08:53:01 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66196644 dev-python/starlette: Update for renamed dev-python/python-multipart Signed-off-by: Michał Górny gentoo.org> dev-python/starlette/starlette-0.41.0-r2.ebuild | 65 +++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/dev-python/starlette/starlette-0.41.0-r2.ebuild b/dev-python/starlette/starlette-0.41.0-r2.ebuild new file mode 100644 index 000000000000..19c9c36a4d2f --- /dev/null +++ b/dev-python/starlette/starlette-0.41.0-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 + +MY_P=${P/_p/.post} +DESCRIPTION="The little ASGI framework that shines" +HOMEPAGE=" + https://www.starlette.io/ + https://github.com/encode/starlette/ + https://pypi.org/project/starlette/ +" +# no docs or tests in sdist, as of 0.27.0 +SRC_URI=" + https://github.com/encode/starlette/archive/${PV/_p/.post}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + =dev-python/anyio-3.4.0[${PYTHON_USEDEP}] + >=dev-python/httpx-0.22.0[${PYTHON_USEDEP}] + dev-python/itsdangerous[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/python-multipart-0.0.12-r100[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/pytest-8[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ) +" + +: ${EPYTEST_TIMEOUT:-180} +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # python-multipart package renamed in Gentoo to python_multipart + sed -e "s:from multipart:from python_multipart:" \ + -e "s:import multipart:import python_multipart as multipart:" \ + -i starlette/*.py || die +} + +python_test() { + local EPYTEST_IGNORE=( + # Unpackaged 'databases' dependency + tests/test_database.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p anyio +}