diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-11-15 06:44:36 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-11-15 06:44:36 +0000 |
| commit | c684908fc73b5a43cb66c3ad73b6962511348ba3 (patch) | |
| tree | 10a20c886e151880f060da8dfaae1d19ad02cc52 /dev-python | |
| parent | 78dcd13fb22498c4f5a362058c4a16f67cf65006 (diff) | |
| download | baldeagleos-repo-c684908fc73b5a43cb66c3ad73b6962511348ba3.tar.gz baldeagleos-repo-c684908fc73b5a43cb66c3ad73b6962511348ba3.tar.xz baldeagleos-repo-c684908fc73b5a43cb66c3ad73b6962511348ba3.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
50 files changed, 1064 insertions, 334 deletions
diff --git a/dev-python/Faker/Faker-33.0.0.ebuild b/dev-python/Faker/Faker-33.0.0.ebuild new file mode 100644 index 000000000000..aea1a8ba7ec6 --- /dev/null +++ b/dev-python/Faker/Faker-33.0.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A Python package that generates fake data for you" +HOMEPAGE=" + https://github.com/joke2k/faker/ + https://pypi.org/project/Faker/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + !dev-ruby/faker +" +BDEPEND=" + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP},tiff] + dev-python/validators[${PYTHON_USEDEP}] + ) +" + +# note: tests are flaky with xdist +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=faker.contrib.pytest.plugin + epytest + epytest --exclusive-faker-session tests/pytest/session_overrides +} diff --git a/dev-python/Faker/Manifest b/dev-python/Faker/Manifest index 1037617d765c..44301ecc1c35 100644 --- a/dev-python/Faker/Manifest +++ b/dev-python/Faker/Manifest @@ -1,2 +1,3 @@ DIST faker-30.6.0.tar.gz 1806340 BLAKE2B e39a41aa46a45d9431908c0c76371fd51d23bcbb110bba8a8d015e150b7a4c5b767c5eca59846de659637af4f182377152b4ed49c1f68c971aee884df819e011 SHA512 e313d128ee8ebc724d63e0f3f42d16b5b8875e499449b67c0ce8b7ffc1613397c675da9f2933833ef112c6ebb669a51140183714015e9fcc3e02dbc097bfd8f6 DIST faker-30.8.2.tar.gz 1808329 BLAKE2B a9788fdf875bf57e76de33478cf6ebb81a6cc94b9261f5226ea9a797e2d8332a0c9035896b03e86f741b630312872c10678b34dee11d92eea00b9b37d719944f SHA512 4db0352155b724890986c5b1ae59783fed7cd6a0aca289f6df2065c028cd0b9e03560faee60f2b75455e51c212819bc85ddf10c13351e774424fce6f553636be +DIST faker-33.0.0.tar.gz 1850076 BLAKE2B 3a1dc9fff3a45af023cc14c7cc89b8db93faba2de9e4f03a6d04b0bdc37d8271d1e0a7aa4347c5327c80ca95dc490f6fd86e1ab4c0ebee6644505e980d2c7f63 SHA512 8c74093f91121cf8beb63a6b59a99c783be21c58f2788fe83dfb670b16a334f358ca13e65aa734c0ea2c0e6fac863e37116c1ff456eb2b96fe079d4f53059150 diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index 1406115d720d..23b25b288893 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -3,3 +3,4 @@ DIST aiohttp-3.11.0.tar.gz 7656057 BLAKE2B b100001a4af53baa3698e1cef11a7f3d4c693 DIST aiohttp-3.11.0rc0.tar.gz 7621610 BLAKE2B a7ef4a7d373bd87155519bd71c396e24224120efeb07dbb173081e034411f4d1e694015d3599d30856e0a80a4d5d43b8d8ee6cdec1d6d19f2dc2940f7271c910 SHA512 3f34c54683b75a0727dd541a1a01a0621aba52f235b32490ccec6656ffbde39224b38b99e58cd62d4e64e43b378e87424a2f9c146f8c6f158ecb226f0e91aae1 DIST aiohttp-3.11.0rc1.tar.gz 7653785 BLAKE2B 070dba6f84b7924f5129b9a022de98ef9586d35cc188a38229d77d5598cf322931687c5295f322f8aca28a8fcf7da1d30e021d4dd2b8aa9327c1c60084423480 SHA512 3ed987c6f0fe53373b5f3cb0b3858fdc216d029f8b6f205ed3fc234e2474b77fd245ad39a86f607616878499d88b607b72f68cae02f95b2073f3dc1ac3fe8d5b DIST aiohttp-3.11.0rc2.tar.gz 7655719 BLAKE2B 3fc553c3ff927861bd280401cc6741c6bd720c4ac0827db40230270cf3bf2f30a0bfdb3d933227ffb2b22800ddc6e2d6b045277c1c8bf9fb8467b1582a3dcedb SHA512 d6f5c6ef50ce333106071dbd33d57e49be638e9d6855a9c5dc6f9b7e87063319d314f70186d7df0e09f3e7ecf4bee40da44af0dccf9124d6c6c16c5f98e9fee8 +DIST aiohttp-3.11.2.tar.gz 7658216 BLAKE2B f371bfcac2fc300119d33024b4d026fa204976259becc4fdf98bf785f7658589fe3de2cae49ef71a3b299eb12a79d24048b82364c03fa09138a5a42c6daed73c SHA512 7e4dac852e47999a1e6ae47a3a124ad97ad0cb7b4a9e0b4746c0cca4156267ed0cceed86722de78550cb4ff0f54580db44318c1bd4b486e8e94ff84d98dfa56e diff --git a/dev-python/aiohttp/aiohttp-3.11.2.ebuild b/dev-python/aiohttp/aiohttp-3.11.2.ebuild new file mode 100644 index 000000000000..1ef6bd66ab75 --- /dev/null +++ b/dev-python/aiohttp/aiohttp-3.11.2.ebuild @@ -0,0 +1,132 @@ +# 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_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="HTTP client/server for asyncio" +HOMEPAGE=" + https://github.com/aio-libs/aiohttp/ + https://pypi.org/project/aiohttp/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions test-rust" + +RDEPEND=" + >=dev-python/aiodns-3.2.0[${PYTHON_USEDEP}] + >=dev-python/aiohappyeyeballs-2.3.0[${PYTHON_USEDEP}] + >=dev-python/aiosignal-1.1.2[${PYTHON_USEDEP}] + >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}] + dev-python/brotlicffi[${PYTHON_USEDEP}] + >=dev-python/frozenlist-1.1.1[${PYTHON_USEDEP}] + >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}] + >=dev-python/propcache-0.2.0[${PYTHON_USEDEP}] + >=dev-python/yarl-1.17.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + <dev-python/async-timeout-6[${PYTHON_USEDEP}] + >=dev-python/async-timeout-4.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + native-extensions? ( + dev-python/cython[${PYTHON_USEDEP}] + ) + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + www-servers/gunicorn[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/time-machine[${PYTHON_USEDEP}] + ' 'python3*') + test-rust? ( + dev-python/trustme[${PYTHON_USEDEP}] + ) + ) +" + +DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # increase the timeout a little + sed -e '/abs=/s/0.001/0.01/' -i tests/test_helpers.py || die + # xfail_strict fails on py3.10 + sed -i -e '/--cov/d' -e '/pytest_cov/d' -e '/xfail_strict/d' setup.cfg || die + sed -i -e 's:-Werror::' Makefile || die + + distutils-r1_src_prepare +} + +python_configure() { + if [[ ! -d tools && ${EPYTHON} != pypy3 ]] && use native-extensions + then + # workaround missing files + mkdir tools || die + > requirements/cython.txt || die + > tools/gen.py || die + chmod +x tools/gen.py || die + # force rehashing first + emake requirements/.hash/cython.txt.hash + > .update-pip || die + > .install-cython || die + emake cythonize + fi +} + +python_compile() { + # implicitly disabled for pypy3 + if ! use native-extensions; then + local -x AIOHTTP_NO_EXTENSIONS=1 + fi + + distutils-r1_python_compile +} + +python_test() { + local EPYTEST_IGNORE=( + # proxy is not packaged + tests/test_proxy_functional.py + # python_on_whales is not packaged + tests/autobahn/test_autobahn.py + # benchmarks + tests/test_benchmarks_client.py + tests/test_benchmarks_client_request.py + tests/test_benchmarks_client_ws.py + tests/test_benchmarks_cookiejar.py + tests/test_benchmarks_http_websocket.py + tests/test_benchmarks_http_writer.py + tests/test_benchmarks_web_middleware.py + ) + + local EPYTEST_DESELECT=( + # Internet + tests/test_client_session.py::test_client_session_timeout_zero + # broken by irrelevant deprecation warnings + tests/test_circular_imports.py::test_no_warnings + ) + + # upstream unconditionally blocks building C extensions + # on PyPy3 but the test suite needs an explicit switch + if [[ ${EPYTHON} == pypy3 ]] || ! use native-extensions; then + local -x AIOHTTP_NO_EXTENSIONS=1 + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin + rm -rf aiohttp || die + epytest -m "not internal and not dev_mode" \ + -p rerunfailures --reruns=5 +} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index cc7792e7d43e..588cc70e81d8 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -4,3 +4,4 @@ DIST boto3-1.35.57.gh.tar.gz 885077 BLAKE2B 4f3a29db5e76c706fbfd0afb3ec05d5518e6 DIST boto3-1.35.58.gh.tar.gz 885941 BLAKE2B d561cf27dba3177789047cf8ac9cc3e5b7a669f26cae948c5d0c458464518eb16ea2525ef0b1c2118acaaeb348e7435947eca69f37d42affe3b3b8dfd199ddbc SHA512 9988693c33dab2294f302e9e9434fd9c681fc43042ba6772a36d36df9ba60f5884eeecaa60a17e6087a07d35c9691ecb16ee3920c3859335817e49b5f97247ee DIST boto3-1.35.59.gh.tar.gz 886122 BLAKE2B 2eb1378f810bada55c5c6c1a6c70c16c073ddc68d30850ff50b5f604dd15b386bcd0985b81b39fc79801f552eab7f289aaf4ca5377b958b2d28ad0b193e7886d SHA512 ab771736bd88419d50bb11db36f7c308da4816222379d45dfa97557a3c3c43ffb9a9521bc92cf0a4dd2631d01c94f6f9c728517c02a9787e49d98dd860f7e128 DIST boto3-1.35.60.gh.tar.gz 888293 BLAKE2B a6fac2065a5dfa70f99112f1ff0c98fcc429800a0a88fa011a78f7f8fbb609d27d879ce1a374d977c1bf5407cf2f7052c7560ce6531b4bdbf691ffd18c06d897 SHA512 bdec30b276c001f59d73180b536848466f585bbece2938632ebdbc9087bed59e6cedf4936192fe7a0c97cdbe132072a20d7cc92fc6a538fa4a1fc12baae16403 +DIST boto3-1.35.62.gh.tar.gz 890328 BLAKE2B b0106a87e0cd1c25f9c5fccbc162343663f7251c3750c82207d78f4bf5ac597af0cd2b6636f638161a597f23e527c2f9c874398c1cecc9d0db8fed72bc03b72c SHA512 e7e261e194e911d5ff7ab6d1dc3e517d66ab83a8671e0fb462f1ec8c191e28fe685146374a4549c3d7fc9426018c3518e7fd8dfaf91631003d405e569813d714 diff --git a/dev-python/boto3/boto3-1.35.62.ebuild b/dev-python/boto3/boto3-1.35.62.ebuild new file mode 100644 index 000000000000..d91ce27598cf --- /dev/null +++ b/dev-python/boto3/boto3-1.35.62.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_{9,10,11,12,13} ) + +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 f0678c7a26ca..d2929b40f718 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -4,3 +4,4 @@ DIST botocore-1.35.57.gh.tar.gz 13603794 BLAKE2B 23a4dc82e1d9667e75494c2fb651b88 DIST botocore-1.35.58.gh.tar.gz 13608279 BLAKE2B 6f67c155f7b87c827b07f3bceb29836f59cf38479911cff8c92970e25b82baf920d673c8766e61c5db05e5dcbf1f46acc3aff2ebe32498d4ec733ea0a02a1718 SHA512 5db5c1832936a95ee11b80e872ece61f034ad61eb5c0d307deea047bca8785e9ca211d2f38349b234d7c5aa13ba363f4908520fa211be16924d3552d1bed27a7 DIST botocore-1.35.59.gh.tar.gz 13619172 BLAKE2B 593bae8b31935cabd5ca44e48bc85d1638d03a34d58ac209f9f0aa51ddc55c72f88b383fe422a10e0045a84e287da0c417ee388acdc72ebf982665532657aee0 SHA512 ced4d9c149924f09c6cb3fb62f348225f7df4a07be383b5f523d7284fefd2de0e60f4c302a71eaf81d56051a31e78d962e75eda28afb6624db0b0bac7fef9140 DIST botocore-1.35.60.gh.tar.gz 13625896 BLAKE2B 3e1337713f2a96430eaac399db7d6ad468e991ac1c777fff6761dfc377104833ddbe711b8384e08086862a60e5e558c2aae48bb87bd399b2dbd00cb032b696fc SHA512 4e05899948f5ece08f51c4eda2e124f743ee5e5fa82e849585bb8065850e08e190d3b04b720af4ca651165e9b209d2dfab597ca7118cc2a18ce4badf72688dc9 +DIST botocore-1.35.62.gh.tar.gz 13676480 BLAKE2B 66cb770fc797c4bc7c10b03834ea0caf98eef4fd20ce4651a924747687afac174324f9dfc3a9dc41fbe9323ae19a909d8eeb7698a4561171e44063a65bc24f25 SHA512 c691d14280e05b8d6083e7c399925e882558ed3f65161ae9f60a556839c8a103352b497a983dc8af7a8088bcdd0269d500118129f75fdf0b55773c741cc298be diff --git a/dev-python/botocore/botocore-1.35.62.ebuild b/dev-python/botocore/botocore-1.35.62.ebuild new file mode 100644 index 000000000000..7816e9efeb52 --- /dev/null +++ b/dev-python/botocore/botocore-1.35.62.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_{9,10,11,12,13} ) + +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/cmd2/Manifest b/dev-python/cmd2/Manifest index 262b3fe4e0da..ff72167455d7 100644 --- a/dev-python/cmd2/Manifest +++ b/dev-python/cmd2/Manifest @@ -1,5 +1,3 @@ DIST cmd2-2.4.3.tar.gz 678661 BLAKE2B 806fbd6abc26737032dd6330ebabc1e5308e9082f9c98002845a54f1458d314feb476e4d491892e74cde16f5043c57495426ad50aaf3e7e8d0d938f0388db6e2 SHA512 1d440752262f38a742069e636373884edcc49c17ba17b21b24015cfe559b4df36b45ac9489f2f643897fbd38f54b8e6120daf07ef25d2f209af8a4ac8e4c0085 -DIST cmd2-2.5.2.tar.gz 984695 BLAKE2B b85b1f0732897491c9f391a56018c5258a8916299003c565e4f2f42866ce1ff48d86e03b54aa0bf7a582e8e51cf41b079d0fabe418b4e9a855a8e850e7bc02cb SHA512 565c64030f4ea15e29a8350ed625b56a3e18c442930a8c4216c334431ab220895e0dd21ff079c5a888c693f43fec4b69da4dcf14c84ec3a089cfc27ff4c298f8 -DIST cmd2-2.5.3.tar.gz 689714 BLAKE2B 20dd6aff4b2c520d5f82e6273a853571d03d8c5b1d464c0225270757e6e8f4a36ced09c2311bbdc132603d92ff80bb7047502aef445974fb9908b7088f92a8b4 SHA512 eb5da50a543f485a15a768cca72cfaa32608e20d8afc07712baa7c2105eefd8496a9ad2a123097dd7dac236de6e2cf725539a36dd7902bd909668e41f304b646 -DIST cmd2-2.5.4.tar.gz 690076 BLAKE2B 4148b8a6a8df56e75f4c8c204c7524a9eb47f91950b72fae25f751bde6f6575e3a4d6d389897b9b1eb7186bd3e42de6636b50babb5ae77ee038e950c1d9568e2 SHA512 c63530ac39655b0ecfe3b690115bdde75b661650a2ef6d8766f5dbee653565d02aab64d620b46109400bf8bf0df29a91c36ac7f4a7df7ab2d84ee688b00054fd DIST cmd2-2.5.5.tar.gz 689948 BLAKE2B 60ffb516b4b410541281a34647b904a41e2fbbff96dfd6d896fd11a66385469606c3f7c27cbd7aa22c0b84af3c9db8e5facd2fe394608ab4294b2c95965837bc SHA512 b83e76ddb101b1f30239ad60bd00c75f9fbe67ff70b5758f7e9c9d4519f7916667b0eb87c75dda9c06295de74b6827e5dd218f5fb124893c32b43dca3fb1ef42 +DIST cmd2-2.5.6.tar.gz 690006 BLAKE2B 600e12c97914ed473111e9d7739c20a7a1c9dfb2f26c503ee988bf1010450c1f97fe16c2c95efd7cdd196ee4e4539043c54c510be0c3da6560ed4d4822131230 SHA512 f5c9b416b112b70d0aca08961a8ccdac2912b32e0f67e7c925010ac91a0a55a403bce055b2ec770aff560e3f7f706b15f30915fd983494957f1d9ae58980572e diff --git a/dev-python/cmd2/cmd2-2.5.3.ebuild b/dev-python/cmd2/cmd2-2.5.3.ebuild deleted file mode 100644 index c2aa8ea01106..000000000000 --- a/dev-python/cmd2/cmd2-2.5.3.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# 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_{9,10,11,12,13} ) - -inherit distutils-r1 virtualx pypi - -DESCRIPTION="Extra features for standard library's cmd module" -HOMEPAGE=" - https://github.com/python-cmd2/cmd2/ - https://pypi.org/project/cmd2/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" - -RDEPEND=" - dev-python/pyperclip[${PYTHON_USEDEP}] - dev-python/wcwidth[${PYTHON_USEDEP}] -" -# pyperclip uses clipboard backends in the following preference order: -# pygtk, xclip, xsel, klipper, qtpy, pyqt5, pyqt4. -# klipper is known to be broken in Xvfb, and therefore causes test -# failures. to avoid them, we must ensure that one of the backends -# preferred to it is available (i.e. xclip or xsel). -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - dev-python/pytest-mock[${PYTHON_USEDEP}] - || ( - x11-misc/xclip - x11-misc/xsel - ) - ) -" - -distutils_enable_tests pytest - -src_test() { - # tests rely on very specific text wrapping... - local -x COLUMNS=80 - virtx distutils-r1_src_test -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - # TODO: tests_isolated? - epytest -o addopts= -p pytest_mock tests || die -} diff --git a/dev-python/cmd2/cmd2-2.5.4.ebuild b/dev-python/cmd2/cmd2-2.5.4.ebuild deleted file mode 100644 index c2aa8ea01106..000000000000 --- a/dev-python/cmd2/cmd2-2.5.4.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# 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_{9,10,11,12,13} ) - -inherit distutils-r1 virtualx pypi - -DESCRIPTION="Extra features for standard library's cmd module" -HOMEPAGE=" - https://github.com/python-cmd2/cmd2/ - https://pypi.org/project/cmd2/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" - -RDEPEND=" - dev-python/pyperclip[${PYTHON_USEDEP}] - dev-python/wcwidth[${PYTHON_USEDEP}] -" -# pyperclip uses clipboard backends in the following preference order: -# pygtk, xclip, xsel, klipper, qtpy, pyqt5, pyqt4. -# klipper is known to be broken in Xvfb, and therefore causes test -# failures. to avoid them, we must ensure that one of the backends -# preferred to it is available (i.e. xclip or xsel). -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - dev-python/pytest-mock[${PYTHON_USEDEP}] - || ( - x11-misc/xclip - x11-misc/xsel - ) - ) -" - -distutils_enable_tests pytest - -src_test() { - # tests rely on very specific text wrapping... - local -x COLUMNS=80 - virtx distutils-r1_src_test -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - # TODO: tests_isolated? - epytest -o addopts= -p pytest_mock tests || die -} diff --git a/dev-python/cmd2/cmd2-2.5.2.ebuild b/dev-python/cmd2/cmd2-2.5.6.ebuild index c2aa8ea01106..c2aa8ea01106 100644 --- a/dev-python/cmd2/cmd2-2.5.2.ebuild +++ b/dev-python/cmd2/cmd2-2.5.6.ebuild diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index 32bba0ff7995..b3371ca24102 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -1,3 +1,4 @@ DIST coverage-7.6.2.tar.gz 797872 BLAKE2B dee18c9199169b74693377d937e720f26ec5c08e8036e1034d7a307e8b858c21abfa586dfaf651bb824ed9db2d97201048407920880e687151b53b46eb70eae8 SHA512 6f8a32b0ec034a24298b9c7ccebee5d9b1ef3659870ef27226cf5b8f687cb675ee2a6c94e12e8082e850af4357f44e690c717ea35360e0428bd2aaeb93866e36 DIST coverage-7.6.3.tar.gz 798337 BLAKE2B 62190d9adff5bc752b16c799939dc6b710b5bed6e0ce3c2c14e6a074ab119482c23e33236bd1a758545eb1eccbb02b7eeb8072612ae52aaba8a7190f65b20e51 SHA512 e078989028ed8a6ec9e532314be63fb1cbe5589df56e737a96947fa09447da4adee502bb6aa26fb4455ade29ac722172b3314502709732b831484a7de6d1d489 DIST coverage-7.6.4.tar.gz 798716 BLAKE2B 2b89e05fa71b18d94e19e9ee7acf3cea4125aa0baf32425e1bcdd695fbad4ac46f89d761cdd1593df1cc59d622dc6b63c010cb85d1b7c0d1396da4b0ac0c29c8 SHA512 ebd0f08584fbe6741f1b578bff22b3bc916b4ea352fd906a090c7a497ab7b885417e83344f108e95a22e93db306822e670578cc290af48e7a24f5a04956bceec +DIST coverage-7.6.5.tar.gz 799549 BLAKE2B f571b32e3b7e6168e0e132bfec82a44e2897c6a7e381d3df77ad41bfb0afafea4ae32969841329b2b37a3db2bfdcd0ce9ba208fb350396db762168e1e968196b SHA512 8d7cb585d100080db239c05c2a1d09de9c9da0b2372616d9b6e7f52becc1273df347abd7568fce20dc18357badc6ba12e30255bc39876768b3bf32365f1900ad diff --git a/dev-python/coverage/coverage-7.6.5.ebuild b/dev-python/coverage/coverage-7.6.5.ebuild new file mode 100644 index 000000000000..5f3cb4e3c7fe --- /dev/null +++ b/dev-python/coverage/coverage-7.6.5.ebuild @@ -0,0 +1,102 @@ +# 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_{9,10,11,12,13} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="Code coverage measurement for Python" +HOMEPAGE=" + https://coverage.readthedocs.io/en/latest/ + https://github.com/nedbat/coveragepy/ + https://pypi.org/project/coverage/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/addopts/s:-q -n auto::' pyproject.toml || die + distutils-r1_src_prepare +} + +test_tracer() { + local -x COVERAGE_CORE=${1} + einfo " Testing with the ${COVERAGE_CORE} core ..." + epytest -p flaky -p hypothesis -p xdist tests +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO: fails because of additional "Terminated" print on SIGTERM + tests/test_concurrency.py::SigtermTest::test_sigterm_threading_saves_data + # broken because of pytest plugins explicity loaded + tests/test_debug.py::ShortStackTest::test_short_stack{,_skip} + # these expect specific availability of C extension matching + # COVERAGE_CORE (which breaks testing pytracer on CPython) + tests/test_cmdline.py::CmdLineStdoutTest::test_version + tests/test_debug.py::DebugTraceTest::test_debug_sys_ctracer + # mismatch of expected concurrency in error message + # TODO: report upstream? + tests/test_concurrency.py::ConcurrencyTest::test_greenlet + tests/test_concurrency.py::ConcurrencyTest::test_greenlet_simple_code + ) + local EPYTEST_IGNORE=( + # pip these days insists on fetching build deps from Internet + tests/test_venv.py + ) + + "${EPYTHON}" igor.py zip_mods || die + + local -x COVERAGE_TESTING=True + # TODO: figure out why they can't be imported inside test env + local -x COVERAGE_NO_CONTRACTS=1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + + local prev_opt=$(shopt -p nullglob) + shopt -s nullglob + local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so ) + ${prev_opt} + + if [[ -n ${c_ext} ]]; then + cp "${c_ext}" coverage/ || die + test_tracer ctrace + fi + + test_tracer pytrace + + case ${EPYTHON} in + python3.1[01]|pypy3) + ;; + *) + # available since Python 3.12 + test_tracer sysmon + ;; + esac + + if [[ -n ${c_ext} ]]; then + rm coverage/*.so || die + fi +} diff --git a/dev-python/environs/Manifest b/dev-python/environs/Manifest index 60fd5ce67c5b..7bdb7c3b00b5 100644 --- a/dev-python/environs/Manifest +++ b/dev-python/environs/Manifest @@ -1,2 +1,2 @@ -DIST environs-11.0.0.gh.tar.gz 23916 BLAKE2B e9c186cd6e6da0ddeddb7d8f6c5a01d2039468d452af20d6a1637dbe01f8c09be7c890737f862e2dc9baf824b9d8878abca04a5ae237b58138e3026ac68e7d2c SHA512 540412bfb05dd798b57724390f3ae7dcba536550f909fbe2bb3f48fea77fed6cb9473fe526c3482ab7da48bec6ca886c85f07cf62c0fd23fa38087ea53b0e330 DIST environs-11.1.0.gh.tar.gz 24227 BLAKE2B 5a4ebec604dedccf6757fa69f0ae9a5d426c23e8f0bcdbbe51f2ca190e2cfe4cebaa473656dedee4486bf7f61eef102b60a1553426ece78129aec65baded0ad0 SHA512 a7564a251228d3fa131af96a2cad312d8e3c3ba95fa56c4b0abf74a6040c70b77e147120f9646f6f3fd6339760561b63e920494fe26b4fcb1f2caac32f7d7703 +DIST environs-11.2.0.gh.tar.gz 25195 BLAKE2B eba1cf8731db715c04345bc33100ef5bb2693a81e2815195164d56ada02eff8d65f3a2328e7d87b17c858df4cb8a7418120dceb49cf1e44c42dd25d249661469 SHA512 50d1e68fec2cd47a6805cb87ce8a1f7692cc3797ca30177189d3268bc91716671735dca8c085fcb5ed733e38e88b69354a6fc5b6a4ceb480e03ecf7d9a40391e diff --git a/dev-python/environs/environs-11.0.0.ebuild b/dev-python/environs/environs-11.2.0.ebuild index 7b183725113f..7b183725113f 100644 --- a/dev-python/environs/environs-11.0.0.ebuild +++ b/dev-python/environs/environs-11.2.0.ebuild diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest index dda322c4c2b7..d9ebbb2f3e32 100644 --- a/dev-python/fonttools/Manifest +++ b/dev-python/fonttools/Manifest @@ -2,3 +2,4 @@ DIST fonttools-4.53.0.gh.tar.gz 3847778 BLAKE2B 31cf6e495441aeee90f96d6f96b9eedb DIST fonttools-4.53.1.gh.tar.gz 3850978 BLAKE2B 9c6b5af2cbde939b82043e29ffbbb23434c7b4bb7d7ce68385de701cdf97792bfb58b39acf5e0843493d4b4c3b70f76df6194c9a2ba4f4dfa7ec46155b9f8ce0 SHA512 c51a439c4c760bc929359ff3010612d00280ff1bfa8e6dd5248f181b3244239b82089727b4b6c81594fec57407f4c20f95497e0e26fe0e75fde30f8680022d07 DIST fonttools-4.54.0.gh.tar.gz 3858868 BLAKE2B edd02f52d094223e4217a85cab10c7c384977cf7a57abaab401b73c8a0fc638b4e23fa44f7f3a728824bc67888ebb7136a3bdce08efe99434d0b07347fc188b6 SHA512 0840c8fbcabd5555c2226bb89cba306e5b792c4ed92063f7c32c26616d9e4b061ae782177a1181a9e891a686ca6265796e50ed7c0acf8c82051697a8618f7623 DIST fonttools-4.54.1.gh.tar.gz 3863311 BLAKE2B 879edb1d5639b2d5a40d10531209504bf30912804a482be16071673727f693042e3158c65b02dc290bfad91767d3f4df10c62539b400f1d48253acf5bf2b86be SHA512 07e5d2401979fa7b1f926a3e3dfb05c2d712e9056e5bd49f879ed818d1f0ec1eb2435b295e30cd95a4e57288e2ce1c113c96a98093b4b57843bb6e3c9d07a7ad +DIST fonttools-4.55.0.gh.tar.gz 3886815 BLAKE2B ace8c3c1c866f4c181f685a44aeb69b8927bd7ddd452cb8268dc7c06183b372ddd88b64f7eba7ab3e4fa15ae359ffcf1d8144de4afbb1b4751173d75259eef3b SHA512 5f8a65687b5d66604eff5c518aaa51e5b2307e624e5397e5dc15b9489eeb6f300376ab6c70288f9bb7056532951f16085c5580f03b44de2a1d53f2860b573191 diff --git a/dev-python/fonttools/fonttools-4.55.0.ebuild b/dev-python/fonttools/fonttools-4.55.0.ebuild new file mode 100644 index 000000000000..2b9bd3ce3dd4 --- /dev/null +++ b/dev-python/fonttools/fonttools-4.55.0.ebuild @@ -0,0 +1,99 @@ +# 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_{9,10,11,12,13} 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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~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/gherkin-official/Manifest b/dev-python/gherkin-official/Manifest new file mode 100644 index 000000000000..d1b4b5251630 --- /dev/null +++ b/dev-python/gherkin-official/Manifest @@ -0,0 +1 @@ +DIST gherkin-30.0.3.gh.tar.gz 3858361 BLAKE2B 9955a2d48dfdbfda942c60d18108fa9abc7bc7e748f5296afb802fb05b5a3b4904b74d3cff364a0fad0b9b3d378799764c2620ccb0a84af689bc8d95c7d4fbc8 SHA512 c9d722982fe926eec57cc185043983cd2380bf6ce58e5743b53cb2b98127d3b3f8b6689c39c51c2d3697e5f40bc6f98beb4c239d601b1d7685e09f5dcaa07e00 diff --git a/dev-python/gherkin-official/gherkin-official-30.0.3.ebuild b/dev-python/gherkin-official/gherkin-official-30.0.3.ebuild new file mode 100644 index 000000000000..84f60bf3a9d8 --- /dev/null +++ b/dev-python/gherkin-official/gherkin-official-30.0.3.ebuild @@ -0,0 +1,34 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +inherit distutils-r1 + +DESCRIPTION="Gherkin parser/compiler for Python" +HOMEPAGE="https://github.com/cucumber/gherkin/" +SRC_URI=" + https://github.com/cucumber/gherkin/archive/refs/tags/v${PV}.tar.gz + -> gherkin-${PV}.gh.tar.gz +" +S=${WORKDIR}/gherkin-${PV}/python + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/typing-extensions[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_install() { + distutils-r1_python_install + + # dev-python/pytest-bdd tests currently fail without this + python_moduleinto gherkin + python_domodule ../gherkin-languages.json +} diff --git a/dev-python/gherkin-official/metadata.xml b/dev-python/gherkin-official/metadata.xml new file mode 100644 index 000000000000..786658643d66 --- /dev/null +++ b/dev-python/gherkin-official/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ionen@gentoo.org</email> + <name>Ionen Wolkens</name> + </maintainer> + + <origin>gentoo-staging</origin> + <stabilize-allarches/> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 0461a0516952..ab8919a93da8 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -2,7 +2,5 @@ DIST hypothesis-6.114.1.gh.tar.gz 9477292 BLAKE2B 3dadb706f7d283febdc30c9e897fa5 DIST hypothesis-6.115.5.gh.tar.gz 9479622 BLAKE2B 44e21c25fbfb0da48102010a23522a636dd7dba0cbae3e1589710e816cb1f83abd33611750a76fd68c965dff5e0d1c234a5fb87da7cbf6ae0ebb4d3a8152ae9f SHA512 e6528eb48710b61f6ef18cc1415f9977c0a4c10d86f4d92da51859f17dc1b24e16ea7cbce5be2438794edb1002b426fc9911e02bb1ce456d7f812262bcc3bd2f DIST hypothesis-6.115.6.gh.tar.gz 9479927 BLAKE2B ddfeaebaa4e3687be1cab03fa8517353fcfc392dfe7a38100087534c6e71339e381a425c0e2b0d277d3d6344b69b9498e0b722efb18bbcbb90c3401e997afa96 SHA512 fb5df7b7bb45958e492d69d9375b3847de1ed39467bc119be69a237456e1cb1a2633cafbcd58c90113f0aa35880d5d30395ac9d43ccbc6c7368af46065094eb9 DIST hypothesis-6.116.0.gh.tar.gz 9480480 BLAKE2B 350abfd8bad65a33669345a71c3df9737e4defcfc12cd81a1d9ecb5603310372e039d1a148c2223a71f37f0ad485ca892ba322f9404e6d873016193b7f864f88 SHA512 5ae6848f16c21b9012d15eb71715df1fc9448b70264d18453d13e61fd71b84623150ce32c9b50ea4ce95494b0df21907368d0f6fabaa8cb8b26c71e474885703 -DIST hypothesis-6.118.0.gh.tar.gz 9481630 BLAKE2B 691be7d387d61ce7e65b998cebfc11977bc3727537424e8594c6514d6ea9fae532fb203e65a4f014e74db0656946cb2920868c4d211801a1472046640a3bcdaf SHA512 740ebebc297043aed197bd848489661fa7252a1b63933b1abb17085550cc300b0bbc9217261bb2de28c9c1ae0dfda836cd4e325806f52560a1b5935ec6ec7356 -DIST hypothesis-6.118.3.gh.tar.gz 9484146 BLAKE2B 2cac4089ba76431588640777a6fea2b2681ca3530ac9d48775174799715b82f5d9f31540c1c4677abae13bf9c84502bbe086e0a76f5c5a650792e6b17c2e4b81 SHA512 9b12c1ba83f4b0ce4e3b1ae6c3c6616d502f44d458a421e7938b1c8a58c20dd1bdfb0b7ed8f1690c795cd0723874becbd06ef8771ef8d8bd36950e1f0d1cabef -DIST hypothesis-6.118.7.gh.tar.gz 9486197 BLAKE2B 1247665e4cc6c10ff6f628f4ef312ce90e1f791ea853a2c22fffec5f57af182e423e97b392535b569fc19889a1e7176905ba6b933e8ca69ae693c8845dd9c89f SHA512 b33a1cdcc56301fde6bd7176caed2c34b43a2a7a5e21590b0fac2cf734332ed9e626f9114f7b6f6c06b67926b5a59649a7de6008a256b7a7655d8acb8b482f0f DIST hypothesis-6.118.8.gh.tar.gz 9486191 BLAKE2B daadb191cf8a0a4a972604c9320e7c10b4a342e7a6f240e6fff1a5a5d52fef5d004134381ef475f7e1b7143b38fac15c59538a6a8cac48433bd62c760db2cd67 SHA512 b5d240f81596d742002ebe073d086f149af17dafabbc9c070f6e109aca05f506c4291a10a36f6a799fd8fe20285bab8f6776685f29a6e505225ffcc581d44d64 +DIST hypothesis-6.118.9.gh.tar.gz 9487943 BLAKE2B 3c8d17d2763877107c7342d9a9825cb733de91ce6c99c88ed7536ac0e82d728f54d762c9b26cb02d742c470afc05c2798fb20e1f3c6f52d3b9d0e2c9cea9e99a SHA512 ba4f32892088a3a4d1a3d9ca2d28b9828cd7e2f4c4878733943f34f431014d4ba4dfe07729878b4c87cc295b6d6f219094c1f774ac115acd3b375ecc3c58d580 diff --git a/dev-python/hypothesis/hypothesis-6.118.0.ebuild b/dev-python/hypothesis/hypothesis-6.118.0.ebuild deleted file mode 100644 index 902ce1505c8b..000000000000 --- a/dev-python/hypothesis/hypothesis-6.118.0.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -CLI_COMPAT=( pypy3 python3_{10..13} ) -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) -PYTHON_REQ_USE="threads(+),sqlite" - -inherit distutils-r1 optfeature - -TAG=hypothesis-python-${PV} -MY_P=hypothesis-${TAG} -DESCRIPTION="A library for property based testing" -HOMEPAGE=" - https://github.com/HypothesisWorks/hypothesis/ - https://pypi.org/project/hypothesis/ -" -SRC_URI=" - https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz - -> ${P}.gh.tar.gz -" -S="${WORKDIR}/${MY_P}/hypothesis-python" - -LICENSE="MPL-2.0" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="cli" - -RDEPEND=" - >=dev-python/attrs-22.2.0[${PYTHON_USEDEP}] - >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}] - ' 3.9 3.10) - cli? ( - $(python_gen_cond_dep ' - dev-python/black[${PYTHON_USEDEP}] - dev-python/click[${PYTHON_USEDEP}] - ' "${CLI_COMPAT[@]}") - ) -" -BDEPEND=" - test? ( - dev-python/pexpect[${PYTHON_USEDEP}] - >=dev-python/pytest-8[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - !!<dev-python/requests-toolbelt-0.10.1 - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_test() { - # subtests are broken by warnings from random plugins - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=xdist.plugin,_hypothesis_pytestplugin - local -x HYPOTHESIS_NO_PLUGINS=1 - - # NB: paths need to be relative to pytest.ini, - # i.e. start with hypothesis-python/ - local EPYTEST_DESELECT=() - case ${EPYTHON} in - pypy3) - EPYTEST_DESELECT+=( - # failing due to warnings from numpy/cython - hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture - ) - ;; - esac - - epytest -o filterwarnings= tests/cover tests/pytest tests/quality -} - -src_install() { - local HAD_CLI= - - distutils-r1_src_install - - if [[ ! ${HAD_CLI} ]]; then - rm -r "${ED}/usr/bin" || die - fi -} - -python_install() { - distutils-r1_python_install - if use cli && has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then - HAD_CLI=1 - else - rm -r "${D}$(python_get_scriptdir)" || die - fi -} - -pkg_postinst() { - optfeature "datetime support" dev-python/pytz - optfeature "dateutil support" dev-python/python-dateutil - optfeature "numpy support" dev-python/numpy - optfeature "django support" dev-python/django dev-python/pytz - optfeature "pandas support" dev-python/pandas - optfeature "pytest support" dev-python/pytest -} diff --git a/dev-python/hypothesis/hypothesis-6.118.3.ebuild b/dev-python/hypothesis/hypothesis-6.118.3.ebuild deleted file mode 100644 index 902ce1505c8b..000000000000 --- a/dev-python/hypothesis/hypothesis-6.118.3.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -CLI_COMPAT=( pypy3 python3_{10..13} ) -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) -PYTHON_REQ_USE="threads(+),sqlite" - -inherit distutils-r1 optfeature - -TAG=hypothesis-python-${PV} -MY_P=hypothesis-${TAG} -DESCRIPTION="A library for property based testing" -HOMEPAGE=" - https://github.com/HypothesisWorks/hypothesis/ - https://pypi.org/project/hypothesis/ -" -SRC_URI=" - https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz - -> ${P}.gh.tar.gz -" -S="${WORKDIR}/${MY_P}/hypothesis-python" - -LICENSE="MPL-2.0" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="cli" - -RDEPEND=" - >=dev-python/attrs-22.2.0[${PYTHON_USEDEP}] - >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}] - ' 3.9 3.10) - cli? ( - $(python_gen_cond_dep ' - dev-python/black[${PYTHON_USEDEP}] - dev-python/click[${PYTHON_USEDEP}] - ' "${CLI_COMPAT[@]}") - ) -" -BDEPEND=" - test? ( - dev-python/pexpect[${PYTHON_USEDEP}] - >=dev-python/pytest-8[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - !!<dev-python/requests-toolbelt-0.10.1 - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_test() { - # subtests are broken by warnings from random plugins - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=xdist.plugin,_hypothesis_pytestplugin - local -x HYPOTHESIS_NO_PLUGINS=1 - - # NB: paths need to be relative to pytest.ini, - # i.e. start with hypothesis-python/ - local EPYTEST_DESELECT=() - case ${EPYTHON} in - pypy3) - EPYTEST_DESELECT+=( - # failing due to warnings from numpy/cython - hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture - ) - ;; - esac - - epytest -o filterwarnings= tests/cover tests/pytest tests/quality -} - -src_install() { - local HAD_CLI= - - distutils-r1_src_install - - if [[ ! ${HAD_CLI} ]]; then - rm -r "${ED}/usr/bin" || die - fi -} - -python_install() { - distutils-r1_python_install - if use cli && has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then - HAD_CLI=1 - else - rm -r "${D}$(python_get_scriptdir)" || die - fi -} - -pkg_postinst() { - optfeature "datetime support" dev-python/pytz - optfeature "dateutil support" dev-python/python-dateutil - optfeature "numpy support" dev-python/numpy - optfeature "django support" dev-python/django dev-python/pytz - optfeature "pandas support" dev-python/pandas - optfeature "pytest support" dev-python/pytest -} diff --git a/dev-python/hypothesis/hypothesis-6.118.7.ebuild b/dev-python/hypothesis/hypothesis-6.118.9.ebuild index 902ce1505c8b..737f4174ad91 100644 --- a/dev-python/hypothesis/hypothesis-6.118.7.ebuild +++ b/dev-python/hypothesis/hypothesis-6.118.9.ebuild @@ -46,7 +46,6 @@ BDEPEND=" dev-python/pexpect[${PYTHON_USEDEP}] >=dev-python/pytest-8[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] - !!<dev-python/requests-toolbelt-0.10.1 ) " diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index 37a64204a00a..a11d7c268c91 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1,3 +1 @@ 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 new file mode 100644 index 000000000000..637368d2f237 --- /dev/null +++ b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch @@ -0,0 +1,13 @@ +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 56733bbffc48..eb2586280d80 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 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,4 +19,6 @@ 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 020e07f2a3dd..c0f74ac187e2 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,11 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>marcin.deranek@slonko.net</email> - <name>Marcin Deranek</name> + <email>pastalian46@gmail.com</email> + <name>Takuya Wakazono</name> </maintainer> - <upstream> - <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> - </upstream> - <origin>slonko-overlay</origin> + + <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/lxml-html-clean/Manifest b/dev-python/lxml-html-clean/Manifest index 038323574a56..1649fc7e0ee3 100644 --- a/dev-python/lxml-html-clean/Manifest +++ b/dev-python/lxml-html-clean/Manifest @@ -1 +1,2 @@ DIST lxml_html_clean-0.3.1.tar.gz 20851 BLAKE2B 476c73463341af064e7d32b4def1b3cbbc7287cb26308fed2362792ce9dfc3c20bdbb9dcc1174710bf694633789037ec4f1c2510c48fab98ba17fb506b091baa SHA512 cbbcbec337586024db9b622d5724adc1e645dfe7bb1958be8f8974c7858e9a6443b0e75f09cf0ca83d7331aae944648c6bd644aeedd56307a01269e82d866b36 +DIST lxml_html_clean-0.4.0.tar.gz 21374 BLAKE2B 0bb2964f33fa80e08e773f0f0705a554cd332fe956fe2ab219be767caa6f091454b1e3330a56247a77836fae558c54b325d5f5b7468525cae58e067f4c705ac0 SHA512 30427d0e700adc24df5730b56db38c7add36bdc89be598a856ad892fcda72951d19666d304b1a457d1d2400a454f07838e71a2e2859b94448a8b44622a9f62ef diff --git a/dev-python/lxml-html-clean/lxml-html-clean-0.4.0.ebuild b/dev-python/lxml-html-clean/lxml-html-clean-0.4.0.ebuild new file mode 100644 index 000000000000..5e1c6753ea49 --- /dev/null +++ b/dev-python/lxml-html-clean/lxml-html-clean-0.4.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Separate project for HTML cleaning functionalities copied from lxml.html.clean" +HOMEPAGE=" + https://github.com/fedora-python/lxml_html_clean/ + https://pypi.org/project/lxml-html-clean/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + >=dev-python/lxml-5.2.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest + +python_test() { + eunittest + "${EPYTHON}" -m doctest -v tests/*.txt || + die "Doctests failed on ${EPYTHON}" +} diff --git a/dev-python/mss/Manifest b/dev-python/mss/Manifest index 3cf0697476bc..850088b6a0e6 100644 --- a/dev-python/mss/Manifest +++ b/dev-python/mss/Manifest @@ -1 +1,2 @@ +DIST mss-10.0.0.tar.gz 83127 BLAKE2B fb015e02fb80320ba6ad8b612fd675d6ca3b15560fc3413426e1a9a569eca57794fb69289dd6a97ff681e3674448176e022a900b8c565299cb6133b92510d47f SHA512 f2ed2fcd927e51a90facd3f7eefa56e745ed5ccb04fcf46f66f3ad969dc2d5f28d87887950cdd1f552e36250376e4cd77d6c65607848f7768e952319c6197bdc DIST mss-9.0.2.tar.gz 82514 BLAKE2B 9f5bec89fbe2405265070f5be03fe55ed496dddb6f28493ae2b88f131c6a6b2ed8c65969cf4b7b4256b492c8bc321e1548e5f355d802084880ff32e1eb9fcd28 SHA512 b4a9a6dd97810eb56d91c9ba65ac5e628c554e2cd038e830d87e583aa35cecf19cce337e61da814f10f8278017dca758c92c18220167f3660e322a7fba05488c diff --git a/dev-python/mss/mss-10.0.0.ebuild b/dev-python/mss/mss-10.0.0.ebuild new file mode 100644 index 000000000000..fd66ac478f6e --- /dev/null +++ b/dev-python/mss/mss-10.0.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi virtualx + +DESCRIPTION="An ultra fast cross-platform multiple screenshots module in python using ctypes" +HOMEPAGE=" + https://github.com/BoboTiG/python-mss/ + https://pypi.org/project/mss/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +BDEPEND=" + test? ( + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pyvirtualdisplay[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source dev-python/sphinx-rtd-theme + +src_prepare() { + distutils-r1_src_prepare + sed -i -e '/--cov/d' pyproject.toml || die +} + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_IGNORE=( + # upstream tests for self-build, apparently broken by setuptools + # issuing deprecation warnings + src/tests/test_setup.py + ) + + local EPYTEST_DESELECT=( + # unreliable `lsof -U | grep ...` tests + src/tests/test_leaks.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p rerunfailures +} diff --git a/dev-python/oslo-concurrency/Manifest b/dev-python/oslo-concurrency/Manifest index 267a25b734bb..f826a143d638 100644 --- a/dev-python/oslo-concurrency/Manifest +++ b/dev-python/oslo-concurrency/Manifest @@ -1 +1,2 @@ DIST oslo.concurrency-6.1.0.tar.gz 60320 BLAKE2B a1f4303b10e6e736395ee1597a35a26e7c959dc32895121e0576ddd4216b2edc5cd5383e7bedb776885f7d451e9232e08517b9b2bc92c0bfe8bef3c67541d3c7 SHA512 dfee864dae2f69d5e1ae32213bf09bffdd492131a04ba3df9ec9c9a793f2b1b6f4cae809977bf732bb310009116d762768adac4946afcfef49bd8dc993eee777 +DIST oslo.concurrency-6.2.0.tar.gz 60573 BLAKE2B f5ddfbf0f566e6bc4925526738e6823732c8acb1552929009423f87e8766295a5be578bb82dffb2d0b756fb15089616788228dca7abb91fb6e9fbac290294eb2 SHA512 d15dd2049a717e4530c778a3dfb41f9df538835d2f4ea47fbea1fc8f584981b1cbd54a3d5eca273f0202dc4bb8b19b6c59b377690420aa471cf3006f246be8c2 diff --git a/dev-python/oslo-concurrency/oslo-concurrency-6.2.0.ebuild b/dev-python/oslo-concurrency/oslo-concurrency-6.2.0.ebuild new file mode 100644 index 000000000000..fd804a5ec79b --- /dev/null +++ b/dev-python/oslo-concurrency/oslo-concurrency-6.2.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 2021-2024 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_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Oslo Concurrency library" +HOMEPAGE=" + https://opendev.org/openstack/oslo.concurrency/ + https://github.com/openstack/oslo.concurrency/ + https://pypi.org/project/oslo.concurrency/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}] + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] + >=dev-python/fasteners-0.7.0[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/pbr-2.1.0[${PYTHON_USEDEP}] + test? ( + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}] + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +src_prepare() { + # fails, then hangs + rm oslo_concurrency/tests/unit/test_lockutils_eventlet.py || die + distutils-r1_src_prepare +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + eunittest +} diff --git a/dev-python/pytest-bdd/Manifest b/dev-python/pytest-bdd/Manifest index 95ffdaf0b8c9..40828bf7b681 100644 --- a/dev-python/pytest-bdd/Manifest +++ b/dev-python/pytest-bdd/Manifest @@ -1 +1,2 @@ DIST pytest-bdd-7.3.0.gh.tar.gz 81595 BLAKE2B 80c5323ba3c50fae17bb57ec26b968ca7d7b673d2aeb2716dee02e3543916ca8b5752d9af56d3d250f3a4b0a857a3dc760de615f0650eaf379380fb24a5b7c2a SHA512 e7c309552714a77d47e437a825e661dbf201a6945e84f4b611b5c3da3d0b4ceb535bde4809fc9633b82a74e2b52cc69c7e14b27a27032c7e4400727498442e29 +DIST pytest-bdd-8.0.0.gh.tar.gz 113480 BLAKE2B 142346b449199bb619fce9da199c64cc0678366ca5344979246cf45cb99c3039af5ac32f42b9fe2e46c60a70d204b50e14da53441a047d7156f8f9fc21cf0d95 SHA512 18d369aa38765a1d543e63de4477155be68d75954eef8908cac2898afe89dee3c9fb36ee667de39c53d2f0d637d4f343b31970c2d75faccdd53eaf952ebdf55f diff --git a/dev-python/pytest-bdd/pytest-bdd-8.0.0.ebuild b/dev-python/pytest-bdd/pytest-bdd-8.0.0.ebuild new file mode 100644 index 000000000000..2fbf8b5c7294 --- /dev/null +++ b/dev-python/pytest-bdd/pytest-bdd-8.0.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +inherit distutils-r1 + +DESCRIPTION="BDD library for the pytest runner" +HOMEPAGE="https://pytest-bdd.readthedocs.io/" +SRC_URI=" + https://github.com/pytest-dev/pytest-bdd/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/gherkin-official[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/parse-type[${PYTHON_USEDEP}] + dev-python/parse[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +DOCS=( AUTHORS.rst CHANGES.rst README.rst ) + +src_test() { + # terminal_reporter test needs exact wrapping + local -x COLUMNS=80 + + # hooks output parsing may be affected by other pytest-*, e.g. tornasync + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_bdd.plugin + + distutils-r1_src_test +} diff --git a/dev-python/python3-discogs-client/Manifest b/dev-python/python3-discogs-client/Manifest index e6152af550ab..15c983f355de 100644 --- a/dev-python/python3-discogs-client/Manifest +++ b/dev-python/python3-discogs-client/Manifest @@ -1 +1,2 @@ DIST python3-discogs-client-2.7.tar.gz 36551 BLAKE2B f27fbf17afd7c0f6bb3619a4d0a7922f0a2192b34cddf72cb82f5580d81512d6450aa2464ab5e3746262ccdf66bf3411bd63ed121f69021bed06319bcc171de3 SHA512 7bb43429d6ceb3bbf892b6a65d4d93f0a9ec1bb3535b62169d7e1e4ff0e5032963b2ad5753e381745559efd21ed9e875bfbe3f5260e26f7df5f4a344bedded4a +DIST python3_discogs_client-2.7.1.tar.gz 36930 BLAKE2B f0e6071759e8e14f4e78fc0cd15fe4643b1984be622e9fdbf28bda11699d4f7d829eaa7aee005c888e556b6c994585b1a5f2c12351a995f2937af87c360f5292 SHA512 4b9ca0fb1498319f814b88f2df6a1bd3d7c02f44bea8a13aa6b640d3d87def825dcc79181afddb173fedb7448f99a8f4a244915ebfaf26dd2411db8d151b054c diff --git a/dev-python/python3-discogs-client/python3-discogs-client-2.7.1.ebuild b/dev-python/python3-discogs-client/python3-discogs-client-2.7.1.ebuild new file mode 100644 index 000000000000..65b948236ab2 --- /dev/null +++ b/dev-python/python3-discogs-client/python3-discogs-client-2.7.1.ebuild @@ -0,0 +1,34 @@ +# 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_{9,10,11,12,13} ) + +inherit distutils-r1 + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/joalla/discogs_client.git" + inherit git-r3 +else + inherit pypi + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +DESCRIPTION="Continuation of the official Python API client for Discogs" +HOMEPAGE=" + https://github.com/joalla/discogs_client/ + https://pypi.org/project/python3-discogs-client/ +" + +LICENSE="BSD-2" +SLOT="0" + +RDEPEND=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/oauthlib[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest diff --git a/dev-python/python3-discogs-client/python3-discogs-client-9999.ebuild b/dev-python/python3-discogs-client/python3-discogs-client-9999.ebuild index 18da7aa210d7..65b948236ab2 100644 --- a/dev-python/python3-discogs-client/python3-discogs-client-9999.ebuild +++ b/dev-python/python3-discogs-client/python3-discogs-client-9999.ebuild @@ -4,7 +4,6 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{9,10,11,12,13} ) inherit distutils-r1 @@ -14,7 +13,7 @@ if [[ ${PV} == 9999 ]]; then inherit git-r3 else inherit pypi - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 ~arm64 ~x86" fi DESCRIPTION="Continuation of the official Python API client for Discogs" diff --git a/dev-python/quart/Manifest b/dev-python/quart/Manifest index 35fe7d75feb0..64f38698a549 100644 --- a/dev-python/quart/Manifest +++ b/dev-python/quart/Manifest @@ -1 +1,2 @@ DIST quart-0.19.8.gh.tar.gz 747979 BLAKE2B 434c5493f01a1ea0cdd223145f52327229af0fd4ddf5739628847c4f78f1b8d76dcb827370446a50227b1afa96d829a47304efed3d017b405632c15c01034292 SHA512 658384387f064f3d0d9af3f79588ab88d28ed7a0922417cf809d2c0ce2e5d4de3c11649368ed57ba3739f88ac2fb8753be31a2e740d052773129a421a38e2115 +DIST quart-0.19.9.gh.tar.gz 747986 BLAKE2B cd6c9d919e6174305490b59b76815d0b0fcd854c0527c517a463563ed1b3b5dc0fd7ac7e7baf555a56b277cf1a64c6e54da5d9ddb368e862736897dfb34a6cc0 SHA512 7a3020a9fb9c49cdf1ba91ec3ea6a6bb07da5a0571badefc880864921c4b7d1219250bb896cc614dd525920380d660204063431abd99bf0d99418dd3206c0eae diff --git a/dev-python/quart/quart-0.19.9.ebuild b/dev-python/quart/quart-0.19.9.ebuild new file mode 100644 index 000000000000..33b3c0c49618 --- /dev/null +++ b/dev-python/quart/quart-0.19.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A Python ASGI web microframework with the same API as Flask" +HOMEPAGE=" + https://github.com/pallets/quart/ + https://pypi.org/project/Quart/ +" +# no tests in sdist as of 0.19.4 +SRC_URI=" + https://github.com/pallets/quart/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/aiofiles[${PYTHON_USEDEP}] + >=dev-python/blinker-1.6[${PYTHON_USEDEP}] + >=dev-python/click-8.0.0[${PYTHON_USEDEP}] + >=dev-python/flask-3.0.0[${PYTHON_USEDEP}] + >=dev-python/hypercorn-0.11.2[${PYTHON_USEDEP}] + dev-python/itsdangerous[${PYTHON_USEDEP}] + dev-python/jinja2[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + >=dev-python/werkzeug-3.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/python-dotenv[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -o addopts= -p asyncio +} diff --git a/dev-python/sqlparse/Manifest b/dev-python/sqlparse/Manifest index 81c1f872d628..074a40567ce5 100644 --- a/dev-python/sqlparse/Manifest +++ b/dev-python/sqlparse/Manifest @@ -1 +1,2 @@ DIST sqlparse-0.5.1.tar.gz 84502 BLAKE2B b0569552848795053c33e616966075629ae52e61cdc6950bfbc9c4a4976a1b39d6c80f26c25ed5bbd125395f38ed495e5df7532d5f3289e8eece398acc4abaf1 SHA512 5d93e942d6a26a544827a877cb2035328f406dc8e8475e217ba75571672b6c5eaca6f87c2c76244c0dea32449c818fcca9bb8fff53679e6f0ba2bef2a6b92b6f +DIST sqlparse-0.5.2.tar.gz 84951 BLAKE2B a270c94bc54de65f7c18549c262e40348cf7961cdd44c33dbcccdc7da59fe89ae1e746982b5f70cf859a2e16ca7721537f976ebce31f9664873c7182ebdf205d SHA512 d674996be8ef89309d73ae924904e3dbe09cfe6d9f2278d5aec43425571a8300785de96efd0936be82e49ec725668c234fd8a4a99b387832c4acce45ef0c8c62 diff --git a/dev-python/sqlparse/sqlparse-0.5.2.ebuild b/dev-python/sqlparse/sqlparse-0.5.2.ebuild new file mode 100644 index 000000000000..325462cec3dd --- /dev/null +++ b/dev-python/sqlparse/sqlparse-0.5.2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A non-validating SQL parser module for Python" +HOMEPAGE=" + https://github.com/andialbrecht/sqlparse/ + https://pypi.org/project/sqlparse/ +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +distutils_enable_sphinx docs/source +distutils_enable_tests pytest diff --git a/dev-python/textual/Manifest b/dev-python/textual/Manifest index 9df1423acff4..8f716fa119e9 100644 --- a/dev-python/textual/Manifest +++ b/dev-python/textual/Manifest @@ -1 +1 @@ -DIST textual-0.83.0.gh.tar.gz 29429528 BLAKE2B 7f9c1b248ba0b8e275c8d4dd14525e62f45215c053b226b712792b855b5435971d9b7fd20e0c297ec5bf54bd929fba82bc76156bbd0468f9c6fee62ec16b8a1c SHA512 3d97814de2bcc4d4618c24d6975ed0d37448810031b69e772ff7ffd6dc0641f554322d8cc9ba7086de359e79bb8cd84163b8133bed9517e66a6997770eec784f +DIST textual-0.85.2.gh.tar.gz 29453817 BLAKE2B 7d84ad832b4294bb0e6ef27094970de70cfa92e1316fcf1812fd87a032918b7c9fd1d6b0f900ebd33239d0165ffce0148eb9cff028da7d64403779e3f3477649 SHA512 4d7b891fa357f540013f110d1501164cd641af52b75032850cbec6098309aa88ff21ecfbb84a90288a745eda08ddc6f99ea13ca204dd3ab588e36e72b9a6b075 diff --git a/dev-python/textual/textual-0.83.0.ebuild b/dev-python/textual/textual-0.85.2.ebuild index 6fe459c5de79..166c703671d1 100644 --- a/dev-python/textual/textual-0.83.0.ebuild +++ b/dev-python/textual/textual-0.85.2.ebuild @@ -33,8 +33,7 @@ RDEPEND=" BDEPEND=" test? ( dev-python/httpx[${PYTHON_USEDEP}] - >=dev-python/textual-dev-1.2.0[${PYTHON_USEDEP}] - <dev-python/textual-dev-2.0.0[${PYTHON_USEDEP}] + =dev-python/textual-dev-1*[${PYTHON_USEDEP}] dev-python/pytest-asyncio[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] dev-python/griffe[${PYTHON_USEDEP}] @@ -52,6 +51,8 @@ DEPEND="${RDEPEND}" EPYTEST_DESELECT=( # Those tests ask to press keys tests/snapshot_tests/test_snapshots.py + tests/test_xterm_parser.py::test_escape_sequence_resulting_in_multiple_keypresses + # Need a package that should be optional tests/text_area/test_languages.py ) diff --git a/dev-python/types-setuptools/Manifest b/dev-python/types-setuptools/Manifest index 25c10a58acf6..dc2ebeffb3d6 100644 --- a/dev-python/types-setuptools/Manifest +++ b/dev-python/types-setuptools/Manifest @@ -2,3 +2,4 @@ DIST types-setuptools-75.2.0.20241025.tar.gz 43477 BLAKE2B 76cc7b50a0b1a8f6bc117 DIST types-setuptools-75.3.0.20241105.tar.gz 43569 BLAKE2B 415bbe2320f20af8ebeb3105e959b77f7097e9cc74ccf6bf13e4dc53ff597f149d9d28de610d2d0e8faccf90cd886179dfb5fc7a36ff5fbf93e71d18712807f0 SHA512 e88373b6f05b422497e3332ff1ef55fc52c4b78f47809dd8ae28b025d1c24364b8e1afec1a441a120b0373afda1e8422daecd6d9b5e6fa6b02cda4bd93f99c8a DIST types-setuptools-75.3.0.20241107.tar.gz 43666 BLAKE2B c076284dd0868618a4c2c198af5c7172a10c9a093591f73817fd3e52c8ac885eb5613f88d539621f669ab2f3748fcc28e829c12d3a19f3a3a99bd92ec3ff5430 SHA512 d9eecad639fac5dc6bfde98d0274d0d02a26cc767803643d7a01756be0f93348a293bed3dfae921265be2157bd1254ac3eb1b6a3dbc35b86caff957a5c4a40a4 DIST types-setuptools-75.3.0.20241112.tar.gz 43723 BLAKE2B 0315211e7bc53988c39a599df3e0b8e1026bb4446239ae93096cc1b7c0d2d8df7527c22f525a8b24d148129c2b7cc9a1aa385fa0d6d8f1b65d0d4a33690fba41 SHA512 71a1e6e265bf9ef254543d34b28c6e55d1cc1332166942ea4839f1ab2bc64f72ab81cf4e08b66f2a7e4965f7ea9196518b761bdf79a795d5e2d16113c7a6db73 +DIST types-setuptools-75.4.0.20241115.tar.gz 43599 BLAKE2B aa19e16d875780fa8e153d2399a6e1b8ccddb185fb2db4007beaab931471d789f45d9795fb046cd17c8a4d3fa15729f3c0fa95d96c8564a1c8aa1e9648c4b798 SHA512 21edf684c0f5aaa95b289c5bff813bfc5a800b598ccd30e9dfee6735bb055d93acb65916e27cf7a09a13065ca02f57ce494b736ada17871a635ac1b4921c0080 diff --git a/dev-python/types-setuptools/types-setuptools-75.4.0.20241115.ebuild b/dev-python/types-setuptools/types-setuptools-75.4.0.20241115.ebuild new file mode 100644 index 000000000000..d27d371b9a83 --- /dev/null +++ b/dev-python/types-setuptools/types-setuptools-75.4.0.20241115.ebuild @@ -0,0 +1,17 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Typing stubs for setuptools" +HOMEPAGE="https://pypi.org/project/types-setuptools/" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index 7f3cc1637cf8..ae5329b656e2 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -1,8 +1,11 @@ DIST pubgrub-95e1390399cdddee986b658be19587eb1fdb2d79.gh.tar.gz 88127 BLAKE2B 661b639a7028b7dfe4967b4e2f187c3d403e1796bb09ae4606854414547cf81a5907d7dc9c1f8c3f6fe6986b1c8c22a89fee9e93d2ca79d5241350916991cf05 SHA512 8fdcd1ca1badbd140eb386ff37dd91b26d2b81273544b25a376462b900e9b84e59523ff75a68abe4a03834d72ee0d44246f16aea5c7e9091ad5375a86d3aee70 DIST reqwest-middleware-d95ec5a99fcc9a4339e1850d40378bbfe55ab121.gh.tar.gz 40815 BLAKE2B eb7edc4e4599635714b30e5a49b1ddf04e76a696618713320fbb06b240e5f77dafcba78e8532a7de3ada682773a65c88405a5bec2261a7da4310a7cc95b2554e SHA512 bc29f8e634cbfde9d89db3e7ac16a83b6545c15ecec1d0eb4eb2ea2c1647fb521712a9ebe98480cd0dff727fed0ecbceaaf3b23e0d85d97a0498f2e576cc9d7d DIST rs-async-zip-011b24604fa7bc223daaad7712c0694bac8f0a87.gh.tar.gz 51706 BLAKE2B 354eb52c95ea355521e1e6a7c841102424c47c156fdb0efb62e3cac666ecf289806aeefab8a0273a7c3283429ac81502283bdb5424d5f925621e5c2b1430fd4d SHA512 6650eef354e84daf41a8572b98b29f2873b7f071dd1d6983292c70b2f580fdc50cd26762d2228a70c2b200eae2f40476e6604702aa62cc97558301195bf19eb8 +DIST rs-async-zip-c909fda63fcafe4af496a07bfda28a5aae97e58d.gh.tar.gz 51763 BLAKE2B 59d053bc6692014d884a9247dea1b57a8789469ba2abbcc92ec21bb0022cbd74874afc463082156ab697aa6c80635019857a5d7e2dc150274e8b04d720518c36 SHA512 3a309566f4925b02496fcf19bc2865968edf6fb65082ca4079d2cee79e6b0353a1910c079f2afe656da0d0f6ddde5102052a221ea35a7dabc6d690a11218b20a DIST tl-6e25b2ee2513d75385101a8ff9f591ef51f314ec.gh.tar.gz 37106 BLAKE2B c30d1c33f6f52e2bc83823eb6319f8a3e462b7c7408fb6a08f995747857ef234f81db4135a04f9d183095fe473a4087f8f0cb89d8f87ef4400285d2ce034ec22 SHA512 4abbc4240ed129c92da8d616e27a6df0f24cdc85a0803acfdae588ca91f9e5b8d482e3ac88b2e657ff68917b1b43cef1e7ef3c887f624659b231fa5a13fcae68 DIST uv-0.4.30-crates.tar.xz 45786704 BLAKE2B 72a5828c5c504859248312e0d796a6505e4d0546218c8f7f99e37843afdf9496ea1ba4b1f094979299de417accca7f021e4f8971e467429e7d986ed9a3fb2008 SHA512 49abd05fa9e14b1bdb1b4d26f1e68a2038d57bd25c756440bca209b513de42fd8d33ce6e1333392dce65ab427285651809b44e024758359688af5fb87efc19ed DIST uv-0.4.30.gh.tar.gz 2832043 BLAKE2B 11c0d090161b9aa6d6e84d0edb15701c8eaba8281579653d6b0ba84003933f82ec5b71c3c33689e5324e51de70b7af41e4799f35fb45f57ce6d58fafa371a615 SHA512 4930c863aae71ae6e6f5b7ba20ff30ffe4c044f6980f973110d0c8c3079cb4aacbe774fe4577eb8d9c16f5d41d2cd0974c0fe63cf0d10e065c6b8d4cf553b80b DIST uv-0.5.0-crates.tar.xz 45831504 BLAKE2B 0a95463b47729d40cdaf852ba556626ed3a1d2122f5d5a8bc6c401b95c836fa0ac0726f2aeaceb10346d65c0aa3c5250598c3219244fc3b957d26ee16968d443 SHA512 b991d9aeeec6b4e5d3f3f11a51c66f929560cc75bfc9379f090ba75b243056d4cf174326f8cb31b7aefd7e60e445e05b6799d9d7a8021b0893de436dafb384ab DIST uv-0.5.1.gh.tar.gz 2839701 BLAKE2B 5b4ec310a9979583b1f75355ed7a69f9b40ee397464c031b2ec36a1852e9d60b66223719cda6d6f3edff1901e60426bd0e662da7c346082a9d8889ef8b411bec SHA512 eb60061df14a6fee3295097af92bb63b71bc61f56d422db2fe6d61b7d65eba002aed57115e1ffa9e6382fc4b29a38c2e4821e9a75e1114594751dea6e8a02d0e +DIST uv-0.5.2-crates.tar.xz 46304440 BLAKE2B dabe98041d7b041b2dc76f95c6aa35f115b8f9754b1c5559f18b1826108299924d4a71bc2e830ff18145ca61dacc50007d4a9dd1edeb9c9e1be9976f763cc1d0 SHA512 eb0ed382236e13ffe3d4490eed1e9a9cb27df649b4a9dbf7383c9f90de0bd351b70b7f73be333372a5845d0229456c869ebd34a53065536818c0efb4689bec49 +DIST uv-0.5.2.gh.tar.gz 2886231 BLAKE2B a9b1228915a9108fdc97f37f6b61a68cef068df4d536b6d4a2673b726c755e730c677b28b3635da7838e6efbcc3f02f841396992d135e2263793d68e80ce6cfe SHA512 226afbf9f50d5d90758216895549ba64600e256e6290a605ed4c017ed7728412773d4248432fe49a741febfb70d74234260ba4adad69d74a6b828ad6a699a58e diff --git a/dev-python/uv/uv-0.5.2.ebuild b/dev-python/uv/uv-0.5.2.ebuild new file mode 100644 index 000000000000..e285fe268651 --- /dev/null +++ b/dev-python/uv/uv-0.5.2.ebuild @@ -0,0 +1,176 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [async_zip]='https://github.com/charliermarsh/rs-async-zip;c909fda63fcafe4af496a07bfda28a5aae97e58d;rs-async-zip-%commit%' + [pubgrub]='https://github.com/astral-sh/pubgrub;95e1390399cdddee986b658be19587eb1fdb2d79;pubgrub-%commit%' + [tl]='https://github.com/charliermarsh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%' + [version-ranges]='https://github.com/astral-sh/pubgrub;95e1390399cdddee986b658be19587eb1fdb2d79;pubgrub-%commit%/version-ranges' +) + +RUST_MIN_VER="1.80.1" + +inherit cargo check-reqs + +CRATE_PV=0.5.2 +DESCRIPTION="A Python package installer and resolver, written in Rust" +HOMEPAGE=" + https://github.com/astral-sh/uv/ + https://pypi.org/project/uv/ +" +# pypi sdist misses scripts/, needed for tests +SRC_URI=" + https://github.com/astral-sh/uv/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + ${CARGO_CRATE_URIS} +" +if [[ ${PKGBUMPING} != ${PVR} ]]; then + SRC_URI+=" + https://dev.gentoo.org/~mgorny/dist/uv-${CRATE_PV}-crates.tar.xz + " +fi + +# most of the code +LICENSE="|| ( Apache-2.0 MIT )" +# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below +# Dependent crate licenses +LICENSE+=" + 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT + MPL-2.0 Unicode-3.0 Unicode-DFS-2016 ZLIB +" +# ring crate +LICENSE+=" openssl" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="test" +PROPERTIES="test_network" + +DEPEND=" + app-arch/bzip2:= + app-arch/xz-utils:= + app-arch/zstd:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + test? ( + dev-lang/python:3.8 + dev-lang/python:3.9 + dev-lang/python:3.10 + dev-lang/python:3.11 + dev-lang/python:3.12 + !!~dev-python/uv-0.5.0 + ) +" + +QA_FLAGS_IGNORED="usr/bin/.*" + +check_space() { + local CHECKREQS_DISK_BUILD=3G + use debug && CHECKREQS_DISK_BUILD=9G + check-reqs_pkg_setup +} + +pkg_pretend() { + check_space +} + +pkg_setup() { + check_space + rust_pkg_setup +} + +src_prepare() { + default + + # remove patch.* that breaks GIT_CRATES + local reqmw=${GIT_CRATES[reqwest-middleware]} + reqmw=${reqmw#*;} + reqmw=${reqmw%;*} + sed -i -e "/^\[patch/,\$s@^\(reqwest-middleware = \).*@\1 { path = \"${WORKDIR}/reqwest-middleware-${reqmw}/reqwest-middleware\" }@" Cargo.toml || die + + # enable system libraries where supported + export ZSTD_SYS_USE_PKG_CONFIG=1 + # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys? + + # remove unbundled sources, just in case + find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die + + # bzip2-sys requires a pkg-config file + # https://github.com/alexcrichton/bzip2-rs/issues/104 + mkdir "${T}/pkg-config" || die + export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}} + cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die + Name: bzip2 + Version: 9999 + Description: + Libs: -lbz2 + EOF +} + +src_configure() { + local myfeatures=( + git + pypi + python + ) + + cargo_src_configure --no-default-features +} + +src_compile() { + cd crates/uv || die + cargo_src_compile +} + +src_test() { + # work around https://github.com/astral-sh/uv/issues/4376 + local -x PATH=${BROOT}/usr/lib/python-exec/python3.12:${PATH} + local -x COLUMNS=100 + local -x PYTHONDONTWRITEBYTECODE= + # fix tests failing because of our config + local -x XDG_CONFIG_DIRS=${T} + + cd crates/uv || die + cargo_src_test --no-fail-fast +} + +src_install() { + cd crates/uv || die + cargo_src_install + + insinto /etc/xdg/uv + newins - uv.toml <<-EOF || die + # These defaults match Fedora, see: + # https://src.fedoraproject.org/rpms/uv/pull-request/18 + + # By default ("automatic"), uv downloads missing Python versions + # automatically and keeps them in the user's home directory. + # Disable that to make downloading opt-in, and especially + # to avoid unnecessarily fetching custom Python when the distro + # package would be preferable. Python builds can still be + # downloaded manually via "uv python install". + # + # https://docs.astral.sh/uv/reference/settings/#python-downloads + python-downloads = "manual" + + # By default ("managed"), uv always prefers self-installed + # Python versions over the system Python, independently + # of versions. Since we generally expect users to use that + # to install old Python versions not in ::gentoo anymore, + # this effectively means that uv would end up preferring very + # old Python versions over the newer ones that are provided + # by the system. Default to using the system versions to avoid + # this counter-intuitive behavior. + # + # https://docs.astral.sh/uv/reference/settings/#python-preference + python-preference = "system" + EOF +} |
