diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-06-18 18:21:58 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-06-18 18:21:58 +0000 |
| commit | 61de334eeb41268d1f6f34cdc2c7c59e5fadff3d (patch) | |
| tree | 4b01f2bd78750a3e93140738d2c1c74f37918f34 /dev-python | |
| parent | 1ec170ec4a58b796bf79c47901ce87771bea01f2 (diff) | |
| download | baldeagleos-repo-61de334eeb41268d1f6f34cdc2c7c59e5fadff3d.tar.gz baldeagleos-repo-61de334eeb41268d1f6f34cdc2c7c59e5fadff3d.tar.xz baldeagleos-repo-61de334eeb41268d1f6f34cdc2c7c59e5fadff3d.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
74 files changed, 1110 insertions, 674 deletions
diff --git a/dev-python/agate/Manifest b/dev-python/agate/Manifest index db409d09cba3..230c5346c8e6 100644 --- a/dev-python/agate/Manifest +++ b/dev-python/agate/Manifest @@ -1,3 +1 @@ -DIST agate-1.10.1.tar.gz 203139 BLAKE2B 656cc5f9abcc38848560bb81a9e7b1a8cf498897ea49a98bd3b44f3d625c69047ef3fa32b4a7191d8807c1bee29bd0c5a8d0ed99e1b91e30ea294b8fb436fb3d SHA512 b039fa587d1fc49277860f9876ad1f885f2530e82888ad8a32066f35e3086b5da0cb7aa9a2ed09ea7992efe649d32df27a372f85e4a06e8aca0d6ec8651567b5 -DIST agate-1.10.2.tar.gz 203542 BLAKE2B 697aa898756ab256ed8e9bb92a29b3ad1f8edeb7a8b9636d753a74373714d84a6d0a5d4abb8600b52eb510e478f16ca707839a01ab3a05fec72d88e443322dae SHA512 87385515e3ffe88afdeaa1202368d69824501dc5816b40e1f475afd027bbd5229c70e7449485e0845f50203e6749f3a736d16f17752d1bdd040dc92cbcc2461a DIST agate-1.11.0.tar.gz 203764 BLAKE2B c652f4f28840b036361fd05d5f1ca612fdb251a055f2e42d3859050907f0c0f0c17cb2a3351d5eb9d96759f18fc6851a501d1d3aabcb2ad257093ee97a96693d SHA512 9134987ed32838565e6d599568d5346e90d4623dca0868d13d134d6333d55f64ee4fc67469c691e1e964c735e14482e18615ca79f25108ffaf24c4da50a28ae6 diff --git a/dev-python/agate/agate-1.10.1.ebuild b/dev-python/agate/agate-1.10.1.ebuild deleted file mode 100644 index 2d595fd7df94..000000000000 --- a/dev-python/agate/agate-1.10.1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2021-2024 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="A Python data analysis library that is optimized for humans instead of machines" -HOMEPAGE=" - https://github.com/wireservice/agate/ - https://pypi.org/project/agate/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~arm64-macos ~x64-macos" - -RDEPEND=" - >=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}] - >=dev-python/parsedatetime-2.1[${PYTHON_USEDEP}] - >=dev-python/Babel-2.0[${PYTHON_USEDEP}] - >=dev-python/isodate-0.5.4[${PYTHON_USEDEP}] - >=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}] - >=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}] - >=dev-python/leather-0.3.3-r2[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-python/cssselect-0.9.1[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest -distutils_enable_sphinx docs \ - dev-python/furo - -EPYTEST_DESELECT=( - # require specific locales - tests/test_data_types.py::TestDate::test_cast_format_locale - tests/test_data_types.py::TestDateTime::test_cast_format_locale -) diff --git a/dev-python/agate/agate-1.10.2.ebuild b/dev-python/agate/agate-1.10.2.ebuild deleted file mode 100644 index 2d595fd7df94..000000000000 --- a/dev-python/agate/agate-1.10.2.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2021-2024 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="A Python data analysis library that is optimized for humans instead of machines" -HOMEPAGE=" - https://github.com/wireservice/agate/ - https://pypi.org/project/agate/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~arm64-macos ~x64-macos" - -RDEPEND=" - >=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}] - >=dev-python/parsedatetime-2.1[${PYTHON_USEDEP}] - >=dev-python/Babel-2.0[${PYTHON_USEDEP}] - >=dev-python/isodate-0.5.4[${PYTHON_USEDEP}] - >=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}] - >=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}] - >=dev-python/leather-0.3.3-r2[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-python/cssselect-0.9.1[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest -distutils_enable_sphinx docs \ - dev-python/furo - -EPYTEST_DESELECT=( - # require specific locales - tests/test_data_types.py::TestDate::test_cast_format_locale - tests/test_data_types.py::TestDateTime::test_cast_format_locale -) diff --git a/dev-python/anytree/Manifest b/dev-python/anytree/Manifest index 97b80ce124bc..46aba4f4175f 100644 --- a/dev-python/anytree/Manifest +++ b/dev-python/anytree/Manifest @@ -1 +1 @@ -DIST anytree-2.12.0.tar.gz 192330 BLAKE2B 117f80689b6610f622a41b2abb85cf54f2ba639659f80e6b8d163043d2552586ef11ed86532b19c7b69beec5e66ab3acad2f72ed0f1e9aa5d3832e4e8ec76457 SHA512 822a72cf84227a7b78cb3808eea585d783821d9c476f1b1e50d77cf982b4bf3c08011be9564ff5205a3efd0d982b03daabeb0067aea523a14002179c94451ff4 +DIST anytree-2.12.0.gh.tar.gz 192330 BLAKE2B 117f80689b6610f622a41b2abb85cf54f2ba639659f80e6b8d163043d2552586ef11ed86532b19c7b69beec5e66ab3acad2f72ed0f1e9aa5d3832e4e8ec76457 SHA512 822a72cf84227a7b78cb3808eea585d783821d9c476f1b1e50d77cf982b4bf3c08011be9564ff5205a3efd0d982b03daabeb0067aea523a14002179c94451ff4 diff --git a/dev-python/anytree/anytree-2.12.0.ebuild b/dev-python/anytree/anytree-2.12.0.ebuild index e7ae27016f4e..6820d9a171a3 100644 --- a/dev-python/anytree/anytree-2.12.0.ebuild +++ b/dev-python/anytree/anytree-2.12.0.ebuild @@ -7,17 +7,32 @@ PYTHON_COMPAT=( python3_{8,9,10,11,12} ) DISTUTILS_USE_PEP517=poetry inherit distutils-r1 -# inherit pypi DESCRIPTION="Powerful and Lightweight Python Tree Data Structure with various plugins" HOMEPAGE="https://anytree.readthedocs.io/" -SRC_URI="https://github.com/c0fec0de/anytree/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/c0fec0de/anytree/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="dot" + +RDEPEND=" + dot? ( + media-gfx/graphviz + ) +" + +DEPEND="${RDEPEND} + test? ( + $(python_gen_cond_dep ' + dev-python/six[${PYTHON_USEDEP}] + ') + ) +" + distutils_enable_sphinx docs distutils_enable_tests pytest @@ -29,6 +44,14 @@ src_prepare(){ python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x EPYTEST_DESELECT=() + + if ! use dot; then + EPYTEST_DESELECT+=( + "tests/test_dotexport.py::test_tree_png" + ) + fi + cd "${S}/tests" || die distutils-r1_python_test } diff --git a/dev-python/anytree/metadata.xml b/dev-python/anytree/metadata.xml index 7b82247675b4..dd63decf2550 100644 --- a/dev-python/anytree/metadata.xml +++ b/dev-python/anytree/metadata.xml @@ -5,5 +5,8 @@ <email>negril.nx+gentoo@gmail.com</email> </maintainer> + <use> + <flag name="dot">allow to create dot graphs using <pkg>media-gfx/graphviz</pkg></flag> + </use> <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/autoprop/autoprop-4.1.0.ebuild b/dev-python/autoprop/autoprop-4.1.0.ebuild index 0eaee9cb1bb7..d1c90b4ab135 100644 --- a/dev-python/autoprop/autoprop-4.1.0.ebuild +++ b/dev-python/autoprop/autoprop-4.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,8 +15,8 @@ HOMEPAGE=" " LICENSE="MIT" -KEYWORDS="~amd64 ~arm64" SLOT="0" +KEYWORDS="~amd64 ~arm64" RDEPEND=" >=dev-python/signature-dispatch-1.0.0[${PYTHON_USEDEP}] diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index bf07191ec666..38ef5442b1d6 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -1,3 +1,4 @@ DIST boto3-1.34.117.gh.tar.gz 813596 BLAKE2B 1b68c6410a9e4859c05ec6e8baa7b4d0a8eda39ac9cfe7173d581e5712409bb5df83d35f30deb4f5e4e1dd70c0dc411cd8a1725b00f1e8a3026dbaef9862cde0 SHA512 40c6c1d62d94e0ac8d0237abbbacb9b7473dbce0ee7be5f2e8106f0c0be99b6bf048f3068e2978c578a8df5948f854bd4f3b9d99d935094a646a33f3bada7136 DIST boto3-1.34.122.gh.tar.gz 817093 BLAKE2B ecc91833d5d8b7ae33c2fe435e33bc8fa236388dcd36bbbfad138e72dcada1018d9fe032a04565bc6ba04f252c5b1e066f650620aab2b6682705d164660eaa9b SHA512 26ece26e24a09ce12f57fd7cbede798446ddb60c28dd7d090c2604b71cc92fca9cfdc268e6d65fad1bcecf161976186b21acefdb70a2de8acaccd85567a388d0 DIST boto3-1.34.127.gh.tar.gz 820740 BLAKE2B ddfb7802440a01af27059daed4bc7cd3797eb192004a0e7b78e1e56a8ff479206b4835a79bcac1db273c2936fb8dfde0ba16bebe8cbe1befeb188070bf46b2c7 SHA512 b139ad68a4ce29e84e0fa1618b97c4aea13b668521921712df74256ad61c21d2077ea216dfb4102d8f9910a8119b24509aa10a504d746bdb410fee1cecc0461c +DIST boto3-1.34.128.gh.tar.gz 821252 BLAKE2B 7f7d13106d69b54d4932a52c0d0b2803cc5131773ce9503a1fc8ea8ff3fdfb5ba5f372b2665312ce3c136f4f37889e54cd61b49eec72ac21902f379b0ec87f29 SHA512 ee46351e613c55cf720e2bf361df8bb07954a05bc9707ce20fe75390abf195674d50e4f862ed8d357397e83c7ffcc586eff396d186596e688b895deaaaf4699f diff --git a/dev-python/boto3/boto3-1.34.128.ebuild b/dev-python/boto3/boto3-1.34.128.ebuild new file mode 100644 index 000000000000..509842b2699d --- /dev/null +++ b/dev-python/boto3/boto3-1.34.128.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 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 + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/botocore-${PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}] +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 7a0135f2bf86..92c0b0c14913 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -1,3 +1,4 @@ DIST botocore-1.34.117.gh.tar.gz 13076178 BLAKE2B defbd66d6409004fe49df44aec0a00b4bbe1a459d3e4b067c5c8609b998c63e7d62c8d3c48805416d44c08aeb3ab261f4449cc7e6a7c66dd3ca5f97bdcce291f SHA512 d9736ddb868e602afbaad95989d284b2835636f273e8a4263caa7eec619fe7cc45515fbbe98d4fd33121fe0d97d34353f7cd811bc878a81d1f5f7437798b24d6 DIST botocore-1.34.122.gh.tar.gz 13066937 BLAKE2B f22af79873b5574ae4b2b9041568cfc1d727625c3fa45c9b8d1bef71ffcce893aa8a3591c83160437c7e617be72814a2209569db633d857f869a2152af7c8e05 SHA512 f08dcb2920d4bd26a47478edb871f75b240275a7b96acf58be838080dddca3d4f64b9fda8683e5a3db97defe367298b2ba634fc4d605523805b23c83c3a5ae0d DIST botocore-1.34.127.gh.tar.gz 13112261 BLAKE2B e883f0a1e29178667678132195aea9666a124456e731e1b158eed895c125fd614e5671639766f7ad46c2e6b16c4156ff5e42594bc04e49bf25380c91cfcbe264 SHA512 48ca2179c24bb219202e5029dd62350a6fc5c64707762f0f33282e542dbc2227bb146376afa9e6b9eb1e45e3c801208a142bef4827d5036eb4724299c826d534 +DIST botocore-1.34.128.gh.tar.gz 13115625 BLAKE2B 77be2cb79722d1052b64df55a7bb7a9d43dc7d0052c2a4ce18265745edb7b6f9f30780a98f2395abadcfc16817e7375b182691b51f44450574846cc4bb423df5 SHA512 d5f709230ba73ea7c78a4b55a07c0d834b1abf2c3196d43d47d042e1cb190f5d8d08ad942053963ad5df9b2e01b5f905d167840f54842a41181de5305762d5d1 diff --git a/dev-python/botocore/botocore-1.34.128.ebuild b/dev-python/botocore/botocore-1.34.128.ebuild new file mode 100644 index 000000000000..857224b496b7 --- /dev/null +++ b/dev-python/botocore/botocore-1.34.128.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2024 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 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/bottleneck/Manifest b/dev-python/bottleneck/Manifest index de23db953952..7450c87d3457 100644 --- a/dev-python/bottleneck/Manifest +++ b/dev-python/bottleneck/Manifest @@ -1,2 +1,3 @@ DIST Bottleneck-1.3.8.tar.gz 103252 BLAKE2B 1e520e33eaa86b7328d469a8de2f0cacedb401f9dab3686cad40132caa23e77055b71e630fadda9305f3d416e8958e9762053e6d46afba4cf15489db77418b67 SHA512 951a927ce368643e2ccb5154c05381ce9ff17bc703c0bcd85eab547e345601ad82eb1dc85fa16d667753bf3dc9d0296025984dae463a0153944a85a085331a8e +DIST bottleneck-1.4.0.tar.gz 103490 BLAKE2B c72b53bd1f4325fa53d7824e335ec50a37da7650c097bdda22548637c1e5a95bfa219dad1361dfb2eecdcf0fa1445a5c6cfb94b7472290fa6317524dc474f46c SHA512 07c1224d63a34e12488dce1f72152fdc493db904130cef46092f7f9c3218a04032e90d64dbf385069072c5d56c7ea09db15897d5c77b9d53db2e3da9414f84cc DIST bottleneck-1.4.0rc5.tar.gz 103528 BLAKE2B 760c0958507b5472525694f7b5a11bdb999aa7fb14ab1465d49a81ef8725a007cf070e8393a807a703af7aad1419aafb19859d62bf8871be0348d60b4913d62c SHA512 68394c00567456af54096005d1f971abe872ee1f6d8776aac46d7e183bbb20dbee730e6845fd2c94cdc4dcdb4b8da2e154610784227d5058153c078c61bd9311 diff --git a/dev-python/bottleneck/bottleneck-1.4.0.ebuild b/dev-python/bottleneck/bottleneck-1.4.0.ebuild new file mode 100644 index 000000000000..126ce47f5820 --- /dev/null +++ b/dev-python/bottleneck/bottleneck-1.4.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=${PN^} +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Fast NumPy array functions written in C" +HOMEPAGE=" + https://github.com/pydata/bottleneck/ + https://pypi.org/project/Bottleneck/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" + +DEPEND=" + >=dev-python/numpy-1.9.1:=[${PYTHON_USEDEP}] +" +RDEPEND=" + ${DEPEND} +" + +distutils_enable_tests pytest + +src_prepare() { + # don't overwrites user's optimization level + sed -e '/extra_compile_args=\["-O2"\]/d' -i setup.py || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # GC assumptions? + tests/memory_test.py::test_memory_leak + ) + ;; + esac + + rm -rf bottleneck || die + epytest --pyargs bottleneck +} diff --git a/dev-python/crashtest/crashtest-0.4.1.ebuild b/dev-python/crashtest/crashtest-0.4.1.ebuild index 6bbf63b7d929..dd83b2189d23 100644 --- a/dev-python/crashtest/crashtest-0.4.1.ebuild +++ b/dev-python/crashtest/crashtest-0.4.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -10,11 +10,11 @@ inherit distutils-r1 DESCRIPTION="Python library that makes exceptions handling and inspection easier" HOMEPAGE=" - https://github.com/sdispater/crashtest/ + https://github.com/python-poetry/crashtest/ https://pypi.org/project/crashtest/ " SRC_URI=" - https://github.com/sdispater/crashtest/archive/${PV}.tar.gz + https://github.com/python-poetry/crashtest/archive/${PV}.tar.gz -> ${P}.gh.tar.gz " diff --git a/dev-python/crcmod/crcmod-1.7-r5.ebuild b/dev-python/crcmod/crcmod-1.7-r5.ebuild index 56e078427fad..68b8cb74bf97 100644 --- a/dev-python/crcmod/crcmod-1.7-r5.ebuild +++ b/dev-python/crcmod/crcmod-1.7-r5.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10,11,12,13,13} ) +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 diff --git a/dev-python/cson/cson-0.8-r4.ebuild b/dev-python/cson/cson-0.8-r4.ebuild index 2a8f2b9efdca..721ef3af7bc3 100644 --- a/dev-python/cson/cson-0.8-r4.ebuild +++ b/dev-python/cson/cson-0.8-r4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest index 79c61f26f4d9..f9e652c9146e 100644 --- a/dev-python/fonttools/Manifest +++ b/dev-python/fonttools/Manifest @@ -1,5 +1,2 @@ -DIST fonttools-4.50.0.gh.tar.gz 3823676 BLAKE2B ebcc19b3f2c8367147c7e05a514951d25497b1e6e224226e0831f566464b6d407e6a52a3b30620dbe87df1a0ce03d95cb5769cab15ee78822d218ccd81419263 SHA512 a169f18077f2c4f0ad8a46569a30b3e35ca2343e9f3d43cd362dafa26085f545dd9a42e7edb3054f9d37e1576117aa34a0c2b4adabc9fc29c076e69d3fdd66ee DIST fonttools-4.51.0.gh.tar.gz 3826324 BLAKE2B 84485874ce373ef759746104f8c0593d63e2955427a1606404e56ae006342fef39e3fe9468d85b974741ae26a8cceba23ea46e33fff0e2648c154074b01b5eac SHA512 3a9984b56a8ed1e918781c8503dd8901276ae7e20659777ff0a9bf799a42b4ec112a6cfd31deb81f73f7f19c03145a66962187fb243b2580db9d3ef7011d3d82 -DIST fonttools-4.52.1.gh.tar.gz 3845345 BLAKE2B c987e8214d4ca998b4f700d11d5c2e31efd8684f4dda6541735db9bd7547b738a1cb786b6c84aa30488a5a6fb2d71e4246dff7f873fdc1161745f74bcc29bd40 SHA512 4bb5fbcbb108723ffeb07baa87699e664775d52653aadae5ee15ed3a74d7f6349e1972e3873f3041fba6d68144f5a364b86373f158f6574a03e68e0eef4ffc7d -DIST fonttools-4.52.3.gh.tar.gz 3848091 BLAKE2B 5f748ff511b35f72f914bed03ea4a0eb3032dcfabc49e95abcbfbfd7c05bb0ed886422b07ff87058304c9c5cfcf4d20202ea61cc2e32fe7bbfae18d3b1c88c8c SHA512 00ad7975d0fc1d6d7cf13221e81526242ebd30c7ca511bc937d96400f186ee9b7505fcbaf8f6f2996a354a8e52b6ed7a5dda2cfdd271403e97e173b771648719 DIST fonttools-4.53.0.gh.tar.gz 3847778 BLAKE2B 31cf6e495441aeee90f96d6f96b9eedb581f3ee7e5e6f00f7df41547738e7da24d58b4aeac691c44961f842bbf347b32965b052d84ced88c7ade9c0d95c0367a SHA512 f810c428680c4203af3450c4a4b3a1d0f3f5e06ec7d7aac65e1e4aadf5d1e98f9efa5fed75388c8b0a0dcef5094d9b0586c0a71587360bafc91ad683a961698a diff --git a/dev-python/fonttools/fonttools-4.50.0.ebuild b/dev-python/fonttools/fonttools-4.50.0.ebuild deleted file mode 100644 index 2a58b639d265..000000000000 --- a/dev-python/fonttools/fonttools-4.50.0.ebuild +++ /dev/null @@ -1,98 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) -PYTHON_REQ_USE="xml(+)" - -inherit distutils-r1 virtualx - -DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts" -HOMEPAGE=" - https://github.com/fonttools/fonttools/ - https://pypi.org/project/fonttools/ -" -SRC_URI=" - https://github.com/fonttools/fonttools/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~x64-macos" -IUSE="+native-extensions" - -RDEPEND=" - >=dev-python/fs-2.4.9[${PYTHON_USEDEP}] -" -BDEPEND=" - native-extensions? ( - $(python_gen_cond_dep ' - dev-python/cython[${PYTHON_USEDEP}] - ' 'python*') - ) - test? ( - dev-python/brotlicffi[${PYTHON_USEDEP}] - dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] - app-arch/zopfli - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_prepare_all() { - # When dev-python/pytest-shutil is installed, we get weird import errors. - # This is due to incomplete nesting in the Tests/ tree: - # - # Tests/feaLib/__init__.py - # Tests/ufoLib/__init__.py - # Tests/svgLib/path/__init__.py - # Tests/otlLib/__init__.py - # Tests/varLib/__init__.py - # - # This tree requires an __init__.py in Tests/svgLib/ too, bug #701148. - touch Tests/svgLib/__init__.py || die - - distutils-r1_python_prepare_all -} - -python_compile() { - local -x FONTTOOLS_WITH_CYTHON=$(usex native-extensions) - [[ ${EPYTHON} == pypy3 ]] && FONTTOOLS_WITH_CYTHON=0 - distutils-r1_python_compile -} - -src_test() { - # virtualx used when matplotlib is installed causing plot module tests to run - virtx distutils-r1_src_test -} - -python_test() { - local EPYTEST_DESELECT=( - # flaky test - Tests/ttLib/woff2_test.py::WOFF2ReaderTest::test_get_normal_tables - ) - - if [[ ${EPYTHON} == pypy3 ]] && - has_version "dev-python/pyxattr[${PYTHON_USEDEP}]" && - { - has_version "<dev-python/pypy3_10-exe-7.3.13_p2" || - has_version "<dev-python/pypy3_10-exe-bin-7.3.13_p2" - } - then - EPYTEST_DESELECT+=( - # affected by a bug in PyPy/pyxattr - # https://github.com/iustin/pyxattr/issues/41 - Tests/t1Lib/t1Lib_test.py::ReadWriteTest::test_read_with_path - ) - fi - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - nonfatal epytest \ - -p rerunfailures --reruns=5 \ - Tests fontTools || die -n "Tests failed with ${EPYTHON}" -} diff --git a/dev-python/fonttools/fonttools-4.52.1.ebuild b/dev-python/fonttools/fonttools-4.52.1.ebuild deleted file mode 100644 index 10245bd51347..000000000000 --- a/dev-python/fonttools/fonttools-4.52.1.ebuild +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) -PYTHON_REQ_USE="xml(+)" - -inherit distutils-r1 virtualx - -DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts" -HOMEPAGE=" - https://github.com/fonttools/fonttools/ - https://pypi.org/project/fonttools/ -" -SRC_URI=" - https://github.com/fonttools/fonttools/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~s390 ~x86" -IUSE="+native-extensions" - -RDEPEND=" - >=dev-python/fs-2.4.9[${PYTHON_USEDEP}] -" -BDEPEND=" - native-extensions? ( - $(python_gen_cond_dep ' - dev-python/cython[${PYTHON_USEDEP}] - ' 'python*') - ) - test? ( - dev-python/brotlicffi[${PYTHON_USEDEP}] - dev-python/munkres[${PYTHON_USEDEP}] - dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] - app-arch/zopfli - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_prepare_all() { - # When dev-python/pytest-shutil is installed, we get weird import errors. - # This is due to incomplete nesting in the Tests/ tree: - # - # Tests/feaLib/__init__.py - # Tests/ufoLib/__init__.py - # Tests/svgLib/path/__init__.py - # Tests/otlLib/__init__.py - # Tests/varLib/__init__.py - # - # This tree requires an __init__.py in Tests/svgLib/ too, bug #701148. - touch Tests/svgLib/__init__.py || die - - distutils-r1_python_prepare_all -} - -python_compile() { - local -x FONTTOOLS_WITH_CYTHON=$(usex native-extensions) - [[ ${EPYTHON} == pypy3 ]] && FONTTOOLS_WITH_CYTHON=0 - distutils-r1_python_compile -} - -src_test() { - # virtualx used when matplotlib is installed causing plot module tests to run - virtx distutils-r1_src_test -} - -python_test() { - local EPYTEST_DESELECT=( - # flaky test - Tests/ttLib/woff2_test.py::WOFF2ReaderTest::test_get_normal_tables - ) - - if [[ ${EPYTHON} == pypy3 ]] && - has_version "dev-python/pyxattr[${PYTHON_USEDEP}]" && - { - has_version "<dev-python/pypy3_10-exe-7.3.13_p2" || - has_version "<dev-python/pypy3_10-exe-bin-7.3.13_p2" - } - then - EPYTEST_DESELECT+=( - # affected by a bug in PyPy/pyxattr - # https://github.com/iustin/pyxattr/issues/41 - Tests/t1Lib/t1Lib_test.py::ReadWriteTest::test_read_with_path - ) - fi - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - nonfatal epytest \ - -p rerunfailures --reruns=5 \ - Tests fontTools || die -n "Tests failed with ${EPYTHON}" -} diff --git a/dev-python/fonttools/fonttools-4.52.3.ebuild b/dev-python/fonttools/fonttools-4.52.3.ebuild deleted file mode 100644 index 22bc101caf93..000000000000 --- a/dev-python/fonttools/fonttools-4.52.3.ebuild +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) -PYTHON_REQ_USE="xml(+)" - -inherit distutils-r1 virtualx - -DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts" -HOMEPAGE=" - https://github.com/fonttools/fonttools/ - https://pypi.org/project/fonttools/ -" -SRC_URI=" - https://github.com/fonttools/fonttools/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390 ~x86" -IUSE="+native-extensions" - -RDEPEND=" - >=dev-python/fs-2.4.9[${PYTHON_USEDEP}] -" -BDEPEND=" - native-extensions? ( - $(python_gen_cond_dep ' - dev-python/cython[${PYTHON_USEDEP}] - ' 'python*') - ) - test? ( - dev-python/brotlicffi[${PYTHON_USEDEP}] - dev-python/munkres[${PYTHON_USEDEP}] - dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] - app-arch/zopfli - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_prepare_all() { - # When dev-python/pytest-shutil is installed, we get weird import errors. - # This is due to incomplete nesting in the Tests/ tree: - # - # Tests/feaLib/__init__.py - # Tests/ufoLib/__init__.py - # Tests/svgLib/path/__init__.py - # Tests/otlLib/__init__.py - # Tests/varLib/__init__.py - # - # This tree requires an __init__.py in Tests/svgLib/ too, bug #701148. - touch Tests/svgLib/__init__.py || die - - distutils-r1_python_prepare_all -} - -python_compile() { - local -x FONTTOOLS_WITH_CYTHON=$(usex native-extensions) - [[ ${EPYTHON} == pypy3 ]] && FONTTOOLS_WITH_CYTHON=0 - distutils-r1_python_compile -} - -src_test() { - # virtualx used when matplotlib is installed causing plot module tests to run - virtx distutils-r1_src_test -} - -python_test() { - local EPYTEST_DESELECT=( - # flaky test - Tests/ttLib/woff2_test.py::WOFF2ReaderTest::test_get_normal_tables - ) - - if [[ ${EPYTHON} == pypy3 ]] && - has_version "dev-python/pyxattr[${PYTHON_USEDEP}]" && - { - has_version "<dev-python/pypy3_10-exe-7.3.13_p2" || - has_version "<dev-python/pypy3_10-exe-bin-7.3.13_p2" - } - then - EPYTEST_DESELECT+=( - # affected by a bug in PyPy/pyxattr - # https://github.com/iustin/pyxattr/issues/41 - Tests/t1Lib/t1Lib_test.py::ReadWriteTest::test_read_with_path - ) - fi - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - nonfatal epytest \ - -p rerunfailures --reruns=5 \ - Tests fontTools || die -n "Tests failed with ${EPYTHON}" -} diff --git a/dev-python/griffe/Manifest b/dev-python/griffe/Manifest index d29fb1754d81..70b84967cb78 100644 --- a/dev-python/griffe/Manifest +++ b/dev-python/griffe/Manifest @@ -1,2 +1,3 @@ DIST griffe-0.45.3.gh.tar.gz 228938 BLAKE2B fa6ea0e5aca0e7124671ccf0527f78f46be3462bac8656fb7b6ba3bf715956418477e28ba27af57c42fea4b60eabb6125e308d189c24388484c2b5e48bf2bccc SHA512 c40dac16fe7993b790be6ff1bf23aa79a84985eeeb772fae96121b625efc80d7c7d7a77aac9077997a63880b50f59ac493d1da8392ddaefd3f95fe8eda5af985 DIST griffe-0.46.0.gh.tar.gz 232125 BLAKE2B f10b9cc020f1aa4fad8b45b17e1138cc749b410ac7566e761a47fe6d82fa236a2408182e765e05c8d7430d12ed1e6f72eff06a4a09d970ed32ec47c89518623c SHA512 467a3416353c29bc7bab8a774a3dd034b63c56655e6181d1bc11d63bfd077bb8665753837e9b8b5e909240b9a79d9e1468afba3addebb91f5b3638b732687913 +DIST griffe-0.46.1.gh.tar.gz 232727 BLAKE2B c056cb47e7423931336db55b2871f7a0908e453abc930fe82ef5dce0dc38d2de223b4349547362d54f061d5cbc8f1c8802a7277f776ea4c7e6630794774865a2 SHA512 07ee210c8e3b9c814d5e419ac3bb2a37065ecdda26b9215fcbb3b87dcdd542d5a52de186c69542aa25c20eb70e2a21a6274dbd9c8e19650fe8a48f483c4efbdc diff --git a/dev-python/griffe/griffe-0.46.1.ebuild b/dev-python/griffe/griffe-0.46.1.ebuild new file mode 100644 index 000000000000..6b674e3230b3 --- /dev/null +++ b/dev-python/griffe/griffe-0.46.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=pdm-backend +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Signature generator for Python programs" +HOMEPAGE=" + https://mkdocstrings.github.io/griffe/ + https://github.com/mkdocstrings/griffe/ + https://pypi.org/project/griffe/ +" +# Tests need files absent from the PyPI tarballs +SRC_URI=" + https://github.com/mkdocstrings/griffe/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" + +RDEPEND=" + >=dev-python/colorama-0.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/jsonschema-4.17[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-2.4[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +export PDM_BUILD_SCM_VERSION=${PV} + +EPYTEST_DESELECT=( + # fragile to installed packages + # (failed on PySide2 for me) + tests/test_stdlib.py::test_fuzzing_on_stdlib +) diff --git a/dev-python/jaraco-text/Manifest b/dev-python/jaraco-text/Manifest index 876b22720a95..b8c2cec71460 100644 --- a/dev-python/jaraco-text/Manifest +++ b/dev-python/jaraco-text/Manifest @@ -1 +1,2 @@ DIST jaraco.text-3.12.0.tar.gz 16329 BLAKE2B e1314b3121d5d75ac4a986a342c3290f5523bb45be8bf8e994ed87188712464e75a805498a7d846aea157aa8592fbca444842d1b70a21e0add49e89dfa743a7a SHA512 75068006c96dae3b8d21228f2ae21820939c68b1fb7e5db35bd0c1126a20399eb4d99c6bea15e88076599956c4b41104558cd32d860d8f4fd4e96aeeb22711c9 +DIST jaraco_text-3.12.1.tar.gz 16580 BLAKE2B 89f11877052e6b7cacbee4ae53ea140ce337a3a8f25657c558e3634378d20ac70206fd188f8492bdc725ebfec94c7f553ec61a9a3be97738918746fab79a9414 SHA512 4a459e497259de8dc37fbe92eec19973f5d1425f23212221885339a9c7b0f432301978c3c918f4cdd4e1cb3e50b465aad07634ab8cf40f86151d08b150d097e4 diff --git a/dev-python/jaraco-text/jaraco-text-3.12.1.ebuild b/dev-python/jaraco-text/jaraco-text-3.12.1.ebuild new file mode 100644 index 000000000000..aa7fdf10128c --- /dev/null +++ b/dev-python/jaraco-text/jaraco-text-3.12.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 8 -- sys-apps/portage dep +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYPI_PN=${PN/-/.} +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Text utilities used by other projects by developer jaraco" +HOMEPAGE=" + https://github.com/jaraco/jaraco.text/ + https://pypi.org/project/jaraco.text/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +RDEPEND=" + >=dev-python/jaraco-context-4.1.1-r1[${PYTHON_USEDEP}] + >=dev-python/jaraco-functools-3.5.0-r1[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_configure() { + grep -q 'build-backend = "setuptools' pyproject.toml || + die "Upstream changed build-backend, recheck" + # write a custom pyproject.toml to ease setuptools bootstrap + cat > pyproject.toml <<-EOF || die + [build-system] + requires = ["flit_core >=3.2,<4"] + build-backend = "flit_core.buildapi" + + [project] + name = "jaraco.text" + version = "${PV}" + description = "Module for text manipulation" + EOF + + # remove CLI tools, they have annoying deps, no entry points + # and since there are dashes in their names, they can't be imported + # anyway + rm jaraco/text/*-*.py || die +} + +python_install() { + distutils-r1_python_install + # rename to workaround a bug in pkg_resources + # https://bugs.gentoo.org/834522 + mv "${D}$(python_get_sitedir)"/jaraco{_,.}text-${PV}.dist-info || die +} diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index a11d7c268c91..37a64204a00a 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1 +1,3 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db +EBUILD langdetect-1.0.9.ebuild 494 BLAKE2B 9b3521c5721afa49a58e0c35267f7d82bb56bd7e1d6d3152be0d36cd220180a526cb20b90b1113fbf0fff4a512137570f0b3bcf864498b7b7cc00403cb61ca27 SHA512 16d311400bf84a5f04e15f3da4b68b2810e4b005009f4d03dc8a487176dfc294403c976c412c83dcfa8084a49ef7b7d5389b43fb2ba446ce107ce4595e3558c6 +MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch deleted file mode 100644 index 637368d2f237..000000000000 --- a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch +++ /dev/null @@ -1,13 +0,0 @@ -Fix "Package 'langdetect.profiles' is absent from the `packages` configuration." - ---- a/setup.py -+++ b/setup.py -@@ -18,7 +18,7 @@ setup( - author_email='michal.danilak@gmail.com', - url='https://github.com/Mimino666/langdetect', - keywords='language detection library', -- packages=['langdetect', 'langdetect.utils', 'langdetect.tests'], -+ packages=['langdetect', 'langdetect.utils', 'langdetect.tests', 'langdetect.profiles'], - include_package_data=True, - install_requires=['six'], - license='MIT', diff --git a/dev-python/langdetect/langdetect-1.0.9.ebuild b/dev-python/langdetect/langdetect-1.0.9.ebuild index 630fe63c6f53..c09b7356f549 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,6 +19,4 @@ KEYWORDS="~amd64" RDEPEND="dev-python/six[${PYTHON_USEDEP}]" -PATCHES=( "${FILESDIR}/${P}-explicit-config.patch" ) - distutils_enable_tests unittest diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index 736a1167c898..020e07f2a3dd 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -1,6 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - - <origin>gentoo-guru-overlay</origin> + <maintainer type="person"> + <email>marcin.deranek@slonko.net</email> + <name>Marcin Deranek</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> + </upstream> + <origin>slonko-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/markups/markups-4.0.0.ebuild b/dev-python/markups/markups-4.0.0.ebuild index c53e5ebee032..837ead51062f 100644 --- a/dev-python/markups/markups-4.0.0.ebuild +++ b/dev-python/markups/markups-4.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/netcdf4/Manifest b/dev-python/netcdf4/Manifest index 50cfaf9101f5..4bfb7a2252a8 100644 --- a/dev-python/netcdf4/Manifest +++ b/dev-python/netcdf4/Manifest @@ -1 +1,2 @@ DIST netCDF4-1.6.5.tar.gz 764969 BLAKE2B 6337099fbb66a53f2cda7a39e1b0dbb7b3ab9e6ec04177fc0deca1c86003bc20d9ed5d6ba72d5917766c1b9784c39c7cff328a7b5494aeb46bcc1ac895c13e7c SHA512 10f9b62399cf2d155f44b56d6d0f15950f610e855755bcb6d7d1756ded9ed513e83677ab70f7bc75eaffaca1703f37cc0a48c565927df7eb67beeb5a0be6f8d0 +DIST netcdf4-1.7.1.tar.gz 827831 BLAKE2B a0b6956be7749133f4823f385ea82b84975985814b90e7172ecbfb6d4590cf0809471672375a2331181735d7af622f6302adf2dad5fd95f09e24078bbdc20581 SHA512 69b7465f1d7b138b9f2f18732528207c7a573e0a5637c964a881fddc8f01a53b16c7250c22824a6ee0e3383dccd7f93b1971f95a9d1558d6088709efa7558ce7 diff --git a/dev-python/netcdf4/netcdf4-1.7.1.ebuild b/dev-python/netcdf4/netcdf4-1.7.1.ebuild new file mode 100644 index 000000000000..090b298a7a96 --- /dev/null +++ b/dev-python/netcdf4/netcdf4-1.7.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=netCDF4 +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="Python/numpy interface to the netCDF C library" +HOMEPAGE=" + https://unidata.github.io/netcdf4-python/ + https://github.com/unidata/netcdf4-python/ + https://pypi.org/project/netCDF4/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + sci-libs/hdf5:= + sci-libs/netcdf:=[hdf5] +" +RDEPEND=" + ${DEPEND} + dev-python/certifi[${PYTHON_USEDEP}] + dev-python/cftime[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/packaging[${PYTHON_USEDEP}] + sci-libs/netcdf[tools(+)] + ) +" + +python_test() { + local -x NO_NET=1 + cd test || die + "${EPYTHON}" run_all.py || die +} + +pkg_postinst() { + optfeature "HDF4 support" sci-libs/hdf "sci-libs/netcdf[hdf]" + optfeature "MPI parallel IO support" "sci-libs/hdf5[mpi]" "sci-libs/netcdf[mpi]" + optfeature "OPeNDAP support" net-misc/curl "sci-libs/netcdf[dap]" +} diff --git a/dev-python/os-client-config/os-client-config-2.1.0-r2.ebuild b/dev-python/os-client-config/os-client-config-2.1.0-r2.ebuild index 8e43a4f0ef79..6897e0491cb3 100644 --- a/dev-python/os-client-config/os-client-config-2.1.0-r2.ebuild +++ b/dev-python/os-client-config/os-client-config-2.1.0-r2.ebuild @@ -10,7 +10,11 @@ PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 pypi DESCRIPTION="OpenStack Client Configuation Library" -HOMEPAGE="https://www.openstack.org/" +HOMEPAGE=" + https://opendev.org/openstack/os-client-config/ + https://github.com/openstack/os-client-config/ + https://pypi.org/project/os-client-config/ +" LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/pipdeptree/Manifest b/dev-python/pipdeptree/Manifest index aa8182e61bb0..acccd1ba1827 100644 --- a/dev-python/pipdeptree/Manifest +++ b/dev-python/pipdeptree/Manifest @@ -2,3 +2,4 @@ DIST pipdeptree-2.16.2.tar.gz 32151 BLAKE2B 18715b0c7835e19bd5b6846922990e321a7e DIST pipdeptree-2.17.0.tar.gz 34677 BLAKE2B 3f92c4361978d2a6b1ae46d3a7e21aca231d504abf3a3cc8388d64a70fc3853a33edeac091a0b60cd3043d86162f6816292f973e9c8691420f906e946a5c9dac SHA512 1e7a4bc7f2f872e9d3115b413acc791eeb912a6f428fca772e30a3c8164ecfa44bba7e5246f9b65cbc4d34ffcd8050ff795ced3e3f9ad918f134ce052a8e8992 DIST pipdeptree-2.21.0.tar.gz 39119 BLAKE2B 15f37f997b89477a9e1815a2bf120ce5251e9cf2e4df9195dc76bd7414c0cf7f58c4b8e787649492c9826bda5d3f8df60577b5242af7354ad0e1583eabbf0589 SHA512 3d416683c70861de7b768a69fe59a31173e712ecb752c7948329f787c8e13bc54be544fa4a7d3bfdbf6b164202fa8b07898c6e993a53fe244a5f3d9fa9a00573 DIST pipdeptree-2.22.0.tar.gz 39555 BLAKE2B 6aae7c6a22176dbfcc5184086c37b0237629f48702e1e2484457a6b3eca9442732279c85c3d806cff14edbbea9180d0ed3005c9744780016ee9949a0b530e3aa SHA512 9775d19cc353eae79e6fbe779471998a8368a932f380f34587950a6f4ef62d9185e77764c12cd122029c8690931a5a5939d57a9b1801db9556708676096c2efe +DIST pipdeptree-2.23.0.tar.gz 39737 BLAKE2B 79fe45880f2942b2ded1d16e2767c4005aca52e0768a5723f37f764c7a60a8104a237ffe2a559f631bf760310143814b0e4afbaf1e5f3ef927828036c320da43 SHA512 9c5fdf7c6d3e519357d4aeb40f4aa2807dfec8fb387114cf40d99469becc68c5042af09f2cdebcca868dd78f3a3c1602b349dfe6cb581758c5c73efc3f6e52c6 diff --git a/dev-python/pipdeptree/pipdeptree-2.23.0.ebuild b/dev-python/pipdeptree/pipdeptree-2.23.0.ebuild new file mode 100644 index 000000000000..df391c578acc --- /dev/null +++ b/dev-python/pipdeptree/pipdeptree-2.23.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 2022-2024 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 optfeature + +DESCRIPTION="Utility for displaying installed packages in a dependency tree" +HOMEPAGE=" + https://github.com/tox-dev/pipdeptree/ + https://pypi.org/project/pipdeptree/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" + +RDEPEND=" + >=dev-python/packaging-23.1[${PYTHON_USEDEP}] + >=dev-python/pip-23.1.2[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + dev-python/graphviz[${PYTHON_USEDEP}] + >=dev-python/pytest-console-scripts-1.4.1[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_mock -p console-scripts +} + +pkg_postinst() { + optfeature \ + "visualising the dependency graph with --graph-output" \ + dev-python/graphviz +} diff --git a/dev-python/pydiffx/pydiffx-1.1.ebuild b/dev-python/pydiffx/pydiffx-1.1.ebuild index 3498974dbdab..f0edf2a0883d 100644 --- a/dev-python/pydiffx/pydiffx-1.1.ebuild +++ b/dev-python/pydiffx/pydiffx-1.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test.patch b/dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test.patch new file mode 100644 index 000000000000..6adde80670c0 --- /dev/null +++ b/dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test.patch @@ -0,0 +1,92 @@ +diff --git a/glanceclient/tests/unit/test_http.py b/glanceclient/tests/unit/test_http.py +index 31d21f9..e2ba2c0 100644 +--- a/glanceclient/tests/unit/test_http.py ++++ b/glanceclient/tests/unit/test_http.py +@@ -341,9 +341,9 @@ class TestClient(testtools.TestCase): + self.assertEqual(data, json.loads(self.mock.last_request.body)) + + def test_http_chunked_response(self): +- data = "TEST" ++ data = b"TEST" + path = '/v1/images/' +- self.mock.get(self.endpoint + path, body=io.StringIO(data), ++ self.mock.get(self.endpoint + path, body=io.BytesIO(data), + headers={"Content-Type": "application/octet-stream"}) + + resp, body = self.client.get(path) +@@ -457,9 +457,9 @@ class TestClient(testtools.TestCase): + + def test_log_request_id_once(self): + logger = self.useFixture(fixtures.FakeLogger(level=logging.DEBUG)) +- data = "TEST" ++ data = b"TEST" + path = '/v1/images/' +- self.mock.get(self.endpoint + path, body=io.StringIO(data), ++ self.mock.get(self.endpoint + path, body=io.BytesIO(data), + headers={"Content-Type": "application/octet-stream", + 'x-openstack-request-id': "1234"}) + +diff --git a/glanceclient/tests/unit/test_ssl.py b/glanceclient/tests/unit/test_ssl.py +index f95e777..8b67d4c 100644 +--- a/glanceclient/tests/unit/test_ssl.py ++++ b/glanceclient/tests/unit/test_ssl.py +@@ -87,8 +87,7 @@ class TestHTTPSVerifyCert(testtools.TestCase): + client.images.get('image123') + self.fail('No SSL exception has been raised') + except exc.CommunicationError as e: +- if 'certificate verify failed' not in e.message: +- self.fail('No certificate failure message is received') ++ pass + + @mock.patch('sys.stderr') + def test_v1_requests_cert_verification_no_compression(self, __): +@@ -104,8 +103,7 @@ class TestHTTPSVerifyCert(testtools.TestCase): + client.images.get('image123') + self.fail('No SSL exception has been raised') + except exc.CommunicationError as e: +- if 'certificate verify failed' not in e.message: +- self.fail('No certificate failure message is received') ++ pass + + @mock.patch('sys.stderr') + def test_v2_requests_cert_verification(self, __): +@@ -120,8 +118,7 @@ class TestHTTPSVerifyCert(testtools.TestCase): + gc.images.get('image123') + self.fail('No SSL exception has been raised') + except exc.CommunicationError as e: +- if 'certificate verify failed' not in e.message: +- self.fail('No certificate failure message is received') ++ pass + + @mock.patch('sys.stderr') + def test_v2_requests_cert_verification_no_compression(self, __): +@@ -137,8 +134,7 @@ class TestHTTPSVerifyCert(testtools.TestCase): + gc.images.get('image123') + self.fail('No SSL exception has been raised') + except exc.CommunicationError as e: +- if 'certificate verify failed' not in e.message: +- self.fail('No certificate failure message is received') ++ pass + + @mock.patch('sys.stderr') + def test_v2_requests_valid_cert_verification(self, __): +@@ -154,8 +150,7 @@ class TestHTTPSVerifyCert(testtools.TestCase): + cacert=cacert) + gc.images.get('image123') + except exc.CommunicationError as e: +- if 'certificate verify failed' in e.message: +- self.fail('Certificate failure message is received') ++ pass + + @mock.patch('sys.stderr') + def test_v2_requests_valid_cert_verification_no_compression(self, __): +@@ -171,8 +166,7 @@ class TestHTTPSVerifyCert(testtools.TestCase): + cacert=cacert) + gc.images.get('image123') + except exc.CommunicationError as e: +- if 'certificate verify failed' in e.message: +- self.fail('Certificate failure message is received') ++ pass + + @mock.patch('sys.stderr') + def test_v2_requests_valid_cert_no_key(self, __): diff --git a/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild b/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild index f02fbc7cce3b..2a0a0b118c65 100644 --- a/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild +++ b/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild @@ -40,12 +40,18 @@ BDEPEND=" dev-python/tempest[${PYTHON_USEDEP}] dev-python/testscenarios[${PYTHON_USEDEP}] dev-python/testtools[${PYTHON_USEDEP}] - <dev-python/urllib3-2[${PYTHON_USEDEP}] ) " distutils_enable_tests unittest +PATCHES=( + # combined patch for urllib3-2 and py3.12 test failures + # https://bugs.launchpad.net/python-glanceclient/+bug/2069684 + # https://bugs.launchpad.net/python-glanceclient/+bug/2069682 + "${FILESDIR}/${P}-test.patch" +) + python_test() { # functional tests require cloud instance access eunittest -b glanceclient/tests/unit diff --git a/dev-python/python-gnupg/python-gnupg-0.5.2.ebuild b/dev-python/python-gnupg/python-gnupg-0.5.2.ebuild index bf5733a4ed5b..7829a0349637 100644 --- a/dev-python/python-gnupg/python-gnupg-0.5.2.ebuild +++ b/dev-python/python-gnupg/python-gnupg-0.5.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,9 +21,9 @@ SRC_URI=" ) " -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv sparc x86" LICENSE="BSD" SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv sparc x86" # Need gnupg[nls] for avoiding decode errors and possible hangs # w/ e.g. sec-keys/openpgp-keys-gentoo-developers but other pkgs too. diff --git a/dev-python/python-keystoneclient/python-keystoneclient-5.4.0.ebuild b/dev-python/python-keystoneclient/python-keystoneclient-5.4.0.ebuild index 1be1ebd8e80e..fe91aa5a495b 100644 --- a/dev-python/python-keystoneclient/python-keystoneclient-5.4.0.ebuild +++ b/dev-python/python-keystoneclient/python-keystoneclient-5.4.0.ebuild @@ -38,7 +38,7 @@ BDEPEND=" >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] >=dev-python/lxml-4.5.0[${PYTHON_USEDEP}] >=dev-python/oauthlib-0.6.2[${PYTHON_USEDEP}] - >=dev-python/os-client-config-1.28.0 + >=dev-python/os-client-config-1.28.0[${PYTHON_USEDEP}] >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}] >=dev-python/requests-mock-1.2.0[${PYTHON_USEDEP}] >=dev-python/tempest-17.1.0[${PYTHON_USEDEP}] diff --git a/dev-python/python-markdown-math/python-markdown-math-0.8-r1.ebuild b/dev-python/python-markdown-math/python-markdown-math-0.8-r1.ebuild index 2cd6b0eb79e2..38b047336b13 100644 --- a/dev-python/python-markdown-math/python-markdown-math-0.8-r1.ebuild +++ b/dev-python/python-markdown-math/python-markdown-math-0.8-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/spake2/spake2-0.8-r1.ebuild b/dev-python/spake2/spake2-0.8-r1.ebuild index fd1dbafc0ad3..9770cff02805 100644 --- a/dev-python/spake2/spake2-0.8-r1.ebuild +++ b/dev-python/spake2/spake2-0.8-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/sphinx-argparse/sphinx-argparse-0.4.0.ebuild b/dev-python/sphinx-argparse/sphinx-argparse-0.4.0.ebuild index 58329ebc555e..d0527a771efc 100644 --- a/dev-python/sphinx-argparse/sphinx-argparse-0.4.0.ebuild +++ b/dev-python/sphinx-argparse/sphinx-argparse-0.4.0.ebuild @@ -1,14 +1,18 @@ -# Copyright 2020-2023 Gentoo Authors +# Copyright 2020-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + inherit distutils-r1 pypi DESCRIPTION="Sphinx extension that automatically documents argparse commands and options" -HOMEPAGE="https://pypi.org/project/sphinx-argparse/" +HOMEPAGE=" + https://github.com/sphinx-doc/sphinx-argparse/ + https://pypi.org/project/sphinx-argparse/ +" LICENSE="MIT" SLOT="0" diff --git a/dev-python/sphinx-prompt/sphinx-prompt-1.8.0.ebuild b/dev-python/sphinx-prompt/sphinx-prompt-1.8.0.ebuild index ba74d8a5d9b4..a295634885f8 100644 --- a/dev-python/sphinx-prompt/sphinx-prompt-1.8.0.ebuild +++ b/dev-python/sphinx-prompt/sphinx-prompt-1.8.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index 96438d3b33c7..9d6df0ae803a 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -21,6 +21,7 @@ DIST scopeguard-1.2.0.crate 11619 BLAKE2B 8b7e9ed6cefef9ee55407fb9690d57a2a98bb9 DIST smallvec-1.11.2.crate 34801 BLAKE2B 58645e99db8f02db64d02c75860c7ea41836c427c03ee3b0b23365e73a406e4fd6ac312bf13fc5faef8bb6111c10fcfd5f839d5b3686e9b34d1626f8469fc327 SHA512 5cfb427c3b99b0dbd71f6154ed899abcde9d7d2992977ac7b2ef3a4c3ff51e4efafd133071a69609b4ed6cb269bdc26b79eb72e1988f10dfcaef8185d950cd1d DIST sqlglot-25.0.3.tar.gz 18736092 BLAKE2B c5123ff152c58797903821173fc2ef26fc1c94565dac23542bf7d92157d91747cba0ae0dbd64051dee5308a5f4e817edb93dc6efa5337d13cbcd2e8caccf7e09 SHA512 31ec6b9e75507905124986f3531ba930ccfbeb6eea0f9b81f4489c67b889d07d9fe3e8705f6df0f222a8417189109ee5676906f58537656d66ce122f2907ba40 DIST sqlglot-25.1.0.tar.gz 18812668 BLAKE2B 3ee5606393ad188ac634f4f070e3b3f8ec91a2f9d28cc9c9a0bde7c83083e4a7cb2f6d6831e1c3e3dcddf8909b8d5d8b2e4e8759965b09999b71730e2a4f7cd8 SHA512 82471aec2cdf8a2a0f88cd367d9d08f8d69ff204847ac74b2bfede6df3ca513a9e9d0d584b1932582073821095d0aa4bd691f1ebd9a2794bda29ec65341677be +DIST sqlglot-25.2.0.tar.gz 18902605 BLAKE2B 8cd7be70ac09a362a359a214ecca79ab0353a8e0ad8418a2b2c3610400b09cc482288feea6207172233686cf2bb7dce4c3c07960697f9da78b17b04afdf7665d SHA512 0f2b81b9375c69823aca73d427af2a4cb0a47fe716cd1541b04011bf6d3b6f34c7c85b88d224fabcc660c503eccadec13282853d5f553cd34261a2de7f1067eb DIST syn-2.0.41.crate 246016 BLAKE2B 9d389f2e2a0acb4c84c309456e8ffcc88c5d4d541535ed136832d7a6054dde45a598bb68e8a6f3062ca2a96e1ceae947d54b3aec9bad65b0c51d6733aa6c80db SHA512 6bbaf69ca783025dfb81ac3612ac60bfbed31b2d87792909b35c12892dadebdaff2ddf9463105e536b671dce5870610ab90fe29471284bbd3014dca8d6993f1a DIST target-lexicon-0.12.12.crate 25156 BLAKE2B f3803596c75f6c89438592a1176c3748fc2c0524d7d50a20056de1cd26d40c572b05bafcdf6dd702752864bea37c8b4f28f96dadc12a5b3bb1d279b25e489f85 SHA512 6147295c43ba1b7b087a3c5ab51534b2985e4e77e5e15687978cfb9d07e21c4fd9bc7191576d6cabd268d08a44dc733c4a957e59dba8b948c2055d8bb433aeca DIST unicode-ident-1.0.12.crate 42168 BLAKE2B 4cede03c08758ccd6bf53a0d0057d7542dfdd0c93d342e89f3b90460be85518a9fd24958d8b1da2b5a09b5ddbee8a4263982194158e171c2bba3e394d88d6dac SHA512 bc1824e1e4452a40732fc69874d7e1a66f7803717a314790dcf48867eba34bc9441331ef031e386912e52c385645c25b6ed39d4f149973b5b97371b1b96b1920 diff --git a/dev-python/sqlglot/sqlglot-25.2.0.ebuild b/dev-python/sqlglot/sqlglot-25.2.0.ebuild new file mode 100644 index 000000000000..c040bab3734b --- /dev/null +++ b/dev-python/sqlglot/sqlglot-25.2.0.ebuild @@ -0,0 +1,121 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +CARGO_OPTIONAL=1 +CRATES=" + autocfg@1.1.0 + bitflags@1.3.2 + cfg-if@1.0.0 + heck@0.4.1 + indoc@2.0.4 + libc@0.2.150 + lock_api@0.4.11 + memoffset@0.9.0 + once_cell@1.19.0 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + proc-macro2@1.0.70 + pyo3-build-config@0.20.0 + pyo3-ffi@0.20.0 + pyo3-macros-backend@0.20.0 + pyo3-macros@0.20.0 + pyo3@0.20.0 + quote@1.0.33 + redox_syscall@0.4.1 + scopeguard@1.2.0 + smallvec@1.11.2 + syn@2.0.41 + target-lexicon@0.12.12 + unicode-ident@1.0.12 + unindent@0.2.3 + windows-targets@0.48.5 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_msvc@0.48.5 + windows_i686_gnu@0.48.5 + windows_i686_msvc@0.48.5 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_msvc@0.48.5 +" + +inherit cargo distutils-r1 pypi optfeature + +DESCRIPTION="An easily customizable SQL parser and transpiler" +HOMEPAGE=" + https://sqlglot.com/ + https://github.com/tobymao/sqlglot/ + https://pypi.org/project/sqlglot/ +" +SRC_URI+=" + native-extensions? ( + ${CARGO_CRATE_URIS} + ) +" + +LICENSE="MIT" +LICENSE+=" native-extensions? (" +# Dependent crate licenses +LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016" +LICENSE+=" )" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+native-extensions" + +BDEPEND=" + native-extensions? ( + ${RUST_DEPEND} + dev-util/maturin[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/sqlglotrs/sqlglotrs.*.so" + +src_unpack() { + cargo_src_unpack +} + +src_prepare() { + # remove fragile timing check + sed -i -e '/assertLessEqual(time\.time/d' tests/test_parser.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + + if use native-extensions; then + local DISTUTILS_USE_PEP517=maturin + cd sqlglotrs || die + distutils-r1_python_compile + cd - >/dev/null || die + fi +} + +python_test() { + local EPYTEST_IGNORE=( + # Tests require pyspark or duckdb which aren't in the tree. + # Pandas would be a requirement normally, but it gets ignored by proxy. + "tests/dataframe/integration/test_dataframe.py" + "tests/dataframe/integration/test_grouped_data.py" + "tests/dataframe/integration/test_session.py" + "tests/test_executor.py" + "tests/test_optimizer.py" + ) + + # make sure not to use an earlier installed version + local -x SQLGLOTRS_TOKENIZER=$(usex native-extensions 1 0) + rm -rf sqlglotrs || die + epytest +} + +pkg_postinst() { + optfeature "simplifying timedelta expressions" dev-python/python-dateutil +} diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index 1f1e0be3d7f3..5255344a892a 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -1,3 +1,4 @@ DIST stripe-9.10.0.tar.gz 1273670 BLAKE2B ebe42096846a124dea93744b26103dfc0a82f51191be612962258d7ab8c903e3da707dad3e35bafaa7431dd65a08234d9df5f9a614ff1959d86dc2d992ae7ad0 SHA512 f2a22534703add04512fa5ee124bd0ac48dd8a69dd19438260e9fce2cd00b659b9b014f76e325b6b0e51c79c157d15acb775d4ee4e1401a837d7e7dd81e81191 DIST stripe-9.11.0.tar.gz 1276871 BLAKE2B 82d02301e4e08c98593631c16b44de5b8481f918839f2839575c8fb8a89a4245436950406e1cf13cb78999a965e8f085bd49821f5214341928be1d3cadd40563 SHA512 2f4878c704ef7b1e782b8264a47c7151d6bd9e7ad4b2799f97a753c00e3ae18c7f4425bdab7d58443bf0111e9da90eb577e047551682132f0682782556c5c1fa +DIST stripe-9.12.0.tar.gz 1277151 BLAKE2B a23e490ac99f3814db204cd8ad71793b5da73a82c420823cecd87dad5f17c9dbe44a7dcdfbb519b5db4cb488f286e231029827bae25657c2bf4183d1c4dd8406 SHA512 c6c4a4cfeddda4c0e4042b31addea6885819304b469e4f7f701c894fca2d1ccca867dac511abf8d9dd9fc7cc135185387a5b55d37558b9355ee4add16b6318cb DIST stripe-9.8.0.tar.gz 1268721 BLAKE2B 12eeb333a51e71f39c366dda1a4bf82c15f7c3673fc4d27c0e25b978a19902b722d44d5b0f17c017638740cb95f353a024f5012ad70b13c0ac7f7b420df4b082 SHA512 3b19ba9709818af12ba2110b32232c9a33f3a43ce33dfeb8a1e0a7c8a2d643f96795ef474ccdef9e780c1ab58bfa3e687105311cc1d5d24c2984d442d539706b diff --git a/dev-python/stripe/stripe-9.12.0.ebuild b/dev-python/stripe/stripe-9.12.0.ebuild new file mode 100644 index 000000000000..cb8f555d6683 --- /dev/null +++ b/dev-python/stripe/stripe-9.12.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2024 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Stripe Python bindings" +HOMEPAGE=" + https://github.com/stripe/stripe-python/ + https://pypi.org/project/stripe/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="telemetry" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.5.0[${PYTHON_USEDEP}] +" +# please bump dev-util/stripe-mock dep to the latest version on every bump +BDEPEND=" + test? ( + >=dev-util/stripe-mock-0.186.0 + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/anyio[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + net-misc/curl + ) +" + +distutils_enable_tests pytest + +DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md ) + +src_prepare() { + if ! use telemetry; then + sed -i -e '/enable_telemetry/s:True:False:' stripe/__init__.py || die + fi + # https://github.com/stripe/stripe-python/pull/1297 + sed -e 's:from mock:from unittest.mock:' \ + -i tests/test_http_client.py || die + distutils-r1_src_prepare +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests -p anyio -p pytest_mock +} + +src_test() { + local stripe_mock_port=12111 + local stripe_mock_max_port=12121 + local stripe_mock_logfile="${T}/stripe_mock_${EPYTHON}.log" + # Try to start stripe-mock until we find a free port + while [[ ${stripe_mock_port} -le ${stripe_mock_max_port} ]]; do + ebegin "Trying to start stripe-mock on port ${stripe_mock_port}" + stripe-mock --http-port "${stripe_mock_port}" &> "${stripe_mock_logfile}" & + local stripe_mock_pid=${!} + sleep 2 + # Did stripe-mock start? + curl --fail -u "sk_test_123:" \ + "http://127.0.0.1:${stripe_mock_port}/v1/customers" &> /dev/null + eend ${?} "Port ${stripe_mock_port} unavailable" + if [[ ${?} -eq 0 ]]; then + einfo "stripe-mock running on port ${stripe_mock_port}" + break + fi + (( stripe_mock_port++ )) + done + if [[ ${stripe_mock_port} -gt ${stripe_mock_max_port} ]]; then + eerror "Unable to start stripe-mock for tests" + die "Please see the logfile located at: ${stripe_mock_logfile}" + fi + + local -x STRIPE_MOCK_PORT=${stripe_mock_port} + distutils-r1_src_test + + # Tear down stripe-mock + kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock" +} diff --git a/dev-python/subprocess-tee/Manifest b/dev-python/subprocess-tee/Manifest index 37ace876f6e8..2b9e1875172d 100644 --- a/dev-python/subprocess-tee/Manifest +++ b/dev-python/subprocess-tee/Manifest @@ -1 +1,2 @@ DIST subprocess-tee-0.4.1.tar.gz 13599 BLAKE2B 779a8b5381155e8d524b6715ab9cc37f8e55565dd378a2d256648d56f018dc71860b0db2a50572a5e03fab7d2de5cd691be53c49c1aa79e756b4eb8a8d5878a5 SHA512 683813096c4bb78a4263075ba8590a926134ec92db5e2e72ed98ab1db9e231768adc15bb4273ba138f9a1b2a14ae4050d0b6acc76d483d0f3530f376ce8d9eee +DIST subprocess_tee-0.4.2.tar.gz 14951 BLAKE2B b94a8adc779bfbfd17046c4c85c9fb4020a0ca4de11735ec672a90e3be93d09d5f2ec60184e12bce86864b6ef22fedd0927dbb26267cb763d197c54bb4f342ed SHA512 acb0103b8a9ba6288e42148062e82b37b625f5c518e195c4d6e32efd2d5d9841ac6f2c2b240d223e7cdecc643daaa3d86c63a6bc34ca7b48e187cbf968e5dae5 diff --git a/dev-python/subprocess-tee/subprocess-tee-0.4.2.ebuild b/dev-python/subprocess-tee/subprocess-tee-0.4.2.ebuild new file mode 100644 index 000000000000..4ac1f5fd7f5e --- /dev/null +++ b/dev-python/subprocess-tee/subprocess-tee-0.4.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2024 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="subprocess.run replacement with tee(1)-like output" +HOMEPAGE=" + https://github.com/pycontribs/subprocess-tee/ + https://pypi.org/project/subprocess-tee/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" +IUSE="test-full" +REQUIRED_USE="test-full? ( test )" + +# ansible-molecule is invoked as an executable so no need for PYTHON_USEDEP +BDEPEND=" + >=dev-python/setuptools-scm-7.0.0[${PYTHON_USEDEP}] + test? ( + dev-python/enrich[${PYTHON_USEDEP}] + test-full? ( app-admin/ansible-molecule ) + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + if ! use test-full; then + EPYTEST_DESELECT+=( + test/test_func.py::test_molecule + ) + fi + + epytest +} diff --git a/dev-python/tavalidate/tavalidate-0.0.6-r1.ebuild b/dev-python/tavalidate/tavalidate-0.0.6-r1.ebuild index 0b7b96883bb6..aef99d106da0 100644 --- a/dev-python/tavalidate/tavalidate-0.0.6-r1.ebuild +++ b/dev-python/tavalidate/tavalidate-0.0.6-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/tenacity/Manifest b/dev-python/tenacity/Manifest index c2af38d2325e..b8dfdd640884 100644 --- a/dev-python/tenacity/Manifest +++ b/dev-python/tenacity/Manifest @@ -1 +1,2 @@ DIST tenacity-8.3.0.tar.gz 43608 BLAKE2B fcf7471110c831cfab20c81bb0bfa2c2895ce33b6cdf22c21dfd0f219eeb674dc4e7f4186e7c9a3366574636becd7391d68acb285069844ccaf358da6afa9c02 SHA512 46152ffacc0a87931cec09bd90eed3d2ad46f89101997c5da2aa510844c814b887a83805b4ec0de6a56759a7f2bcbab0cb2b2f1a4e6c11860ae53f64ff2a4c31 +DIST tenacity-8.4.1.tar.gz 45426 BLAKE2B e5cb1ed5a93a28a5733b7c25f95a5d9c4d4e341b5185c235e93bcf681590a72cd3895a1e9b24eaa31b939168f6420e8a28a5d8b982847886e9a799a983d41df8 SHA512 7abf17c5c4dbcb45aff3b660f70daa80fc673aa36e0ed95941a566d3740238d051736bc0da330110300bd4beae9a8a56082c4348d24e6bfa20a269bac771d956 diff --git a/dev-python/tenacity/tenacity-8.4.1.ebuild b/dev-python/tenacity/tenacity-8.4.1.ebuild new file mode 100644 index 000000000000..aa1c4c49f3c1 --- /dev/null +++ b/dev-python/tenacity/tenacity-8.4.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2024 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="General-purpose retrying library" +HOMEPAGE=" + https://github.com/jd/tenacity/ + https://pypi.org/project/tenacity/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/tornado-6.4-r1[${PYTHON_USEDEP}] + dev-python/typeguard[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/twython/twython-3.9.1-r1.ebuild b/dev-python/twython/twython-3.9.1-r1.ebuild index 1e4bb50e6c54..1f72044e931c 100644 --- a/dev-python/twython/twython-3.9.1-r1.ebuild +++ b/dev-python/twython/twython-3.9.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -18,8 +18,8 @@ SRC_URI=" -> ${P}.gh.tar.gz " -SLOT="0" LICENSE="MIT" +SLOT="0" KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86" RDEPEND=" diff --git a/dev-python/urllib3/Manifest b/dev-python/urllib3/Manifest index 9c5d5de51cb8..a1de19d680a2 100644 --- a/dev-python/urllib3/Manifest +++ b/dev-python/urllib3/Manifest @@ -1,4 +1,3 @@ DIST hypercorn-d1719f8c1570cbd8e6a3719ffdb14a4d72880abb.gh.tar.gz 156216 BLAKE2B fcb5f49653401e6e4079e1c770d3cd407602d4d6764437b735bd4ec04191dec59cdc930822fa2aff726ee25cddd0f71fd457dedf31026bff1da121d93af8b768 SHA512 62d6787d88a2e716f0ac04fc49f6cdc586e473a660ee754ff66961922ae78bcc75d1f78b091e78557dd60f006e8e480114738c7b4ff71beac804e4fc9603240b -DIST urllib3-1.26.18.tar.gz 305687 BLAKE2B f2f673761a8d80eee715a8726ba36ab6b09800fd4a4f03f27438553c36072e2abb5ff26cff71dcf30fd114f4d28c4ad9907533965b83c8a0581d3d4661904b70 SHA512 c89e93a032bf6b11375c06ef7c5abc1868f93e7655cfdca09e9bd939ad415d206ea159fe151ecd2e5f725e0e18a831c7a5382ad01dbc32264154fc8af7aec156 -DIST urllib3-2.1.0.tar.gz 263900 BLAKE2B 9e0438a11b7178c5004c1253179bb6bfcb1fa8711db47084377bb14c5834f7b88b04a5560b99bf6fff5f1f4622d4b1998d19dd517ab6b7453fd53c832ee7fefa SHA512 33d6eafd9b6ecd97ee2dca8a4f1612a6fcc584961bcfd3a0a188f557a73f4c1576f98dc525c3b2feecb2d676f4bf4364aafeef093d6686e4b3ef2043726561a8 DIST urllib3-2.2.1.tar.gz 291020 BLAKE2B 4bd6e26e1adfba99856db082d0bd3ea136a2367fa53c2d0c7990f6325e8145b2d080a8d59705c43acd97b26be65a309f83d1906d85bd72bfb479b7404972b042 SHA512 dfadba099db678ee1567ee95aa11a72fcea0a76df094d04dd4bd7ed5df4ea2fda6917cc122a1e2bfa4f5303916f93a7e1c881fbbf3cbb9415a25bd7eca1b14b3 +DIST urllib3-2.2.2.tar.gz 292266 BLAKE2B 50d4825ff4bd950742708bec63feb1713e211293f7720c79f2c71740f3eb3d501b476b8de5b389b8fb978c2486081023ebc2e05162c5d4fcedd811452743e07a SHA512 98695bcf37e772a1220cc05679ea799d82a09c73115717668c90dab9377690dd096f648d60ac0759a23cf65f2b1b6f363ec6826f669d4299bfa0a203a45dce0f diff --git a/dev-python/urllib3/urllib3-1.26.18.ebuild b/dev-python/urllib3/urllib3-1.26.18.ebuild deleted file mode 100644 index 5997d79203e0..000000000000 --- a/dev-python/urllib3/urllib3-1.26.18.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# please keep this ebuild at EAPI 8 -- sys-apps/portage dep -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_TESTED=( python3_{8,9,10,11,12} pypy3 ) -PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) -PYTHON_REQ_USE="ssl(+)" - -inherit distutils-r1 pypi - -DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more" -HOMEPAGE=" - https://github.com/urllib3/urllib3/ - https://pypi.org/project/urllib3/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="brotli test" -RESTRICT="!test? ( test )" - -# dev-python/{pyopenssl,cryptography,idna,certifi} are optional runtime -# dependencies. Do not add them to RDEPEND. They should be unnecessary with -# modern versions of python (>= 3.2). -RDEPEND=" - >=dev-python/PySocks-1.5.8[${PYTHON_USEDEP}] - <dev-python/PySocks-2.0[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - brotli? ( dev-python/brotlicffi[${PYTHON_USEDEP}] ) -" -BDEPEND=" - test? ( - $(python_gen_cond_dep " - ${RDEPEND} - dev-python/brotlicffi[\${PYTHON_USEDEP}] - dev-python/mock[\${PYTHON_USEDEP}] - dev-python/pytest[\${PYTHON_USEDEP}] - dev-python/pytest-freezegun[\${PYTHON_USEDEP}] - >=dev-python/tornado-4.2.1[\${PYTHON_USEDEP}] - >=dev-python/trustme-0.5.3[\${PYTHON_USEDEP}] - " "${PYTHON_TESTED[@]}") - ) -" - -src_prepare() { - distutils-r1_src_prepare - - # unbundle urllib3 - rm src/urllib3/packages/six.py || die - find -name '*.py' -exec sed -i \ - -e 's:\([.]*\|urllib3\.\)\?packages\.six:six:g' \ - -e 's:from \([.]*\|urllib3\.\)\?packages import six:import six:g' \ - {} + || die -} - -python_test() { - local -x CI=1 - if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then - einfo "Skipping tests on ${EPYTHON}" - return - fi - - local EPYTEST_DESELECT=( - # unstable (relies on warning count) - test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_verified_warning - # some random overflow - test/with_dummyserver/test_socketlevel.py::TestSSL::test_requesting_large_resources_via_ssl - ) - has "${EPYTHON}" python3.{8..10} && EPYTEST_DESELECT+=( - test/contrib/test_pyopenssl.py::TestPyOpenSSLHelpers::test_get_subj_alt_name - ) - - epytest -} diff --git a/dev-python/urllib3/urllib3-2.1.0.ebuild b/dev-python/urllib3/urllib3-2.2.2.ebuild index bb15040953b9..ce005e229883 100644 --- a/dev-python/urllib3/urllib3-2.1.0.ebuild +++ b/dev-python/urllib3/urllib3-2.2.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # please keep this ebuild at EAPI 8 -- sys-apps/portage dep @@ -9,18 +9,26 @@ PYTHON_TESTED=( python3_{8,9,10,11,12} pypy3 ) PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) PYTHON_REQ_USE="ssl(+)" -inherit distutils-r1 multiprocessing pypi +inherit distutils-r1 pypi +# The package has a test dependency on their own hypercorn fork. +HYPERCORN_COMMIT=d1719f8c1570cbd8e6a3719ffdb14a4d72880abb DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more" HOMEPAGE=" https://github.com/urllib3/urllib3/ https://pypi.org/project/urllib3/ " +SRC_URI+=" + test? ( + https://github.com/urllib3/hypercorn/archive/${HYPERCORN_COMMIT}.tar.gz + -> hypercorn-${HYPERCORN_COMMIT}.gh.tar.gz + ) +" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="brotli test zstd" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="brotli http2 test zstd" RESTRICT="!test? ( test )" # [secure] extra is deprecated and slated for removal, we don't need it: @@ -29,6 +37,10 @@ RDEPEND=" >=dev-python/PySocks-1.5.8[${PYTHON_USEDEP}] <dev-python/PySocks-2.0[${PYTHON_USEDEP}] brotli? ( >=dev-python/brotlicffi-0.8.0[${PYTHON_USEDEP}] ) + http2? ( + <dev-python/h2-5[${PYTHON_USEDEP}] + >=dev-python/h2-4[${PYTHON_USEDEP}] + ) zstd? ( >=dev-python/zstandard-0.18.0[${PYTHON_USEDEP}] ) " BDEPEND=" @@ -37,9 +49,15 @@ BDEPEND=" ${RDEPEND} dev-python/brotlicffi[\${PYTHON_USEDEP}] dev-python/freezegun[\${PYTHON_USEDEP}] + dev-python/h2[\${PYTHON_USEDEP}] + dev-python/httpx[\${PYTHON_USEDEP}] dev-python/pytest[\${PYTHON_USEDEP}] dev-python/pytest-rerunfailures[\${PYTHON_USEDEP}] + dev-python/pytest-timeout[\${PYTHON_USEDEP}] dev-python/pytest-xdist[\${PYTHON_USEDEP}] + dev-python/quart[\${PYTHON_USEDEP}] + dev-python/quart-trio[\${PYTHON_USEDEP}] + dev-python/trio[\${PYTHON_USEDEP}] >=dev-python/tornado-4.2.1[\${PYTHON_USEDEP}] >=dev-python/trustme-0.5.3[\${PYTHON_USEDEP}] >=dev-python/zstandard-0.18.0[\${PYTHON_USEDEP}] @@ -55,6 +73,7 @@ src_prepare() { } python_test() { + local -x PYTHONPATH=${WORKDIR}/hypercorn-${HYPERCORN_COMMIT}/src local -x CI=1 if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then einfo "Skipping tests on ${EPYTHON}" @@ -62,26 +81,14 @@ python_test() { fi local EPYTEST_DESELECT=( - # take forever - test/contrib/test_pyopenssl.py::TestSocketSSL::test_requesting_large_resources_via_ssl - test/with_dummyserver/test_socketlevel.py::TestSSL::test_requesting_large_resources_via_ssl - # stupid test, next bump please verify if they fixed it - test/test_poolmanager.py::TestPoolManager::test_deprecated_no_scheme - # fails with newer secure SSL configuration, which removes TLS 1.1 - test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verify_none_and_good_fingerprint - test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verify_none_and_good_fingerprint - test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verify_none_and_good_fingerprint - test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verify_none_and_good_fingerprint # TODO: timeouts test/contrib/test_pyopenssl.py::TestSocketClosing::test_timeout_errors_cause_retries test/with_dummyserver/test_socketlevel.py::TestSocketClosing::test_timeout_errors_cause_retries - # warnings, sigh - test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_request_chunked_is_deprecated + # TODO: random regression? + test/contrib/test_socks.py::TestSocks5Proxy::test_socket_timeout ) - # plugins make tests slower, and more fragile local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - # some tests are very fragile to timing - epytest -p rerunfailures --reruns=10 --reruns-delay=2 \ - -p xdist -n "$(makeopts_jobs)" --dist=worksteal + local EPYTEST_XDIST=1 + epytest -p timeout -p rerunfailures --reruns=10 --reruns-delay=2 } diff --git a/dev-python/wand/wand-0.6.13.ebuild b/dev-python/wand/wand-0.6.13.ebuild index 49ed3768272f..0575b8693d37 100644 --- a/dev-python/wand/wand-0.6.13.ebuild +++ b/dev-python/wand/wand-0.6.13.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/wxpython/files/wxpython-4.2.1-doxygen-1.9.7.patch b/dev-python/wxpython/files/wxpython-4.2.1-doxygen-1.9.7.patch new file mode 100644 index 000000000000..7baf5708b8ff --- /dev/null +++ b/dev-python/wxpython/files/wxpython-4.2.1-doxygen-1.9.7.patch @@ -0,0 +1,46 @@ +https://bugs.gentoo.org/934482 +https://github.com/wxWidgets/Phoenix/commit/6a049ccc0ad96f25c3f7d8540b218ffe8921d8c5 + +From 6a049ccc0ad96f25c3f7d8540b218ffe8921d8c5 Mon Sep 17 00:00:00 2001 +From: Scott Talbert <swt@techie.net> +Date: Tue, 5 Dec 2023 23:42:21 -0500 +Subject: [PATCH] Support building with Doxygen 1.9.7 + +Doxygen 1.9.7 made some changes whereby some method definitions are now +defined in separate XML files, with a "refid" that links to them. In +order to support this, we need to follow these "refids" to pick up the +method definition from the separate group XML files. +--- a/etgtools/extractors.py ++++ b/etgtools/extractors.py +@@ -62,6 +62,8 @@ def extract(self, element): + # class. Should be overridden in derived classes to get what each one + # needs in addition to the base. + self.name = element.find(self.nameTag).text ++ if self.name is None: ++ self.name = '' + if '::' in self.name: + loc = self.name.rfind('::') + self.name = self.name[loc+2:] +@@ -1574,12 +1576,21 @@ def addElement(self, element): + extractingMsg(kind, element) + for node in element.findall('sectiondef/memberdef'): + self.addElement(node) ++ for node in element.findall('sectiondef/member'): ++ node = self.resolveRefid(node) ++ self.addElement(node) + + else: + raise ExtractorError('Unknown module item kind: %s' % kind) + + return item + ++ def resolveRefid(self, node): ++ from etgtools import XMLSRC ++ refid = node.get('refid') ++ fname = os.path.join(XMLSRC, refid.rsplit('_', 1)[0]) + '.xml' ++ root = et.parse(fname).getroot() ++ return root.find(".//memberdef[@id='{}']".format(refid)) + + + def addCppFunction(self, type, name, argsString, body, doc=None, **kw): + diff --git a/dev-python/wxpython/files/wxpython-4.2.1-x86-time.patch b/dev-python/wxpython/files/wxpython-4.2.1-x86-time.patch new file mode 100644 index 000000000000..ea144419833e --- /dev/null +++ b/dev-python/wxpython/files/wxpython-4.2.1-x86-time.patch @@ -0,0 +1,34 @@ +https://bugs.gentoo.org/922328 +https://github.com/wxWidgets/Phoenix/issues/1910 +https://github.com/wxWidgets/Phoenix/issues/2197 (specifically https://github.com/wxWidgets/Phoenix/issues/2197#issuecomment-1169378156) +https://github.com/StefanBruens/Phoenix/commit/8b743981d557d0465ba53e938784be94f4679145 but w/ s/SIP_SSIZE_T/long +i.e. a revert of https://github.com/wxWidgets/Phoenix/commit/c78823549bac1b28d99a1ad6dc1008485a2afb33. + +From 8b743981d557d0465ba53e938784be94f4679145 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> +Date: Tue, 28 Jun 2022 18:32:32 +0200 +Subject: [PATCH] Fix time_t ETG typedef, extend DateTime.FromTimeT tests + +Before c78823549bac ("Ensure time_t is treated as a 64-bit value by SIP") +the typedef used "long" instead of wxInt64, which caused issues on Win64, +as long is 32bit there (LLP64). On the other hand, wxInt64 is wrong on +32 bit Linux (e.g. armv7, i586), and thus the code crashes. + +As SIP_SSIZE_T is 64 bit for both LLP64 (Windows) and LP64 (Linux), but +32 bit on 32bit archs, it matches time_t better (though, according to the +C standard, it could even be a double). + +Fixes #2197. + etg/defs.py | 2 +- + +--- a/etg/defs.py ++++ b/etg/defs.py +@@ -73,7 +73,7 @@ def run(): + td = module.find('wxUIntPtr') + module.insertItemAfter(td, etgtools.TypedefDef(type='wchar_t', name='wxUChar')) + module.insertItemAfter(td, etgtools.TypedefDef(type='wchar_t', name='wxChar')) +- module.insertItemAfter(td, etgtools.TypedefDef(type='wxInt64', name='time_t')) ++ module.insertItemAfter(td, etgtools.TypedefDef(type='long', name='time_t')) + module.insertItemAfter(td, etgtools.TypedefDef(type='long long', name='wxFileOffset')) + module.insertItemAfter(td, etgtools.TypedefDef(type='SIP_SSIZE_T', name='ssize_t')) + module.insertItemAfter(td, etgtools.TypedefDef(type='unsigned char', name='byte', pyInt=True)) diff --git a/dev-python/wxpython/wxpython-4.2.1-r2.ebuild b/dev-python/wxpython/wxpython-4.2.1-r2.ebuild new file mode 100644 index 000000000000..2e58fca2a380 --- /dev/null +++ b/dev-python/wxpython/wxpython-4.2.1-r2.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_IN_SOURCE_BUILD="1" +PYTHON_COMPAT=( python3_{10..12} ) +PYPI_NO_NORMALIZE=1 +PYPI_PN="wxPython" +WX_GTK_VER="3.2-gtk3" + +inherit distutils-r1 multiprocessing virtualx wxwidgets pypi + +DESCRIPTION="A blending of the wxWindows C++ class library with Python" +HOMEPAGE=" + https://www.wxpython.org/ + https://github.com/wxWidgets/Phoenix/ + https://pypi.org/project/wxPython/ +" + +LICENSE="wxWinLL-3" +SLOT="4.0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test webkit" +RESTRICT="!test? ( test )" + +# wxPython doesn't seem to be able to optionally disable features. webkit is +# optionally patched out because it's so huge, but other elements are not, +# which makes us have to require all features from wxGTK +DEPEND=" + >=x11-libs/wxGTK-3.0.4-r301:${WX_GTK_VER}=[gstreamer,libnotify,opengl,sdl,tiff,webkit?,X] + media-libs/libpng:= + media-libs/tiff:= + media-libs/libjpeg-turbo:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + app-text/doxygen + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/sip-6.6.2[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + test? ( + ${VIRTUALX_DEPEND} + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-4.2.0-flags.patch" + "${FILESDIR}/${PN}-4.2.0-cython-3.patch" + "${FILESDIR}/${PN}-4.2.1-integer-division-for-randint.patch" + "${FILESDIR}/${PN}-4.2.1-x86-time.patch" + "${FILESDIR}/${PN}-4.2.1-doxygen-1.9.7.patch" +) + +python_prepare_all() { + if ! use webkit; then + eapply "${FILESDIR}/${PN}-4.2.0-no-webkit.patch" + fi + + distutils-r1_python_prepare_all +} + +src_configure() { + setup-wxwidgets +} + +python_compile() { + DOXYGEN="$(type -P doxygen)" ${PYTHON} build.py dox etg --nodoc || die + + # Refresh the bundled/pregenerated sip files + "${EPYTHON}" build.py sip || die + + # Build the bindings + "${EPYTHON}" build.py build_py \ + --use_syswx \ + --no_magic \ + --jobs="$(makeopts_jobs)" \ + --verbose \ + --release || die +} + +python_test() { + local EPYTEST_DESELECT=( + # virtx probably + unittests/test_display.py::display_Tests::test_display + unittests/test_frame.py::frame_Tests::test_frameRestore + unittests/test_mousemanager.py::mousemanager_Tests::test_mousemanager1 + unittests/test_uiaction.py::uiaction_KeyboardTests::test_uiactionKeyboardChar + unittests/test_uiaction.py::uiaction_KeyboardTests::test_uiactionKeyboardKeyDownUp + unittests/test_uiaction.py::uiaction_MouseTests + + # assertion (TODO) + unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgGeneric + unittests/test_lib_agw_piectrl.py::lib_agw_piectrl_Tests::test_lib_agw_piectrlCtor + + # seems to rely on state from a previous test (sigh) + unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore + + # requires Spanish localization + unittests/test_intl.py::intl_Tests::test_intlGetString + + # TODO + unittests/test_tipwin.py::tipwin_Tests::test_tipwinCtor + unittests/test_lib_pubsub_provider.py::lib_pubsub_Except::test1 + unittests/test_windowid.py::IdManagerTest::test_newIdRef03 + ) + local EPYTEST_IGNORE=() + if ! use webkit; then + EPYTEST_IGNORE+=( unittests/test_webview.py ) + fi + + # We use pytest-forked as opensuse does to avoid tests corrupting each + # other. + virtx epytest --forked -n "$(makeopts_jobs)" unittests +} + +python_install() { + distutils-r1_python_install --skip-build +} diff --git a/dev-python/yaxmldiff/yaxmldiff-0.1.0.ebuild b/dev-python/yaxmldiff/yaxmldiff-0.1.0.ebuild index 25a3b6854d42..c30b41be4314 100644 --- a/dev-python/yaxmldiff/yaxmldiff-0.1.0.ebuild +++ b/dev-python/yaxmldiff/yaxmldiff-0.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -26,8 +26,6 @@ RDEPEND=" # no tests currently RESTRICT="test" -distutils_enable_tests pytest - python_prepare_all() { sed -i '/license_file/ d' setup.cfg || die distutils-r1_python_prepare_all diff --git a/dev-python/zconfig/Manifest b/dev-python/zconfig/Manifest index 09edd9cb4c82..2555384ea9fe 100644 --- a/dev-python/zconfig/Manifest +++ b/dev-python/zconfig/Manifest @@ -1,2 +1 @@ -DIST ZConfig-4.0.tar.gz 126072 BLAKE2B 7057151267f9b481d3cded72a22dc8fe505f1eac78d156595eb6ba5ff6217b57713ae2ef307358d86320986181bbbb3c1862901297e645bf69dc4893a3e60dbc SHA512 03e3c34f8af9de8bedd98bbdf0c968fdd2fb0c1bb8d62a73c286b804a8841e0e7d9b647f5f3bb37a6d52dc2a5cea7cdce21cd204536399d43203c18e0c204ca7 DIST zconfig-4.1.tar.gz 146996 BLAKE2B fd4299121b418ba7517ef17c2f9be9e0f0a975199a0fb59bd45f54338becb921c2bf0fd87344e08b21734b80dc11abd64d7bef27d7d17313197d9c781b5e5017 SHA512 71dd5a9ce5f72eda76fde19fa2bec4aaf542ebe4b617753b14c07239366d934d9d635aa63407c76bc00edfb305c85c1cecdd187ee7f2b85f25acaa7682839363 diff --git a/dev-python/zconfig/files/zconfig-4.0-py312.patch b/dev-python/zconfig/files/zconfig-4.0-py312.patch deleted file mode 100644 index 6f8c53ed18a0..000000000000 --- a/dev-python/zconfig/files/zconfig-4.0-py312.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 390ce89cfd4bf1a60d8d67ee20106288cbfa0e51 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Petr=20Van=C4=9Bk?= <arkamar@atlas.cz> -Date: Fri, 23 Jun 2023 08:10:09 +0200 -Subject: [PATCH] Fix tests for Python 3.12 (#91) - -In the tests, remove the assertRaisesRegexp method, deprecated since -Python 3.2, to prevent test failures following the method's removal in -Python 3.12. ---- - src/ZConfig/tests/support.py | 7 ------- - 1 file changed, 7 deletions(-) - -diff --git a/src/ZConfig/tests/support.py b/src/ZConfig/tests/support.py -index 959f2b9..559c015 100644 ---- a/src/ZConfig/tests/support.py -+++ b/src/ZConfig/tests/support.py -@@ -17,7 +17,6 @@ - import contextlib - import os - import sys --import unittest - from io import StringIO - from urllib.request import pathname2url - -@@ -79,12 +78,6 @@ def f2(self): - class TestHelper: - """Utility methods which can be used with the schema support.""" - -- # Not derived from unittest.TestCase; some test runners seem to -- # think that means this class contains tests. -- -- assertRaisesRegex = getattr(unittest.TestCase, 'assertRaisesRegex', -- unittest.TestCase.assertRaisesRegexp) -- - def load_both(self, schema_url, conf_url): - schema = self.load_schema(schema_url) - conf = self.load_config(schema, conf_url) diff --git a/dev-python/zconfig/zconfig-4.0.ebuild b/dev-python/zconfig/zconfig-4.0.ebuild deleted file mode 100644 index dbd48146408e..000000000000 --- a/dev-python/zconfig/zconfig-4.0.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-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="ZConfig" -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Configuration library supporting a hierarchical schema-driven model" -HOMEPAGE=" - https://github.com/zopefoundation/ZConfig/ - https://pypi.org/project/ZConfig/ -" - -LICENSE="ZPL" -SLOT="0" -KEYWORDS="~amd64 ~arm64" - -BDEPEND=" - test? ( - dev-python/docutils[${PYTHON_USEDEP}] - dev-python/manuel[${PYTHON_USEDEP}] - dev-python/zope-exceptions[${PYTHON_USEDEP}] - dev-python/zope-interface[${PYTHON_USEDEP}] - ) -" - -DOCS=( CHANGES.rst README.rst ) - -distutils_enable_tests unittest -distutils_enable_sphinx docs \ - dev-python/sphinxcontrib-programoutput - -PATCHES=( - # https://github.com/zopefoundation/ZConfig/commit/390ce89cfd4bf1a60d8d67ee20106288cbfa0e51 - "${FILESDIR}/${P}-py312.patch" -) - -python_test() { - eunittest -s src/ZConfig/tests -} diff --git a/dev-python/zeep/zeep-4.2.1.ebuild b/dev-python/zeep/zeep-4.2.1.ebuild index 5264752e341a..c99b61d6824f 100644 --- a/dev-python/zeep/zeep-4.2.1.ebuild +++ b/dev-python/zeep/zeep-4.2.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/zope-component/zope-component-6.0.ebuild b/dev-python/zope-component/zope-component-6.0.ebuild index ee2f9664d517..46f2dfeeb566 100644 --- a/dev-python/zope-component/zope-component-6.0.ebuild +++ b/dev-python/zope-component/zope-component-6.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/zope-deprecation/zope-deprecation-5.0.ebuild b/dev-python/zope-deprecation/zope-deprecation-5.0.ebuild index f8a1d83d1554..53ef081b92f2 100644 --- a/dev-python/zope-deprecation/zope-deprecation-5.0.ebuild +++ b/dev-python/zope-deprecation/zope-deprecation-5.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/zope-exceptions/Manifest b/dev-python/zope-exceptions/Manifest index e341ac9f61c0..a187ef8b60e9 100644 --- a/dev-python/zope-exceptions/Manifest +++ b/dev-python/zope-exceptions/Manifest @@ -1,2 +1 @@ -DIST zope.exceptions-5.0.1.tar.gz 30435 BLAKE2B 66775ace483da20614aa4db31d106f70af5a118cd7b5f3cc3458515cf443cd6c6e0bda26b0817adf063c52ded25ffcc09b722840e90f4975976e54c48763bbf1 SHA512 46ab45feb81682b62f4ab0df31e39b8b438af593d8880eb095fb2994ce6aced5aceb2cb08973234077d9c3846adc57658e06e04aecf55443bf3af691d728291a DIST zope.exceptions-5.1.tar.gz 31416 BLAKE2B 62e5ddc72f36349a6e4810ee6932dbe9e80fb3c3ac5171cebcb4433832d593bf01edfbd573a5f2dc7546599d018144d28a2968598c3c43e72e3b7639e96f13bf SHA512 08e0b3b895089b35805519002f11302e6529d12257a5582f682257c4b5313c4e183d2b06241729fe542fcd407b1f29fbd6798605930b759daca335ed3df84652 diff --git a/dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch b/dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch new file mode 100644 index 000000000000..623b53b32376 --- /dev/null +++ b/dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch @@ -0,0 +1,24 @@ +diff --git a/src/zope/exceptions/tests/test_exceptionformatter.py b/src/zope/exceptions/tests/test_exceptionformatter.py +index 92ea79a..0e18d8d 100644 +--- a/src/zope/exceptions/tests/test_exceptionformatter.py ++++ b/src/zope/exceptions/tests/test_exceptionformatter.py +@@ -24,6 +24,7 @@ from urllib.error import HTTPError + + + IS_PY39_OR_GREATER = sys.version_info >= (3, 9) ++IS_PY313_OR_GREATER = sys.version_info >= (3, 13) + + + class TextExceptionFormatterTests(unittest.TestCase): +@@ -763,8 +764,10 @@ class Test_format_exception(unittest.TestCase): + </ul><p> File "<string>", line 1<br /> + import<br /> + ^<br /> +- SyntaxError: invalid syntax<br /> ++ SyntaxError: {error}<br /> + </p>""").format( ++ error="Expected one or more names after 'import'" ++ if IS_PY313_OR_GREATER else 'invalid syntax', + module='zope.exceptions.tests.test_exceptionformatter', + fn='test_format_exception_as_html', + ) diff --git a/dev-python/zope-exceptions/zope-exceptions-5.0.1.ebuild b/dev-python/zope-exceptions/zope-exceptions-5.0.1.ebuild deleted file mode 100644 index 5927d1f18518..000000000000 --- a/dev-python/zope-exceptions/zope-exceptions-5.0.1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-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} pypy3 ) - -inherit distutils-r1 pypi - -DESCRIPTION="General purpose exceptions for Zope packages" -HOMEPAGE=" - https://pypi.org/project/zope.exceptions/ - https://github.com/zopefoundation/zope.exceptions/ -" - -LICENSE="ZPL" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" - -RDEPEND=" - dev-python/zope-interface[${PYTHON_USEDEP}] - !dev-python/namespace-zope -" - -distutils_enable_tests unittest - -src_prepare() { - # strip rdep specific to namespaces - sed -i -e "/'setuptools'/d" setup.py || die - distutils-r1_src_prepare -} - -python_compile() { - distutils-r1_python_compile - find "${BUILD_DIR}" -name '*.pth' -delete || die -} - -python_test() { - cd "${BUILD_DIR}/install$(python_get_sitedir)" || die - distutils_write_namespace zope - eunittest -} diff --git a/dev-python/zope-exceptions/zope-exceptions-5.1.ebuild b/dev-python/zope-exceptions/zope-exceptions-5.1.ebuild index 2636c6376b37..7f81241ddceb 100644 --- a/dev-python/zope-exceptions/zope-exceptions-5.1.ebuild +++ b/dev-python/zope-exceptions/zope-exceptions-5.1.ebuild @@ -28,6 +28,11 @@ RDEPEND=" distutils_enable_tests unittest src_prepare() { + local PATCHES=( + # https://github.com/zopefoundation/zope.exceptions/issues/34 + "${FILESDIR}/${P}-py313.patch" + ) + # strip rdep specific to namespaces sed -i -e "/'setuptools'/d" setup.py || die distutils-r1_src_prepare diff --git a/dev-python/zope-hookable/zope-hookable-6.0.ebuild b/dev-python/zope-hookable/zope-hookable-6.0.ebuild index 124c6c1d165e..48ba65dc0a2a 100644 --- a/dev-python/zope-hookable/zope-hookable-6.0.ebuild +++ b/dev-python/zope-hookable/zope-hookable-6.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/zope-i18nmessageid/zope-i18nmessageid-6.1.0.ebuild b/dev-python/zope-i18nmessageid/zope-i18nmessageid-6.1.0.ebuild index 030578910b75..1b5fb383760f 100644 --- a/dev-python/zope-i18nmessageid/zope-i18nmessageid-6.1.0.ebuild +++ b/dev-python/zope-i18nmessageid/zope-i18nmessageid-6.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/zope-schema/zope-schema-7.0.1.ebuild b/dev-python/zope-schema/zope-schema-7.0.1.ebuild index 5c81c4bbaedf..e8fc209631fe 100644 --- a/dev-python/zope-schema/zope-schema-7.0.1.ebuild +++ b/dev-python/zope-schema/zope-schema-7.0.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 |
