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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BBDB8158087 for ; Sun, 23 Jan 2022 19:10:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA0D52BC00B; Sun, 23 Jan 2022 19:10:00 +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 0EF202BC00A for ; Sun, 23 Jan 2022 19:09:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 6B318342D63 for ; Sun, 23 Jan 2022 19:09:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03AABD0 for ; Sun, 23 Jan 2022 19:09:57 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1642964988.d948faaa26185a2aa341d4f84e5b090b2136ded8.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/starlette/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/starlette/Manifest dev-python/starlette/starlette-0.18.0.ebuild X-VCS-Directories: dev-python/starlette/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: d948faaa26185a2aa341d4f84e5b090b2136ded8 X-VCS-Branch: master Date: Sun, 23 Jan 2022 19:09:57 +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: c6f189c3-b36c-4465-9738-5c70e6a3ab0b X-Archives-Hash: c29a726072c7531834bb38a95e1808a4 commit: d948faaa26185a2aa341d4f84e5b090b2136ded8 Author: Arthur Zamarin gentoo org> AuthorDate: Sun Jan 23 19:05:38 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sun Jan 23 19:09:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d948faaa dev-python/starlette: add 0.18.0, enable tests Signed-off-by: Arthur Zamarin gentoo.org> dev-python/starlette/Manifest | 1 + dev-python/starlette/starlette-0.18.0.ebuild | 50 ++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/dev-python/starlette/Manifest b/dev-python/starlette/Manifest index bdd1afa4880c..2074c61a17cc 100644 --- a/dev-python/starlette/Manifest +++ b/dev-python/starlette/Manifest @@ -1 +1,2 @@ DIST starlette-0.17.1.tar.gz 403781 BLAKE2B 75de462afc507d89159f17002eb2acc5453520ad312573d5697f5da8fc7d76fcb2407bf41086c923a60a59766f5ac02de1b003962a4d1031c062bd80a0d50e6c SHA512 a8f8cee0dc40d19eab62996f4ef1230fa758375fa9b51e15eae5c906a89b76519ebe4e423aa567d73e4c055cef63e9bbae11b47d4372e28b615f6edaf22a06a7 +DIST starlette-0.18.0.gh.tar.gz 408097 BLAKE2B ddc85690d9eb962a8d82544a1667d17316025330c8fda0c79dc21422399bcff01ccf5baf85eda7941f40aac5845d18fdcefaa23ba8ba442d30f0b9e194f7287c SHA512 521d39c1eec818250da3f2dc24cd2fb08393b76e6314a9bd5f3e520bdfa4652ae4ace5876b7e7f3a7ddc5540160e1086997a40b86a1b1bfd694c6aa1abde9106 diff --git a/dev-python/starlette/starlette-0.18.0.ebuild b/dev-python/starlette/starlette-0.18.0.ebuild new file mode 100644 index 000000000000..7aa5fe6feff9 --- /dev/null +++ b/dev-python/starlette/starlette-0.18.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="The little ASGI framework that shines" +HOMEPAGE="https://www.starlette.io/" +SRC_URI=" + https://github.com/encode/starlette/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/anyio[${PYTHON_USEDEP}] + dev-python/itsdangerous[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' python3_{8,9} ) +" +BDEPEND="test? ( dev-python/trio[${PYTHON_USEDEP}] )" + +EPYTEST_IGNORE=( + # Unpackaged 'databases' dependency + tests/test_database.py + + # Unpackaged 'multipart' dependency + tests/test_formparsers.py +) + +EPYTEST_DESELECT=( + # Unpackaged 'multipart' dependency + tests/test_requests.py::test_request_form_urlencoded +) + +distutils_enable_tests pytest + +src_prepare() { + # fix accept-encoding, as new support was added with newer versions + sed -e '/accept-encoding/s/",/, br&/' -i tests/test_{websockets,requests}.py || die + + distutils-r1_src_prepare +}