diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-07-31 21:10:07 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-07-31 21:10:07 +0000 |
| commit | e98d81d441766f98025697dafbc53a838db0e3c3 (patch) | |
| tree | 6f4c46ff9142bb6c9f2f007f651e335b70386fa2 /dev-python | |
| parent | edab72188c3e96014d2ae4be9c58f1bd9979009b (diff) | |
| download | baldeagleos-repo-e98d81d441766f98025697dafbc53a838db0e3c3.tar.gz baldeagleos-repo-e98d81d441766f98025697dafbc53a838db0e3c3.tar.xz baldeagleos-repo-e98d81d441766f98025697dafbc53a838db0e3c3.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
60 files changed, 1895 insertions, 217 deletions
diff --git a/dev-python/aiohttp-socks/Manifest b/dev-python/aiohttp-socks/Manifest index 08dce9b648cf..941f34bcbd70 100644 --- a/dev-python/aiohttp-socks/Manifest +++ b/dev-python/aiohttp-socks/Manifest @@ -1 +1,2 @@ DIST aiohttp-socks-0.8.4.gh.tar.gz 13568 BLAKE2B a99513b4dd7ca75aca36979c0ace84adcabdc2fb1104d38ae49d07944fa1fb17a2a8da24fa395a33dabc00bc444710d23e911db427c895ec144ac1600d3d5983 SHA512 09a0ca9267ad822546bd47066b2f1b5f15364913da609fa5a2ebd0b0a8fd2f74e7413ab7e2f0970a777c5b853cc2fcae83e7af4eaa7cb4508d7644479ba8afd1 +DIST aiohttp-socks-0.9.0.gh.tar.gz 13590 BLAKE2B 1fb13b8607a9245d872d0ad45f50860492132c661d1a0f52fb846e56568d784f1545abab8f08bb2bd633460033f85982c80979c880841ccc40bcc0b2ae3f2ba4 SHA512 c19b8325270cbb660d9200e84c34a4c753097cdb282397bc31261c7082e184c947cab7821f63d326881f0ac4bb4104a813ebb8fc2b3df663f8891da246f0c789 diff --git a/dev-python/aiohttp-socks/aiohttp-socks-0.9.0.ebuild b/dev-python/aiohttp-socks/aiohttp-socks-0.9.0.ebuild new file mode 100644 index 000000000000..6e90358c673b --- /dev/null +++ b/dev-python/aiohttp-socks/aiohttp-socks-0.9.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="SOCKS proxy connector for aiohttp" +HOMEPAGE=" + https://pypi.org/project/aiohttp-socks/ + https://github.com/romis2012/aiohttp-socks/ +" +SRC_URI=" + https://github.com/romis2012/aiohttp-socks/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/aiohttp-3.10.0[${PYTHON_USEDEP}] + >=dev-python/python-socks-2.4.3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/yarl[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/tiny-proxy[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index 6c4460177310..793cda20c51b 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1,2 +1,3 @@ +DIST aiohttp-3.10.0.tar.gz 7517100 BLAKE2B ce37d40e94ef836ae63a56b1b01251a34a07c469120393f8006964f54eea5f27cd4277fb0f69174cf652e52fbb0d77cda53ffe41c785922717defde2df873dd9 SHA512 69c8eaed5738c11ea994b64dcf75cbc5950b1cc4705ac40df80ad3311dceb1d25c15019527e32e9345a4677882e103a7c25dedc0dc99d874102a73771d6cfde9 DIST aiohttp-3.10.0b1.tar.gz 7515855 BLAKE2B af9ad5ffe826f08d26ab5eaf205e1cad348dde4ee22a994ce006e2bd1031d488d5f5a9621016db59127d83845055115bda186a22ae6d607d22ec171051bcdee3 SHA512 66630c508c4dba6f0cee644181006cce0b4cc4e2a25a2304088ec4f4e9497e36bb0624a62174efb4794c112a603146b2a18c5160b7da6e8b3681aec2fde47c84 DIST aiohttp-3.9.5.tar.gz 7504841 BLAKE2B f051ee88d45952219f72d542f1c6d0cc33c699c6c5fb5dbe3bc054ee4d0e03121b219c8c8524fd1236a8b878329b0997b8afe07d6c66074102d4a2052a8738ff SHA512 da11468a2f131275593395b052700a99cf79055a32d48327dca0f58547ad30add8cd0a375dbd831e2f06fe7a739183251e4ad69c16f3d141799bbed45a8a5dc4 diff --git a/dev-python/aiohttp/aiohttp-3.10.0.ebuild b/dev-python/aiohttp/aiohttp-3.10.0.ebuild new file mode 100644 index 000000000000..beb1b04100b2 --- /dev/null +++ b/dev-python/aiohttp/aiohttp-3.10.0.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +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="~amd64 ~arm64 ~riscv ~sparc ~x86" +IUSE="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/yarl-1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + <dev-python/async-timeout-5[${PYTHON_USEDEP}] + >=dev-python/async-timeout-4.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + 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-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 '/xfail_strict/d' setup.cfg || die + sed -i -e 's:-Werror::' Makefile || die + + distutils-r1_src_prepare +} + +python_configure_all() { + # 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 +} + +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 + ) + + 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 + ) + + case ${EPYTHON} in + pypy3) + # upstream unconditionally blocks building C extensions + # on PyPy3 but the test suite needs an explicit switch, + # sigh + local -x AIOHTTP_NO_EXTENSIONS=1 + ;; + python3.13) + EPYTEST_DESELECT+=( + # buggy test + # https://github.com/aio-libs/aiohttp/issues/8551 + tests/test_web_urldispatcher.py::test_access_mock_special_resource + # new test (so not a regression) + # https://github.com/aio-libs/aiohttp/issues/8565 + tests/test_web_urldispatcher.py::test_access_symlink_loop + ) + ;; + esac + + 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" +} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 90779eaf7cd4..6071dfca132a 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -2,3 +2,4 @@ DIST boto3-1.34.144.gh.tar.gz 840506 BLAKE2B 7fccc6ae45dec6411995795dc7dd180cec5 DIST boto3-1.34.145.gh.tar.gz 841776 BLAKE2B e93a6c4d634c2df22ed27e58c2abe0a6cc835364b4a93c73c8c221ba39b63b89c5f3ddbf210eb90a451c9b6650061f08a173395f1fb3cd4abe8fde90347b4c63 SHA512 ebd85e3068d1ad332b2ed4c2ad45c022fadb090f8aacdcd72c0d515f91b218201afd69750281b68c909dbf2ab35bef3a39412a616f5b134780f15c0cc9854123 DIST boto3-1.34.149.gh.tar.gz 845064 BLAKE2B 25e77483b8ac8a52e7f5586794839dcab694cf8db3cc27112db25fc77b55845cb84dd2750a45dd5097b49e62e62403077fd741d7f1610fc7f735d8344e6fd23c SHA512 21a942ca15023b3e2732678ee79d1b8c7b027e89958b5761a8d543b91c434d06d7c84e137177e1fde52440c801f62dfa4caed309ec92400f6516720bbcc11690 DIST boto3-1.34.150.gh.tar.gz 845173 BLAKE2B ad4d63056452b1743b91716fef05f7858ecaff10c4dfc7c10b9ff3bd1b6e7e2a641bbacddbd9ff48ad5536f24692a3423a7b34d174fb9c41961130853b93988c SHA512 87e4f7c6853a4f981f1920e532a8118a40dbcfd5798459fb095f1c5f3bedde9ed474d4f7fdf563b5f9e8170e1b63963d81c813747387a5b5cf2da2e264c9bf7d +DIST boto3-1.34.151.gh.tar.gz 846055 BLAKE2B 02074215e95b21078dacc5b6cf0fbe228db90ec75377fc1b6d91731de11b33874a5522fb7f19f7651bc7c1ab479e088ad207c421549f83837ee8cdca0132ca5f SHA512 027c277385f1e12f3dc388755cdc53ce34c0bfc3aef0745a676077fbbb0fb48fa499cfadb574abc3258fe29e39cb0f5d31876c371aed1491c4e6358b11b40fa5 diff --git a/dev-python/boto3/boto3-1.34.151.ebuild b/dev-python/boto3/boto3-1.34.151.ebuild new file mode 100644 index 000000000000..509842b2699d --- /dev/null +++ b/dev-python/boto3/boto3-1.34.151.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/botocore-${PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}] +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 2acff2bdde82..92d13d4e3e6e 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -2,3 +2,4 @@ DIST botocore-1.34.144.gh.tar.gz 13221134 BLAKE2B 9b688a781ad80f294c147ce4aacc31 DIST botocore-1.34.145.gh.tar.gz 13230154 BLAKE2B ebcf6acdd7ab01bca4032eaa9bc94fd72807edb3b0ce7cdc7addc4bed9a3500627b95d95e69c3027ecb384e65d95c0955e71a0e3262d89e3e8d49eefc37e9aaf SHA512 96042253f2f5ec74b258327c3c4eb322a8ed534ac8ed78f38a5aafb3a97ce832bfe5184090a2dadd41e30b75bf35c463d8d80c3de72a46410656d62076469650 DIST botocore-1.34.149.gh.tar.gz 13245965 BLAKE2B 6bc05c1d93eaa62fa9acb3c0e42acdc67272df442452892cb8e833d93edaafd0dfe03f9467e5f305d2827a12bcc9f0658e13a889f9165e1a83250a9ba1bd5f5b SHA512 e44ab480c611b43e13474db97642b92ac59c4b9e641d45ca0967aca385c608f37dd77541088161e7ac1b05ff9b5e4fa544e8d8711d7fbe0a8a4e78e7d7710722 DIST botocore-1.34.150.gh.tar.gz 13246229 BLAKE2B 30b8327a8095afd514d320152b1e8088f95434805ed50704dc0304a1532a89ec9e040f98020b9bb0b2ef88a63eefed4925776f4bddf8d7c7214b6e51c7cc2c87 SHA512 1a05dd42cd0b9290c639a49457c33c02cb32d3055525f34215c25e8fe9b02351611385d7f20b2b2e94544e54634450859df5871cc8f803db1e361ba6981ed54e +DIST botocore-1.34.151.gh.tar.gz 13250953 BLAKE2B cb60a79948546aa78610441015059573dd26ba1153570ba1fda5c9f2b53488f48aa47c7b3f98323b47b143ef8cd429c0841458690f9d9bac6703dbce886454b8 SHA512 6b50ce628eb79b7a9167037d1b24cddcadd0d291ceb2bf47ba3ae90c643d77bc6aa236fa2f14605842ff1b36feee905884f6b4c5ca8e22da2a2b9d7deaf7cc4c diff --git a/dev-python/botocore/botocore-1.34.151.ebuild b/dev-python/botocore/botocore-1.34.151.ebuild new file mode 100644 index 000000000000..64a61a30c80b --- /dev/null +++ b/dev-python/botocore/botocore-1.34.151.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + case ${EPYTHON} in + python3.13) + EPYTEST_DESELECT+=( + # memory use tests, probably fragile + tests/functional/leak/test_resource_leaks.py::TestDoesNotLeakMemory + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/cfn-lint/Manifest b/dev-python/cfn-lint/Manifest index 76e7d8be66d5..bfdd8dbe5299 100644 --- a/dev-python/cfn-lint/Manifest +++ b/dev-python/cfn-lint/Manifest @@ -2,3 +2,4 @@ DIST cfn_lint-1.6.1.tar.gz 2366313 BLAKE2B af7b3e8d5145f3368d4c7b2e86b0ffe441c1f DIST cfn_lint-1.7.2.tar.gz 2412586 BLAKE2B 5ec2034dce3c347411408723ebd1e00143c8b2428364cd33591c260fddb1911d595398121dba356d5179737400ac56fa4077ce8458d0b061c886284e152052b8 SHA512 7c9f785ecb08e937f21be47dea736719b1c7afac2b2989e65f84745e220657a0e3ac3427fa53ece4c5fe51b7880fb9da04c9eac7bd509f43978255ec5706f434 DIST cfn_lint-1.8.2.tar.gz 2377269 BLAKE2B 8f4266c6d90f50f614f203a4b34ffc15397c973e8af07510c64e21bd80f1c4dd0f5bf6283268cbc69fbe505d6c945cc058ec0f06b05e868b3149941ab28b3948 SHA512 2605c5880960e3bce2822f2d9b9bd221d4ab7d77a4d9a1bcbdbf6df8f50492877daf704f84157946519a9da96f9d3de5ed5e65629d259726a10e1fb38c963950 DIST cfn_lint-1.9.0.tar.gz 2579663 BLAKE2B e23dff84652fb904073d61fc93b193fae0666bec229749d4bd34921b6186db97c365bc6cb25579f96ad4b29cadfb6c5a98943180a06818337ca3204c1f7c6eb6 SHA512 f8280e6e47834d72c084a1bd5b3fcb6cf96ac6484ae4785a5a86f60f5f6c5386fd7f6edcd5982345ea9e16d309cc5f1d6748f88ca17f3d0e6ef7902891bbf1fa +DIST cfn_lint-1.9.1.tar.gz 2579458 BLAKE2B 263da6ba538d66878e66916d3850f249f03bbf189614c7c3bc3cbe20a82226e6f2ac8a696be6eefc9db018f7cf42f2e761fc671f2176f5ca231064fc25c03b78 SHA512 48794c629c4e84ddb9781546aa0e385634537af3f1239617e9569681a375239cf7a7a6f5095c0a6386b217fcd0b6d1bd3e71d65524ecda8b1d4b6ffdce01fdc9 diff --git a/dev-python/cfn-lint/cfn-lint-1.9.1.ebuild b/dev-python/cfn-lint/cfn-lint-1.9.1.ebuild new file mode 100644 index 000000000000..cb4c0566bc6f --- /dev/null +++ b/dev-python/cfn-lint/cfn-lint-1.9.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="CloudFormation Linter" +HOMEPAGE=" + https://github.com/aws-cloudformation/cfn-lint/ + https://pypi.org/project/cfn-lint/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/aws-sam-translator-1.89.0[${PYTHON_USEDEP}] + dev-python/jsonpatch[${PYTHON_USEDEP}] + >=dev-python/jschema-to-python-1.2.3[${PYTHON_USEDEP}] + <dev-python/jsonschema-5[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] + dev-python/junit-xml[${PYTHON_USEDEP}] + <dev-python/networkx-4[${PYTHON_USEDEP}] + >dev-python/pyyaml-5.4[${PYTHON_USEDEP}] + >=dev-python/regex-2021.7.1[${PYTHON_USEDEP}] + >=dev-python/sarif-om-1.0.4[${PYTHON_USEDEP}] + >=dev-python/sympy-1.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/defusedxml[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # unpin the deps + sed -e 's:~=[0-9.]*::' -i pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO + test/unit/module/test_template.py::TestTemplate::test_build_graph + # requires git repo + test/unit/module/maintenance/test_update_documentation.py::TestUpdateDocumentation::test_update_docs + # Internet + test/unit/module/formatters/test_formatters.py::TestFormatters::test_sarif_formatter + test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_3 + # TODO: it looks as if AWS_DEFAULT_REGION didn't work + test/unit/module/core/test_run_cli.py::TestCli::test_bad_config + test/unit/module/core/test_run_cli.py::TestCli::test_override_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_positional_template_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_template_config + # different graphviz version? + test/unit/module/template/test_template.py::TestTemplate::test_build_graph + ) + + # from tox.ini + local -x AWS_DEFAULT_REGION=us-east-1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/django-allauth/Manifest b/dev-python/django-allauth/Manifest index 5c62afd25bf5..11c0a049f9e2 100644 --- a/dev-python/django-allauth/Manifest +++ b/dev-python/django-allauth/Manifest @@ -1,3 +1,3 @@ DIST django-allauth-0.61.1.tar.gz 951524 BLAKE2B 3a29689f6b8032d96afbfb8081c8f07367395892c3daa9224074799608911bf517ece04a047e859f97d80d11adaff7fa0dbf25102121f5354d8e17cbbcdddd4d SHA512 c9ad0b206a4967d542a67d97e8973d4d83fe030fa71d8fad1f43b81fb388895a7d9c339f49d536cccfad5b3f606ea02dd31bc5e41328579d092b00e7e0a1b936 -DIST django-allauth-0.63.3.gh.tar.gz 1089336 BLAKE2B 6fb10088789bcd7972ebe92c34198808df6ed6eb15102b79fafc5234822f9a3d223de28393bf1216ff39beb73376503565ac39ec94cbebb2cc3e003fa353b77d SHA512 54159efe7510a74d8b8c661217669d2ff08135ab5ec54fa5b09a29092e782fd615a2a65dbfa493b3817bcf9fbe77425dfab8e6c0d7a9098abb9ebd80860156e7 DIST django-allauth-0.63.6.gh.tar.gz 1090004 BLAKE2B 07a3ba7546de6b5a7ebf731dd7fb11ba814042ffc81022d9211b685c5cfa3318a8966697fbbf2519be28272d8fa1f69ec1f141dba10b31886f8c98204c18ee78 SHA512 4ca285cc8acf57575d7d7bba4a2dfbfc0076279d0dd7aa424d409cc70917494d847214907d83b89d9d10dd440b05c9e343ac091eb5d3ad5f81e85c2d602947d1 +DIST django-allauth-64.0.0.gh.tar.gz 1163823 BLAKE2B 8ba2f24c737e41a0c0476632bf31785783b7bd2afb07e297cf79c8f2a5cf3800ee0997df49fbdf21e843acb96503472c065ae9b1c6e28b90b1c764936302e314 SHA512 d644ecf95114bee86e647dc7219c5056cc9b093799c947a8d53295992ecad22725bb61a6bb2020c70d0266739d0b7bd2b50467dd161d81497f9c5db517d1e678 diff --git a/dev-python/django-allauth/django-allauth-0.63.3.ebuild b/dev-python/django-allauth/django-allauth-64.0.0.ebuild index d71c074791a1..437f6d70bcd8 100644 --- a/dev-python/django-allauth/django-allauth-0.63.3.ebuild +++ b/dev-python/django-allauth/django-allauth-64.0.0.ebuild @@ -1,6 +1,5 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 2024 Liguros Authors # Distributed under the terms of the GNU General Public License v2 - EAPI=8 DISTUTILS_USE_PEP517=setuptools @@ -14,7 +13,7 @@ HOMEPAGE=" https://github.com/pennersr/django-allauth/ https://pypi.org/project/django-allauth/ " -SRC_URI="https://github.com/pennersr/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" +SRC_URI="https://github.com/pennersr/django-allauth/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="MIT" SLOT="0" diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest index 2804c0a407a6..7f38bfa604a1 100644 --- a/dev-python/fakeredis/Manifest +++ b/dev-python/fakeredis/Manifest @@ -1 +1,2 @@ DIST fakeredis-2.23.3.tar.gz 133000 BLAKE2B 7a7b352fb99541871476f75c0a84550a1e91d4eefa0c6edf060f06483cbcc69091b2fb017dfd0c8a142484324fb71c7b0c54263d7c908d3a12e77fa7907adc8b SHA512 0230774d5d4dba55cf0d8a875eda9992ffb7dd26e0078382756515b38c63eb9664ca293135b49c0c8cddcf0971f7e0e109e131a26150a8e2b2bbc0dc453fb79a +DIST fakeredis-2.23.4.tar.gz 132561 BLAKE2B 50f5772a8b5c3ac087b822be10c4b7e35bfe4d74c0114d483116fefcd3dd81ffc10f6e63a795d88165d8d167aa7fdb82b85f1362d60c81c370276d14ca34bced SHA512 4b8bdfbfd4ba785769197274776ea472444c28590f80f20b4f52962f81559fea7c081878373110e9f6d52d2ac65e6c941f30463328c1b83915a415c81490363b diff --git a/dev-python/fakeredis/fakeredis-2.23.4.ebuild b/dev-python/fakeredis/fakeredis-2.23.4.ebuild new file mode 100644 index 000000000000..be1ddff28688 --- /dev/null +++ b/dev-python/fakeredis/fakeredis-2.23.4.ebuild @@ -0,0 +1,89 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Fake implementation of redis API for testing purposes" +HOMEPAGE=" + https://github.com/cunla/fakeredis-py/ + https://pypi.org/project/fakeredis/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/redis-4.2[${PYTHON_USEDEP}] + <dev-python/sortedcontainers-3[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # also lupa + test/test_aioredis2.py::test_failed_script_error + # TODO + "test/test_fakeredis.py::test_set_get_nx[StrictRedis]" + "test/test_fakeredis.py::test_lpop_count[StrictRedis]" + "test/test_fakeredis.py::test_rpop_count[StrictRedis]" + "test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]" + "test/test_mixins/test_pubsub_commands.py::test_pubsub_channels[StrictRedis]" + test/test_mixins/test_set_commands.py::test_smismember_wrong_type + # new redis-server? + "test/test_mixins/test_pubsub_commands.py::test_pubsub_shardnumsub[StrictRedis]" + # json ext + test/test_json/test_json.py + test/test_json/test_json_arr_commands.py + # tdigest ext? + 'test/test_mixins/test_server_commands.py::test_command[FakeStrictRedis]' + ) + local EPYTEST_IGNORE=( + # these tests fail a lot... + test/test_hypothesis.py + ) + local args=( + # tests requiring lupa (lua support) + -k 'not test_eval and not test_lua and not test_script' + ) + # Note: this package is not xdist-friendly + epytest "${args[@]}" +} + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + + 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 + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} diff --git a/dev-python/google-api-python-client/Manifest b/dev-python/google-api-python-client/Manifest index 424ea804c100..ea876f0e0abc 100644 --- a/dev-python/google-api-python-client/Manifest +++ b/dev-python/google-api-python-client/Manifest @@ -1,3 +1,4 @@ DIST google-api-python-client-2.136.0.tar.gz 11443821 BLAKE2B ee313274ec25e1262ad54b800cf524e58400886876d9133b7c6e1d9668e81bce7b73f96511679bcc2a0f565ca9b89c7d6bc7087213e53575542c5e0b5e566ff9 SHA512 e5e8302c71953f0971d3b3159d7689cd76520efa4cee9ca541e78a5fcb14387506963cb20da06ac5760af814ece5ded0bc3942381aa9e96fd6c620eb8933a6ed DIST google_api_python_client-2.137.0.tar.gz 11477114 BLAKE2B e0d7e64bfdd86bd882c8762b8d78fcd390152e569ca32df16fcbe91290508565086e4ca7e958d8d48ecaa6d5d23a0b1188b85f6a53004af54139977602c4f72c SHA512 442c08033fb12dbdcab3e45b911a9d43d93a4841369cd14344c9201a40b453d88ce602c3f45d965713ca826bec1f3e333f9425008d1cf1f59b6441283eb09807 DIST google_api_python_client-2.138.0.tar.gz 11595036 BLAKE2B 554abf4e58264d60a5a09174b7199f31ac6cf31bd024add66ff73a71992e9da077c8046abfd8d9400d1b17fa0ccd27ca484ae62dca8b6900bbad42e2a26af9ee SHA512 f9e7501a289e96aebe8db78e32dc30771a860af34808d1bc6d6192c4511ecbbf871cbbf8cdf50daeeb865908a86236400d651e159d913b415b1f2fdf8eb045ab +DIST google_api_python_client-2.139.0.tar.gz 11606939 BLAKE2B 9ad0cd36a913235e8c7b5afe2f4334399deb662d2d6287a64d98b02d890368839b345dba5e64aad3c852d655e99a04f8eb6902498664c4efa3a693ae2a2c6aeb SHA512 b6235f866a402ebde20fc8cfce41ad5bd0b8034311ab5b4f1b4cc88cea03f52021ee23264a32e9577ee1fa5bcbbb07af1c4e6d5e3f85bc53c0e6760654543b34 diff --git a/dev-python/google-api-python-client/google-api-python-client-2.139.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.139.0.ebuild new file mode 100644 index 000000000000..10fa88d021bb --- /dev/null +++ b/dev-python/google-api-python-client/google-api-python-client-2.139.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_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Google API Client for Python" +HOMEPAGE=" + https://github.com/googleapis/google-api-python-client/ + https://pypi.org/project/google-api-python-client/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/httplib2-0.15[${PYTHON_USEDEP}] + <dev-python/httplib2-1[${PYTHON_USEDEP}] + >=dev-python/google-api-core-2.3.1[${PYTHON_USEDEP}] + >=dev-python/google-auth-1.35.0[${PYTHON_USEDEP}] + >=dev-python/google-auth-httplib2-0.1.0[${PYTHON_USEDEP}] + >=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}] + <dev-python/uritemplate-5[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # require Internet access (and credentials) + tests/test_discovery.py::DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive + tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_mapping_object + tests/test_discovery.py::Universe::test_client_options_universe_configured_with_mtls + tests/test_discovery.py::Universe::test_universe_env_var_configured_with_mtls + ) + + epytest tests +} diff --git a/dev-python/grpcio-tools/Manifest b/dev-python/grpcio-tools/Manifest deleted file mode 100644 index fdbeb3c50d87..000000000000 --- a/dev-python/grpcio-tools/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST grpcio_tools-1.64.1.tar.gz 5027474 BLAKE2B 97163b46f789463bb97adf8e963f825a7128a4de3b47fe8d5203c385bbd34378214529141994471e586bbf161245362bde22dddead28b72aa82b7c2bd93dcbeb SHA512 28e0699f5548cd5e58115b1f318be42d2edddf2c04aa51100c2a39393f6a094d57995bb26cac7f0b5f91bbdd8436b2b04c8535c14d4838165f0f71b868e0477f -DIST grpcio_tools-1.65.1.tar.gz 5029281 BLAKE2B ab333d29c90084a3c5072e447b221e00cc017dcd68f03b756ac4059aeec16d612d377484cbabe5f440e0b03170298b1b9f540372555b1c5de8962692f453ca7c SHA512 df27c11d97995225e03072eeb02d214abf05c8d45bee94d973fa12d161ad41eb7d8b9f21b3f38b567fc6f6709ad0dd5f3ed7f68383f2963554dda740052e712c diff --git a/dev-python/grpcio-tools/grpcio-tools-1.64.1.ebuild b/dev-python/grpcio-tools/grpcio-tools-1.64.1.ebuild deleted file mode 100644 index 76c1daa43226..000000000000 --- a/dev-python/grpcio-tools/grpcio-tools-1.64.1.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2022-2024 LiGurOs Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 multiprocessing prefix - -DESCRIPTION="Protobuf code generator for gRPC" -HOMEPAGE="https://grpc.io https://pypi.org/project/grpcio-tools/" -SRC_URI="https://files.pythonhosted.org/packages/a8/21/6ec1c3849199c0a5e12f9640316a1cd2020fc29ecb1910e858d8b0e5d1b4/grpcio_tools-1.64.1.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" - -RDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - ~dev-python/grpcio-${PV}[${PYTHON_USEDEP}] - dev-python/protobuf-python[${PYTHON_USEDEP}] -" - -DEPEND="${RDEPEND}" - -S=${WORKDIR}/grpcio_tools-${PV} - -python_prepare_all() { - distutils-r1_python_prepare_all - hprefixify setup.py -} - -python_configure_all() { - export GRPC_PYTHON_BUILD_WITH_CYTHON=1 - export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)" -} diff --git a/dev-python/grpcio-tools/grpcio-tools-1.65.1.ebuild b/dev-python/grpcio-tools/grpcio-tools-1.65.1.ebuild deleted file mode 100644 index a332ee349c74..000000000000 --- a/dev-python/grpcio-tools/grpcio-tools-1.65.1.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2022-2024 LiGurOs Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 multiprocessing prefix - -DESCRIPTION="Protobuf code generator for gRPC" -HOMEPAGE="https://grpc.io https://pypi.org/project/grpcio-tools/" -SRC_URI="https://files.pythonhosted.org/packages/57/d6/5135ee86be0501178a3f18c691cf25c1c9c33c6dd6395d286dfc0af9d54e/grpcio_tools-1.65.1.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" - -RDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - ~dev-python/grpcio-${PV}[${PYTHON_USEDEP}] - dev-python/protobuf-python[${PYTHON_USEDEP}] -" - -DEPEND="${RDEPEND}" - -S=${WORKDIR}/grpcio_tools-${PV} - -python_prepare_all() { - distutils-r1_python_prepare_all - hprefixify setup.py -} - -python_configure_all() { - export GRPC_PYTHON_BUILD_WITH_CYTHON=1 - export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)" -} diff --git a/dev-python/grpcio-tools/metadata.xml b/dev-python/grpcio-tools/metadata.xml deleted file mode 100644 index 72a26f8088ea..000000000000 --- a/dev-python/grpcio-tools/metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <maintainer type="person"> - <email>gyakovlev@gentoo.org</email> - <name>Georgy Yakovlev</name> - </maintainer> - - <origin>ports</origin> -</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/grpcio/Manifest b/dev-python/grpcio/Manifest index 32f4be94f26c..e4f0fdc31afb 100644 --- a/dev-python/grpcio/Manifest +++ b/dev-python/grpcio/Manifest @@ -1,2 +1,2 @@ -DIST grpcio-1.64.1.tar.gz 12218528 BLAKE2B 21657f8e53b9faf92997a68a663684592427f6631dc0e0bf5f84c8c250f2c953812907e7b5052ba4807fa32579a36c6ee6d2d23ff2d6c0943efbb5e7209c84f2 SHA512 5673a0776f34d327c553a283c0b210c4df444b259022d5ff0c5056d97de46da62bc4493de34e8887d909ef8225b86b1af77407b9122b7dbcdd94bd28eb788e9d DIST grpcio-1.65.1.tar.gz 12256550 BLAKE2B d1d044cc0df43739fd334ec9fd128d0b0c1faf75460436fd3dd9a6f53232ea1bc0a316406d8e7329c84dfdf76b0a1dd61ede741116b7e46f095c210031ebabf6 SHA512 7d5625819c2cc4fc91aad274c957922bfa3fb9f626f4cc82ebc09fe29763b41382ef9be78cd9d95bb6888004fd156a499365620128eca61db5876625700ab16e +DIST grpcio-1.65.2.tar.gz 12259424 BLAKE2B e689199b605f742fdf89f18d0c8844f4b66c65960b4bd959f3ac6b000389fc196e9a1a6acd9d3a1a7323a93e45082d09bf6aae210dbcf445040ff177f0f26581 SHA512 c4c90b9bfc910cf2a81d52699da11c2312bc198e41f8babd2aaa3479b990dd031522f55abd3c7363ca64a383d9589724f503182b807371f25f7c2ce9823d3b6d diff --git a/dev-python/grpcio/grpcio-1.64.1.ebuild b/dev-python/grpcio/grpcio-1.65.2.ebuild index 518dd7fd70d5..dcaed868dd73 100644 --- a/dev-python/grpcio/grpcio-1.64.1.ebuild +++ b/dev-python/grpcio/grpcio-1.65.2.ebuild @@ -2,17 +2,18 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -inherit distutils-r1 multiprocessing prefix +inherit distutils-r1 multiprocessing prefix pypi DESCRIPTION="High-performance RPC framework (python libraries)" HOMEPAGE="https://grpc.io https://pypi.org/project/grpcio/" -SRC_URI="https://files.pythonhosted.org/packages/f5/9d/662a0c2181b2d7c1ec697ff06ec5ab9c37ed14e7f9e720e16f26443d233a/grpcio-1.64.1.tar.gz" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" +KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" IUSE="libressl" RDEPEND=" diff --git a/dev-python/hcloud/Manifest b/dev-python/hcloud/Manifest index ebd343b6e9ee..806dec255b60 100644 --- a/dev-python/hcloud/Manifest +++ b/dev-python/hcloud/Manifest @@ -1,2 +1,3 @@ DIST hcloud-python-2.0.1.gh.tar.gz 117015 BLAKE2B e795ea4a114c8e2c71554f84646b574e94030c6e724456786a437cc58d3dd96118c274111bc3787d8e7074b81f0c2493b3c6c5b824f6a8acb6d3a70b4dd75d29 SHA512 2507687324579240d2ff89287a6bd8e90dd33bb1290514c925e7e786330032187fdf133af196a6c0529ecb7018003356e299fc00cbf5bf2819d1f8e229702a04 DIST hcloud-python-2.1.0.gh.tar.gz 118173 BLAKE2B f350db9a552507e4770df180f7df82cbd3943aea64d827d7c9b05eae63dee5a92e410ad2d68766920f5b65b85788b4762313190b53ebbdba07bd64c7d62a8565 SHA512 80d2aec96c1b4303ba4827e938f33191fb3c150c15e7809e4f5b99b3c0b2af40ce04c1737207568acf9b20b38f0bd47dd223fe18eb093129ccdfe84992969caf +DIST hcloud-python-2.1.1.gh.tar.gz 118633 BLAKE2B 0072f8a6615ea917336429ef2b56840f1be8906bed9bd0793b47c4faa557e10bda368f8c3edcbc1b8ede6c39b384062038f665ae3e6beb589c747f1238a94572 SHA512 b98b62c99ffa31537baad35d0de0bee99a90dce95ecabfec8500e2172d520a3d819b870f001924cebeee7475905452ec2d5cc0bad15f763d16a423ddbe0171f8 diff --git a/dev-python/hcloud/hcloud-2.1.1.ebuild b/dev-python/hcloud/hcloud-2.1.1.ebuild new file mode 100644 index 000000000000..31e0f64be85a --- /dev/null +++ b/dev-python/hcloud/hcloud-2.1.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +MY_P=hcloud-python-${PV} +DESCRIPTION="Official Hetzner Cloud python library" +HOMEPAGE=" + https://github.com/hetznercloud/hcloud-python/ + https://pypi.org/project/hcloud/ +" +# sdist is missing doc assets as of 1.19.0 +# https://github.com/hetznercloud/hcloud-python/pull/183 +SRC_URI=" + https://github.com/hetznercloud/hcloud-python/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples" + +RDEPEND=" + >=dev-python/python-dateutil-2.7.5[${PYTHON_USEDEP}] + >=dev-python/requests-2.20[${PYTHON_USEDEP}] +" + +distutils_enable_sphinx docs \ + dev-python/myst-parser \ + dev-python/sphinx-rtd-theme +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + # Integration tests need docker: + # https://github.com/hetznercloud/hcloud-python/blob/master/.travis.yml#L16 + tests/integration +) + +python_install_all() { + use examples && dodoc -r examples + distutils-r1_python_install_all +} diff --git a/dev-python/iminuit/Manifest b/dev-python/iminuit/Manifest index 582a1079db8e..72045ae1f774 100644 --- a/dev-python/iminuit/Manifest +++ b/dev-python/iminuit/Manifest @@ -1 +1,2 @@ DIST iminuit-2.26.0.tar.gz 2945757 BLAKE2B 361c84731ab3ddb01d940d5082b7170cde73ee1f1015724ea78e8dc9d910dcf4614c2ac7eb508a7efaed2abc259b5ffe09103ba921cd3f29c56daf227226e54f SHA512 6caa59c1dd3446f650bae490ef2c24b3f512284745d75e1acf714a3c440964017a68455fcc008b4176c5cbb9a4fadfc699bc01c7734a5b94ff521fe24a1b579a +DIST iminuit-2.27.0.tar.gz 3265513 BLAKE2B 838c54e0215fa959ca3d2bb46fb3bb24c52ff61369a84de6e1b6c22f1a511db9cfc9d0de5934ac85507b11807128f3a16f0acceafb93a164459e43e61f72da22 SHA512 9d50c51a1e65565bef032e583a4ae529f6f8fcb7c8968eafdf07f96006b56c09632e2738531b64e5518ee69a9b8c6f146313405895750573bf1b792ff8148a56 diff --git a/dev-python/iminuit/iminuit-2.27.0.ebuild b/dev-python/iminuit/iminuit-2.27.0.ebuild new file mode 100644 index 000000000000..b881b833f714 --- /dev/null +++ b/dev-python/iminuit/iminuit-2.27.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=scikit-build-core +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit cmake distutils-r1 virtualx pypi + +DESCRIPTION="Minuit numerical function minimization in Python" +HOMEPAGE=" + https://github.com/scikit-hep/iminuit/ + https://pypi.org/project/iminuit/ +" + +LICENSE="MIT LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] +" +DEPEND=" + >=dev-python/pybind11-2.12[${PYTHON_USEDEP}] +" +BDEPEND=" + ${DEPEND} + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/annotated-types[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/ipywidgets[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # precision error + tests/test_cost.py::test_Template_with_model_2D + + # TODO + tests/test_describe.py::test_with_pydantic_types + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + # nonfatal implied by virtx + nonfatal epytest || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest index 480caef5e634..782f3401202b 100644 --- a/dev-python/mypy/Manifest +++ b/dev-python/mypy/Manifest @@ -1,2 +1,3 @@ DIST mypy-1.10.1.gh.tar.gz 3062383 BLAKE2B 326fb33e42ad8920a235e510b3d39663f333dc46d0dd3ffc59f4604e9a4f29f0be95f73bac42166aae00b53987d6a2a54446f1f58033dce389c43044dbaa9cdd SHA512 10d29ae145d71911dc7c9b4538371bf1caa64f333984ab3a4cbf9561d7c4e752c68380496489f56d0941f143d6684d84d28f157be578d6f55f1e81d3d47b204c DIST mypy-1.11.0.gh.tar.gz 3121990 BLAKE2B 8c48580a01d0e2795a8aebcba3e6a6be707e411396dc607eeb1942958c993a504d57a778cb9d25b7a0d78921f577331018b3a425864fa764c71728e8cd6e1265 SHA512 87fded2b6cdbd77a0d34df14b4d6b1824ec84030602ceb655550ec34ded159eabc3c30ad0a2e151fa5a2389227e776f50a25c80dae42f1ae608af32098e5ea02 +DIST mypy-1.11.1.gh.tar.gz 3122001 BLAKE2B 6b4db9a363190177b96ea807538f1582071b213eae816ff55723c22de098e7ff2745e433a8a174fe3ebb6a9ed66f8ac75917883dfa027bdd7bca750a7517478e SHA512 8baa916ffe7e37c54c6dac98241441cc615ea8f847ebe3d12f41912d4a596ca47068d4fb0460e3bfc4b020ad7d2580814422b9dc3a22830c9031cec4111e3aab diff --git a/dev-python/mypy/mypy-1.11.1.ebuild b/dev-python/mypy/mypy-1.11.1.ebuild new file mode 100644 index 000000000000..4aad2f30e038 --- /dev/null +++ b/dev-python/mypy/mypy-1.11.1.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Optional static typing for Python" +HOMEPAGE=" + https://www.mypy-lang.org/ + https://github.com/python/mypy/ + https://pypi.org/project/mypy/ +" +SRC_URI=" + https://github.com/python/mypy/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="+native-extensions" + +# stubgen collides with this package: https://bugs.gentoo.org/585594 +RDEPEND=" + !dev-util/stubgen + >=dev-python/psutil-4[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.6.0[${PYTHON_USEDEP}] + >=dev-python/mypy_extensions-1.0.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + native-extensions? ( + ${RDEPEND} + dev-python/types-psutil[${PYTHON_USEDEP}] + dev-python/types-setuptools[${PYTHON_USEDEP}] + ) + test? ( + >=dev-python/attrs-18.0[${PYTHON_USEDEP}] + >=dev-python/filelock-3.3.0[${PYTHON_USEDEP}] + >=dev-python/lxml-4.9.1[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +# frustratingly, mypyc produces non-deterministic output. If ccache is enabled it will be a waste of time, +# but simultaneously it might trash your system and fill up the cache with a giant wave of non-reproducible +# test files (https://github.com/mypyc/mypyc/issues/1014) +export CCACHE_DISABLE=1 + +python_compile() { + local -x MYPY_USE_MYPYC=$(usex native-extensions 1 0) + case ${EPYTHON} in + python3.13) + # https://github.com/mypyc/mypyc/issues/1056 + MYPY_USE_MYPYC=0 + ;; + esac + distutils-r1_python_compile +} + +python_test() { + local EPYTEST_DESELECT=( + # the majority of them require Internet (via pip) + mypy/test/testpep561.py + # known broken with assertions enabled + # https://github.com/python/mypy/issues/16043 + mypyc/test/test_run.py::TestRun::run-i64.test::testI64GlueMethodsAndInheritance + mypyc/test/test_run.py::TestRun::run-floats.test::testFloatOps + # these assume that types-docutils are not installed + mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testIgnoreImportIfNoPython3StubAvailable + mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testNoPython3StubAvailable + # TODO + mypy/test/meta/test_parse_data.py + mypy/test/meta/test_update_data.py + mypy/test/teststubtest.py::StubtestUnit::test_runtime_typing_objects + ) + case ${EPYTHON} in + python3.12) + EPYTEST_DESELECT+=( + # more assertions, sigh + mypyc/test/test_run.py::TestRun::run-bools.test::testBoolOps + mypyc/test/test_run.py::TestRun::run-i64.test::testI64BasicOps + mypyc/test/test_run.py::TestRun::run-i64.test::testI64DefaultArgValues + mypyc/test/test_run.py::TestRun::run-i64.test::testI64ErrorValuesAndUndefined + ) + ;; + python3.13) + EPYTEST_DESELECT+=( + # https://github.com/mypyc/mypyc/issues/1056 + mypyc/test + # requires typeshed update + mypy/test/teststubtest.py::StubtestUnit::test_type_alias + ) + ;; + esac + + # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests + # fail with high COLUMNS values + local -x COLUMNS=80 + + # The tests depend on having in-source compiled extensions if you want to + # test those compiled extensions. Various crucial test dependencies aren't + # installed. Even pyproject.toml is needed because that's where pytest args + # are in. Hack them into the build directory and delete them afterwards. + # See: https://github.com/python/mypy/issues/16143 + local -x MYPY_TEST_PREFIX="${S}" + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + cp -r "${S}"/{conftest.py,pyproject.toml} . || die + + local failed= + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + nonfatal epytest || failed=1 + + rm conftest.py pyproject.toml || die + + [[ ${failed} ]] && die "epytest failed with ${EPYTHON}" +} diff --git a/dev-python/pdm/Manifest b/dev-python/pdm/Manifest index 57353e669d76..3b77b4ff533c 100644 --- a/dev-python/pdm/Manifest +++ b/dev-python/pdm/Manifest @@ -1,3 +1,2 @@ -DIST pdm-2.16.1.tar.gz 2618476 BLAKE2B f32de9aafbaa1050e9373921bc50643c21b43775e7737f5717914f8bc65de7ad126d7dadf94ae55e7848596db1b6b0c1ffa9cb1d9ada914dc2be85cc71ac404f SHA512 8b244c67421ed5b3eb3b6958da38abf776cb8fe7eb5b9de646027fc14d15ecf74f90a128d4a4405cedd775294df3b13f76d606c2cfc86b222ede1c2134f63f84 -DIST pdm-2.17.0.tar.gz 2626110 BLAKE2B 600a319c419003d000445d2dfe0e694b78514c41ab29174465eef0126f629e588e7da996cf999901844686abfc9089db1f176509a7200ba405fd20be82fdcf0a SHA512 ef2924f4cafd690c5519e29b0ecab308dfc2a739bd50c76d6e0c1f294af31356b1102a0ea6c7324439105008fbd7270812fc2a855340e6417d55e9e8de273b59 DIST pdm-2.17.1.tar.gz 2626200 BLAKE2B f0ab4586fe6af126398081a13bca007ea5fa7e4e2cd7bc99e415fa4fc56fa8cce7ea9028a18ce0e71ec966951ba12f678a000dbd3fe88c6a43b117f737e830dd SHA512 8be1ae474d00b0398f3b3bbf03e5cbe050911d18fa18ef3d7fe46116b6daa68a0e8b68cff90c2742803b167f10a66a66b1b68b84d43f39c3f006c96f38dfedb9 +DIST pdm-2.17.2.tar.gz 2627131 BLAKE2B dba6435dd4995311a3bac4b23c35a3ee89cf8756b5e6fa443c6718b94880199fa20fbb89255b9523169171ccc1a87dc94593834e063b329ada299ff1727d882b SHA512 5230ed6303b24dbe75fe9c2021e78d1c2bbbd2fca95717399935ad4f07f227f5effbd6270310d6085fdf5cd656dfb26de7a4ca7fa34bbae0c757fb7d31978d2c diff --git a/dev-python/pdm/pdm-2.16.1.ebuild b/dev-python/pdm/pdm-2.16.1.ebuild deleted file mode 100644 index 8b31328c8a3a..000000000000 --- a/dev-python/pdm/pdm-2.16.1.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 2023-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Python package and dependency manager supporting the latest PEP standards" -HOMEPAGE=" - https://pdm-project.org/ - https://github.com/pdm-project/pdm/ - https://pypi.org/project/pdm/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64" - -RDEPEND=" - dev-python/blinker[${PYTHON_USEDEP}] - >=dev-python/dep-logic-0.2.0[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - dev-python/platformdirs[${PYTHON_USEDEP}] - dev-python/rich[${PYTHON_USEDEP}] - dev-python/truststore[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/httpx[${PYTHON_USEDEP}] - dev-python/filelock[${PYTHON_USEDEP}] - dev-python/hishel[${PYTHON_USEDEP}] - >=dev-python/pbs-installer-2024.4.18[${PYTHON_USEDEP}] - dev-python/pyproject-hooks[${PYTHON_USEDEP}] - >=dev-python/unearth-0.15.0[${PYTHON_USEDEP}] - <dev-python/findpython-1[${PYTHON_USEDEP}] - >=dev-python/findpython-0.6.0[${PYTHON_USEDEP}] - dev-python/tomlkit[${PYTHON_USEDEP}] - dev-python/shellingham[${PYTHON_USEDEP}] - dev-python/python-dotenv[${PYTHON_USEDEP}] - >=dev-python/resolvelib-1.0.1[${PYTHON_USEDEP}] - dev-python/installer[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/tomli[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - ${RDEPEND} - test? ( - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/pytest-httpserver[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=( - # Internet - 'tests/cli/test_build.py::test_build_with_no_isolation[False]' - tests/test_project.py::test_access_index_with_auth - "tests/test_project.py::test_find_interpreters_with_PDM_IGNORE_ACTIVE_VENV[True]" - tests/cli/test_others.py::test_build_distributions - 'tests/models/test_candidates.py::test_expand_project_root_in_url[demo @ file:///${PROJECT_ROOT}/tests/fixtures/artifacts/demo-0.0.1.tar.gz]' - 'tests/models/test_candidates.py::test_expand_project_root_in_url[-e file:///${PROJECT_ROOT}/tests/fixtures/projects/demo-#-with-hash#egg=demo]' - tests/models/test_candidates.py::test_find_candidates_from_find_links - tests/cli/test_build.py::test_build_single_module - tests/cli/test_build.py::test_build_single_module_with_readme - tests/cli/test_build.py::test_build_package - tests/cli/test_build.py::test_build_src_package - tests/cli/test_build.py::test_build_package_include - tests/cli/test_build.py::test_build_src_package_by_include - tests/cli/test_build.py::test_build_with_config_settings - tests/cli/test_build.py::test_cli_build_with_config_settings - tests/cli/test_build.py::test_build_ignoring_pip_environment - tests/cli/test_others.py::test_show_self_package - tests/cli/test_publish.py::test_publish_and_build_in_one_run - "tests/cli/test_hooks.py::test_hooks[build]" - "tests/cli/test_hooks.py::test_hooks[publish]" - "tests/cli/test_hooks.py::test_skip_option_from_signal[build-pre_build]" - "tests/cli/test_hooks.py::test_skip_option_from_signal[build-post_build]" - "tests/cli/test_hooks.py::test_skip_option_from_signal[publish-pre_publish]" - "tests/cli/test_hooks.py::test_skip_option_from_signal[publish-pre_build]" - "tests/cli/test_hooks.py::test_skip_option_from_signal[publish-post_build]" - "tests/cli/test_hooks.py::test_skip_option_from_signal[publish-post_publish]" - "tests/cli/test_hooks.py::test_skip_all_option_from_signal[:all-build]" - "tests/cli/test_hooks.py::test_skip_all_option_from_signal[:all-publish]" - "tests/cli/test_hooks.py::test_skip_all_option_from_signal[:pre,:post-build]" - "tests/cli/test_hooks.py::test_skip_all_option_from_signal[:pre,:post-publish]" - "tests/cli/test_hooks.py::test_skip_pre_post_option_from_signal[pre-build]" - "tests/cli/test_hooks.py::test_skip_pre_post_option_from_signal[pre-publish]" - "tests/cli/test_hooks.py::test_skip_pre_post_option_from_signal[post-build]" - "tests/cli/test_hooks.py::test_skip_pre_post_option_from_signal[post-publish]" - "tests/cli/test_venv.py::test_conda_backend_create[True]" - "tests/cli/test_venv.py::test_conda_backend_create[False]" - tests/cli/test_lock.py::test_lock_all_with_excluded_groups - # hangs on interactive keyring prompts - tests/cli/test_config.py::test_repository_overwrite_default - tests/cli/test_config.py::test_hide_password_in_output_repository - tests/cli/test_config.py::test_hide_password_in_output_pypi - # junk output, sigh - tests/cli/test_others.py::test_info_command_json - # why does it try to use python 2.7?! - tests/cli/test_run.py::test_import_another_sitecustomize - # fails in tinderbox (bug #928964) - tests/test_project.py::test_project_packages_path - ) - [[ ${EPYTHON} != python3.10 ]] && EPYTEST_DESELECT+=( - # test seems hardcoded to 3.10 - tests/test_project.py::test_project_packages_path - ) - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -m "not network and not integration and not path" \ - -p pytest_mock -} diff --git a/dev-python/pdm/pdm-2.17.0.ebuild b/dev-python/pdm/pdm-2.17.2.ebuild index b862b2effdd3..79968b906a57 100644 --- a/dev-python/pdm/pdm-2.17.0.ebuild +++ b/dev-python/pdm/pdm-2.17.2.ebuild @@ -21,7 +21,7 @@ KEYWORDS="~amd64 ~arm64" RDEPEND=" dev-python/blinker[${PYTHON_USEDEP}] - >=dev-python/dep-logic-0.4.0[${PYTHON_USEDEP}] + >=dev-python/dep-logic-0.4.4[${PYTHON_USEDEP}] dev-python/packaging[${PYTHON_USEDEP}] dev-python/platformdirs[${PYTHON_USEDEP}] dev-python/rich[${PYTHON_USEDEP}] diff --git a/dev-python/phonenumbers/Manifest b/dev-python/phonenumbers/Manifest index a3431089b851..d5586bc77728 100644 --- a/dev-python/phonenumbers/Manifest +++ b/dev-python/phonenumbers/Manifest @@ -1 +1,2 @@ DIST python-phonenumbers-8.13.40.gh.tar.gz 4914854 BLAKE2B eab8e8e28a5895f9eb92ce9198a77a4d9bfd6f3d58f17c5a7909913ea43af2efd1dcff84c9d517c5f4f17ba87ce68786ab64f523b10ddf6aa3354801021843d3 SHA512 ef2199d86998201485d48cf4d5d56baa82476dbe41b2b4f89aebfcbf840af0ae35a78308a0f74b2daad58a2c330e10444c93ffb59a402d5fe5cc5baff78fdcb2 +DIST python-phonenumbers-8.13.42.gh.tar.gz 4915152 BLAKE2B 4abdd4e583e09f7915203f8b9a7908eeae7c57910b21e3fd2d8bccef4ba799ddb13299ff0a9fa307665c08955923f3f56a56893b5fa1ec0ccb102feda286aeed SHA512 21cb0093486d3f29f1ed7b9ce9a0caa06df854ef2f4120c345f07ad7a73e374bf94e8f7844e29f71157f5b645423385ae39d3ec6a0ea6bd35a77881e76b9afb9 diff --git a/dev-python/phonenumbers/phonenumbers-8.13.42.ebuild b/dev-python/phonenumbers/phonenumbers-8.13.42.ebuild new file mode 100644 index 000000000000..062c56c77784 --- /dev/null +++ b/dev-python/phonenumbers/phonenumbers-8.13.42.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +MY_P=python-${P} +DESCRIPTION="Python port of Google's libphonenumber" +HOMEPAGE=" + https://github.com/daviddrysdale/python-phonenumbers/ + https://pypi.org/project/phonenumbers/ +" +SRC_URI=" + https://github.com/daviddrysdale/python-phonenumbers/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P}/python + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + ) +" + +DOCS=( ../README.md ) + +python_test() { + "${EPYTHON}" testwrapper.py -v || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/pyphen/Manifest b/dev-python/pyphen/Manifest index b6f0d16bf5a7..8a017e6670a0 100644 --- a/dev-python/pyphen/Manifest +++ b/dev-python/pyphen/Manifest @@ -1 +1,2 @@ DIST pyphen-0.15.0.tar.gz 2072615 BLAKE2B ce5a1d16ade5d1e894b941aa02749de5793d1b11554b232d0a475c687551843171da5c8fb31fa686af524c12693f87baf8e61a7c07e71935ca159fba42e4353f SHA512 c73ec781c92fbac1daadbf435b028a1eb6476df2bec40ceb039d394ae928ab3b3eff4f3ffaf23d847b89e766810a9dd153f6bbcb9678a9f61f65d84206042640 +DIST pyphen-0.16.0.tar.gz 2072790 BLAKE2B c3c5b248a9532abecca09fec66594aa77313cd84f66a3fe569b39306ba937fd1f8459e5140aa2154599d805197e68806e16b51958e52f0c21792c442b7c1e62a SHA512 0469dd043578bd2f4bd12f22c10879c009be1907e34b41f5c6b4ff3d4e824a5320292308d5fd40c645a14589547b3432c7331400b2c4e64723a1e79a1ab66242 diff --git a/dev-python/pyphen/pyphen-0.16.0.ebuild b/dev-python/pyphen/pyphen-0.16.0.ebuild new file mode 100644 index 000000000000..4d5c6fa19549 --- /dev/null +++ b/dev-python/pyphen/pyphen-0.16.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python module for hyphenation using hunspell dictionaries" +HOMEPAGE=" + https://github.com/Kozea/Pyphen/ + https://pypi.org/project/pyphen/ +" + +LICENSE="GPL-2+ LGPL-2+ MPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +distutils_enable_tests pytest + +python_test() { + epytest -o addopts= +} diff --git a/dev-python/pyproject-fmt/Manifest b/dev-python/pyproject-fmt/Manifest index 419aa2222678..59063fedfbec 100644 --- a/dev-python/pyproject-fmt/Manifest +++ b/dev-python/pyproject-fmt/Manifest @@ -1,2 +1,3 @@ DIST pyproject_fmt-2.1.3.tar.gz 9016 BLAKE2B 742d29283f883f36a6705b74613455932057c508bb98c61d245254fca5d35c31333d01e1047f3c3c4fe46c41ea0633d6a491f59c9633770dd5fb5ee9b696f5ed SHA512 3ba7bc939ed555a58c41bc35563fecba4066e95b0fc4d9c0ecf77ed484cbf2ebd8067fb097dabb499d95ddd7be64712961b70b9abb2f147cc6491c3c8ca85877 DIST pyproject_fmt-2.1.4.tar.gz 9023 BLAKE2B 1a44332ea829efb22d7b561abef1f362f7eb6ca4682586511e4a87c8f26f55a510f2a1f5e065ec21208c04f754dd729133c859f5d388b0af94578c53bab55d1e SHA512 95e4f99c2ded8f69dca4bbca208512ca17e6fc1e7e13a247f2932c7539ff802a4ed6a822c4ffbada749d4eef15aafd7189f85d722e41360b3523c2b633e15d99 +DIST pyproject_fmt-2.2.0.tar.gz 9135 BLAKE2B e4ea7a11168257978fb607a7c1dcb6e9450d139c7db5f2e45fe065ddbd5e6edfca97b4f7dd80bd7cd632068ae86cca7ef7efbd2850cac4237065319f554c5366 SHA512 97d4e8e881b39fd47f0b2b96b413e6f4462bf35e4a9797811487931188bbfcb971e744012ebee545ede0ff94d7ebf2abee0b97b965ed452628c49c69fd47070e diff --git a/dev-python/pyproject-fmt/pyproject-fmt-2.2.0.ebuild b/dev-python/pyproject-fmt/pyproject-fmt-2.2.0.ebuild new file mode 100644 index 000000000000..9c3ae917d4ce --- /dev/null +++ b/dev-python/pyproject-fmt/pyproject-fmt-2.2.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Format your pyproject.toml file" +HOMEPAGE=" + https://github.com/tox-dev/pyproject-fmt/ + https://pypi.org/project/pyproject-fmt/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + ~dev-python/pyproject-fmt-rust-1.1.5[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] + ' 3.10) +" +# tox is called as a subprocess, to get targets from tox.ini +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + >=dev-python/pytest-mock-3.10[${PYTHON_USEDEP}] + dev-python/tox + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/pytest-asyncio/Manifest b/dev-python/pytest-asyncio/Manifest index dbbb81bfdec8..e3038bb2cd62 100644 --- a/dev-python/pytest-asyncio/Manifest +++ b/dev-python/pytest-asyncio/Manifest @@ -1,2 +1,3 @@ DIST pytest_asyncio-0.23.7.tar.gz 46296 BLAKE2B afcdba0928f07e91ed68f54de2c1241fec784f164e3d5edb09908b913536edadbba7c90a73a8c843715da4567b18cc27929f31c6d0c2be3940e6ecc23abcc43c SHA512 d7164b060c1d0aa7999537e5681d2153662d49ec94e056da93b4cb2ba3dd0e3e5e4a68691c15b920c8e0ced03a4256620da600a33bcfa76b1adfa7ee66cd8de0 DIST pytest_asyncio-0.23.8.tar.gz 46920 BLAKE2B 6b7a66e6ef28f2c7a874a115e0346b3803051df5d57e5b8ba35480982231a804adfbe8a4a2c605847730ea940fafe9df2aa94f5081b43aa753b64c3e2ea027a5 SHA512 68f23458c5f22bdb75a6a0a12f185b1f22c5231c0cdcd84806781419f5c866844e851398d771c5932af4a42b5dfdcce6624181f2c0d2f70187bb5feed0ba7c97 +DIST pytest_asyncio-0.24.0a0.tar.gz 49299 BLAKE2B 2bc9f0a85169db463f344ed1f42dd954599c6e50a3fa3d7bf95bddb3eb162c4ddf454f512d7b1577e0d394174f52dd63664e4eec32a6106a7c2779cf955cb79a SHA512 109ff55bb3f742a246463ed650a6568833e70cd0b4ed30507efb62cf3c9eb5aa9caed960b3b1c9b92c1cb30025436e9e98e33135243a5763b2614632cbae5c8e diff --git a/dev-python/pytest-asyncio/pytest-asyncio-0.24.0_alpha0.ebuild b/dev-python/pytest-asyncio/pytest-asyncio-0.24.0_alpha0.ebuild new file mode 100644 index 000000000000..4aa04ac64f61 --- /dev/null +++ b/dev-python/pytest-asyncio/pytest-asyncio-0.24.0_alpha0.ebuild @@ -0,0 +1,51 @@ +# 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_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Library for testing asyncio code with pytest" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-asyncio/ + https://pypi.org/project/pytest-asyncio/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + >=dev-python/pytest-5.4.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # rely on precise warning counts + tests/hypothesis/test_base.py::test_can_use_explicit_event_loop_fixture + tests/modes/test_legacy_mode.py + tests/modes/test_strict_mode.py::test_strict_mode_ignores_unmarked_fixture + tests/test_event_loop_fixture_finalizer.py::test_event_loop_fixture_finalizer_raises_warning_when_fixture_leaves_loop_unclosed + tests/test_event_loop_fixture_finalizer.py::test_event_loop_fixture_finalizer_raises_warning_when_test_leaves_loop_unclosed + tests/test_pytest_min_version_warning.py + tests/trio/test_fixtures.py::test_strict_mode_ignores_trio_fixtures + + # TODO + tests/test_is_async_test.py::test_returns_false_for_unmarked_coroutine_item_in_strict_mode + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_asyncio.plugin,_hypothesis_pytestplugin + epytest +} diff --git a/dev-python/qpageview/qpageview-0.6.2.ebuild b/dev-python/qpageview/qpageview-0.6.2.ebuild index 02e81b507f24..beeeb7f45fbb 100644 --- a/dev-python/qpageview/qpageview-0.6.2.ebuild +++ b/dev-python/qpageview/qpageview-0.6.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/redis/Manifest b/dev-python/redis/Manifest index a68bfa88f9f0..961272e34347 100644 --- a/dev-python/redis/Manifest +++ b/dev-python/redis/Manifest @@ -1 +1,2 @@ DIST redis-py-5.0.7.gh.tar.gz 4775787 BLAKE2B 72060bd2101ba5b16ab5823ec6ed16fdc6714546f4be2a0c89871f9f1a3f2cc0e11075071507f9f89eb9b21a7ab4844e04c37f698d62a37e94ca93aa0ad5762a SHA512 dd46459eb1331f0ef844b12e65aed548aaf744d0c5581c9bc3f4450be4e4a5ba77130ba905a57a8ce87b5d0aa22495d34ddab01463d276797e1d277c949502a6 +DIST redis-py-5.0.8.gh.tar.gz 4796278 BLAKE2B 43649156956d5f92598d9191ff3138af4981d957fadbaefa3c2759f8286b12cfcd393fde7c70b7d46600251c8083216d368b9946a0af8915f85e75b4ce736c60 SHA512 cd02a0632156fe134d3425ce41be1f907f8602d5b51e3f1565f158ecd70ba72cd33919508b5d87ca279ad264641504a6981b5bfe615d29db3c4204765c61803e diff --git a/dev-python/redis/redis-5.0.8.ebuild b/dev-python/redis/redis-5.0.8.ebuild new file mode 100644 index 000000000000..383a6f611745 --- /dev/null +++ b/dev-python/redis/redis-5.0.8.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +MY_P=redis-py-${PV} +DESCRIPTION="Python client for Redis key-value store" +HOMEPAGE=" + https://github.com/redis/redis-py/ + https://pypi.org/project/redis/ +" +SRC_URI=" + https://github.com/redis/redis-py/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/async-timeout-4.0.2[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # https://github.com/redis/redis-py/issues/3339 + sed -i 's:(forbid_global_loop=True)::' tests/test_asyncio/*.py || die +} + +python_test() { + local EPYTEST_DESELECT=( + # Flaky test + tests/test_pubsub.py::TestPubSubDeadlock::test_pubsub_deadlock + # require extra redis modules that apparently aren't packaged + # on Gentoo + tests/{,test_asyncio/}test_bloom.py + tests/{,test_asyncio/}test_graph.py + tests/{,test_asyncio/}test_json.py + tests/{,test_asyncio/}test_timeseries.py + # apparently available only in "Redis Stack 7.2 RC3 or later" + tests/test_commands.py::TestRedisCommands::test_tfunction_load_delete + tests/test_commands.py::TestRedisCommands::test_tfunction_list + tests/test_commands.py::TestRedisCommands::test_tfcall + # TODO + tests/test_commands.py::TestRedisCommands::test_module + tests/test_commands.py::TestRedisCommands::test_module_loadex + tests/test_commands.py::TestRedisCommands::test_zrank_withscore + tests/test_commands.py::TestRedisCommands::test_zrevrank_withscore + tests/test_commands.py::TestRedisCommands::test_xinfo_consumers + tests/test_asyncio/test_commands.py::TestRedisCommands::test_zrank_withscore + tests/test_asyncio/test_commands.py::TestRedisCommands::test_zrevrank_withscore + tests/test_asyncio/test_commands.py::TestRedisCommands::test_xinfo_consumers + tests/test_asyncio/test_pubsub.py::TestPubSubAutoReconnect::test_reconnect_socket_error[pool-hiredis-listen] + ) + + # TODO: try to run more servers? + epytest -m "not redismod and not onlycluster and not replica and not ssl" +} + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + + if has_version ">=dev-db/redis-7"; then + local extra_conf=" + enable-debug-command yes + enable-module-command yes + " + fi + + # 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 +} diff --git a/dev-python/sentry-sdk/Manifest b/dev-python/sentry-sdk/Manifest index 6286a7a7a475..40503959b560 100644 --- a/dev-python/sentry-sdk/Manifest +++ b/dev-python/sentry-sdk/Manifest @@ -1,3 +1,4 @@ DIST sentry-python-1.45.1.gh.tar.gz 474940 BLAKE2B ae3195bceee5beb79d36958b79992fc8433d5315052e7cb4dde2dad4a21482549b28325329a9bd6cc44376acff69ca41b1506e7341c17314318cc93360b5fbcd SHA512 15c42187ef1a9ec1515e23e4e49980e8aecec4bd1f63866bc793bbaf75d9663a636d34c1fcc46faec839685d50366e0a2c9a2e735780d8a1f47f5986bf9fc6a6 DIST sentry-python-2.11.0.gh.tar.gz 537891 BLAKE2B ce46efe95a61088f92c02c13ed55c4cde4e1b17cbfbbbdbb0b8092f83d5571239d004810ca193f7954f0469018b2b881ec254530c13d58056993c2811a14a376 SHA512 339ed1b325c84ef350ca29deb326b4adff5a9b648a03ec28dcf6ca461856c79b2f30944a1360204d54020732564f6c30ebe3fc8902c3b3c2a7e66e5bb0f7994b +DIST sentry-python-2.12.0.gh.tar.gz 537094 BLAKE2B cb009c4569e5defae8cfb44bbc1260d63554dc0f002675910e8be0b9d0259f89a860d2852d9f9af8460c76d2eb311339f40847d94bc05fb06fbd677cad3d46e3 SHA512 61cdd006792dbcf4cb77f1dd3935d1ba1232361aa2e7b48f2b423873fec88c6d01c24c52cc4520989a501d372ee1d22a580ef89887c454045f6d5ce20e2e2c32 DIST sentry-python-2.9.0.gh.tar.gz 531490 BLAKE2B 8b67caa6911fd44e58c2a1d1206e6ecb9dc31f81c15c66763a04f1a65fc89d4667e60f27e055016342c6b4cac5470729c802ffb046e6e0796d5bfd7044caf27d SHA512 aed112a2ee35e23a1431486ff18e67772476ecfc63eacc388d17454a723b98f6e05cfa95a6c9db2cb6be572eed73d249951a411c60184b20eb251520071a4254 diff --git a/dev-python/sentry-sdk/sentry-sdk-2.12.0.ebuild b/dev-python/sentry-sdk/sentry-sdk-2.12.0.ebuild new file mode 100644 index 000000000000..1d2a2bd98e46 --- /dev/null +++ b/dev-python/sentry-sdk/sentry-sdk-2.12.0.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +MY_P=sentry-python-${PV} +DESCRIPTION="Python client for Sentry" +HOMEPAGE=" + https://sentry.io/ + https://github.com/getsentry/sentry-python/ + https://pypi.org/project/sentry-sdk/ +" +SRC_URI=" + https://github.com/getsentry/sentry-python/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/asttokens[${PYTHON_USEDEP}] + dev-python/executing[${PYTHON_USEDEP}] + dev-python/fakeredis[${PYTHON_USEDEP}] + dev-python/flask-login[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/pyrsistent[${PYTHON_USEDEP}] + <dev-python/pytest-8[${PYTHON_USEDEP}] + dev-python/pytest-aiohttp[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + dev-python/pytest-localserver[${PYTHON_USEDEP}] + dev-python/python-socks[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + dev-python/zope-event[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}/sentry-sdk-1.21.0-ignore-warnings.patch" +) + +python_test() { + local EPYTEST_IGNORE=( + # tests require Internet access + tests/integrations/httpx/test_httpx.py + tests/integrations/requests/test_requests.py + tests/integrations/django/test_basic.py + tests/integrations/socket/test_socket.py + # wtf is it supposed to do?! + tests/integrations/gcp/test_gcp.py + # TODO + tests/integrations/bottle + # TODO: most of them hang + tests/integrations/starlette + # TODO + tests/integrations/tornado + # requires mockupdb + tests/integrations/pymongo + # requires AWS access + tests/integrations/aws_lambda + # requires quart_auth + tests/integrations/quart + # TODO: require opentelemetry (with py3.10) + tests/integrations/opentelemetry + # broken (incompatible rq version?) + tests/integrations/rq + ) + + local EPYTEST_DESELECT=( + # hangs + tests/integrations/threading/test_threading.py::test_propagates_threadpool_hub + # broken teardown? + tests/test_client.py::test_uwsgi_warnings + # too many dependencies installed, sigh + tests/test_new_scopes_compat_event.py + # Internet + tests/integrations/stdlib/test_httplib.py::test_outgoing_trace_headers + tests/integrations/stdlib/test_httplib.py::test_outgoing_trace_headers_head_sdk + tests/integrations/aiohttp/test_aiohttp.py::test_span_origin + tests/integrations/stdlib/test_httplib.py::test_span_origin + tests/integrations/stdlib/test_subprocess.py::test_subprocess_span_origin + # TODO + tests/integrations/aiohttp/test_aiohttp.py::test_basic + tests/integrations/django + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_orm_queries + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_query_source + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_transactions + tests/integrations/stdlib/test_subprocess.py::test_subprocess_basic + tests/integrations/threading/test_threading.py + tests/integrations/wsgi/test_wsgi.py + tests/test_basics.py::test_auto_enabling_integrations_catches_import_error + tests/test_client.py::test_databag_breadth_stripping + tests/test_client.py::test_databag_depth_stripping + tests/test_client.py::test_databag_string_stripping + tests/test_utils.py::test_default_release + tests/tracing/test_sampling.py::test_records_lost_event_only_if_traces_sample_rate_enabled + tests/tracing/test_sampling.py::test_records_lost_event_only_if_traces_sampler_enabled + tests/utils/test_contextvars.py::test_leaks + # pointless, fragile to packages being installed in parallel + tests/test_utils.py::test_installed_modules + # TODO + tests/profiler/test_continuous_profiler.py::test_continuous_profiler_auto_start_and_manual_stop + tests/profiler/test_continuous_profiler.py::test_continuous_profiler_manual_start_and_stop + tests/profiler/test_transaction_profiler.py::test_minimum_unique_samples_required + tests/profiler/test_transaction_profiler.py::test_profile_captured + tests/profiler/test_transaction_profiler.py::test_profiles_sample_rate + tests/profiler/test_transaction_profiler.py::test_profiles_sampler + tests/new_scopes_compat/test_new_scopes_compat_event.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p asyncio -p aiohttp -p pytest_forked -o addopts= +} diff --git a/dev-python/sphinx-notfound-page/Manifest b/dev-python/sphinx-notfound-page/Manifest index df65c0f1cb23..f7acdbd4f3cc 100644 --- a/dev-python/sphinx-notfound-page/Manifest +++ b/dev-python/sphinx-notfound-page/Manifest @@ -1 +1,2 @@ DIST sphinx-notfound-page-1.0.2.gh.tar.gz 543984 BLAKE2B a6a7a1f157c9500618c296152f44a441db9bf4198e196e5be5c71444e05f2623457d0807103dcc55d08c869afb0d35b719dc73f7f43e57f08a025aa08a4f42b1 SHA512 faa6c2cf59dcb3ab90e00176f1f9480ad8f5ff07e76dfd49a17985e638ea05329faaffa15f64d5c7cedc37028d0beeee9de10927429eb85d5b0bb1397d6bd14e +DIST sphinx-notfound-page-1.0.4.gh.tar.gz 544117 BLAKE2B f8155167183fa3d6487cfd9f93eff8a99dd3253ed7f44632ca822b9da3d0b409a6897edd4f972fc9535b4759c2ef976c5f66daf85249ba9de4c83ae96ff65d7a SHA512 d6643e29768b31834c73302f8995cd92c052b2a51a4ecffc997f4ea4d15cf830c17a2f538fec637b1a3a7e187fa787252652b5ab8ce0ab92f44996a63669b504 diff --git a/dev-python/sphinx-notfound-page/sphinx-notfound-page-1.0.4.ebuild b/dev-python/sphinx-notfound-page/sphinx-notfound-page-1.0.4.ebuild new file mode 100644 index 000000000000..1b0512b10039 --- /dev/null +++ b/dev-python/sphinx-notfound-page/sphinx-notfound-page-1.0.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Create a custom 404 page with absolute URLs hardcoded" +HOMEPAGE=" + https://sphinx-notfound-page.readthedocs.io/ + https://github.com/readthedocs/sphinx-notfound-page/ + https://pypi.org/project/sphinx-notfound-page/ +" +SRC_URI=" + https://github.com/readthedocs/sphinx-notfound-page/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + >=dev-python/sphinx-5[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # calls sphinx-build directly, works around venv + tests/test_urls.py::test_parallel_build +) diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest index 3bcdd4894e6e..a58e2bb07f7a 100644 --- a/dev-python/sphinx/Manifest +++ b/dev-python/sphinx/Manifest @@ -4,3 +4,4 @@ DIST sphinx-7.4.6.gh.tar.gz 8187130 BLAKE2B 69cf73dc3644ac0fbb4e2d26ee07652b4a16 DIST sphinx-7.4.7.gh.tar.gz 8135111 BLAKE2B b5a511355b16edfbcf32f9a20855466251c592a7fbffa33a84d84369f2a9de7767cd9529cce3f350cdf25bfbb53534ddea70d9482c1d6d78e9ab160d2c9821e8 SHA512 bfb48d4dc09f108986c5b7737710c7495fbdd83eb18f2a1c77bc9d324c499bffb5103f65ebf7396260f10c0f89eddb1ae5eb8d037bd33fffd748483f4391a7e1 DIST sphinx-8.0.0rc1.gh.tar.gz 8139326 BLAKE2B 3cb69ece3d6f85ceebd494abe9ae11a76b3473eca52611b197cd3a34985e37bc0275c9c194d87ca529a63d46976c9624ff9270734b638f8cbfb81c25f5fee0be SHA512 cd7e1b01a2a6dcc3106aef6f110bbd1c4cc06865e7c20c85e65b191128c4a28c836c5401f02e6a812317033b97ff4f683948b78d3edd56fbb8d12d6a7ada52f6 DIST sphinx-8.0.1.gh.tar.gz 8264971 BLAKE2B 5c0fb71607b75fc445cafe115bc2765e859d0224857149862517060e6133a610a05ca2c10fe78f32cf7f99396bd4991a834dcdecd0d3945bc6300a010dfdf408 SHA512 11e6901c27484fbad7c9f1b3c192603f3dd9d79092f3910ea05edd6541d0f8368471134c53d694f6032ad2d22131baf1b0bee2725f89c291dc236a6195315ed9 +DIST sphinx-8.0.2.gh.tar.gz 8264835 BLAKE2B ed6e321a1e58341609d88993c418ec1a0a580683ed28895077322fdba839d5c158007d65d5349d4d53c5e3b49ae823142cc6eb0203812580ebbb5b95247bf157 SHA512 5e9f38af91d7a80b6a80a80ab26adbebc1c3303996182a58eed9120ed896c5bfde022616e116e8cb8195fe03741e93fd97dcacccf492912ab147c5bfcb79213d diff --git a/dev-python/sphinx/sphinx-8.0.2.ebuild b/dev-python/sphinx/sphinx-8.0.2.ebuild new file mode 100644 index 000000000000..e1702504343d --- /dev/null +++ b/dev-python/sphinx/sphinx-8.0.2.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +MY_P=${P/_} +DESCRIPTION="Python documentation generator" +HOMEPAGE=" + https://www.sphinx-doc.org/ + https://github.com/sphinx-doc/sphinx/ + https://pypi.org/project/Sphinx/ +" +SRC_URI=" + https://github.com/sphinx-doc/sphinx/archive/v${PV/_}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc latex" + +RDEPEND=" + >=dev-python/alabaster-0.7.14[${PYTHON_USEDEP}] + >=dev-python/Babel-2.13[${PYTHON_USEDEP}] + <dev-python/docutils-0.22[${PYTHON_USEDEP}] + >=dev-python/docutils-0.20[${PYTHON_USEDEP}] + >=dev-python/imagesize-1.3[${PYTHON_USEDEP}] + >=dev-python/jinja-3.1[${PYTHON_USEDEP}] + >=dev-python/packaging-23.0[${PYTHON_USEDEP}] + >=dev-python/pygments-2.14[${PYTHON_USEDEP}] + >=dev-python/requests-2.30.0[${PYTHON_USEDEP}] + >=dev-python/snowballstemmer-2.2[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-serializinghtml-1.1.9[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-2[${PYTHON_USEDEP}] + ' 3.10) + latex? ( + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + app-text/dvipng + ) +" +BDEPEND=" + doc? ( + dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] + media-gfx/graphviz + ) + test? ( + app-text/dvipng + >=dev-python/cython-3.0.0[${PYTHON_USEDEP}] + >=dev-python/defusedxml-0.7.1[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + >=dev-python/setuptools-67.0[${PYTHON_USEDEP}] + dev-texlive/texlive-fontsextra + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + virtual/imagemagick-tools[jpeg,png,svg] + ) +" + +PATCHES=( + "${FILESDIR}/sphinx-3.2.1-doc-link.patch" + #"${FILESDIR}/sphinx-4.3.2-doc-link.patch" +) + +distutils_enable_tests pytest + +python_prepare_all() { + # disable internet access + sed -i -e 's:^intersphinx_mapping:disabled_&:' \ + doc/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + # we can't use distutils_enable_sphinx because it would + # introduce a dep on itself + use doc && build_sphinx doc +} + +python_test() { + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" + + local EPYTEST_DESELECT=( + # less interesting failures + tests/test_builders/test_build_latex.py::test_build_latex_doc + tests/test_extensions/test_ext_math.py::test_imgmath_png + tests/test_extensions/test_ext_math.py::test_imgmath_numfig_html + ) + case ${EPYTHON} in + python3.13x) + EPYTEST_DESELECT+=( + tests/test_extensions/test_ext_autodoc.py::test_autodoc_special_members + tests/test_extensions/test_ext_autodoc_configs.py::test_autodoc_type_aliases + tests/test_extensions/test_ext_autodoc_configs.py::test_autodoc_typehints_format_fully_qualified + tests/test_extensions/test_ext_autodoc_configs.py::test_autodoc_typehints_none + tests/test_extensions/test_ext_autodoc_configs.py::test_autodoc_typehints_signature + ) + ;; + pypy3) + EPYTEST_DESELECT+=( + tests/test_extensions/test_ext_autodoc.py::test_autodoc_exception + tests/test_extensions/test_ext_autodoc.py::test_autodoc_ignore_module_all + tests/test_extensions/test_ext_autodoc.py::test_autodoc_inherited_members_None + tests/test_extensions/test_ext_autodoc.py::test_autodoc_subclass_of_builtin_class + tests/test_extensions/test_ext_autodoc.py::test_automethod_for_builtin + tests/test_extensions/test_ext_autodoc.py::test_cython + tests/test_extensions/test_ext_autodoc.py::test_format_signature + tests/test_extensions/test_ext_autodoc.py::test_partialfunction + tests/test_extensions/test_ext_autodoc_autoclass.py::test_autodoc_process_bases + tests/test_extensions/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type + tests/test_extensions/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type + tests/test_extensions/test_ext_autodoc_autofunction.py::test_builtin_function + tests/test_extensions/test_ext_autodoc_autofunction.py::test_methoddescriptor + tests/test_extensions/test_ext_autodoc_automodule.py::test_automodule_inherited_members + tests/test_extensions/test_ext_autodoc_preserve_defaults.py::test_preserve_defaults_special_constructs + tests/test_extensions/test_ext_autosummary.py::test_autosummary_generate_content_for_module + tests/test_extensions/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped + tests/test_util/test_util_inspect.py::test_isattributedescriptor + tests/test_util/test_util_inspect.py::test_signature + tests/test_util/test_util_typing.py::test_is_invalid_builtin_class + ) + ;; + esac + + # note: pytest-xdist causes random test failures + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p rerunfailures --reruns=5 +} diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index 78d7d0bb1364..152316f97efd 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -21,6 +21,7 @@ DIST scopeguard-1.2.0.crate 11619 BLAKE2B 8b7e9ed6cefef9ee55407fb9690d57a2a98bb9 DIST smallvec-1.11.2.crate 34801 BLAKE2B 58645e99db8f02db64d02c75860c7ea41836c427c03ee3b0b23365e73a406e4fd6ac312bf13fc5faef8bb6111c10fcfd5f839d5b3686e9b34d1626f8469fc327 SHA512 5cfb427c3b99b0dbd71f6154ed899abcde9d7d2992977ac7b2ef3a4c3ff51e4efafd133071a69609b4ed6cb269bdc26b79eb72e1988f10dfcaef8185d950cd1d DIST sqlglot-25.7.1.tar.gz 19078973 BLAKE2B ef4df578c057e9821df589d065164552aace81ca4019a17c38e7f2a86d2ff833248a206cd46067ab1945d1607916b1fd6a92d209cfd9c1d5984f67488c6d6d7c SHA512 54b4c7170085e574a3c7914511aa8e5a2b94577b4e4c20ae2a7bbfc7b3f496e538b00ef6b848c6c83d18ed170dd0109cc36ad0e73b0ff13097466c9727b6ed32 DIST sqlglot-25.8.0.tar.gz 19080325 BLAKE2B c6c11c4c885fdb581f4afd3cef58b7052640d9de6825baf513046e32bd87e0e310c723291cb605ba253063b6542e3d8e5e63a5476cee62835fcbfb409df44bf7 SHA512 80292ca8c84e617a9cf47870960813ae0e5fecf9063766f6828040fe649a5549e2f4bf56ba9250f4bbc0268a72e3244d7571c27b3f064a5c4022afd080cbd89c +DIST sqlglot-25.8.1.tar.gz 19083232 BLAKE2B 98f0dd14f3fa8bcc22f8152224415d2b2add44e563ac718e654660b4dee4b4e610860d1a96885c2af2c11d12cb8c3c401ac07c44b2d72cc6fb0f6fa355d5a57c SHA512 e51ef0bf8c830a1b6ab83fb5d106e0e46fb719b3da9e848959f512befdd8365450878bca12d7b1641b430f6e57cc95407d23ed2f174ebef64b10d3dd129dc12d DIST syn-2.0.41.crate 246016 BLAKE2B 9d389f2e2a0acb4c84c309456e8ffcc88c5d4d541535ed136832d7a6054dde45a598bb68e8a6f3062ca2a96e1ceae947d54b3aec9bad65b0c51d6733aa6c80db SHA512 6bbaf69ca783025dfb81ac3612ac60bfbed31b2d87792909b35c12892dadebdaff2ddf9463105e536b671dce5870610ab90fe29471284bbd3014dca8d6993f1a DIST target-lexicon-0.12.12.crate 25156 BLAKE2B f3803596c75f6c89438592a1176c3748fc2c0524d7d50a20056de1cd26d40c572b05bafcdf6dd702752864bea37c8b4f28f96dadc12a5b3bb1d279b25e489f85 SHA512 6147295c43ba1b7b087a3c5ab51534b2985e4e77e5e15687978cfb9d07e21c4fd9bc7191576d6cabd268d08a44dc733c4a957e59dba8b948c2055d8bb433aeca DIST unicode-ident-1.0.12.crate 42168 BLAKE2B 4cede03c08758ccd6bf53a0d0057d7542dfdd0c93d342e89f3b90460be85518a9fd24958d8b1da2b5a09b5ddbee8a4263982194158e171c2bba3e394d88d6dac SHA512 bc1824e1e4452a40732fc69874d7e1a66f7803717a314790dcf48867eba34bc9441331ef031e386912e52c385645c25b6ed39d4f149973b5b97371b1b96b1920 diff --git a/dev-python/sqlglot/sqlglot-25.8.1.ebuild b/dev-python/sqlglot/sqlglot-25.8.1.ebuild new file mode 100644 index 000000000000..c040bab3734b --- /dev/null +++ b/dev-python/sqlglot/sqlglot-25.8.1.ebuild @@ -0,0 +1,121 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +CARGO_OPTIONAL=1 +CRATES=" + autocfg@1.1.0 + bitflags@1.3.2 + cfg-if@1.0.0 + heck@0.4.1 + indoc@2.0.4 + libc@0.2.150 + lock_api@0.4.11 + memoffset@0.9.0 + once_cell@1.19.0 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + proc-macro2@1.0.70 + pyo3-build-config@0.20.0 + pyo3-ffi@0.20.0 + pyo3-macros-backend@0.20.0 + pyo3-macros@0.20.0 + pyo3@0.20.0 + quote@1.0.33 + redox_syscall@0.4.1 + scopeguard@1.2.0 + smallvec@1.11.2 + syn@2.0.41 + target-lexicon@0.12.12 + unicode-ident@1.0.12 + unindent@0.2.3 + windows-targets@0.48.5 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_msvc@0.48.5 + windows_i686_gnu@0.48.5 + windows_i686_msvc@0.48.5 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_msvc@0.48.5 +" + +inherit cargo distutils-r1 pypi optfeature + +DESCRIPTION="An easily customizable SQL parser and transpiler" +HOMEPAGE=" + https://sqlglot.com/ + https://github.com/tobymao/sqlglot/ + https://pypi.org/project/sqlglot/ +" +SRC_URI+=" + native-extensions? ( + ${CARGO_CRATE_URIS} + ) +" + +LICENSE="MIT" +LICENSE+=" native-extensions? (" +# Dependent crate licenses +LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016" +LICENSE+=" )" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+native-extensions" + +BDEPEND=" + native-extensions? ( + ${RUST_DEPEND} + dev-util/maturin[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/sqlglotrs/sqlglotrs.*.so" + +src_unpack() { + cargo_src_unpack +} + +src_prepare() { + # remove fragile timing check + sed -i -e '/assertLessEqual(time\.time/d' tests/test_parser.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + + if use native-extensions; then + local DISTUTILS_USE_PEP517=maturin + cd sqlglotrs || die + distutils-r1_python_compile + cd - >/dev/null || die + fi +} + +python_test() { + local EPYTEST_IGNORE=( + # Tests require pyspark or duckdb which aren't in the tree. + # Pandas would be a requirement normally, but it gets ignored by proxy. + "tests/dataframe/integration/test_dataframe.py" + "tests/dataframe/integration/test_grouped_data.py" + "tests/dataframe/integration/test_session.py" + "tests/test_executor.py" + "tests/test_optimizer.py" + ) + + # make sure not to use an earlier installed version + local -x SQLGLOTRS_TOKENIZER=$(usex native-extensions 1 0) + rm -rf sqlglotrs || die + epytest +} + +pkg_postinst() { + optfeature "simplifying timedelta expressions" dev-python/python-dateutil +} diff --git a/dev-python/towncrier/Manifest b/dev-python/towncrier/Manifest index 7c628ce9eddc..bfd0074ee862 100644 --- a/dev-python/towncrier/Manifest +++ b/dev-python/towncrier/Manifest @@ -1 +1,3 @@ DIST towncrier-23.11.0.gh.tar.gz 63343 BLAKE2B d628ce1ad3f8efc2880ca2321d81ab0b2c40ec6473527c74a12ca48f58dfdc65029f5a9f025f69a3c45ff3b52594728c8e4168b0ce75199794298c941f1dcbaf SHA512 6226ef75c163748872f0f5d60c03629365cf0a942412ca791ea28762a227942d974f8573205551678735380629eadf2bf726478b0ef1d4d1e6ee14b47e25fbae +DIST towncrier-24.7.0rc1.gh.tar.gz 72819 BLAKE2B de0d19432319b3a411ebd6f1eeae93b923129ace2fd0c44b30466a5f3c5deca432314965b224b1f4c8c07e9669c48e8d70fd420222f47c0a316792095a03f16c SHA512 1f87e0f6800e4c91003761726aa28e6d61a0abc66dd4d55318f9b12495cb271a3f04457a95d15df2a2aa71918195dc5ed2212e2f6577755d10130a2d4758a0ea +DIST towncrier-24.7.1.gh.tar.gz 73189 BLAKE2B 711dec1f859c481e049d0b2ce7332ec3f0cb71d11a184b237c35d40a1a1d1e331efda31d18d2452ad743ec94f2c79a386d5a1154b7eab1a0dbd232567a1b7cef SHA512 3a57dc9766eb8a09d584382f5998dc296daeacb64fd41f9ae342fb94131dd039896a32c994abb3346722fc0329632c0806f01ddd8a4aa93724e0e2978f47001d diff --git a/dev-python/towncrier/towncrier-24.7.0_rc1.ebuild b/dev-python/towncrier/towncrier-24.7.0_rc1.ebuild new file mode 100644 index 000000000000..2d84b8286c14 --- /dev/null +++ b/dev-python/towncrier/towncrier-24.7.0_rc1.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=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +MY_P=${P/_} +DESCRIPTION="Building newsfiles for your project" +HOMEPAGE=" + https://github.com/twisted/towncrier/ + https://pypi.org/project/towncrier/ +" +SRC_URI=" + https://github.com/twisted/${PN}/archive/${PV/_}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] + dev-python/click-default-group[${PYTHON_USEDEP}] + dev-python/incremental[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + dev-python/incremental[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-vcs/git + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] + ) +" + +src_prepare() { + # unbundle click-default-group, sigh + rm src/towncrier/click_default_group.py || die + sed -i -e '/click_default_group/s:[.]::' src/towncrier/_shell.py || die + + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" -m twisted.trial towncrier || + die "tests failed with ${EPYTHON}" +} diff --git a/dev-python/towncrier/towncrier-24.7.1.ebuild b/dev-python/towncrier/towncrier-24.7.1.ebuild new file mode 100644 index 000000000000..2d84b8286c14 --- /dev/null +++ b/dev-python/towncrier/towncrier-24.7.1.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=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +MY_P=${P/_} +DESCRIPTION="Building newsfiles for your project" +HOMEPAGE=" + https://github.com/twisted/towncrier/ + https://pypi.org/project/towncrier/ +" +SRC_URI=" + https://github.com/twisted/${PN}/archive/${PV/_}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] + dev-python/click-default-group[${PYTHON_USEDEP}] + dev-python/incremental[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + dev-python/incremental[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-vcs/git + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] + ) +" + +src_prepare() { + # unbundle click-default-group, sigh + rm src/towncrier/click_default_group.py || die + sed -i -e '/click_default_group/s:[.]::' src/towncrier/_shell.py || die + + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" -m twisted.trial towncrier || + die "tests failed with ${EPYTHON}" +} diff --git a/dev-python/twisted/Manifest b/dev-python/twisted/Manifest index c721f0b6b783..4bebe2fb86ae 100644 --- a/dev-python/twisted/Manifest +++ b/dev-python/twisted/Manifest @@ -1,3 +1,4 @@ DIST twisted-24.3.0.tar.gz 3500456 BLAKE2B b2cebb2f3482dbeba250786b1977ddbb09e1a9a81f71ce5906efe8289b0e134a8b26c191c2262e8ee8ba3fccccea508c34145016b29ecf301541134dcea19e08 SHA512 c3dd227f5936ffa586a0b7447f5df4c2257dce0c0ba740373d82197a72029e7eeb0aef9789247dde73e2f24dd043f3b0b7d795f16e6e908583b054aad9b9eb6a DIST twisted-24.3.0_p20240628.gh.tar.gz 3598828 BLAKE2B 6f37190caa0fe6e0ff566cb4f86b625425bfe60d8743b4c22463da63df3184646eda2b7d1a73e30452390bab54f8001f9eb33e1e7adc645071fe0eba4fb2d30c SHA512 f182d6c5006f1043f3586468d628b6b87a4d74d4aa1ce3c882938f0a831a191b38b311a4cf68488b24cd3d87547aeb0b9725e93ce4be86638aa11552d294cd95 +DIST twisted-24.7.0rc1.tar.gz 3517026 BLAKE2B ce7c2aec350c08ccaee03010dcff7f82fb37760d905206862e77c77c71d5eb8a0c9e04433bfe3ef19f39761ddbacdacb1eeb64b4de6663569f06ed06302276f9 SHA512 7bc5a65d1813573e980c1171a579d3b76a0275706175c2d83d5cfe389bc8ef1e965ec50b4680579af1eb796ed7131eb0bbad173ef2a73c9ed0a367f6a121666a DIST twisted-regen-cache.gz 911 BLAKE2B ffd3fcda6c67ffe6fd3ef581c8d507548396b66ed0708e9a5c790095e579c0d5f0f71596acf05712989da2ddef2b8d437eca973bc4d80ef8a9fa852915f38305 SHA512 95a9b931c73017d16d1b5e6b41345dddffe62b6af1a8e93b5e40d06d3d15be17b0dd0181c767ffeeb791534d463764ef9e066fa6c2ee2ac4b53c86d1da8fce03 diff --git a/dev-python/twisted/files/twisted-24.7.0_rc1-skip-py313-tests.patch b/dev-python/twisted/files/twisted-24.7.0_rc1-skip-py313-tests.patch new file mode 100644 index 000000000000..9be4283567ec --- /dev/null +++ b/dev-python/twisted/files/twisted-24.7.0_rc1-skip-py313-tests.patch @@ -0,0 +1,54 @@ +From 314fb5e18cbcaa11040a129d6ffaee3c376f55e7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20Van=C4=9Bk?= <arkamar@gentoo.org> +Date: Wed, 31 Jul 2024 15:08:20 +0200 +Subject: [PATCH] skip py3.13 incompatible tests + +Based on upstream changes in PR https://github.com/twisted/twisted/pull/12092 + +diff --git a/src/twisted/internet/test/test_inlinecb.py b/src/twisted/internet/test/test_inlinecb.py +index 355572b566..11c09c6996 100644 +--- a/src/twisted/internet/test/test_inlinecb.py ++++ b/src/twisted/internet/test/test_inlinecb.py +@@ -6,11 +6,13 @@ + Tests for L{twisted.internet.inlineCallbacks}. + """ + ++import sys + import traceback + import unittest as pyunit + import weakref + from enum import Enum + from typing import Any, Generator, List, Set, Union ++from unittest import skipIf + + from twisted.internet import reactor, task + from twisted.internet.defer import ( +@@ -1122,6 +1124,9 @@ class NonLocalExitTests(TestCase): + + + class ForwardTraceBackTests(SynchronousTestCase): ++ HAVE_PY3_12_OR_OLDER = sys.version_info < (3, 13) ++ ++ @skipIf(not HAVE_PY3_12_OR_OLDER, "Needs Python 3.12 or older") + def test_forwardTracebacks(self): + """ + Chained inlineCallbacks are forwarding the traceback information +@@ -1171,6 +1176,7 @@ class ForwardTraceBackTests(SynchronousTestCase): + + return d + ++ @skipIf(not HAVE_PY3_12_OR_OLDER, "Needs Python 3.12 or older") + def test_forwardLotsOfTracebacks(self): + """ + Several Chained inlineCallbacks gives information about all generators. +@@ -1218,6 +1224,7 @@ class ForwardTraceBackTests(SynchronousTestCase): + self.assertIn("Error Marker", tb) + self.assertIn("in erroring", f.getTraceback()) + ++ @skipIf(not HAVE_PY3_12_OR_OLDER, "Needs Python 3.12 or older") + def test_forwardLotsOfTracebacksCoro(self): + """ + Several chained inlineCallbacks mixed with coroutines gives information +-- +2.44.2 + diff --git a/dev-python/twisted/twisted-24.3.0.ebuild b/dev-python/twisted/twisted-24.3.0.ebuild index b7b426423dca..e223852609f8 100644 --- a/dev-python/twisted/twisted-24.3.0.ebuild +++ b/dev-python/twisted/twisted-24.3.0.ebuild @@ -55,6 +55,7 @@ RDEPEND=" >=dev-python/idna-2.4[${PYTHON_USEDEP}] ) " +# tests fail with openssh-9.8, see https://github.com/twisted/twisted/issues/12273 BDEPEND=" >=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}] >=dev-python/incremental-22.10.0[${PYTHON_USEDEP}] @@ -72,6 +73,7 @@ BDEPEND=" >=dev-python/pyhamcrest-2[${PYTHON_USEDEP}] >=dev-python/pyserial-3.0[${PYTHON_USEDEP}] virtual/openssh + <net-misc/openssh-9.8 ssl? ( >=dev-python/pyopenssl-21.0.0[${PYTHON_USEDEP}] >=dev-python/service-identity-18.1.0[${PYTHON_USEDEP}] diff --git a/dev-python/twisted/twisted-24.3.0_p20240628.ebuild b/dev-python/twisted/twisted-24.3.0_p20240628.ebuild index 74920d740520..bdcccc191d46 100644 --- a/dev-python/twisted/twisted-24.3.0_p20240628.ebuild +++ b/dev-python/twisted/twisted-24.3.0_p20240628.ebuild @@ -61,6 +61,7 @@ RDEPEND=" >=dev-python/idna-2.4[${PYTHON_USEDEP}] ) " +# tests fail with openssh-9.8, see https://github.com/twisted/twisted/issues/12273 BDEPEND=" >=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}] >=dev-python/incremental-22.10.0[${PYTHON_USEDEP}] @@ -78,6 +79,7 @@ BDEPEND=" >=dev-python/pyhamcrest-2[${PYTHON_USEDEP}] >=dev-python/pyserial-3.0[${PYTHON_USEDEP}] virtual/openssh + <net-misc/openssh-9.8 ssl? ( >=dev-python/pyopenssl-21.0.0[${PYTHON_USEDEP}] >=dev-python/service-identity-18.1.0[${PYTHON_USEDEP}] diff --git a/dev-python/twisted/twisted-24.7.0_rc1.ebuild b/dev-python/twisted/twisted-24.7.0_rc1.ebuild new file mode 100644 index 000000000000..d4783cdbe739 --- /dev/null +++ b/dev-python/twisted/twisted-24.7.0_rc1.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_TESTED=( python3_{8,9,10,11,12} pypy3 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi virtualx + +DESCRIPTION="An asynchronous networking framework written in Python" +HOMEPAGE=" + https://twisted.org/ + https://github.com/twisted/twisted/ + https://pypi.org/project/Twisted/ +" +SRC_URI+=" + https://dev.gentoo.org/~mgorny/dist/twisted-regen-cache.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" +IUSE="conch http2 serial ssl test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/automat-0.8.0[${PYTHON_USEDEP}] + >=dev-python/constantly-15.1[${PYTHON_USEDEP}] + >=dev-python/hyperlink-17.1.1[${PYTHON_USEDEP}] + >=dev-python/incremental-22.10.0[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.2.0[${PYTHON_USEDEP}] + >=dev-python/zope-interface-5[${PYTHON_USEDEP}] + conch? ( + >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] + >=dev-python/bcrypt-3.0.0[${PYTHON_USEDEP}] + >=dev-python/cryptography-3.3[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + ) + http2? ( + <dev-python/h2-5.0[${PYTHON_USEDEP}] + >=dev-python/h2-3.0.0[${PYTHON_USEDEP}] + <dev-python/priority-2.0[${PYTHON_USEDEP}] + >=dev-python/priority-1.1.0[${PYTHON_USEDEP}] + ) + serial? ( + >=dev-python/pyserial-3.0[${PYTHON_USEDEP}] + ) + ssl? ( + >=dev-python/pyopenssl-21.0.0[${PYTHON_USEDEP}] + >=dev-python/service-identity-18.1.0[${PYTHON_USEDEP}] + >=dev-python/idna-2.4[${PYTHON_USEDEP}] + ) +" +# tests fail with openssh-9.8, see https://github.com/twisted/twisted/issues/12273 +BDEPEND=" + >=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}] + >=dev-python/incremental-22.10.0[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + $(python_gen_cond_dep ' + >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] + >=dev-python/bcrypt-3.0.0[${PYTHON_USEDEP}] + >=dev-python/constantly-15.1.0[${PYTHON_USEDEP}] + <dev-python/cython-test-exception-raiser-2[${PYTHON_USEDEP}] + >=dev-python/cython-test-exception-raiser-1.0.2[${PYTHON_USEDEP}] + >=dev-python/idna-2.4[${PYTHON_USEDEP}] + >=dev-python/hypothesis-6.56[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + >=dev-python/pyhamcrest-2[${PYTHON_USEDEP}] + >=dev-python/pyserial-3.0[${PYTHON_USEDEP}] + virtual/openssh + <net-misc/openssh-9.8 + ssl? ( + >=dev-python/pyopenssl-21.0.0[${PYTHON_USEDEP}] + >=dev-python/service-identity-18.1.0[${PYTHON_USEDEP}] + ) + ' "${PYTHON_TESTED[@]}") + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-24.3.0_p20240628-skip-py313-test.patch" + "${FILESDIR}/${PN}-24.7.0_rc1-skip-py313-tests.patch" +) + +python_prepare_all() { + # upstream test for making releases; not very useful and requires + # sphinx (including on py2) + rm src/twisted/python/test/test_release.py || die + + # multicast tests fail within network-sandbox + sed -e 's:test_joinLeave:_&:' \ + -e 's:test_loopback:_&:' \ + -e 's:test_multiListen:_&:' \ + -e 's:test_multicast:_&:' \ + -i src/twisted/test/test_udp.py || die + + distutils-r1_python_prepare_all +} + +src_test() { + # the test suite handles missing file & failing ioctl()s gracefully + # but not permission errors from sandbox + addwrite /dev/net/tun + virtx distutils-r1_src_test +} + +python_test() { + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON} (xfail)" + return + fi + + # breaks some tests by overriding empty environment + local -x SANDBOX_ON=0 + # for py3.13, see + # https://github.com/twisted/twisted/pull/12092#issuecomment-2194326096 + local -x LINES=25 + local -x COLUMNS=80 + "${EPYTHON}" -m twisted.trial twisted || + die "Tests failed with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + # own the dropin.cache so we don't leave orphans + > "${D}$(python_get_sitedir)"/twisted/plugins/dropin.cache || die + + python_doscript "${WORKDIR}"/twisted-regen-cache +} + +python_install_all() { + distutils-r1_python_install_all + + newconfd "${FILESDIR}/twistd.conf" twistd + newinitd "${FILESDIR}/twistd.init" twistd +} + +python_postinst() { + twisted-regen-cache || die +} + +pkg_postinst() { + if [[ -z ${ROOT} ]]; then + python_foreach_impl python_postinst + fi +} + +python_postrm() { + rm -f "${ROOT}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die +} + +pkg_postrm() { + # if we're removing the last version, remove the cache file + if [[ ! ${REPLACING_VERSIONS} ]]; then + python_foreach_impl python_postrm + fi +} diff --git a/dev-python/xarray/Manifest b/dev-python/xarray/Manifest index cccf816f145f..982b0ec3b8de 100644 --- a/dev-python/xarray/Manifest +++ b/dev-python/xarray/Manifest @@ -1 +1,2 @@ DIST xarray-2024.6.0.tar.gz 3715179 BLAKE2B 42fa46883d27f656dca9b82e1647bd94a62a427582cd52d847131a8e01caf77a597fcc128453fee1f68c38897a9f995dd4c644e9b68b551ee1c28bc0d48e9465 SHA512 b6f24f834d71cca84f6a485858571a17bcb250915d4f84c886c9e16fc240ae3c3e91d573726e8a09f1dbe269abbfae97498868476eef1a90813ddb29c6a6db62 +DIST xarray-2024.7.0.tar.gz 3728663 BLAKE2B c5b14c3d4ea2cec90565a8fb93e49974f52c6f0e55103cd791e746e674d886be85c7df244690513a482b32062e733a670b759b710739303ae79f9a13beea8c01 SHA512 6a094dacdd8f09fb4674c67e03e1df67d0651053088fe39912713842dddb397cf5b5629193df170a4738dc8f75e96ae26582c73fac4679a1439e9d015dfcfcd1 diff --git a/dev-python/xarray/xarray-2024.7.0.ebuild b/dev-python/xarray/xarray-2024.7.0.ebuild new file mode 100644 index 000000000000..fa91bfbec259 --- /dev/null +++ b/dev-python/xarray/xarray-2024.7.0.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="N-D labeled arrays and datasets in Python" +HOMEPAGE=" + https://xarray.pydata.org/ + https://github.com/pydata/xarray/ + https://pypi.org/project/xarray/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +IUSE="big-endian" + +RDEPEND=" + >=dev-python/numpy-1.23[${PYTHON_USEDEP}] + >=dev-python/pandas-2.0[${PYTHON_USEDEP}] + >=dev-python/packaging-23.1[${PYTHON_USEDEP}] +" +# note: most of the test dependencies are optional +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/bottleneck[${PYTHON_USEDEP}] + dev-python/cftime[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + !riscv? ( dev-python/netcdf4[bzip2,szip,${PYTHON_USEDEP}] ) + dev-python/toolz[${PYTHON_USEDEP}] + !hppa? ( >=dev-python/scipy-1.4[${PYTHON_USEDEP}] ) + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # TODO: these fail with filter errors even if netcdf4 is built + # with blosc/zstd support + 'xarray/tests/test_backends.py::TestNetCDF4Data::test_compression_encoding[zstd]' + 'xarray/tests/test_backends.py::TestNetCDF4Data::test_compression_encoding[blosc_lz]' + 'xarray/tests/test_backends.py::TestNetCDF4Data::test_compression_encoding[blosc_lz4]' + 'xarray/tests/test_backends.py::TestNetCDF4Data::test_compression_encoding[blosc_lz4hc]' + 'xarray/tests/test_backends.py::TestNetCDF4Data::test_compression_encoding[blosc_zlib]' + 'xarray/tests/test_backends.py::TestNetCDF4Data::test_compression_encoding[blosc_zstd]' + ) + + if ! has_version ">=dev-python/scipy-1.4[${PYTHON_USEDEP}]" ; then + EPYTEST_DESELECT+=( + 'xarray/tests/test_missing.py::test_interpolate_na_2d[coords1]' + ) + + if ! has_version "dev-python/scipy[${PYTHON_USEDEP}]" ; then + EPYTEST_DESELECT+=( + xarray/tests/test_calendar_ops.py::test_interp_calendar + ) + fi + fi + + if use big-endian ; then + EPYTEST_DESELECT+=( + # Appears to be a numpy issue in display? See bug #916460. + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145224193-ns-int64-20-True]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1970-09-21T00:12:44.145224808-ns-float64-1e+30-True]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145225216-ns-float64--9.223372036854776e+18-True]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145224193-ns-int64-None-False]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145225-us-int64-None-False]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1970-01-01T00:00:01.000001-us-int64-None-False]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:21:52.901038080-ns-float32-20.0-True]' + ) + fi + + if [[ ${ABI} != *64* ]]; then + EPYTEST_DESELECT+=( + # these tests hardcode object sizes for 64-bit arches + # https://github.com/pydata/xarray/issues/9127 + xarray/tests/test_dataarray.py::TestDataArray::test_repr_multiindex + xarray/tests/test_dataarray.py::TestDataArray::test_repr_multiindex_long + xarray/tests/test_dataset.py::TestDataset::test_repr_multiindex + xarray/tests/test_formatting.py::test_array_repr_dtypes_unix + ) + fi + + if has_version ">=dev-python/numpy-2[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + xarray/tests/test_dataset.py::TestDataset::test_polyfit_warnings + # https://github.com/pandas-dev/pandas/issues/56996 + xarray/tests/test_backends.py::test_use_cftime_false_standard_calendar_in_range + # TODO + 'xarray/tests/test_dtypes.py::test_maybe_promote[q-expected19]' + 'xarray/tests/test_dtypes.py::test_maybe_promote[Q-expected20]' + 'xarray/tests/test_conventions.py::TestCFEncodedDataStore::test_roundtrip_mask_and_scale[dtype0-create_unsigned_masked_scaled_data-create_encoded_unsigned_masked_scaled_data]' + 'xarray/tests/test_conventions.py::TestCFEncodedDataStore::test_roundtrip_mask_and_scale[dtype1-create_unsigned_masked_scaled_data-create_encoded_unsigned_masked_scaled_data]' + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} |
