diff options
33 files changed, 847 insertions, 169 deletions
diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index b050fe6c9794..495fa5673794 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -1,3 +1,4 @@ DIST aws-cli-1.32.49.gh.tar.gz 2654398 BLAKE2B fc2e9052b777e1e8bac60621993b55aa01bb0c0e66ad24008498d44b68ecffeaa903d8afd6e361768031c3954e061ed89e24d85fea23454fad8f6d7de4521cfa SHA512 4a5c1d9e92b7e615adb1d6afca0a01a62e55ac4ffd50b9d7634faf0a4e6108c035e78f9f60824bc9a53505ed4a376757ec4c9fc35fb26a2ba8850f7a206919bf DIST aws-cli-1.32.54.gh.tar.gz 2656395 BLAKE2B 7f41ac7bb0b11ef851cbc1793c202dd38045fda6af3694e1d2c29f2aa07047f116c6bceb5aec72e805494647f801b1523dadef5301322ed9c25426aaccc1289e SHA512 29e591d8f06091cd138c3ff10b15cd0344b5f12e6a4452ce1cde3e6439e1b70ded7f1b60c96c53a6ad699a3e6b49591e5d26b0190d7d6268792b77a883faa6fc DIST aws-cli-1.32.59.gh.tar.gz 2660092 BLAKE2B 560bd7b69822af18f33e91d7586da20b6bf955070e524b66da2a987a6305298a2e566749cf50ac21907ca6fa97eb4a3f1475625f23bdd27874aab63f5b8f8cf9 SHA512 a4efcec4db472891bf856bbdb2b6a8e98e3b74f0db88c04c284d62d65650339f4c1f37cef92b4a5e8b06b75f8aaa7882d6cfe319cf5c25cd8961a0cac0d0f2b1 +DIST aws-cli-1.32.60.gh.tar.gz 2660322 BLAKE2B ce1576d2e627f37c6d25d6fce7eac37a341da43d20f6305404830da7611862cab670df92d5f18459024eb3c50acccd4785c139e3893d860be168e00f980b1fb1 SHA512 52f1f8ebbef383096066473188879d9d0583d92b516a710777963c713d92b284edfb73a88d059678ac69e88d2c6982fe3f052b1fa80cf36ec2e90f1bdfa152e8 diff --git a/app-admin/awscli/awscli-1.32.60.ebuild b/app-admin/awscli/awscli-1.32.60.ebuild new file mode 100644 index 000000000000..4a677affdbc4 --- /dev/null +++ b/app-admin/awscli/awscli-1.32.60.ebuild @@ -0,0 +1,90 @@ +# 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_{10..12} ) + +inherit bash-completion-r1 distutils-r1 + +MY_P=aws-cli-${PV} +DESCRIPTION="Universal Command Line Environment for AWS" +HOMEPAGE=" + https://github.com/aws/aws-cli/ + https://pypi.org/project/awscli/ +" +SRC_URI=" + https://github.com/aws/aws-cli/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +# botocore is x.(y+2).z +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)" +RDEPEND=" + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/rsa[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + !app-admin/awscli-bin +" +BDEPEND=" + test? ( + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # 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 + # strip overzealous upper bounds on requirements + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die + distutils-r1_src_prepare +} + +python_test() { + local serial_tests=( + tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success + tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success} + tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_success + tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking + tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows + tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking + tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success + tests/unit/customizations/test_sessionmanager.py + tests/unit/test_compat.py::TestIgnoreUserSignals + tests/unit/test_help.py + tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored + ) + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + EPYTEST_XDIST= epytest "${serial_tests[@]}" + + local EPYTEST_DESELECT=( "${serial_tests[@]}" ) + # integration tests require AWS credentials and Internet access + epytest tests/{functional,unit} +} + +python_install_all() { + newbashcomp bin/aws_bash_completer aws + + insinto /usr/share/zsh/site-functions + newins bin/aws_zsh_completer.sh _aws + + distutils-r1_python_install_all + + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die +} diff --git a/dev-python/Nuitka/Manifest b/dev-python/Nuitka/Manifest index 6a17cd39aaee..c86254a6d110 100644 --- a/dev-python/Nuitka/Manifest +++ b/dev-python/Nuitka/Manifest @@ -1,2 +1,3 @@ DIST Nuitka-2.0.6.tar.gz 3932256 BLAKE2B fd8b00864dc7c5fe2ca9df5c9bf324fa601e5d1e46911e42a6174927c725b27a9b1f52b4e8e33a404489c400003618275a1d49ca3896b342293dabe70dc54467 SHA512 2a2c46dc062e6ca77ddca640771e10f9d597108633e7bd012b3342f74f389653a78de337347f4cb9063da7f089ee78b48300d0de26a4fa9287a6998692bf6477 +DIST Nuitka-2.1.1.tar.gz 3633083 BLAKE2B 7be20fc7a3679eb6ab181138924aa680cbd56f62295a3f96d0c5566fc2b2fd5776f65dc27096f4eaacd55be663a660498821c0543c820925da313904cbf2fe7f SHA512 407bb2390eb45fe6991e19f46d58b4ce179cf2b486f27fac049d7417c54538ab749056492c201495419ce10f173d6613ba4f36f2476d6b057d10f907b0343dd2 DIST Nuitka-2.1.tar.gz 3632504 BLAKE2B 61f40eacea7ac72a93c808da19177ceb98c63fe76958a28fb49418b00eb6fe26bc37a9534ef3790197d075dffbbd62be7a05e50fc0bc6c583697f2d379a812f7 SHA512 95d5a7d0979b32732e9520e1133ea0c78f20153a99a6a1fe66bcfc10b866d54f0ef57c6e08df4383d8a037af831113f67ca64b55a62ab1208b98e3eb381af352 diff --git a/dev-python/Nuitka/Nuitka-2.1.1.ebuild b/dev-python/Nuitka/Nuitka-2.1.1.ebuild new file mode 100644 index 000000000000..123acd66de1f --- /dev/null +++ b/dev-python/Nuitka/Nuitka-2.1.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-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_{10..11} ) + +inherit distutils-r1 flag-o-matic optfeature pypi + +DESCRIPTION="Python to native compiler" +HOMEPAGE=" + https://nuitka.net/ + https://github.com/Nuitka/Nuitka/ + https://pypi.org/project/Nuitka/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~loong ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-build/scons[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( dev-util/ccache ) +" + +distutils-r1_src_prepare() { + # remove vendored version of SCons that is Python2 only + # this should be removed when upstream removes support for Python2 + rm -vR "nuitka/build/inline_copy/lib/scons-2.3.2/SCons" || die + eapply_user +} + +python_install() { + distutils-r1_python_install + doman doc/nuitka.1 doc/nuitka-run.1 +} + +python_test() { + append-ldflags -Wl,--no-warn-search-mismatch + ./tests/basics/run_all.py search || die +} + +pkg_postinst() { + optfeature "support for stand-alone executables" dev-util/patchelf +} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 4573e9016b45..c9501872784a 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -1,3 +1,4 @@ DIST boto3-1.34.49.gh.tar.gz 777028 BLAKE2B 3f78be7cffeca8dec5c7e1b8fcb2e4081e8d5b6f85becea5deeebd8de3d8c038db5c5e827831c829e3943860a10144e7dd565136c6dfad4f39540a7eaa2bacda SHA512 dbd9fdb33f0d29d8ba4ef8b6bdb5bf5b9585306e6a0e1fffeea42d38fad503555763361c5b14991d58303f7e1edc481e026ba195638044efc476a25bd467675e DIST boto3-1.34.54.gh.tar.gz 779564 BLAKE2B f61a74f6a317af6f180edb047e8c37e55c2d497c9507728eb098e2627d071aa56bae037a4bb8582774a49b20d0c1794a8793ab3d8e92d90071de3caf1d32bc2b SHA512 e3549e7b7ad254eafff60eb9bd21aa179f2840c2097874fb0a0602e767dbcf203742629eeaffe6432db65c3f76c326032e700cebb7ea92ebb7305ae6e26173ba DIST boto3-1.34.59.gh.tar.gz 782060 BLAKE2B d46f20f101f36380a17cb5c1bd511adde1b9fb01981566b863d192d0b93d9965a6720dc67ba47d4e1da94b3994dc5a6e59b1effa4e5c4f5e1e25f1683d99c40e SHA512 5d1d34339d60cd5c2efb60da885c4f92e5c245ef95bdaf46631d2938adf9fb08f7fba86ce2dd3e6382291d0d72c81aa9698cfe327d88c0b8ae8812d9c1e0b37c +DIST boto3-1.34.60.gh.tar.gz 782539 BLAKE2B d0fa63256b967b9a93139d4ee41e5892187cc54671b5a7c47b8e6900ac1b9ea7bae8d8b38a0f18432813a6085e2773b7c7b8686e9d5d7d13465b8547f0bb9e30 SHA512 f60ae6664ce19bdddb552d72c2f0699d8bd771e23f164e29f5c3c7869680528a6e9b8d678c7c0359dbe25c3e20077a7cf45efd01f207340dbe0ee6198e08a4c5 diff --git a/dev-python/boto3/boto3-1.34.60.ebuild b/dev-python/boto3/boto3-1.34.60.ebuild new file mode 100644 index 000000000000..b64e7191fd19 --- /dev/null +++ b/dev-python/boto3/boto3-1.34.60.ebuild @@ -0,0 +1,58 @@ +# 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_{10..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}] +" +BDEPEND=" + test? ( + dev-python/mock[${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 6bbccc479968..7a82e22d3d17 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -1,3 +1,4 @@ DIST botocore-1.34.49.gh.tar.gz 12729109 BLAKE2B 8029fd3530f8c29e7375eaf369944ada9977a1e445eec3151f2babcd6a6480e8c9a8109f31687b588c50691dca62e635beafbcca71f3a6961d23937fa7e613d0 SHA512 8722a965658c55b35880c65b0b4b8d466691752de4b7654657fe583e4dec36f09910f8298f29099cd035e3acf0622734597e4269d2a4e71eecfc3a7fcf6825bc DIST botocore-1.34.54.gh.tar.gz 12748623 BLAKE2B 2b4732636e0d7cf46e12fc2cf4320c7c4a89c79abe5102a06c0b60c61ca1f638edbfeda0248c3044dbfe594b3dcfe0e8e73f52011bcad0e96fa4c51f3b6b944f SHA512 36fbbd8ad1627b86723ffbb54149ffb7b740831cb31be2e9c0423d158c5755161ec853ef5f97f4fa2632116099266d5f8dc06e47fda6356f988eb39636f435aa DIST botocore-1.34.59.gh.tar.gz 12764223 BLAKE2B 13347793764afb8ef51502149f490e5082e65a76a3f72eb484d60ea44542dc8026ddfd6e6cc0c90273f6f3fbdc82e42bc6ad5f2c434900a881208ff79edcbf6b SHA512 5afe577889fed68308a414982c12d36ddc9ce1d7d7b866c544d1f25226050772775c7ee04e490f72d1f355a1f68fcfcb7431d626fa9a85f76065f2576de511cf +DIST botocore-1.34.60.gh.tar.gz 12765697 BLAKE2B c9aadf76475fe4cdd81d3aff1fd577bc177cb6f4702e8f4acbce8a5d2010a6440e792ae2accf7af3cfafca146b22ce9b239d76a25c8f9715b34d44212e9e2c73 SHA512 4d44646840dfaab1d5d45705be74df73df1b76dc345ee189c4d8b82cbffc5076701a34771823b18c4c52c4a8a9acc8c7e186ad25b7a735de95944d9f439ef8b4 diff --git a/dev-python/botocore/botocore-1.34.60.ebuild b/dev-python/botocore/botocore-1.34.60.ebuild new file mode 100644 index 000000000000..ba6cd2a5d2a2 --- /dev/null +++ b/dev-python/botocore/botocore-1.34.60.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_{10..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/elementpath/Manifest b/dev-python/elementpath/Manifest index 943c7ab19316..7931d14b0d75 100644 --- a/dev-python/elementpath/Manifest +++ b/dev-python/elementpath/Manifest @@ -1 +1,2 @@ DIST elementpath-4.3.0.tar.gz 327870 BLAKE2B 6292d9c296e0653dc1acb40fffc1166a9ffe9428c9679fb87fa80c5478e9260593da62933238dc67eb88c9f62d55169afb18fee6aed91ac9b5e66d7ef175d9a3 SHA512 cd7b5b3a4556c9b68c654903d0a68b21658d4c40be9aede31ea4dfcb825d5bed4b1f7694344f88e9251df995a40d1a9e3a64f0e43a340ffe1f8e9160fd05b5a9 +DIST elementpath-4.4.0.tar.gz 330008 BLAKE2B 059b67c246052676b9514808dedad3b7dfa21a6e9291a52c9a56abb2d51e12fdf1271cd70978c83f861f76fc6d02a6b73180df7fb2e36a9c443ff344d13eb127 SHA512 ffa91ff55f893efed50620a0eae97dd0360f9eb80f264bd421a26215fe8fbcea715c1635465be3169c4d2be503a875f469b8507d12f8d44cb64f398accfd2750 diff --git a/dev-python/elementpath/elementpath-4.4.0.ebuild b/dev-python/elementpath/elementpath-4.4.0.ebuild new file mode 100644 index 000000000000..fb96a128f43a --- /dev/null +++ b/dev-python/elementpath/elementpath-4.4.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="XPath 1.0/2.0 parsers and selectors for ElementTree and lxml" +HOMEPAGE=" + https://github.com/sissaschool/elementpath/ + https://pypi.org/project/elementpath/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +BDEPEND=" + test? ( + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/xmlschema[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # fails for some reason, more fit for upstream testing anyway + rm tests/test_typing.py || die + distutils-r1_src_prepare +} diff --git a/dev-python/flask-migrate/Manifest b/dev-python/flask-migrate/Manifest index 1adad2550ec2..77ad1370f0b7 100644 --- a/dev-python/flask-migrate/Manifest +++ b/dev-python/flask-migrate/Manifest @@ -1,2 +1,3 @@ DIST Flask-Migrate-4.0.5.gh.tar.gz 26827 BLAKE2B 4b674856bc1177857b1272740351e953099a22f981faf63714ac07748308c77a599ce942e273858df2b0e010a4b962e8c8c9488c3bb750f5c4e9037e4a0c58bf SHA512 cdc02e3f567119604e56e9cafed3e7b40e7335d4c3f42cffb26515a4cec12ff34c16f8d5ae036d841cf846985973980d820cdc5d87a99ebf634b3b17becaeb69 DIST Flask-Migrate-4.0.6.gh.tar.gz 27087 BLAKE2B 73d96ec3b6483f5ecf181589263f87d2bf4f4c6f430cc7668481ce71ea1674d2a659ff48980034d4416a8891c7eaba1bab02f7eae7821ae22f31146c92b6eb61 SHA512 908668fc16a0f5dfef7a6de61b68ec350ec90c97d181f037be8906c1aa0e67464324bacd2e367462a1adc6b202eb08a203451653fca57a7d26c3e7d85676da42 +DIST Flask-Migrate-4.0.7.gh.tar.gz 27172 BLAKE2B 743eccd8705c57a5748676e3f824632d2a547291d9816f903311c7abbc62eb418bf422aed183b10d986a923a00337310b7ab03bce774f839c81520686a9b90f5 SHA512 51da745b60d43d24ee5b63e5ee7d354d12e53b7c62a9c639f322443df62113485a42a6fd21e50673742d6a35c1f175e15a2a0af8f20918b44bf34fc4c2da4c7c diff --git a/dev-python/flask-migrate/flask-migrate-4.0.7.ebuild b/dev-python/flask-migrate/flask-migrate-4.0.7.ebuild new file mode 100644 index 000000000000..1ee6db65ab0a --- /dev/null +++ b/dev-python/flask-migrate/flask-migrate-4.0.7.ebuild @@ -0,0 +1,46 @@ +# 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_{10..12} ) + +inherit distutils-r1 + +MY_P="Flask-Migrate-${PV}" +DESCRIPTION="SQLAlchemy database migrations for Flask applications using Alembic" +HOMEPAGE=" + https://github.com/miguelgrinberg/Flask-Migrate/ + https://pypi.org/project/Flask-Migrate/ +" +SRC_URI=" + https://github.com/miguelgrinberg/Flask-Migrate/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/alembic-1.9.0[${PYTHON_USEDEP}] + >=dev-python/flask-0.9[${PYTHON_USEDEP}] + >=dev-python/flask-sqlalchemy-1.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest + +python_test() { + local -x PATH=${T}/bin:${PATH} + + mkdir -p "${T}"/bin || die + cat > "${T}"/bin/flask <<-EOF || die + #!/bin/sh + exec ${EPYTHON} -m flask "\${@}" + EOF + chmod +x "${T}"/bin/flask || die + + eunittest +} diff --git a/dev-python/googleapis-common-protos/Manifest b/dev-python/googleapis-common-protos/Manifest index ee17e2ada7b2..a9e314e3b29e 100644 --- a/dev-python/googleapis-common-protos/Manifest +++ b/dev-python/googleapis-common-protos/Manifest @@ -1 +1,2 @@ DIST googleapis-common-protos-1.62.0.tar.gz 121172 BLAKE2B 33034cca9a195c90191d1f9ff68933714bab9d977fb720f94f2384554ed7ff73d9c01bfd386589e0c3cbed150e3b4d153feaf9ade7dbc1181e99c96bc7aa5b36 SHA512 13612ed20fdb0f7f1310a8c727d5b833286237f9470fd5b183a0a92463b043a7aa14b4e06188d8bd3e1aa9f1d6e468e96b06a448a8a76f85de3aea7d9bc734f0 +DIST googleapis-common-protos-1.63.0.tar.gz 121646 BLAKE2B 6c611a4a83e7e32680e5a333d1de2c5a68ae0fdda73e32a9136b8c9d9c11427768703b0a0e31c72feef70e29685cbd2e30f6d92ced5d16a18eb6281c243d8dc9 SHA512 dd0964057394c1c7220ffee757467ae3e221278790acc560180bf036b0759eb4fa2d65231fa82c1e22bae1068ffd2a089b234face4829c42352223da59f88e87 diff --git a/dev-python/googleapis-common-protos/googleapis-common-protos-1.63.0.ebuild b/dev-python/googleapis-common-protos/googleapis-common-protos-1.63.0.ebuild new file mode 100644 index 000000000000..0848eb13e75e --- /dev/null +++ b/dev-python/googleapis-common-protos/googleapis-common-protos-1.63.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 2020-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_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python classes generated from the common protos in the googleapis repository" +HOMEPAGE=" + https://github.com/googleapis/python-api-common-protos/ + https://pypi.org/project/googleapis-common-protos/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + <dev-python/protobuf-python-5[${PYTHON_USEDEP}] + >=dev-python/protobuf-python-3.15.0[${PYTHON_USEDEP}] + !dev-python/namespace-google +" + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}" -name '*.pth' -delete || die +} + +# no tests as this is all generated code diff --git a/dev-python/griffe/Manifest b/dev-python/griffe/Manifest index ead59808fbc2..a3dd73324b06 100644 --- a/dev-python/griffe/Manifest +++ b/dev-python/griffe/Manifest @@ -3,3 +3,4 @@ DIST griffe-0.41.0.gh.tar.gz 216110 BLAKE2B ce7865bc38afc60b61ca530937599a25a45e DIST griffe-0.41.1.gh.tar.gz 216351 BLAKE2B e4c8bad6c6870aab7dee9d8d4326537d7943b3afdb96d8c3ffb90387f1e6dde7296f63a9cecf0b8f7f444ee1d05845af3a064483b6c96e6434ee6469acd9c7ca SHA512 853082357ee79cf29d8551a22c2b6bf40e74a332234afeeea629a27814e8bbc91f682d2a0a305c93baf27e5e4f2697b8ee19cbf43e63e03ac71879f872a71988 DIST griffe-0.41.2.gh.tar.gz 216659 BLAKE2B b0974a105aaa9ffca5e0b977fd816f228ff78f550e7995fe0f902d9bdfb720c603238b2e084fc2cf1364c13a78311877c87e175eb37b5ac310345ed05b04ec96 SHA512 981c91a48a06d157b42b7415002360158a144845a1cdbd7c09c7e07ff43bbb795bbcda784f72dfb863183fe7093e34483f2c57f8370194f4834d51659401462e DIST griffe-0.41.3.gh.tar.gz 216756 BLAKE2B 00c979a32409f765b1c7d70edb91c8df71042e3ef0692e4575f8c161d8789f5b0dc8f60500925905089a1e13078a012ad5a8b312e5a78e882238c722c936eff1 SHA512 fb6ee21f3a71021e7b425522d0c0d6d6c7ce27cb62bac61c83d85c09311518a7ef7404347fe597d3b7d5ca19c09a6b7b61135779969777880e307a820ce93bdb +DIST griffe-0.42.0.gh.tar.gz 223478 BLAKE2B f607c552d3576cf37b00c16412cc1925706beedb386e63da0909a7967c4c3aad5782d39cff38d5bbbc4c38baf6967cdf4668bf6017a66409dbb0704eb5ac31c8 SHA512 21e0598d992fb1a22cf75e7d9bd1cadb1622f43817b685cd19f33c1202a67fe12f99baeba7237c64483addd8caed931d8cae2407f1071b06ffb340e00403a5af diff --git a/dev-python/griffe/griffe-0.42.0.ebuild b/dev-python/griffe/griffe-0.42.0.ebuild new file mode 100644 index 000000000000..73f99c53e1af --- /dev/null +++ b/dev-python/griffe/griffe-0.42.0.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_{10..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/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 17d46440bcaa..b143a4ef09d1 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -4,3 +4,4 @@ DIST hypothesis-6.98.18.gh.tar.gz 9434436 BLAKE2B 45861775caa1657d06469fc8cd0062 DIST hypothesis-6.98.9.gh.tar.gz 9427046 BLAKE2B c3705e4c780b6e7f427943231ac056f343e70569e88391f118383e6d6197f72e744306476f2e1994e8a6d95dce73b93dcd49e8fa197149e532b84c91bce79594 SHA512 1e8a0dcefb8def8376a0ad6549a58dac66470941e4a3584ba82867f8779fd941c141039f631f15f134f7cdb3beb2ad1a19312d8e56c47db9ace0569f203afaf3 DIST hypothesis-6.99.0.gh.tar.gz 9439501 BLAKE2B 9f46cffaede22381a019a4f7c0b158015f245bf25bc3623090c45c177f57c1cb74fd09a0f01e98d06039a641e486e0cf1ccc10da6f79ebff13914c1197f0fbd7 SHA512 19500c9e0013d4ef4c6b3991d606860e819eb69e68a6975a0c4d225424fe12f44e05662eac0c94f54c6995b12bb73e48d936fc2342a92f3b26760db8ad279ba3 DIST hypothesis-6.99.2.gh.tar.gz 9439856 BLAKE2B 0e7b99ee43ae84b4536f687324c334d7846766ec3422712cc0e215ebed113a3ed270b2fee70322edd5931e6a57c04092566846846e8a2df8587a2d6bd7f33e34 SHA512 ad833e8e4e5a228d06723ba76e80b7e88b849b51b298c2c0b58e82e9409961a212f85530a8e3f06e9e09ca2ebcc8ebd2e1e4992e50a37ba9f692a398aef699fa +DIST hypothesis-6.99.4.gh.tar.gz 9440865 BLAKE2B aa7e37077f59e0aa46c83067d9bda8aa72a9d5129c843fe170799c8bf0debee8bb5ff9a757ee67f6b9a858d186a92b3de978c21209a107d3f5ed44905c2cf2db SHA512 bb1ac9d2881a3577a07cd396c01be5e96bfe45e2a0254a8dc2c51a86718fd225e04943a6e451a015378fe2f813621b2a7e9fd4b757d180bdae5cb3a6d7b7133b diff --git a/dev-python/hypothesis/hypothesis-6.99.4.ebuild b/dev-python/hypothesis/hypothesis-6.99.4.ebuild new file mode 100644 index 000000000000..f7f366381e4f --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.99.4.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +CLI_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( "${CLI_COMPAT[@]}" pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 multiprocessing 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 ~ia64 ~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-xdist[${PYTHON_USEDEP}] + !!<dev-python/requests-toolbelt-0.10.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= -n "$(makeopts_jobs)" --dist=worksteal \ + tests/cover tests/pytest tests/quality +} + +python_install() { + distutils-r1_python_install + if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then + rm -r "${ED}/usr/bin" "${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/jupyterlab-server/Manifest b/dev-python/jupyterlab-server/Manifest index 98b6ef377ba9..99e1299ee250 100644 --- a/dev-python/jupyterlab-server/Manifest +++ b/dev-python/jupyterlab-server/Manifest @@ -1 +1,2 @@ DIST jupyterlab_server-2.25.3.tar.gz 74625 BLAKE2B 28fe6d85ed82b44e3968da3abe5ac2e5559b0527943eaeca3e3351610198feb00337ec6877a0a495a3a3f8c78a378dd44ce6941f2c9d5e34d655ccdf60c96dbd SHA512 62c1f1d51c588a64c6dea70dc888006b026b451ccc26331183f4878c9e1cc6b6631ba63ea6402265bdf97f85343f6762d16d82b37d666a6d9d8e8833b91457d2 +DIST jupyterlab_server-2.25.4.tar.gz 74772 BLAKE2B 8647840e2bb93244360db07524374f30e6831fddf6c2b89101b2a01f505470649fcc6aa31b40dc18a480628eeb791b4f7488cd91bb921796c3daad36102e535b SHA512 de04d1c5de3507a2465c316686be10ff6398be2f05d9d84ff6e79c376978503bc6ff836bfca67735d85f8ef23a15d6f30ad69268a25855dc4ebc1bd5f7c2fdaf diff --git a/dev-python/jupyterlab-server/jupyterlab-server-2.25.4.ebuild b/dev-python/jupyterlab-server/jupyterlab-server-2.25.4.ebuild new file mode 100644 index 000000000000..023800f2076e --- /dev/null +++ b/dev-python/jupyterlab-server/jupyterlab-server-2.25.4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Server components for JupyterLab and JupyterLab like applications" +HOMEPAGE=" + https://jupyter.org/ + https://github.com/jupyterlab/jupyterlab_server/ + https://pypi.org/project/jupyterlab-server/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/Babel-2.10[${PYTHON_USEDEP}] + >=dev-python/jinja-3.0.3[${PYTHON_USEDEP}] + >=dev-python/json5-0.9.0[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4.18.0[${PYTHON_USEDEP}] + >=dev-python/packaging-21.3[${PYTHON_USEDEP}] + >=dev-python/requests-2.31[${PYTHON_USEDEP}] + >=dev-python/jupyter-server-1.21[${PYTHON_USEDEP}] + <dev-python/jupyter-server-3[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/ipykernel[${PYTHON_USEDEP}] + dev-python/jupyter-server[${PYTHON_USEDEP}] + <dev-python/openapi-core-0.19[${PYTHON_USEDEP}] + >=dev-python/openapi-core-0.18[${PYTHON_USEDEP}] + <dev-python/openapi-spec-validator-0.8[${PYTHON_USEDEP}] + >=dev-python/openapi-spec-validator-0.6[${PYTHON_USEDEP}] + dev-python/pytest-jupyter[${PYTHON_USEDEP}] + dev-python/pytest-tornasync[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/requests-mock[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + dev-python/strict-rfc3339[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +# TODO: package autodoc_traits +#distutils_enable_sphinx docs/source dev-python/pydata-sphinx-theme dev-python/myst-parser + +python_test() { + local EPYTEST_IGNORE=( + tests/test_translation_api.py + ) + + EPYTEST_DESELECT=( + # Fails if terminal not available + tests/test_labapp.py::test_page_config + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_tornasync.plugin -p timeout +} diff --git a/dev-python/psutil/Manifest b/dev-python/psutil/Manifest index 4de298f37df7..d9b502ad1d8e 100644 --- a/dev-python/psutil/Manifest +++ b/dev-python/psutil/Manifest @@ -1,7 +1,2 @@ -DIST psutil-5.9.5-tests-r2.patch.xz 3776 BLAKE2B ba67e50d22c0ff05c3d31d5bcc1eb91fce59d2f933bf8693382aecdd9f20f2a4c4c3b759a3c03ff069b87241ab9f84905ad3b1c5f03eb5f3a2b12ed8ad967cf6 SHA512 6b20c6c78f772af767abee887a426b83129e3a13bb1cc13fa0111ad4dbd0a2a22ccc986af86b80d766bdf2a93a3a234327c6b56637b554164d9b0b0bac535fb9 -DIST psutil-5.9.5.tar.gz 493489 BLAKE2B 3db8ce374d9d81dcddc08f03418675318c5e447f9a3347154d025537ba090811926ced822f83ff5fc9239665b091803a30d167465495049569c3c820f7fbb32d SHA512 2afe1bad5359aeac90378faaa609bab855dfcaa58519c939fdadb02e6e2c8157c77f961ac0f90d104626cef3429e1ea2f686e4dc4c9dccf975e3e73e9b08872c -DIST psutil-5.9.6-tests.patch.xz 3780 BLAKE2B 002858235e7abf17c1426558cd9f8356cc7f21898f4488409e1cc4c6d76d6a017b8ca9e005e9973cfa890ff461691f5c0225e7c850ee4fde55cb1335d4ceca29 SHA512 1bd544ecd19ce7ff9a5e9f6e747b3f88ba44aabc289af87e3a1204028ebc26373dcdef9a9c5bd6ae13bc8d8d7d43ade41a8be2b14a02925afde1298ca0f9e6be -DIST psutil-5.9.6.tar.gz 496866 BLAKE2B 65bd35ff6bcc2cfcb5f75f732a5a6955cb1fb5d889a5827aa2da27268716b10aa1dea23a87ee25aafc54e035927216501ecb98e56c655bfada57616a0d67e189 SHA512 0c363bf998868e450f014d5c5ddc2448986cafcd21309571e067be1c4b49d0e78259a5388094cbf32af7bca12865c5f3692480737f0a5225bbcfb895a9bf81f6 -DIST psutil-5.9.7.tar.gz 498429 BLAKE2B 7fd60e014d55ab1288040b05f3dc058f0b75135fd4e5c0d0c3aa1365f2b3d940d0fa6897adfda12405451ae2bfe9e546da48b3c86838fd415413feb4421ba2af SHA512 b4bb3bf53fb581e992a06d037880aaac74d23be3adfdaf533a0e7e403d7b200e6584799bc5e7eaebd851bee983009e1d2a662a58c635af1466239ac9997ab64f DIST psutil-5.9.8-tests.patch.xz 3716 BLAKE2B cf33173a0d5c6537b0de1c4858beb9ec59c0361c6249f8a5cb3d55edc025578ddc0285a062083d28fcd4ece223728376dd64e9232aed1d761786b772a4cc7778 SHA512 5c9539a9716e25dc3cc5f2ce4373911a6c4524941838aff7aa08cc482d15aba6ec40b7904593723a785284410bcded2595c78a6c186d8af5b5f664c2d77e9220 DIST psutil-5.9.8.tar.gz 503247 BLAKE2B 192812d9006b9eb1a856ff8d322e6cfb320462e5dc5ee7b88869ce7f4f2277050c4867b5e3f64468bb42de0b5bde85b715b84b37842bd3f605216acf89a62a4c SHA512 6ddeed937119a930bb7b9556ff329f054e9429b8457c9a15d99cb105271297117abba587a974d02760bb8b6b244734973a676bdff6b533a53ce587858e48f337 diff --git a/dev-python/psutil/psutil-5.9.5.ebuild b/dev-python/psutil/psutil-5.9.5.ebuild deleted file mode 100644 index 88949ae29b18..000000000000 --- a/dev-python/psutil/psutil-5.9.5.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2023 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..12} pypy3 ) - -inherit distutils-r1 pypi - -TEST_PATCH=psutil-5.9.5-tests-r2.patch -DESCRIPTION="Retrieve information on running processes and system utilization" -HOMEPAGE=" - https://github.com/giampaolo/psutil/ - https://pypi.org/project/psutil/ -" -SRC_URI+=" - https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${TEST_PATCH}.xz -" - -LICENSE="BSD" -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" -IUSE="test" -RESTRICT="!test? ( test )" - -PATCHES=( - "${WORKDIR}/${TEST_PATCH}" -) - -python_test() { - # Since we are running in an environment a bit similar to CI, - # let's skip the tests that are disabled for CI - local -x TRAVIS=1 - local -x APPVEYOR=1 - local -x GITHUB_ACTIONS=1 - local -x GENTOO_TESTING=1 - "${EPYTHON}" psutil/tests/runner.py || - die "tests failed with ${EPYTHON}" -} - -python_compile() { - # Force -j1 to avoid .o linking race conditions - local MAKEOPTS=-j1 - distutils-r1_python_compile -} diff --git a/dev-python/psutil/psutil-5.9.6.ebuild b/dev-python/psutil/psutil-5.9.6.ebuild deleted file mode 100644 index ea36b0e8c29f..000000000000 --- a/dev-python/psutil/psutil-5.9.6.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2023 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_{10..12} pypy3 ) - -inherit distutils-r1 pypi - -TEST_PATCH=psutil-5.9.6-tests.patch -DESCRIPTION="Retrieve information on running processes and system utilization" -HOMEPAGE=" - https://github.com/giampaolo/psutil/ - https://pypi.org/project/psutil/ -" -SRC_URI+=" - https://dev.gentoo.org/~mgorny/dist/${TEST_PATCH}.xz -" - -LICENSE="BSD" -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" -IUSE="test" -RESTRICT="!test? ( test )" - -PATCHES=( - "${WORKDIR}/${TEST_PATCH}" -) - -python_test() { - # Since we are running in an environment a bit similar to CI, - # let's skip the tests that are disabled for CI - local -x TRAVIS=1 - local -x APPVEYOR=1 - local -x GITHUB_ACTIONS=1 - local -x GENTOO_TESTING=1 - "${EPYTHON}" psutil/tests/runner.py || - die "tests failed with ${EPYTHON}" -} - -python_compile() { - # Force -j1 to avoid .o linking race conditions - local MAKEOPTS=-j1 - distutils-r1_python_compile -} diff --git a/dev-python/psutil/psutil-5.9.7.ebuild b/dev-python/psutil/psutil-5.9.7.ebuild deleted file mode 100644 index 7ac43f556af6..000000000000 --- a/dev-python/psutil/psutil-5.9.7.ebuild +++ /dev/null @@ -1,47 +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_{10..12} pypy3 ) - -inherit distutils-r1 pypi - -TEST_PATCH=psutil-5.9.6-tests.patch -DESCRIPTION="Retrieve information on running processes and system utilization" -HOMEPAGE=" - https://github.com/giampaolo/psutil/ - https://pypi.org/project/psutil/ -" -SRC_URI+=" - https://dev.gentoo.org/~mgorny/dist/${TEST_PATCH}.xz -" - -LICENSE="BSD" -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" -IUSE="test" -RESTRICT="!test? ( test )" - -PATCHES=( - "${WORKDIR}/${TEST_PATCH}" -) - -python_test() { - # Since we are running in an environment a bit similar to CI, - # let's skip the tests that are disabled for CI - local -x TRAVIS=1 - local -x APPVEYOR=1 - local -x GITHUB_ACTIONS=1 - local -x GENTOO_TESTING=1 - "${EPYTHON}" psutil/tests/runner.py || - die "tests failed with ${EPYTHON}" -} - -python_compile() { - # Force -j1 to avoid .o linking race conditions - local MAKEOPTS=-j1 - distutils-r1_python_compile -} diff --git a/dev-python/pyrate-limiter/Manifest b/dev-python/pyrate-limiter/Manifest index 46dd421a22fd..1b30ace06e2e 100644 --- a/dev-python/pyrate-limiter/Manifest +++ b/dev-python/pyrate-limiter/Manifest @@ -1,3 +1,4 @@ DIST pyrate-limiter-2.10.0.gh.tar.gz 71838 BLAKE2B 3b8fd16684268870991c3a731c5497802c6f7be51e57bc983a14a7484fad2d0983613304fa061fdb70a3e6645d17fe37fbd68e9ddeca57bc7bd97fef4a5d8585 SHA512 b0090b2d80d40ba2f86ac7b5c5612a35fa885b52a87d783aa9726782275e79ca8d54a9a44b1f0dd43c98bf2355f4c17e1686d7c7f806934ea492b67f66b06ffe DIST pyrate_limiter-3.2.1.tar.gz 277166 BLAKE2B eb126b94bc9a113addd1e727ae21ee2df447e1f9fc0b3a1b77ab46464186a0cb62584fafbc9fac1ddbcc7c3289338208dfb39070e57e974e00442b1d7c5f0d21 SHA512 cb782766c2e1e47aeb35c3d7d03f9a82862a53e73b5afdab1b8a255866392cf0636340164c19e4181e8aa4327e9c346fc2fde64b2f50aaf227dd60633038f7c7 DIST pyrate_limiter-3.3.0.tar.gz 278153 BLAKE2B df0e3aaf53150fb905be994c8bcc268e45bafddf795514eb8a6ee56da25e998b85336f48331a2720cbf501cb6feee806c9c17d99adcb4647979f6d79f960cc9f SHA512 ee2cc0c573c7b696e6a6444eca85b4e5c8315c291b6ab64ed5e60cfd54298cd9aca1efdbfb7a669b92f8169848c03287ecb0a3f50c9281a4bc15acfc1713e300 +DIST pyrate_limiter-3.4.1.tar.gz 278251 BLAKE2B c1894a190d0d70134683723d8ffa2b216ebf724cd409e9cc25301b9a9d70d73cf1e4fc1c7bf48e661935cc6f2c530b9d45f96d7c86ce2a20ab0e47892093e6d3 SHA512 64c06abaf540e21e4b085062eff83f1f9d1710156c2d22c0180858c31f731733d9db69bdc56e48aaf4220d874d9c5253f506decd0ce3743c8fb8aa695a4ff6b4 diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.4.1.ebuild b/dev-python/pyrate-limiter/pyrate-limiter-3.4.1.ebuild new file mode 100644 index 000000000000..0f5062a73d40 --- /dev/null +++ b/dev-python/pyrate-limiter/pyrate-limiter-3.4.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family" +HOMEPAGE=" + https://github.com/vutran1710/PyrateLimiter/ + https://pypi.org/project/pyrate-limiter/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/filelock[${PYTHON_USEDEP}] + dev-python/redis[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-db/redis + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" + +EPYTEST_DESELECT=( + # Optional dependency redis-py-cluster not packaged + "tests/test_02.py::test_redis_cluster" +) +EPYTEST_XDIST=1 + +distutils_enable_sphinx docs \ + dev-python/sphinx-autodoc-typehints \ + dev-python/sphinx-copybutton \ + dev-python/furo \ + dev-python/myst-parser \ + dev-python/sphinxcontrib-apidoc +distutils_enable_tests pytest + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + + # Spawn Redis itself for testing purposes + einfo "Spawning Redis" + einfo "NOTE: Port ${redis_port} must be free" + "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server" + daemonize yes + pidfile ${redis_pid} + port ${redis_port} + bind 127.0.0.1 ::1 + ${extra_conf} + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p asyncio -p rerunfailures --reruns=5 +} diff --git a/dev-python/requests-oauthlib/Manifest b/dev-python/requests-oauthlib/Manifest index c6de87b7f1d6..95bf581c0d54 100644 --- a/dev-python/requests-oauthlib/Manifest +++ b/dev-python/requests-oauthlib/Manifest @@ -1 +1,2 @@ DIST requests-oauthlib-1.3.1.tar.gz 48367 BLAKE2B 0cc538fe7ed1ef12740b60bb8b3e32d84f0d45b6c231c70b8bbfe9db9c8775acc51f50e78589e43eb0644c82e919a5a124941986023de4432e0631ebf0764869 SHA512 86fe34d39ad7224fd44a1b0c4fbf3784032239b894ae73ba65043941cde9675c2f8abedf44ccc00b5fb1648b8e261de258464b311f3ace6392ab6202fb50aa08 +DIST requests-oauthlib-1.4.0.gh.tar.gz 51324 BLAKE2B e62d696ceaf483f5cbfacd60570a87665d7b7933d3c79de93ce7884c6ac9f245d5ba77f1e83c518226ec2be89c3e6ba4281669e1dcf83cffcddda95fd25ae2fe SHA512 14ffe34be4aaffb774aeda7965687738c12b23291994a86ee9c1436490cd20588bfeac4fb41b4cc89966f62a6ed5152235cd06cd194a8eecc8ea9367975d87ce diff --git a/dev-python/requests-oauthlib/requests-oauthlib-1.4.0.ebuild b/dev-python/requests-oauthlib/requests-oauthlib-1.4.0.ebuild new file mode 100644 index 000000000000..fbe6ef8d3352 --- /dev/null +++ b/dev-python/requests-oauthlib/requests-oauthlib-1.4.0.ebuild @@ -0,0 +1,50 @@ +# 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_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="This project provides first-class OAuth library support for Requests" +HOMEPAGE=" + https://github.com/requests/requests-oauthlib/ + https://pypi.org/project/requests-oauthlib/ +" +SRC_URI=" + https://github.com/requests/requests-oauthlib/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] + >=dev-python/oauthlib-3.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/requests-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # Internet access + tests/test_core.py::OAuth1Test::testCanPostBinaryData + tests/test_core.py::OAuth1Test::test_content_type_override + tests/test_core.py::OAuth1Test::test_url_is_native_str + ) + local EPYTEST_IGNORE=( + tests/examples + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/trimesh/Manifest b/dev-python/trimesh/Manifest index 6eba6c3e0e81..f15884f7f568 100644 --- a/dev-python/trimesh/Manifest +++ b/dev-python/trimesh/Manifest @@ -1,2 +1,3 @@ DIST trimesh-4.1.5.gh.tar.gz 13440026 BLAKE2B bdf27c0ebfc24ede66ecd8ae94151cbf926e187112f096246080db34a43a23f950674a461c29d8b87a71d6b5bc8e3cc824007b54be90593ceb552e1669e41e36 SHA512 a62cdbad4a053fe6bf3d70285c2484600af09f9bc6a638214b10718bdf3c0901053bad0d25c4d7dc96f396c66fb3d438981d3fc96ea179bb078abb3d8b87695b DIST trimesh-4.1.8.gh.tar.gz 13440336 BLAKE2B aa4bddc3d613144a0e304ec320a2b38df213846260e2525dae0f0f35a4146561e7b81dc88e197a5b0f0a76ff4b757c30df2a68fe0db0d4a37cdc8a91aedc41ba SHA512 e20ca45f08a4d65c44c214b104af7c6d9d27121716ed7efd53a521c5b896ce788dba91b7794db518f26bb2ae86a1b8269af94f9b9381f8fdd342372b4ba86ce4 +DIST trimesh-4.2.0.gh.tar.gz 13553809 BLAKE2B 141aec46cb8bf2342251a72e5e4c1fbee1e33e4ff63d420cfa4db1758fc324d572d54932ce1526ba2df75d9770f001d9dbe41a79835837931c4c46221fbb6871 SHA512 75efd00ef5ff8f9c25bdfb06ab92fa09db154771356b18ebcf457cba4c2f366645084eb078e5e324cfb41fe101797694aa6b00005f7ccd1290ba4d2d6c088ebd diff --git a/dev-python/trimesh/trimesh-4.2.0.ebuild b/dev-python/trimesh/trimesh-4.2.0.ebuild new file mode 100644 index 000000000000..fdbbaa5a2b10 --- /dev/null +++ b/dev-python/trimesh/trimesh-4.2.0.ebuild @@ -0,0 +1,69 @@ +# 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_{10..12} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="Python library for loading and using triangular meshes" +HOMEPAGE=" + https://trimesh.org/ + https://github.com/mikedh/trimesh/ + https://pypi.org/project/trimesh/ +" +SRC_URI=" + https://github.com/mikedh/${PN}/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/colorlog[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/networkx[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pycollada[${PYTHON_USEDEP}] + dev-python/pyglet[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/shapely-1.8.2[${PYTHON_USEDEP}] + dev-python/svg-path[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + dev-python/xxhash[${PYTHON_USEDEP}] + sci-libs/rtree[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mapbox_earcut[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + ) +" + +EPYTEST_TIMEOUT=1800 +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +pkg_postinst() { + optfeature_header "${PN} functionality can be extended by installing the following packages:" + optfeature "making GUI applications with 3D stuff" dev-python/glooey + optfeature "2D triangulations of polygons" dev-python/mapbox_earcut + optfeature "loading a number of additional mesh formats" dev-python/meshio + optfeature "figuring out how much memory we have" dev-python/psutil + optfeature "marching cubes and other nice stuff" dev-python/scikit-image +} diff --git a/dev-python/wheel/Manifest b/dev-python/wheel/Manifest index b7b5ced3e9ed..f12269bd6f70 100644 --- a/dev-python/wheel/Manifest +++ b/dev-python/wheel/Manifest @@ -1 +1,2 @@ DIST wheel-0.42.0.tar.gz 98667 BLAKE2B 201f8246dc55c62bb700e706d7734e76689b13a3036aeeca7531f483c7f354ccc5ca7452106038425ba300e74f1041f7408f6749d03e39aca289398598833014 SHA512 4816261c0f6d8971a80665f66868ec9cb082f2189b6e31e083a0d3a6080e159f06a4152f44eda1147a2b907b5aead0f63bbac725aacb56bb8be13fc77da2b79c +DIST wheel-0.43.0.tar.gz 99109 BLAKE2B 49e77ba84fb0a9b3bd177d994b9b33f8e5fa2bb8528fe1216fd55e6d749e201ac9a76ff24c8178485bff94d0f7840d42e0aa8f940fc3fe7d91c41411fa1cd907 SHA512 b6213c05263026884c07bdc4d529252f0be013c3fc6d0558008b7130ba90d4ef11e57f155f62f5e2528ddcd78d188530b2b7c78acc15b8168f64935fe6e6393b diff --git a/dev-python/wheel/wheel-0.43.0.ebuild b/dev-python/wheel/wheel-0.43.0.ebuild new file mode 100644 index 000000000000..ab5cf8e413f0 --- /dev/null +++ b/dev-python/wheel/wheel-0.43.0.ebuild @@ -0,0 +1,40 @@ +# 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 +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A built-package format for Python" +HOMEPAGE=" + https://github.com/pypa/wheel/ + https://pypi.org/project/wheel/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/setuptools[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # unbundle packaging + rm -r src/wheel/vendored || die + sed -i -e 's:\.vendored\.::' src/wheel/*.py || die + sed -i -e 's:wheel\.vendored\.::' tests/*.py || die + + distutils-r1_src_prepare +} diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index e0c54d81a846..9be994595529 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1505,32 +1505,28 @@ distutils-r1_python_compile() { _python_check_EPYTHON - case ${DISTUTILS_USE_PEP517:-setuptools} in - setuptools) - # call setup.py build when using setuptools (either via PEP517 - # or in legacy mode) - - # distutils is parallel-capable since py3.5 - local jobs=$(makeopts_jobs "${MAKEOPTS} ${*}") - - if [[ ${DISTUTILS_USE_PEP517} ]]; then - mkdir -p "${BUILD_DIR}" || die - local -x DIST_EXTRA_CONFIG="${BUILD_DIR}/extra-setup.cfg" - cat > "${DIST_EXTRA_CONFIG}" <<-EOF || die - [build] - build_base = ${BUILD_DIR}/build - - [build_ext] - parallel = ${jobs} - EOF - else - _distutils-r1_copy_egg_info - esetup.py build -j "${jobs}" "${@}" - fi - ;; + case ${DISTUTILS_USE_PEP517:-unset} in no) return ;; + unset) + # legacy mode + _distutils-r1_copy_egg_info + esetup.py build -j "$(makeopts_jobs "${MAKEOPTS} ${*}")" "${@}" + ;; + *) + # we do this for all build systems, since other backends + # and custom hooks may wrap setuptools + mkdir -p "${BUILD_DIR}" || die + local -x DIST_EXTRA_CONFIG="${BUILD_DIR}/extra-setup.cfg" + cat > "${DIST_EXTRA_CONFIG}" <<-EOF || die + [build] + build_base = ${BUILD_DIR}/build + + [build_ext] + parallel = $(makeopts_jobs "${MAKEOPTS} ${*}") + EOF + ;; esac if [[ ${DISTUTILS_USE_PEP517} ]]; then |