diff options
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/argh/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/argh/argh-0.30.5.ebuild | 28 | ||||
| -rw-r--r-- | dev-python/jsonschema-specifications/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/jsonschema-specifications/jsonschema-specifications-2023.12.1.ebuild | 28 | ||||
| -rw-r--r-- | dev-python/mypy/mypy-1.7.1.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pebble/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pebble/pebble-5.0.6.ebuild | 24 | ||||
| -rw-r--r-- | dev-python/pyaml/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyaml/pyaml-23.12.0.ebuild | 30 | ||||
| -rw-r--r-- | dev-python/tavern/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/tavern/tavern-2.7.1.ebuild | 55 | ||||
| -rw-r--r-- | dev-python/uvicorn/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/uvicorn/files/uvicorn-0.25.0-test.patch | 46 | ||||
| -rw-r--r-- | dev-python/uvicorn/uvicorn-0.25.0.ebuild | 77 |
14 files changed, 295 insertions, 1 deletions
diff --git a/dev-python/argh/Manifest b/dev-python/argh/Manifest index ec33090ccbdd..bb933ee56341 100644 --- a/dev-python/argh/Manifest +++ b/dev-python/argh/Manifest @@ -1 +1,2 @@ DIST argh-0.30.4.tar.gz 62618 BLAKE2B e95ee9219d2b8079e4b9548f68811832ed9ca699c1dcfeabcf31a9a0c3fd35c107896f088a64efe430347fefd1424345753bc4e0341155a92d99a5327f4a137d SHA512 6a17fcaef3a1a400426cc53339e07583734b0b68ce9202a7b3655f5cababa495aa5269f66cde2d0b2217874ddb730bf7d1c7636dd915e4e778058399b9b9a44c +DIST argh-0.30.5.tar.gz 63041 BLAKE2B 3b8e928d1e6f8fd2340afa87072c35a04e4222dac7d3d549fa6040f3e1352365ff9d2b940d30f20b6aa0959a8331638e076e3f42fe7b16ff96be8734278db59c SHA512 74194010f0558335557a56ea9daa24a7301733090ffcbd201524b67727a64d8dabaeb31558f7da6f2bf51ab9354b371b09a0be55125bcaee128630df59343188 diff --git a/dev-python/argh/argh-0.30.5.ebuild b/dev-python/argh/argh-0.30.5.ebuild new file mode 100644 index 000000000000..b39fbe43f5ea --- /dev/null +++ b/dev-python/argh/argh-0.30.5.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A simple argparse wrapper" +HOMEPAGE=" + https://pythonhosted.org/argh/ + https://github.com/neithere/argh/ + https://pypi.org/project/argh/ +" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +LICENSE="LGPL-3" + +BDEPEND=" + test? ( + dev-python/iocapture[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/jsonschema-specifications/Manifest b/dev-python/jsonschema-specifications/Manifest index 01f35adf2973..1dba30a7cdfc 100644 --- a/dev-python/jsonschema-specifications/Manifest +++ b/dev-python/jsonschema-specifications/Manifest @@ -1 +1,2 @@ DIST jsonschema_specifications-2023.11.2.tar.gz 13033 BLAKE2B a9e64f1956a80f040eb300b772e10c7f75ed36502b69899bcadaef79086bc209d63b139bfe94cc3f30ee250bd50b9e0021e3c7616cecd08b322160cadba69046 SHA512 de990c8e6976a2a5915f9b5882f4b9da1cbe8c63a9de70aff74efeb2c659f041815186c6cb38ca9df14fefc211cae2b3c7c8af838fc4b9b853b07f7a5362f181 +DIST jsonschema_specifications-2023.12.1.tar.gz 13983 BLAKE2B db3cad7a900b114eff4827b6653da9e88b80cedae8f724fe030f373d98c7771f427a9960fa47cbe4d4b677805385a059aca08665271659b3e5ab43719c9d74d1 SHA512 7027641c65a6f7c618fd8c3b91af10bc45604966b6cf50780ca72c31f2135ec9d8b14de35049b4897586ad651b65392bb650d162f3bb546c9d250a8cd257ad30 diff --git a/dev-python/jsonschema-specifications/jsonschema-specifications-2023.12.1.ebuild b/dev-python/jsonschema-specifications/jsonschema-specifications-2023.12.1.ebuild new file mode 100644 index 000000000000..b2fee94a4a62 --- /dev/null +++ b/dev-python/jsonschema-specifications/jsonschema-specifications-2023.12.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="The JSON Schema meta-schemas and vocabularies, exposed as a Registry" +HOMEPAGE=" + https://github.com/python-jsonschema/jsonschema-specifications/ + https://pypi.org/project/jsonschema-specifications/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/referencing-0.31.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/mypy/mypy-1.7.1.ebuild b/dev-python/mypy/mypy-1.7.1.ebuild index 8899e3b7e54e..39cabee0d0da 100644 --- a/dev-python/mypy/mypy-1.7.1.ebuild +++ b/dev-python/mypy/mypy-1.7.1.ebuild @@ -22,7 +22,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv ~s390 sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv ~s390 sparc x86" IUSE="+native-extensions" # stubgen collides with this package: https://bugs.gentoo.org/585594 diff --git a/dev-python/pebble/Manifest b/dev-python/pebble/Manifest index 30ba38def838..31e7dbb3e0a7 100644 --- a/dev-python/pebble/Manifest +++ b/dev-python/pebble/Manifest @@ -1 +1,2 @@ DIST Pebble-5.0.5.tar.gz 30634 BLAKE2B 2ce70da8d2a5a8ed5368e54e63631167c09bf0f408d5e86c618fbe2237a01f0fed9e673c14fe7f8a63fb416d72bfad58c7eedd5292daf7753d067a7a219a3c22 SHA512 8d524e57e32f28fb4c59f09a7d1733d997298f526d6ba08477b060dd78c585b4f9da76b525a4052eefd1576dba464218d4b15ffe15f9e2cb1921423df3a33e1c +DIST Pebble-5.0.6.tar.gz 30635 BLAKE2B f7525808f69fc722fa2f115c4b6d97d34077275ceaa24a5d07eb97e7d22eeecbd0f9710bdc7cbf0cb0f13e28281dbb7ea808eda89216cae44c7020533385af5f SHA512 95afadcb1cad00e6a1e0c4f40c7f77e598f5c74af04dc57999dcc1cdea237dc8f7385b2bd60b19c4f7b47e5efad0d7b7310012f45ce8975c938a554a287eb69e diff --git a/dev-python/pebble/pebble-5.0.6.ebuild b/dev-python/pebble/pebble-5.0.6.ebuild new file mode 100644 index 000000000000..ee9b9fb10acb --- /dev/null +++ b/dev-python/pebble/pebble-5.0.6.ebuild @@ -0,0 +1,24 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN^} +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Threading and multiprocessing eye-candy" +HOMEPAGE=" + https://pebble.readthedocs.io/ + https://github.com/noxdafox/pebble/ + https://pypi.org/project/Pebble/ +" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +distutils_enable_tests pytest diff --git a/dev-python/pyaml/Manifest b/dev-python/pyaml/Manifest index 40cd68946a37..0f9e009bc0a6 100644 --- a/dev-python/pyaml/Manifest +++ b/dev-python/pyaml/Manifest @@ -1 +1,2 @@ +DIST pyaml-23.12.0.tar.gz 26308 BLAKE2B 89dad4c3b2a39179389c1b2e5ea6e3d93292c86f7fe5c1b55cc136f9b5a68cf7a86c6fb75a2fe44408738e53615c0062bb72511e605a8713d4381a7dff02f8fa SHA512 f1f03baf2b0a469ffbe7d6eea806cf7623a28c96221bc710873d548d8f416160bf566f44a3a42ca3572085834889e1dd394fc9bdeefe14fe23177b61573df12c DIST pyaml-23.9.7.tar.gz 26080 BLAKE2B cb3d423c7d300147909ec7d070400206bbb1a05d226a6c6967665d950e33efe8992a8e47b6c8e7803533a88edac8192d9aa0b87d17397e2bfc45ba9bc1a97424 SHA512 f21f8c329e5233f6774701fc1e5673e62ab162fb5f8efba25120d4e157940709f47a2c90838b3af42e71b7dcfc69852393b204d0d85b6d5fba28a23f8a118be0 diff --git a/dev-python/pyaml/pyaml-23.12.0.ebuild b/dev-python/pyaml/pyaml-23.12.0.ebuild new file mode 100644 index 000000000000..743ed8e481c6 --- /dev/null +++ b/dev-python/pyaml/pyaml-23.12.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="PyYAML-based module to produce pretty and readable YAML-serialized data" +HOMEPAGE=" + https://github.com/mk-fg/pretty-yaml/ + https://pypi.org/project/pyaml/ +" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND=" + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/unidecode[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest diff --git a/dev-python/tavern/Manifest b/dev-python/tavern/Manifest index 56ba0d73e7dd..2ceb8d3aeb1b 100644 --- a/dev-python/tavern/Manifest +++ b/dev-python/tavern/Manifest @@ -1 +1,2 @@ DIST tavern-2.6.0.gh.tar.gz 217509 BLAKE2B 99d9990757930a45a86a914fcf656b63266266869542cbd9b59850c7d648f54993ad5f409f12d09fbb12383c7586ecaeed323b04b478d62c7331cf514faa970a SHA512 1165dcc41244259d2ef7f69370dd35a40a9411b2a5c05e5dae45fc413d88478cd49aa540175a4a65dcf7dcd0eb2ee06b4f97059eb5d69ed5684893a8d5e8fcdc +DIST tavern-2.7.1.gh.tar.gz 220388 BLAKE2B 3e689ff0c29ddf2e53e018f86c79ea7e4e89e586d5f28b79c93263a10c4e7738fbf4c66df81fd55bc13a812223e538726f3f9b9f8bdbb94e7f043e90c70af2ce SHA512 de2822ec746c2ccb27a401c07bc5618539e4ad309e56437d0c66669612f48658fc352e42a0b4db94f9c183a159bbdcbeabdf30bebeac03c5f6a9f51bc7014b76 diff --git a/dev-python/tavern/tavern-2.7.1.ebuild b/dev-python/tavern/tavern-2.7.1.ebuild new file mode 100644 index 000000000000..2170fe851582 --- /dev/null +++ b/dev-python/tavern/tavern-2.7.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="A tool, library, and Pytest plugin for testing RESTful APIs" +HOMEPAGE=" + https://github.com/taverntesting/tavern/ + https://pypi.org/project/tavern/ +" +SRC_URI=" + https://github.com/taverntesting/tavern/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/jmespath-1[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4[${PYTHON_USEDEP}] + >=dev-python/paho-mqtt-1.3.1[${PYTHON_USEDEP}] + >=dev-python/pyjwt-2.5.0[${PYTHON_USEDEP}] + >=dev-python/pykwalify-1.8.0[${PYTHON_USEDEP}] + >=dev-python/pytest-7[${PYTHON_USEDEP}] + >=dev-python/python-box-6[${PYTHON_USEDEP}] + >=dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}] + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + >=dev-python/stevedore-4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/colorlog[${PYTHON_USEDEP}] + dev-python/Faker[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # strip unnecessary pins, upstream doesn't update them a lot + sed -i -E -e 's:,?<=?[0-9.]+::' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p tavern +} diff --git a/dev-python/uvicorn/Manifest b/dev-python/uvicorn/Manifest index 025f5112a687..80b466c9ff71 100644 --- a/dev-python/uvicorn/Manifest +++ b/dev-python/uvicorn/Manifest @@ -1 +1,2 @@ DIST uvicorn-0.24.0.gh.tar.gz 715220 BLAKE2B b71273545ae244544b5336524bf4ad1f386c8bb2b1addc501514833f37376f8a09a1d4dfc2272c3b62555337a20750af827c9a7a4c3bffc6327a9d1809869cfa SHA512 98b58ce17a1f072f36923b1b616f818cbadd091256ce1281a5236268ba2378d212384d9c3390b5903edfda5c692a67935051379e31732df45422595a88c69232 +DIST uvicorn-0.25.0.gh.tar.gz 717386 BLAKE2B f0a472676a732d7807137f157c95574584d882bf9ae8531c4e2c1164ebe9eec2172da62f72f07032ada422b7932f221457686aa22ab6fbceac57685ad91920b8 SHA512 19c1e6438c40ab1b1d30c9c9c84d65f2dc661197adcc6be3d7825223d933d4554ec388323e16452ef0409476766af1ae18bb3252a391099bd2e2bfe2b6c4abb2 diff --git a/dev-python/uvicorn/files/uvicorn-0.25.0-test.patch b/dev-python/uvicorn/files/uvicorn-0.25.0-test.patch new file mode 100644 index 000000000000..8cd1cc7bb8c4 --- /dev/null +++ b/dev-python/uvicorn/files/uvicorn-0.25.0-test.patch @@ -0,0 +1,46 @@ +From 64013e8729afc93880a749974491ab5a90b29deb Mon Sep 17 00:00:00 2001 +From: Marcelo Trylesinski <marcelotryle@gmail.com> +Date: Tue, 26 Dec 2023 10:28:55 +0100 +Subject: [PATCH] Allow test suite to run without httptools installed + +--- + tests/protocols/test_http.py | 19 +++++++------------ + 1 file changed, 7 insertions(+), 12 deletions(-) + +diff --git a/tests/protocols/test_http.py b/tests/protocols/test_http.py +index fde4cc70b..ca06b33a6 100644 +--- a/tests/protocols/test_http.py ++++ b/tests/protocols/test_http.py +@@ -994,25 +994,20 @@ async def test_huge_headers_h11_max_incomplete(): + + + @pytest.mark.anyio +-@pytest.mark.parametrize( +- "protocol_cls,close_header", +- ( +- pytest.param( +- HttpToolsProtocol, b"connection: close", marks=skip_if_no_httptools +- ), +- (H11Protocol, b"Connection: close"), +- ), +-) +-async def test_return_close_header(protocol_cls, close_header: bytes): ++async def test_return_close_header( ++ http_protocol_cls: "Type[HttpToolsProtocol | H11Protocol]" ++): + app = Response("Hello, world", media_type="text/plain") + +- protocol = get_connected_protocol(app, protocol_cls) ++ protocol = get_connected_protocol(app, http_protocol_cls) + protocol.data_received(CONNECTION_CLOSE_REQUEST) + await protocol.loop.run_one() + assert b"HTTP/1.1 200 OK" in protocol.transport.buffer + assert b"content-type: text/plain" in protocol.transport.buffer + assert b"content-length: 12" in protocol.transport.buffer +- assert close_header in protocol.transport.buffer ++ # NOTE: We need to use `.lower()` because H11 implementation doesn't allow Uvicorn ++ # to lowercase them. See: https://github.com/python-hyper/h11/issues/156 ++ assert b"connection: close" in protocol.transport.buffer.lower() + + + @pytest.mark.anyio diff --git a/dev-python/uvicorn/uvicorn-0.25.0.ebuild b/dev-python/uvicorn/uvicorn-0.25.0.ebuild new file mode 100644 index 000000000000..519c78df9d6a --- /dev/null +++ b/dev-python/uvicorn/uvicorn-0.25.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 optfeature + +DESCRIPTION="Lightning-fast ASGI server implementation" +HOMEPAGE=" + https://www.uvicorn.org/ + https://github.com/encode/uvicorn/ + https://pypi.org/project/uvicorn/ +" +# as of 0.21.0, no tests in sdist +SRC_URI=" + https://github.com/encode/uvicorn/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="test-rust" + +RDEPEND=" + >=dev-python/asgiref-3.4.0[${PYTHON_USEDEP}] + >=dev-python/click-7.0[${PYTHON_USEDEP}] + >=dev-python/h11-0.8[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/a2wsgi[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/python-dotenv[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/websockets-10.4[${PYTHON_USEDEP}] + dev-python/wsproto[${PYTHON_USEDEP}] + test-rust? ( + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + dev-python/watchfiles[${PYTHON_USEDEP}] + ) + ) +" + +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/encode/uvicorn/pull/2198 + "${FILESDIR}/${P}-test.patch" +) + +python_test() { + local EPYTEST_DESELECT=( + # too long path for unix socket + tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers + ) + case ${EPYTHON} in + pypy3) + # TODO + EPYTEST_DESELECT+=( + tests/middleware/test_logging.py::test_running_log_using_fd + ) + ;; + esac + + epytest +} + +pkg_postinst() { + optfeature "auto reload on file changes" dev-python/watchfiles +} |
