diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-13 12:13:57 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-13 12:13:57 +0000 |
| commit | 3f36b0c1f814c0db9d0ae15b2a296b3d7bf9372c (patch) | |
| tree | a9cc5ef7493887f1536592db7c5b290e1d2eadbb /dev-python | |
| parent | b4803079ccaf30833a1b3e6cdca144b6907a3657 (diff) | |
| download | baldeagleos-repo-3f36b0c1f814c0db9d0ae15b2a296b3d7bf9372c.tar.gz baldeagleos-repo-3f36b0c1f814c0db9d0ae15b2a296b3d7bf9372c.tar.xz baldeagleos-repo-3f36b0c1f814c0db9d0ae15b2a296b3d7bf9372c.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
90 files changed, 2401 insertions, 319 deletions
diff --git a/dev-python/a2wsgi/Manifest b/dev-python/a2wsgi/Manifest index c5238c68ff47..6034c5e268fe 100644 --- a/dev-python/a2wsgi/Manifest +++ b/dev-python/a2wsgi/Manifest @@ -1 +1,2 @@ DIST a2wsgi-1.10.2.tar.gz 18126 BLAKE2B 8f0163a9acd3548d5627b026cba7f573cb10d3d346b4304a2152d92f0c9c9a7c0a622ec2761c473a23ef3724d706da1c832f28f7040f7b44303a74794aff6702 SHA512 c084cdeba47c848635cd1ae8ab05d46b6d83acbad48a923f4c21141564d755ac73e52acb097251a6fb3feba9009aca03db40d9a44aa94ea89caad5218cb5e456 +DIST a2wsgi-1.10.3.tar.gz 18111 BLAKE2B 2d18a17b66f3a0bf44a4b57fdc4d27361a4e0c8f540da6ae4c1be9a349fc62efcd69e4028173215e164e1823d2645a6927edfa2fedeff8fa08491f218da76149 SHA512 db1450376fec703423c06a9d9e7b4e6bb13e02b0b4f0061de1b19e63c0d27379a5a7a6d7c2d7c938044ff37ca2fd245438e023dce5ee57caef9a91be315b05ee diff --git a/dev-python/a2wsgi/a2wsgi-1.10.3.ebuild b/dev-python/a2wsgi/a2wsgi-1.10.3.ebuild new file mode 100644 index 000000000000..d01e0e31d956 --- /dev/null +++ b/dev-python/a2wsgi/a2wsgi-1.10.3.ebuild @@ -0,0 +1,30 @@ +# 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Convert WSGI app to ASGI app or ASGI app to WSGI app" +HOMEPAGE=" + https://github.com/abersheeran/a2wsgi/ + https://pypi.org/project/a2wsgi/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + <dev-python/asgiref-4[${PYTHON_USEDEP}] + >=dev-python/asgiref-3.2.7[${PYTHON_USEDEP}] + <dev-python/httpx-1[${PYTHON_USEDEP}] + >=dev-python/httpx-0.22.0[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index c9501872784a..83764d2bccff 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -2,3 +2,4 @@ DIST boto3-1.34.49.gh.tar.gz 777028 BLAKE2B 3f78be7cffeca8dec5c7e1b8fcb2e4081e8d DIST boto3-1.34.54.gh.tar.gz 779564 BLAKE2B f61a74f6a317af6f180edb047e8c37e55c2d497c9507728eb098e2627d071aa56bae037a4bb8582774a49b20d0c1794a8793ab3d8e92d90071de3caf1d32bc2b SHA512 e3549e7b7ad254eafff60eb9bd21aa179f2840c2097874fb0a0602e767dbcf203742629eeaffe6432db65c3f76c326032e700cebb7ea92ebb7305ae6e26173ba DIST boto3-1.34.59.gh.tar.gz 782060 BLAKE2B d46f20f101f36380a17cb5c1bd511adde1b9fb01981566b863d192d0b93d9965a6720dc67ba47d4e1da94b3994dc5a6e59b1effa4e5c4f5e1e25f1683d99c40e SHA512 5d1d34339d60cd5c2efb60da885c4f92e5c245ef95bdaf46631d2938adf9fb08f7fba86ce2dd3e6382291d0d72c81aa9698cfe327d88c0b8ae8812d9c1e0b37c DIST boto3-1.34.60.gh.tar.gz 782539 BLAKE2B d0fa63256b967b9a93139d4ee41e5892187cc54671b5a7c47b8e6900ac1b9ea7bae8d8b38a0f18432813a6085e2773b7c7b8686e9d5d7d13465b8547f0bb9e30 SHA512 f60ae6664ce19bdddb552d72c2f0699d8bd771e23f164e29f5c3c7869680528a6e9b8d678c7c0359dbe25c3e20077a7cf45efd01f207340dbe0ee6198e08a4c5 +DIST boto3-1.34.61.gh.tar.gz 782749 BLAKE2B 058b8389a57c1e652789ddf9ce83f754ecd94e90f292f3d9ed70cc3456a547578591fa7d908838296186707074b874ac5898e5960022cfd3ecbac9e8cbefa8a0 SHA512 8b72e539def341676a928d346099b8076c21543606a0a02050aa792c95a898c0b00edeccc2c0eadf241071c78b859b4240b2e40e32c3a16dbbc4cbbfff89e9cd diff --git a/dev-python/boto3/boto3-1.34.61.ebuild b/dev-python/boto3/boto3-1.34.61.ebuild new file mode 100644 index 000000000000..c6201d2c5818 --- /dev/null +++ b/dev-python/boto3/boto3-1.34.61.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{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}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 7a82e22d3d17..1f090ed8ff01 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -2,3 +2,4 @@ DIST botocore-1.34.49.gh.tar.gz 12729109 BLAKE2B 8029fd3530f8c29e7375eaf369944ad DIST botocore-1.34.54.gh.tar.gz 12748623 BLAKE2B 2b4732636e0d7cf46e12fc2cf4320c7c4a89c79abe5102a06c0b60c61ca1f638edbfeda0248c3044dbfe594b3dcfe0e8e73f52011bcad0e96fa4c51f3b6b944f SHA512 36fbbd8ad1627b86723ffbb54149ffb7b740831cb31be2e9c0423d158c5755161ec853ef5f97f4fa2632116099266d5f8dc06e47fda6356f988eb39636f435aa DIST botocore-1.34.59.gh.tar.gz 12764223 BLAKE2B 13347793764afb8ef51502149f490e5082e65a76a3f72eb484d60ea44542dc8026ddfd6e6cc0c90273f6f3fbdc82e42bc6ad5f2c434900a881208ff79edcbf6b SHA512 5afe577889fed68308a414982c12d36ddc9ce1d7d7b866c544d1f25226050772775c7ee04e490f72d1f355a1f68fcfcb7431d626fa9a85f76065f2576de511cf DIST botocore-1.34.60.gh.tar.gz 12765697 BLAKE2B c9aadf76475fe4cdd81d3aff1fd577bc177cb6f4702e8f4acbce8a5d2010a6440e792ae2accf7af3cfafca146b22ce9b239d76a25c8f9715b34d44212e9e2c73 SHA512 4d44646840dfaab1d5d45705be74df73df1b76dc345ee189c4d8b82cbffc5076701a34771823b18c4c52c4a8a9acc8c7e186ad25b7a735de95944d9f439ef8b4 +DIST botocore-1.34.61.gh.tar.gz 12767176 BLAKE2B dd8fdd5fd15b4da9b1b8550dff8d2d51ceba0a1720665d0a9abdfd9519450eb6eb428f5febc58494f06e8406605ce0c8fb1e61ea1c3a25630c2b36944decad7a SHA512 da3299d3231c5b16a12b6ebb1456baea5ed94e8f05de75457b3ce2c9cdf2071c045c32326fdd84d29ac1d15e6379c40611db3ba07037498f6c43e79ef0880fac diff --git a/dev-python/botocore/botocore-1.34.61.ebuild b/dev-python/botocore/botocore-1.34.61.ebuild new file mode 100644 index 000000000000..857224b496b7 --- /dev/null +++ b/dev-python/botocore/botocore-1.34.61.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/comm/Manifest b/dev-python/comm/Manifest index 92fe65cf363b..254c5f1207f6 100644 --- a/dev-python/comm/Manifest +++ b/dev-python/comm/Manifest @@ -1 +1,2 @@ DIST comm-0.2.1.gh.tar.gz 9569 BLAKE2B 5af0ba4f82ee69819404cef7e45937d9cfeec0a390c7bf562dce1132a7b916a5d8c80c25f7d78cc44f3fb069959d6c8902aae61ecd4bb07e3036d096e25d35cf SHA512 79f85dcd06a5e849718092a3148f39ad81c36a1903a51bd619f50d044cec6be7ca25e3fe7cd85c9174d76558b52dc77a1c3b49f1ed52b8f83e83a8a6ae7f3f0d +DIST comm-0.2.2.gh.tar.gz 9983 BLAKE2B aedbd55751cbf58b2e7adad5e59af1aa1479e653bb7b62f811686a30630682edfd6fe82e18ed14d9f7a4b875e2596fba375eb34493f3d29eeeb6ca1b7bdd7c71 SHA512 a37999859894186cb52f50835459dd6c3aced256ed1c6319660c98ad9e423f4ab1fd86545f68c82fbbbd74dcec70359566307cecbc3610d806084a33fae9e693 diff --git a/dev-python/comm/comm-0.2.2.ebuild b/dev-python/comm/comm-0.2.2.ebuild new file mode 100644 index 000000000000..61f3d1eb3d88 --- /dev/null +++ b/dev-python/comm/comm-0.2.2.ebuild @@ -0,0 +1,30 @@ +# 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 + +DESCRIPTION="Jupyter Python Comm implementation, for usage in ipykernel, xeus-python" +HOMEPAGE=" + https://github.com/ipython/comm/ + https://pypi.org/project/comm/ +" +# no tests in sdist, as of 0.1.3 +SRC_URI=" + https://github.com/ipython/comm/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +RDEPEND=" + >=dev-python/traitlets-4[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/dask-expr/Manifest b/dev-python/dask-expr/Manifest new file mode 100644 index 000000000000..271181fac6ae --- /dev/null +++ b/dev-python/dask-expr/Manifest @@ -0,0 +1 @@ +DIST dask-expr-1.0.1.gh.tar.gz 233067 BLAKE2B 8638c7f457aa7decdad71de95f4a1ebc2af32781a28ef6e76fc4f59cd2c417ce3f005e77b42553625e045c44c9574686a549c48a44acb7939da467bb5ef603d1 SHA512 6de85ee49c55f36e20b75c4df48b757e278e6e4dba85ee30ecf33644c5533e0424c55de03b4d37beef33d00bd52000f7d2ddbc3d762d31e8999e2657eea1778d diff --git a/dev-python/dask-expr/dask-expr-1.0.1.ebuild b/dev-python/dask-expr/dask-expr-1.0.1.ebuild new file mode 100644 index 000000000000..f7ece1823e77 --- /dev/null +++ b/dev-python/dask-expr/dask-expr-1.0.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 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="High Level Expressions for Dask" +HOMEPAGE=" + https://github.com/dask/dask-expr/ + https://pypi.org/project/dask-expr/ +" +# pypi tarball removes tests, as of 1.0.1 +SRC_URI=" + https://github.com/dask/dask-expr/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/dask-2024.3.0[${PYTHON_USEDEP}] + >=dev-python/pyarrow-7.0.0[${PYTHON_USEDEP}] + >=dev-python/pandas-2[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/versioneer[${PYTHON_USEDEP}] +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin + sed -i -e '/dask/s:==:>=:' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # requires distributed + 'dask_expr/tests/test_shuffle.py::test_respect_context_shuffle[shuffle]' + ) + local EPYTEST_IGNORE=( + # requires distributed + dask_expr/io/tests/test_parquet.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/dask-expr/metadata.xml b/dev-python/dask-expr/metadata.xml new file mode 100644 index 000000000000..a0d4c5913ba0 --- /dev/null +++ b/dev-python/dask-expr/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + + <origin>gentoo-staging</origin> + <stabilize-allarches/> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/dask/Manifest b/dev-python/dask/Manifest index 23e0283d0fb7..38033fcec0ee 100644 --- a/dev-python/dask/Manifest +++ b/dev-python/dask/Manifest @@ -1,2 +1,3 @@ DIST dask-2024.2.0.gh.tar.gz 9335533 BLAKE2B c23bf3da4624b187f30cf0ca5fe885a705e8e4be9b9d919ff491399d1029d43c4343159acf9bd6a61611af7ecacd8c00bd1cb199176b742ad3c556e2a5da65c9 SHA512 8a0b5c17aa34b309aed370852ddfb25cde220de87fe9c1afd8d88f7a4abad9f4523c90424f8a5cc1d7186850f35071ee10e7a33396ca2c4c4be975783cc5fe2e DIST dask-2024.2.1.gh.tar.gz 9341330 BLAKE2B f5d02fd7389711c5d7b048e541c28af87a8425931277ce035163c16699d7275b802afc90c71256ac268f67390afc9dd4a393df2ddeedac6e378bf787edf43e41 SHA512 3863ec9126ba9fa0cf067a62d3d763d7cf52c6e49cdbfc258336b4536922c46f23443ff8aa4eb49176a38d2a70e03e2d5ca8a2c4b96c98d474654eec4e44c9c5 +DIST dask-2024.3.0.gh.tar.gz 9342813 BLAKE2B d71d3ed2531517a1d01ab72862484b86a1080ecff056c11041ab723e67369794ca3c1f486cd18019f38e49deda65f25acb566e4431c6a1121ddfb930669b20b1 SHA512 be56244c7a96cf43062e7e3658befb73bf318729a2bb906d78ee8ba91a1f4fcfab22e6b01c00cda9bfb8de3f74adf8fc1a5dfb6681e51deb00ba5011dd1dc325 diff --git a/dev-python/dask/dask-2024.3.0.ebuild b/dev-python/dask/dask-2024.3.0.ebuild new file mode 100644 index 000000000000..049b83f95feb --- /dev/null +++ b/dev-python/dask/dask-2024.3.0.ebuild @@ -0,0 +1,96 @@ +# 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="Task scheduling and blocked algorithms for parallel processing" +HOMEPAGE=" + https://www.dask.org/ + https://github.com/dask/dask/ + https://pypi.org/project/dask/ +" +SRC_URI=" + https://github.com/dask/dask/archive/${PV}.tar.gz -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/click-8.1[${PYTHON_USEDEP}] + >=dev-python/cloudpickle-1.5.0[${PYTHON_USEDEP}] + >=dev-python/fsspec-2021.9.0[${PYTHON_USEDEP}] + >=dev-python/numpy-1.21[${PYTHON_USEDEP}] + >=dev-python/pandas-1.3[${PYTHON_USEDEP}] + >=dev-python/packaging-20.0[${PYTHON_USEDEP}] + >=dev-python/partd-1.2.0[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}] + >=dev-python/toolz-0.10.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib-metadata-4.13.0[${PYTHON_USEDEP}] + ' 3.{10..11}) +" +BDEPEND=" + dev-python/toolz[${PYTHON_USEDEP}] + >=dev-python/versioneer-0.28[${PYTHON_USEDEP}] + test? ( + dev-python/dask-expr[${PYTHON_USEDEP}] + dev-python/moto[${PYTHON_USEDEP}] + dev-python/numexpr[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # fails with sqlalchemy-2.0, even though we don't use it x_x + sed -i -e '/RemovedIn20Warning/d' pyproject.toml || die + sed -i -e 's:--cov-config=pyproject.toml::' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # more tests relying on -Werror + "dask/array/tests/test_overlap.py::test_map_overlap_no_depth[None]" + dask/array/tests/test_random.py::test_RandomState_only_funcs + dask/dataframe/tests/test_dataframe.py::test_view + dask/dataframe/tests/test_shuffle.py::test_npartitions_auto_raises_deprecation_warning + # TODO + dask/array/tests/test_reductions.py::test_mean_func_does_not_warn + dask/tests/test_config.py::test__get_paths + dask/array/tests/test_linalg.py::test_solve_assume_a + "dask/dataframe/tests/test_dataframe.py::test_repartition_npartitions[<lambda>0-float-5-1-True]" + "dask/dataframe/tests/test_dataframe.py::test_repartition_npartitions[<lambda>1-float-5-1-True]" + dask/array/tests/test_image.py::test_preprocess + dask/tests/test_system.py::test_cpu_count_cgroups_v2 + # require sqlalchemy<2.0 + dask/dataframe/io/tests/test_sql.py + # crashes + dask/tests/test_base.py::test_tokenize_object_with_recursion_error + # regression with new pandas (?) + dask/dataframe/tests/test_multi.py::test_concat5 + ) + + if ! has_version -b "dev-python/pyarrow[parquet,${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + # fails if pyarrow is installed without USE=parquet + # (optional dep, skipped if it's not installed at all) + dask/dataframe/io/tests/test_parquet.py::test_pyarrow_filter_divisions + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_rerunfailures -m "not network" -o xfail_strict=False +} diff --git a/dev-python/dparse/dparse-0.6.4_beta0.ebuild b/dev-python/dparse/dparse-0.6.4_beta0.ebuild index 65cb3df979ed..a99c3ca0f677 100644 --- a/dev-python/dparse/dparse-0.6.4_beta0.ebuild +++ b/dev-python/dparse/dparse-0.6.4_beta0.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~riscv" +KEYWORDS="~amd64 ~arm64 ~riscv" # Break circular dependency PDEPEND=" diff --git a/dev-python/dtreeviz/dtreeviz-2.2.1.ebuild b/dev-python/dtreeviz/dtreeviz-2.2.1.ebuild index efc9a7c9c272..b62ea6ba706d 100644 --- a/dev-python/dtreeviz/dtreeviz-2.2.1.ebuild +++ b/dev-python/dtreeviz/dtreeviz-2.2.1.ebuild @@ -23,7 +23,7 @@ RDEPEND=" >=dev-python/graphviz-0.9 dev-python/pandas dev-python/numpy - sci-libs/scikit-learn + dev-python/scikit-learn dev-python/matplotlib dev-python/colour " diff --git a/dev-python/ensurepip-wheel/Manifest b/dev-python/ensurepip-wheel/Manifest index 6ef2fbf29cc1..d1bf9ca46d6c 100644 --- a/dev-python/ensurepip-wheel/Manifest +++ b/dev-python/ensurepip-wheel/Manifest @@ -1 +1,2 @@ DIST wheel-0.42.0-py3-none-any.whl 65375 BLAKE2B 36887c4203b1ebd6a675f3977f78cab89bcb1fe99c939648e81e6bef02d99a2559e6a2b4d1cf76957c30d2da9aa937335cf12e19d8b55fd4a04ceb32307c2e27 SHA512 59cbcab7516e698ec3bd9eeadc550920df9406b07c53eb9bc2023db0121ec3ad6ad2556ac3e13c7c7bda55e8131b1e13fb5e51a74906abec3914e11230428fb2 +DIST wheel-0.43.0-py3-none-any.whl 65775 BLAKE2B ae972f78acaf10c074dcfcc208aeb523f932564a9008612c7071b2bc4edae3a9a25f5c93bff37a39e6fd2f8e790db8bc2f500045e3141c8279fb329e8fff45b8 SHA512 5a637264ee0eba127aa72a372b111fe8a61f454fbd3fc02b39590fd2c6bf6f5e9ac4b0e18fd16ff5fdbb9f4b046c9237fd56b055c4cb595fb042e5aa94b336c5 diff --git a/dev-python/ensurepip-wheel/ensurepip-wheel-0.43.0.ebuild b/dev-python/ensurepip-wheel/ensurepip-wheel-0.43.0.ebuild new file mode 100644 index 000000000000..dc4dfd13326e --- /dev/null +++ b/dev-python/ensurepip-wheel/ensurepip-wheel-0.43.0.ebuild @@ -0,0 +1,20 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit pypi + +DESCRIPTION="Shared wheel wheel for use in pip tests" +HOMEPAGE="https://pypi.org/project/wheel/" +SRC_URI="$(pypi_wheel_url "${PN#ensurepip-}")" +S=${DISTDIR} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +src_install() { + insinto /usr/lib/python/ensurepip + doins "${A}" +} diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest index 92fd3d40ccae..c1e15263907d 100644 --- a/dev-python/fakeredis/Manifest +++ b/dev-python/fakeredis/Manifest @@ -1,2 +1,3 @@ DIST fakeredis-2.21.1.tar.gz 128540 BLAKE2B 042c7189f4437149f099eb2bed9dc93cfaea3eb582dd40aaad55bca6c6c4f679a108b3e36006e537be469a3879085f75e0f5c0c7272d2131c431a4483e15cefc SHA512 ba51079896ca345805a0b2474922a41b7c1526123ac3ff0904d3448512b75515b6b11d7e8ec8fe7abdde94a9ac281aaf56d7344809c18c28ad081af4a542a57b DIST fakeredis-2.21.2.tar.gz 128965 BLAKE2B 20891c5a34ac5697435a8b05578fc3ffc1a0b008726ed1836929d6e185aff22073382fd0b80d08f4045d85e3d0da9b682900de79b50864ff7682943a634b2970 SHA512 0ba5e31e403670e864a5364498e26e818641d0fbba59554b78bd0d82a2d944a730d519184c132bdb367761b830bb3a55b43a957770f833891cccd11d528ff540 +DIST fakeredis-2.21.3.tar.gz 129013 BLAKE2B 9c56fadc1090cc886fe08b53404c21b1659f4f9c9f5c3c168f02a7ac71e7e660924aec8ad82dbc18d8c2c11245b4548e71ec68d5e83a0a9fd4e5503b85be0cc0 SHA512 aade7596729b7100ef58a2a87cbd011fd4e60970c0c310ca70748e03b787fd3e0ef6d5c54739e91c839f9451a12ec029d441e3cfb4ed3238425b2cce526d8030 diff --git a/dev-python/fakeredis/fakeredis-2.21.3.ebuild b/dev-python/fakeredis/fakeredis-2.21.3.ebuild new file mode 100644 index 000000000000..a2e2269044d2 --- /dev/null +++ b/dev-python/fakeredis/fakeredis-2.21.3.ebuild @@ -0,0 +1,84 @@ +# 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}] +" +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 + ) + 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/flaky/Manifest b/dev-python/flaky/Manifest index f745c6bb2b5e..ef74eb38ba46 100644 --- a/dev-python/flaky/Manifest +++ b/dev-python/flaky/Manifest @@ -1,2 +1,3 @@ DIST flaky-3.7.0.tar.gz 29591 BLAKE2B 747fbda71055bba937abf3e7b97691c1f4b222f085069d1815d5a9eba669464d2ed5d6dcf1842ae82f1970de5cd5e3aea5b12476bfa2d9282549ad0cc62901e9 SHA512 b399f6e1323d6ca341803ac6f1eb318bf24dc37182d0b49b89bb81b9466dd36271ad6dbb9f48ea6fa4760ee631f1482bb6f49c64f4d4520c40634089c1b64f9a DIST flaky-3.8.0.tar.gz 25227 BLAKE2B 64ad4658058a2e6704b7493553ab3ffa0af7eccf1eaeb6eb5336f3ca5a25c1a187d641e49d983537d8ca0d7c48fdb944e18af788bb364c37ce1a0251cd36bdbb SHA512 3023bb136f9d91ffa149081f6483ae6bf85a4e689e0614b64d92880b3bdc312bfd2e6b1ddea43a33cd0a4a60daf3cedb1b2820bf25960adab21164d599d6fd44 +DIST flaky-3.8.1.tar.gz 25248 BLAKE2B 3ebc05777c5a6b3551b794516579b7985b06b0236889089643c028e55cdc7af777ae3a64f8e0464bd751f6ea4689067465ea94fde624743ddbed84f55e1bbe94 SHA512 486b8aeb9a63c5b4dfb0cf4a0ad86b29e90cdc4a604cdca7676c4b918fc4bb40e185fcc23a205a12916fd2b99316a2a89ca363b3f6efe2ebfb1e93722b4f4547 diff --git a/dev-python/flaky/flaky-3.8.1.ebuild b/dev-python/flaky/flaky-3.8.1.ebuild new file mode 100644 index 000000000000..8359253adb6c --- /dev/null +++ b/dev-python/flaky/flaky-3.8.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Plugin for pytest that automatically reruns flaky tests" +HOMEPAGE=" + https://github.com/box/flaky/ + https://pypi.org/project/flaky/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/genty[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_test() { + epytest -k 'example and not options' --doctest-modules test/test_pytest/ || die + epytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py || die + epytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py || die +} diff --git a/dev-python/google-api-python-client/Manifest b/dev-python/google-api-python-client/Manifest index 69e4bb3fbb78..a5bbd9bed624 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.119.0.tar.gz 11704086 BLAKE2B ff7d2eb62559a042a272a4493ac9eb4e25f0a91dd085c172a6356e952e346d2d79d1818b57bc258725065bd19e72d9e787b021e17672361e8ff02b08b1be65cb SHA512 2acd84b059f3500e45398d2de4d6cab0941c40d7c501414c358992d6f0b305349213a2f96372a4d8b091202c87692e337036c213425b0813cc9203c5d323d966 DIST google-api-python-client-2.120.0.tar.gz 11753415 BLAKE2B 27466bed3bfc473dc1ce8ab6d7e6834b5b5010d39afc20ba8204b379621146e9a1523e18a7d1073cdafd1e7f1840832e371cfedf43689fb825917a73dd64be6c SHA512 303733940a2415e6e18ce4ba2c423ae0e85ce3746f4282698178cf7c2e70244b159fa4a22af6ce39cdeafb8d91db237cc40a1abfef33e1c8aa3add4f031aac23 DIST google-api-python-client-2.121.0.tar.gz 11796461 BLAKE2B 178665ad75d5e8fa2437c909b47cf93c566e4f47cfc2e6a0fd74d9f7de29dc4076bf86299c42341e3c32b3ab20723a89fc062629964dfc2cc02a2eeaa0a1fcb0 SHA512 2bb2d02b93656d349ed65ccaa85dc435aae0ebb7d45edf2dd9b6aecb56cd8866421f4359612830e5d32d0609df12252e550ed514bf3c6b63920a67ffe74f6299 +DIST google-api-python-client-2.122.0.tar.gz 11884905 BLAKE2B e22e9cc1b7e2afebbf0a1793e4d2c96d7e3d4b38e7266213d57b8db2eeedcc6c37a18bd0cc62c50fa84221dfea2bfc1ebd9c0cbe33fe4921662e50dd26ccde5d SHA512 dc17be212b975d700ca8ea333d0b1b7207f48cd870190154e14b94d5ae3f835c8f1fe63ed1ac267b1a1ab8a6916a6d55c479d5728801bbc74f842231eef71049 diff --git a/dev-python/google-api-python-client/google-api-python-client-2.122.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.122.0.ebuild new file mode 100644 index 000000000000..e4c330a85144 --- /dev/null +++ b/dev-python/google-api-python-client/google-api-python-client-2.122.0.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 +PYPI_NO_NORMALIZE=1 +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 ~arm ~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 + ) + + epytest tests +} diff --git a/dev-python/hatch-jupyter-builder/Manifest b/dev-python/hatch-jupyter-builder/Manifest index 7fd144669a59..d354eec2c6e1 100644 --- a/dev-python/hatch-jupyter-builder/Manifest +++ b/dev-python/hatch-jupyter-builder/Manifest @@ -1 +1,2 @@ DIST hatch_jupyter_builder-0.8.3.tar.gz 54754 BLAKE2B d64a90ba0e06dbbcfa3f2d27d88185f68bc6cadd885fd3691e01d129cb1d73d62efd2d230fe80dd2d8d1323b5efa4d3208f099663b2ed082a196a1b8fc39412e SHA512 c4dc0605338bafeeba21cc7260005815654d3e4646296d91af6fb3199be8645a06b2226608e6b0558ee01c7eed682162eefcf686a7e20636031b95c3a11ae265 +DIST hatch_jupyter_builder-0.9.1.tar.gz 55953 BLAKE2B 3239511a86465cb7a199b4e3cd3fa85d9d5501f564f666f296b6358eb766af13635abb47a2354e31788e6c78c5a74174f9844432264da1a9c2f544ac2d7a9ff0 SHA512 705b4e9c1d73f81f7a6962070d9893c32ce61ee49d658ac053f508125b21e425a21732cd9ea8d1e9e1f8c62c2a14c0e7507418c8f2a4f77a5951ee03bbed171d diff --git a/dev-python/hatch-jupyter-builder/hatch-jupyter-builder-0.9.1.ebuild b/dev-python/hatch-jupyter-builder/hatch-jupyter-builder-0.9.1.ebuild new file mode 100644 index 000000000000..97b58d915a02 --- /dev/null +++ b/dev-python/hatch-jupyter-builder/hatch-jupyter-builder-0.9.1.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=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A hatch plugin to help build Jupyter packages" +HOMEPAGE=" + https://pypi.org/project/hatch-jupyter-builder/ + https://github.com/jupyterlab/hatch-jupyter-builder +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/hatchling-1.17[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) + dev-python/twine[${PYTHON_USEDEP}] + ) +" + +EPYTEST_DESELECT=( + # Calls pip, requires internet + tests/test_plugin.py::test_hatch_build +) + +distutils_enable_tests pytest diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index b143a4ef09d1..4f32172afbe3 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -5,3 +5,4 @@ DIST hypothesis-6.98.9.gh.tar.gz 9427046 BLAKE2B c3705e4c780b6e7f427943231ac056f DIST hypothesis-6.99.0.gh.tar.gz 9439501 BLAKE2B 9f46cffaede22381a019a4f7c0b158015f245bf25bc3623090c45c177f57c1cb74fd09a0f01e98d06039a641e486e0cf1ccc10da6f79ebff13914c1197f0fbd7 SHA512 19500c9e0013d4ef4c6b3991d606860e819eb69e68a6975a0c4d225424fe12f44e05662eac0c94f54c6995b12bb73e48d936fc2342a92f3b26760db8ad279ba3 DIST hypothesis-6.99.2.gh.tar.gz 9439856 BLAKE2B 0e7b99ee43ae84b4536f687324c334d7846766ec3422712cc0e215ebed113a3ed270b2fee70322edd5931e6a57c04092566846846e8a2df8587a2d6bd7f33e34 SHA512 ad833e8e4e5a228d06723ba76e80b7e88b849b51b298c2c0b58e82e9409961a212f85530a8e3f06e9e09ca2ebcc8ebd2e1e4992e50a37ba9f692a398aef699fa DIST hypothesis-6.99.4.gh.tar.gz 9440865 BLAKE2B aa7e37077f59e0aa46c83067d9bda8aa72a9d5129c843fe170799c8bf0debee8bb5ff9a757ee67f6b9a858d186a92b3de978c21209a107d3f5ed44905c2cf2db SHA512 bb1ac9d2881a3577a07cd396c01be5e96bfe45e2a0254a8dc2c51a86718fd225e04943a6e451a015378fe2f813621b2a7e9fd4b757d180bdae5cb3a6d7b7133b +DIST hypothesis-6.99.5.gh.tar.gz 9441876 BLAKE2B ab1cce09dda83a89e63aaf6a995816bc82a8d2126d138626159c2f6263536cb477f8c2cb521034f59557b16de2a16e2e0934da34e21246043ad4374882616a5c SHA512 00f72255a0db863c8beb73cbc2298170f600053f94198cd24c3bf276b580971328d9c1ea62b71a70e411005f4b99f5be20a6ef5f0b53f9e7c84042aa05e26fa6 diff --git a/dev-python/hypothesis/hypothesis-6.99.5.ebuild b/dev-python/hypothesis/hypothesis-6.99.5.ebuild new file mode 100644 index 000000000000..1f7054962839 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.99.5.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +CLI_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 multiprocessing optfeature + +TAG=hypothesis-python-${PV} +MY_P=hypothesis-${TAG} +DESCRIPTION="A library for property based testing" +HOMEPAGE=" + https://github.com/HypothesisWorks/hypothesis/ + https://pypi.org/project/hypothesis/ +" +SRC_URI=" + https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/${MY_P}/hypothesis-python" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="cli" + +RDEPEND=" + >=dev-python/attrs-22.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}] + ' 3.9 3.10) + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' "${CLI_COMPAT[@]}") + ) +" +BDEPEND=" + test? ( + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + !!<dev-python/requests-toolbelt-0.10.1 + ) +" + +distutils_enable_tests pytest + +python_test() { + # subtests are broken by warnings from random plugins + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,_hypothesis_pytestplugin + local -x HYPOTHESIS_NO_PLUGINS=1 + + # NB: paths need to be relative to pytest.ini, + # i.e. start with hypothesis-python/ + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # failing due to warnings from numpy/cython + hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture + ) + ;; + esac + + epytest -o filterwarnings= -n "$(makeopts_jobs)" --dist=worksteal \ + tests/cover tests/pytest tests/quality +} + +python_install() { + distutils-r1_python_install + if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then + rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die + fi +} + +pkg_postinst() { + optfeature "datetime support" dev-python/pytz + optfeature "dateutil support" dev-python/python-dateutil + optfeature "numpy support" dev-python/numpy + optfeature "django support" dev-python/django dev-python/pytz + optfeature "pandas support" dev-python/pandas + optfeature "pytest support" dev-python/pytest +} diff --git a/dev-python/jupyter-client/Manifest b/dev-python/jupyter-client/Manifest index 57f31a992f86..2e9ecc2a00d7 100644 --- a/dev-python/jupyter-client/Manifest +++ b/dev-python/jupyter-client/Manifest @@ -1 +1,2 @@ DIST jupyter_client-8.6.0.tar.gz 339721 BLAKE2B 80786453526899cfff2e5335009d90f0dd636da33a5778868ba8913be488e9c1512beffc1b5e658dee215bdee9e264c9a5c6621490c2efb8f4784557735f736e SHA512 84e913c46f5e0298b699c4d1c6de27fd2b9861bc29f7a5a456c20c7100aaedf399eb6c09ff28bd3bb20945a3bea84bd0bda8688f32815fa7bdd375f091817e4a +DIST jupyter_client-8.6.1.tar.gz 340957 BLAKE2B a9a7e7818a463927ec11a4adc6758addef38fae45e29be59b388951715898e5bc81e02035c33fa6e4a0208db47a87a2b793258f4a85739925827895ea357b8f8 SHA512 be70d1f250da6698998a5c523d733da386940952487335e615160e04600e00e7ff170cae7f0c03e3a000ecca2bac26855f100c95f2759983c0b50fde10ed8223 diff --git a/dev-python/jupyter-client/jupyter-client-8.6.1.ebuild b/dev-python/jupyter-client/jupyter-client-8.6.1.ebuild new file mode 100644 index 000000000000..3132a11a79c7 --- /dev/null +++ b/dev-python/jupyter-client/jupyter-client-8.6.1.ebuild @@ -0,0 +1,56 @@ +# 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} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="Jupyter protocol implementation and client libraries" +HOMEPAGE=" + https://jupyter.org/ + https://github.com/jupyter/jupyter_client/ + https://pypi.org/project/jupyter-client/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +RDEPEND=" + >=dev-python/jupyter-core-5.1[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}] + >=dev-python/pyzmq-23.0[${PYTHON_USEDEP}] + >=dev-python/tornado-6.0[${PYTHON_USEDEP}] + dev-python/traitlets[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib-metadata-4.8.3[${PYTHON_USEDEP}] + ' 3.{8,9}) +" +BDEPEND=" + test? ( + >=dev-python/ipykernel-6.14[${PYTHON_USEDEP}] + >=dev-python/pytest-asyncio-0.18[${PYTHON_USEDEP}] + >=dev-python/pytest-jupyter-0.4.1[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # TODO: times out + tests/test_client.py::TestAsyncKernelClient::test_input_request + # TODO + tests/test_multikernelmanager.py::TestKernelManager::test_tcp_cinfo + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -o tmp_path_retention_policy=all \ + -p asyncio -p rerunfailures --reruns=3 -p timeout +} diff --git a/dev-python/jupyter-core/Manifest b/dev-python/jupyter-core/Manifest index ca3b2b86a659..8ddabec39ae5 100644 --- a/dev-python/jupyter-core/Manifest +++ b/dev-python/jupyter-core/Manifest @@ -1 +1,2 @@ DIST jupyter_core-5.7.1.tar.gz 87137 BLAKE2B c1ec5a5fd079b50c12559bb1f5dfd54b43e530142d0062b48b3bbbccf8e560907f8c150206ce5f3b510b89d64ae87e4e81b908aaa7a6a17c3a6775b59fef42fd SHA512 e7042eadc2b3b8254a9a728bb3549c744a74c10cbdcc1dda493a6d2c0a2d9c8496edc2c787c78104f93a871879015d411d5260eda470f7a7d087b5cf5dce44cb +DIST jupyter_core-5.7.2.tar.gz 87629 BLAKE2B b8d460f239419c7f648a856e55e1570646b6a6cd38ee900bbeac0aa64965f8868a88be20f6b890f2f424f0752f0da44d79abd0b3d18d275ac3f9c574ad7d18b4 SHA512 1eb4766dbc10afdcbc469853b391a88a2551a0ee2b2a3f93a316b407371ca10f546746aa4a327f8c0423cc10e4de022630c04ca7547dcf7ee8d9a911e9a0e572 diff --git a/dev-python/jupyter-core/jupyter-core-5.7.2.ebuild b/dev-python/jupyter-core/jupyter-core-5.7.2.ebuild new file mode 100644 index 000000000000..c11e20025caa --- /dev/null +++ b/dev-python/jupyter-core/jupyter-core-5.7.2.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=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Core common functionality of Jupyter projects" +HOMEPAGE=" + https://jupyter.org/ + https://github.com/jupyter/jupyter_core/ + https://pypi.org/project/jupyter-core/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +RDEPEND=" + >=dev-python/platformdirs-2.5[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.11.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/ipython-4.0.1[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs \ + dev-python/myst-parser \ + dev-python/pydata-sphinx-theme \ + dev-python/sphinx-autodoc-typehints \ + dev-python/sphinxcontrib-github-alt \ + dev-python/sphinxcontrib-spelling \ + dev-python/traitlets +distutils_enable_tests pytest diff --git a/dev-python/jupyter-events/Manifest b/dev-python/jupyter-events/Manifest index b142abbaa9c8..071e218ae4bf 100644 --- a/dev-python/jupyter-events/Manifest +++ b/dev-python/jupyter-events/Manifest @@ -1 +1,2 @@ DIST jupyter_events-0.9.0.tar.gz 60502 BLAKE2B faf2c7b1b1403c809e98673dc2600750d5c18ff2578b7f1f6f569fa5ac5e955384eda69f0d281a8aa504a1bbeba639931b0fc01bd117b1621fdeb64d4c6881bb SHA512 7b70edd79b80a3d73f0fedd21f0dba8060cb190b0dc8a6d7d9d11fdfd5b219c7a2f54438f0888c062e00b7def37fa0d7cfb0213bfa8d93737a83802079e4b103 +DIST jupyter_events-0.9.1.tar.gz 61082 BLAKE2B 7a2b5ddac58a03656ac0dbe451fe6ebe947f63dcad5d652883d67aa9319deadcf6a5e12304d1c9042fb098e848e155ff7e4254d65c5db1113e8311be685e8b83 SHA512 2c3984165287391462386583f32f492f037bbcb778025420a5fc0c28699bbf01a2c55100e227b8a14c3a8797220b7a3cf644975ecc7a09ee80102f8ef815c91c diff --git a/dev-python/jupyter-events/jupyter-events-0.9.1.ebuild b/dev-python/jupyter-events/jupyter-events-0.9.1.ebuild new file mode 100644 index 000000000000..816c9e323fbd --- /dev/null +++ b/dev-python/jupyter-events/jupyter-events-0.9.1.ebuild @@ -0,0 +1,41 @@ +# 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Jupyter Event System library" +HOMEPAGE=" + https://jupyter.org/ + https://github.com/jupyter/jupyter_events/ + https://pypi.org/project/jupyter-events/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# jsonschema[format-nongpl] deps are always on in our ebuild +RDEPEND=" + >=dev-python/jsonschema-4.18.0[${PYTHON_USEDEP}] + >=dev-python/python-json-logger-2.0.4[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.3[${PYTHON_USEDEP}] + dev-python/referencing[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/click[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-console-scripts[${PYTHON_USEDEP}] + dev-python/rich[${PYTHON_USEDEP}] + ) +" + +# TODO: package jupyterlite-sphinx +# distutils_enable_sphinx docs +distutils_enable_tests pytest diff --git a/dev-python/jupyter-kernel-test/Manifest b/dev-python/jupyter-kernel-test/Manifest index 55071eb7764c..8d7c00832bbb 100644 --- a/dev-python/jupyter-kernel-test/Manifest +++ b/dev-python/jupyter-kernel-test/Manifest @@ -1 +1,2 @@ DIST jupyter_kernel_test-0.6.0.tar.gz 15445 BLAKE2B 7739ad85edce96b2bd41ee2af2552f4643a301e33978438f546fb7dbe6e449e89ee1a5dc588af30b4df9786f6cc627fe46c2d43bac43cad86693f0a6d0f9bc10 SHA512 ff518d89f9a32f714a9335e4ee151f205b629399dab84217466ca018556d927a3f91c4cb8b599879946b5332b2b3367c62a6bcc10e20cf43c3f2c3b257bc0d90 +DIST jupyter_kernel_test-0.7.0.tar.gz 17122 BLAKE2B dea62f5960cbf5fcd6d5b3592800d1772c42ff6332e448c2f4ac8ee90952696243d44a02b8dfe1bc4e3b02c03b299b4c25649175ba96701c2a793bf104e3b781 SHA512 f44a230ab28584fd86f21a528309f78a90cd3711a890b6e3b91af85e73d7556b9849df188dcd5be356564bd9b3bf9d96c54865ce0c2145c48afdbe3c65b0fe9a diff --git a/dev-python/jupyter-kernel-test/jupyter-kernel-test-0.7.0.ebuild b/dev-python/jupyter-kernel-test/jupyter-kernel-test-0.7.0.ebuild new file mode 100644 index 000000000000..c23789f609b8 --- /dev/null +++ b/dev-python/jupyter-kernel-test/jupyter-kernel-test-0.7.0.ebuild @@ -0,0 +1,31 @@ +# 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 pypi + +DESCRIPTION="A tool for testing Jupyter kernels" +HOMEPAGE=" + https://github.com/jupyter/jupyter_kernel_test/ + https://pypi.org/project/jupyter-kernel-test/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/jupyter-client-6.1.13[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/ipykernel[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest diff --git a/dev-python/jupyter-server-terminals/Manifest b/dev-python/jupyter-server-terminals/Manifest index e7d430d0a2ed..c0e554fca55e 100644 --- a/dev-python/jupyter-server-terminals/Manifest +++ b/dev-python/jupyter-server-terminals/Manifest @@ -1 +1,2 @@ DIST jupyter_server_terminals-0.5.2.tar.gz 31168 BLAKE2B 9a99f15b801b3a347ed694ee5c2ed91118d95683523645f326a851c65c7cdb389d5343cd992bbcdde49fe495fbcfd88088ebe5a35350a164313adcfe5d7a08e6 SHA512 333a19e647767e800d93376b45850263350400eed77036ca42637bef48a753696b3d3d3ad5153da40d858a623bb2ee616e636caa77e484a45da46f5f5eb32df0 +DIST jupyter_server_terminals-0.5.3.tar.gz 31430 BLAKE2B 1633bd67b775a5d76870530705d13adea49bd5f583cf93a7cf7e713d8fa75e50012ff5c1bdd9b23ad0f3636347618cf01c04e1c546172dbe1031b507b597fb25 SHA512 dcb9d460b9f2fde1a2614dd202c25329bea5870846d0431af21659ab4fef2ea1671beea73c8f61bffb224984a39eb0b69bac12244426f940d9bc6a82202393c9 diff --git a/dev-python/jupyter-server-terminals/jupyter-server-terminals-0.5.3.ebuild b/dev-python/jupyter-server-terminals/jupyter-server-terminals-0.5.3.ebuild new file mode 100644 index 000000000000..5c641cfc4123 --- /dev/null +++ b/dev-python/jupyter-server-terminals/jupyter-server-terminals-0.5.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A Jupyter Server Extension Providing Terminals" +HOMEPAGE=" + https://jupyter.org/ + https://github.com/jupyter-server/jupyter_server_terminals/ + https://pypi.org/project/jupyter-server-terminals/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/terminado[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/jupyter-server[${PYTHON_USEDEP}] + dev-python/pytest-jupyter[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +EPYTEST_DESELECT=( + # Fails if shell is not bash + tests/test_terminal.py::test_terminal_create_with_cwd + tests/test_terminal.py::test_terminal_create_with_relative_cwd +) + +distutils_enable_tests pytest + +python_install_all() { + distutils-r1_python_install_all + mv "${ED}/usr/etc" "${ED}/etc" || die +} diff --git a/dev-python/matplotlib/matplotlib-3.8.3.ebuild b/dev-python/matplotlib/matplotlib-3.8.3.ebuild index 1e9208b37d73..bf6da2ebe292 100644 --- a/dev-python/matplotlib/matplotlib-3.8.3.ebuild +++ b/dev-python/matplotlib/matplotlib-3.8.3.ebuild @@ -29,7 +29,7 @@ SRC_URI+=" # Fonts: BitstreamVera, OFL-1.1 LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" SLOT="0" -KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos" IUSE="cairo doc excel gtk3 latex qt5 tk webagg wxwidgets" # internal copy of pycxx highly patched diff --git a/dev-python/mkdocs-git-authors-plugin/Manifest b/dev-python/mkdocs-git-authors-plugin/Manifest index 752a2a427cca..eba5781312a4 100644 --- a/dev-python/mkdocs-git-authors-plugin/Manifest +++ b/dev-python/mkdocs-git-authors-plugin/Manifest @@ -1 +1,2 @@ DIST mkdocs-git-authors-plugin-0.7.2.gh.tar.gz 29300 BLAKE2B a93e87cde212fe15c1986bfdeeef207637b1bb10de1f864b0014b6dc0c74a64dbe152eae33c176adbb0e148cebd15717a307f874fd218e638835ce0687de14d8 SHA512 6fdaa7d06f0f0326b4123be546f0ad78ee3769a0048528e866b5c787ccaad9ba33e9c47b3597eea5b43d91f949d07b5cae9eca167b12978c7f577314e55c2721 +DIST mkdocs-git-authors-plugin-0.8.0.gh.tar.gz 30080 BLAKE2B 08c0eee392ef94caf30f176f5c8923b4e3c5d951a36348bbeec4396052ee492715b99aa4f8824348728296e5276747083340943bd21f7850abd0ccfb3a2bf12c SHA512 4620c8cccf69eb8ec3010ac7483a3df1ab43bcf8e0837399f46383d9947fdddc0c70d7d8405c820f1cb4b773724ca7006f2cc3bdd5559c107a2db8e3ceb8b38e diff --git a/dev-python/mkdocs-git-authors-plugin/mkdocs-git-authors-plugin-0.8.0.ebuild b/dev-python/mkdocs-git-authors-plugin/mkdocs-git-authors-plugin-0.8.0.ebuild new file mode 100644 index 000000000000..2b9917d71bf5 --- /dev/null +++ b/dev-python/mkdocs-git-authors-plugin/mkdocs-git-authors-plugin-0.8.0.ebuild @@ -0,0 +1,55 @@ +# 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} ) + +# Requires self to be installed to build docs +# TODO: Do this a bit better +DOCS_BUILDER="mkdocs" +DOCS_DEPEND=" + dev-python/regex + dev-python/mkdocs-material + dev-python/mkdocs-git-authors-plugin +" +DOCS_INITIALIZE_GIT=1 + +inherit distutils-r1 docs + +DESCRIPTION="Mkdocs plugin to display git authors of a page" +HOMEPAGE=" + https://github.com/timvink/mkdocs-git-authors-plugin/ + https://pypi.org/project/mkdocs-git-authors-plugin/ +" +SRC_URI="https://github.com/timvink/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" + +# Tests are broken outside of upstream git repo +RESTRICT="test" + +RDEPEND=" + dev-python/GitPython[${PYTHON_USEDEP}] + >=dev-python/mkdocs-1.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/click[${PYTHON_USEDEP}] + dev-python/mkdocs-material[${PYTHON_USEDEP}] + dev-python/mkdocs-git-revision-date-localized-plugin[${PYTHON_USEDEP}] + dev-vcs/git + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # mkdocs-git-authors tests need git repo + use test && initialize_git_repo + + distutils-r1_python_prepare_all +} diff --git a/dev-python/nbclient/Manifest b/dev-python/nbclient/Manifest index 24148a463efb..fd7ff0ce09da 100644 --- a/dev-python/nbclient/Manifest +++ b/dev-python/nbclient/Manifest @@ -1 +1,3 @@ +DIST nbclient-0.10.0.tar.gz 62246 BLAKE2B 4fdbbceb6f37c0f96a448c343d910c8ac988ed337590c9f8068eee328fbc7f58c882b15a8b0f7fe03491a8751512ad76497d3a0e8a19783ef24001acd901bd67 SHA512 1635c8af91839b9e651fbada7aca3699ebf92c0f4f7f47d9901f9977f56f2b31113c1229d1512bdb200c6c729e1e965649031729a60229d463e6b39f75ac9dc2 DIST nbclient-0.9.0.tar.gz 60606 BLAKE2B a734e317cd71f4199a87af0ea6c7a8a9982c60c4e690eeb99dbe4681ed7d9f8a45ae064bb8b92acf084da722ccbec36bbedb7ddc61577103be1492745f84cd9a SHA512 dc6409e1f765e01978f7e5417269d82c2a001dc9a642f474b4d5cd28e34c969a68ae956aed55df3e82315bd457320e2bd25cbc13af2ea1f59a46f9d327d5eef2 +DIST nbclient-0.9.1.tar.gz 60854 BLAKE2B eff4b563e78c1b5a5590900ce03b443b2334f68375eae18d58635b541bc7e9cb917e90d622ef285550c5b88c627fddfac3dc34aa1d11776bfd5bb686043c423a SHA512 8388b9ff390c60ab44f12c29fa8662c7751cbb6a7d0683fe2e3f01ea93c6e95480f2199433aac4be527f81466f7dd040c7ce4464dd8e1f06884031e60953ba80 diff --git a/dev-python/nbclient/nbclient-0.10.0.ebuild b/dev-python/nbclient/nbclient-0.10.0.ebuild new file mode 100644 index 000000000000..66f5ac228dcd --- /dev/null +++ b/dev-python/nbclient/nbclient-0.10.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 2020-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="A client library for executing Jupyter notebooks" +HOMEPAGE=" + https://nbclient.readthedocs.io/en/latest/ + https://github.com/jupyter/nbclient/ + https://pypi.org/project/nbclient/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/jupyter-client-6.1.12[${PYTHON_USEDEP}] + >=dev-python/jupyter-core-5.1.0[${PYTHON_USEDEP}] + >=dev-python/nbformat-5.0[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + >=dev-python/ipykernel-6.19.3[${PYTHON_USEDEP}] + dev-python/ipywidgets[${PYTHON_USEDEP}] + dev-python/nbconvert[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/testpath[${PYTHON_USEDEP}] + dev-python/xmltodict[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # hangs? + 'tests/test_client.py::test_run_all_notebooks[Interrupt.ipynb-opts6]' + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p asyncio -p rerunfailures --reruns=3 +} diff --git a/dev-python/nbclient/nbclient-0.9.1.ebuild b/dev-python/nbclient/nbclient-0.9.1.ebuild new file mode 100644 index 000000000000..3a4999421636 --- /dev/null +++ b/dev-python/nbclient/nbclient-0.9.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 2020-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="A client library for executing Jupyter notebooks" +HOMEPAGE=" + https://nbclient.readthedocs.io/en/latest/ + https://github.com/jupyter/nbclient/ + https://pypi.org/project/nbclient/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/jupyter-client-6.1.12[${PYTHON_USEDEP}] + >=dev-python/jupyter-core-5.1.0[${PYTHON_USEDEP}] + >=dev-python/nbformat-5.0[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + >=dev-python/ipykernel-6.19.3[${PYTHON_USEDEP}] + dev-python/ipywidgets[${PYTHON_USEDEP}] + dev-python/nbconvert[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/testpath[${PYTHON_USEDEP}] + dev-python/xmltodict[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # hangs? + 'tests/test_client.py::test_run_all_notebooks[Interrupt.ipynb-opts6]' +) diff --git a/dev-python/nbformat/Manifest b/dev-python/nbformat/Manifest index 2854d2600c5d..1547499d24aa 100644 --- a/dev-python/nbformat/Manifest +++ b/dev-python/nbformat/Manifest @@ -1 +1,2 @@ +DIST nbformat-5.10.2.tar.gz 142443 BLAKE2B 7089b27f2ed05e2240e12f583ed6d73aeace54939f235cdd41dede0f410a15927dd4223af0f9a8072bdaef15c3c737941c69313ee27abf69784df302677624b1 SHA512 a68e3261bd5a3126bb31a99fce3e85daad3651a39844f1fadf499c25af76b3b544188a7ece4d248534c4b3f3d3eca7a1caff17f0beaec9b866e989e76c666316 DIST nbformat-5.9.2.tar.gz 141264 BLAKE2B 71f5bb447d675b10276565cb53ac193963e5161fd27e925d639e7aa63f1e69db8903974d2f924ad5456940c4b904aba33d8ab10772fdb70e7e67974a90d1f3d6 SHA512 886a03cf95b39cdca48ae46d4946cee0f3dc1f5fa0e9dac7c6184b4c3e326adb739bd9da28032868a973577aa949feb5ae95a84017755948610ef7f208ebc5db diff --git a/dev-python/nbformat/nbformat-5.10.2.ebuild b/dev-python/nbformat/nbformat-5.10.2.ebuild new file mode 100644 index 000000000000..10f41216bb66 --- /dev/null +++ b/dev-python/nbformat/nbformat-5.10.2.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=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE='sqlite' + +inherit distutils-r1 pypi + +DESCRIPTION="Reference implementation of the Jupyter Notebook format" +HOMEPAGE=" + https://jupyter.org/ + https://github.com/jupyter/nbformat/ + https://pypi.org/project/nbformat/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/fastjsonschema[${PYTHON_USEDEP}] + >=dev-python/jsonschema-2.6[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.1[${PYTHON_USEDEP}] + dev-python/jupyter-core[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/testpath[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs \ + dev-python/myst-parser \ + dev-python/pydata-sphinx-theme \ + dev-python/sphinxcontrib-github-alt \ + dev-python/sphinxcontrib-spelling +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}/nbformat-5.7.1-no-node.patch" +) + +EPYTEST_IGNORE=( + # requires pep440 package, which is not really relevant for us + tests/test_api.py +) diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest index d3efe8e51057..be6d662e6b99 100644 --- a/dev-python/numpy/Manifest +++ b/dev-python/numpy/Manifest @@ -2,3 +2,4 @@ DIST numpy-1.26.1.tar.gz 15651806 BLAKE2B 2b7fe13675b6f11b8f19c2dc671c84418fa959 DIST numpy-1.26.2.tar.gz 15664248 BLAKE2B 006e511e27c009f27bf4bf6c8c30c84a4bf0e8b1ff53f4e031089f28c1cfd168ec0d037952fe8f377f9a1d6e1ab642a84c095edeee5696b18053fd5cb7550586 SHA512 9986cd34dda921fbc152c3be0e39f003035787ea1e055452b9259d02c423d413080a0c7e4e19fd38d9e28f66d428719d6ebe784c24ae17249ff56494950daf4b DIST numpy-1.26.3.tar.gz 15679696 BLAKE2B 4c063e1a495b187049b5604686c0411b056fd03a69b5044cff10693694a7f055c87a017334cf8d05aa4a4cb87896fdf9203f51742d3cf83dbaf611b0e6e4091a SHA512 25556b41e2db9cfc52c1dfa61b05e4fc1b7b6df3b169f365375575d1146857fdb5ff91ca1508b968c296b7a06e5c6d95e82c41cdc3561587a46d3aa178f6305d DIST numpy-1.26.4.tar.gz 15786129 BLAKE2B ee759d3a857111bc494d5e989a7b005375d942b2a89cda69be4a3bd7c6cb195003fd2a8a0535f1858d8977ff688b0ec36360dcba9c3160206eedce5e28f191ef SHA512 f7121ab4099fa0686f9c095d456baa4a5869d651d7b7a06385f885f329cf08f11024b5df5e7b4ee705970062a8102ec4f709512eabbfd5c9fccce4ef83b9c208 +DIST numpy-2.0.0b1.tar.gz 18310319 BLAKE2B 62e3aee962f744bff4b3faa2427dbaa30d8012e76be383f3df5cd354a7d618cb6753940093413cb12928b971ee69d4f367e18e2c5c17cb41ee159d1f25540a99 SHA512 7072e64e954089df83384f45e2e5ac51ca647ab52a9552e7d2279a7d14853b3d17fb00ab33ed7c8c5987b87d33b44effa6e99c3e901209bcd8b16a2db539da45 diff --git a/dev-python/numpy/numpy-1.26.4.ebuild b/dev-python/numpy/numpy-1.26.4.ebuild index 581b3f749f26..4881f17ffed9 100644 --- a/dev-python/numpy/numpy-1.26.4.ebuild +++ b/dev-python/numpy/numpy-1.26.4.ebuild @@ -24,7 +24,7 @@ SLOT="0" # is barely supported anyway, see bug #914358. IUSE="+lapack" if [[ ${PV} != *_[rab]* ]] ; then - KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc ~x86" + KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc ~x86" fi RDEPEND=" diff --git a/dev-python/numpy/numpy-2.0.0_beta1.ebuild b/dev-python/numpy/numpy-2.0.0_beta1.ebuild new file mode 100644 index 000000000000..08ed1a68bd6c --- /dev/null +++ b/dev-python/numpy/numpy-2.0.0_beta1.ebuild @@ -0,0 +1,169 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=meson-python +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="threads(+)" +FORTRAN_NEEDED=lapack + +inherit distutils-r1 flag-o-matic fortran-2 pypi toolchain-funcs + +DESCRIPTION="Fast array and numerical python library" +HOMEPAGE=" + https://numpy.org/ + https://github.com/numpy/numpy/ + https://pypi.org/project/numpy/ +" + +LICENSE="BSD" +SLOT="0" +# +lapack because the internal fallbacks are pretty slow. Building without blas +# is barely supported anyway, see bug #914358. +IUSE="+lapack" +if [[ ${PV} != *_[rab]* ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +RDEPEND=" + lapack? ( + >=virtual/cblas-3.8 + >=virtual/lapack-3.8 + ) +" +BDEPEND=" + ${RDEPEND} + >=dev-build/meson-1.1.0 + >=dev-python/cython-3.0.6[${PYTHON_USEDEP}] + lapack? ( + virtual/pkgconfig + ) + test? ( + $(python_gen_cond_dep ' + >=dev-python/cffi-1.14.0[${PYTHON_USEDEP}] + ' 'python*') + dev-python/charset-normalizer[${PYTHON_USEDEP}] + >=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}] + >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + append-flags -fno-strict-aliasing + + distutils-r1_python_prepare_all +} + +python_configure_all() { + DISTUTILS_ARGS=( + -Dallow-noblas=$(usex !lapack true false) + -Dblas=$(usev lapack cblas) + -Dlapack=$(usev lapack lapack) + # TODO: cpu-* options + ) +} + +python_test() { + local EPYTEST_DESELECT=( + # Very disk-and-memory-hungry + lib/tests/test_io.py::TestSaveTxt::test_large_zip + lib/tests/test_io.py::TestSavezLoad::test_closing_fid + lib/tests/test_io.py::TestSavezLoad::test_closing_zipfile_after_load + + # Precision problems + _core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals + + # Runs the whole test suite recursively, that's just crazy + core/tests/test_mem_policy.py::test_new_policy + + typing/tests/test_typing.py + # Uses huge amount of memory + core/tests/test_mem_overlap.py + 'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' + + # TODO: crashes + lib/tests/test_histograms.py::TestHistogram::test_big_arrays + + # likely a test problem + # https://github.com/numpy/numpy/issues/25135 + core/tests/test_cython.py::test_conv_intp + + # flaky + f2py/tests/test_crackfortran.py + f2py/tests/test_data.py::TestData{,F77}::test_crackedlines + ) + + if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then + # Degenerate case of arm32 chroot on arm64, bug #774108 + EPYTEST_DESELECT+=( + core/tests/test_cpu_features.py::Test_ARM_Features::test_features + ) + fi + + if use x86 ; then + EPYTEST_DESELECT+=( + # https://github.com/numpy/numpy/issues/18388 + core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow + # https://github.com/numpy/numpy/issues/18387 + random/tests/test_generator_mt19937.py::TestRandomDist::test_pareto + # more precision problems + core/tests/test_einsum.py::TestEinsum::test_einsum_sums_int16 + ) + fi + + if use hppa ; then + EPYTEST_DESELECT+=( + # TODO: Get selectedrealkind updated! + # bug #907228 + # https://github.com/numpy/numpy/issues/3424 (https://github.com/numpy/numpy/issues/3424#issuecomment-412369029) + # https://github.com/numpy/numpy/pull/21785 + f2py/tests/test_kind.py::TestKind::test_real + f2py/tests/test_kind.py::TestKind::test_quad_precision + ) + fi + + if [[ $(tc-endian) == "big" ]] ; then + # https://github.com/numpy/numpy/issues/11831 and bug #707116 + EPYTEST_DESELECT+=( + 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]' + 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]' + 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]' + 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]' + f2py/tests/test_kind.py::TestKind::test_int + ) + fi + + case "${ABI}" in + alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) + EPYTEST_DESELECT+=( + # too large for 32-bit platforms + core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array + 'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]' + 'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' + ) + ;; + *) + ;; + esac + + if ! has_version -b "~${CATEGORY}/${P}[${PYTHON_USEDEP}]" ; then + # depends on importing numpy.random from system namespace + EPYTEST_DESELECT+=( + 'random/tests/test_extending.py::test_cython' + ) + fi + + rm -rf numpy || die + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest --pyargs numpy +} + +python_install_all() { + local DOCS=( LICENSE.txt README.md THANKS.txt ) + distutils-r1_python_install_all +} diff --git a/dev-python/oct2py/Manifest b/dev-python/oct2py/Manifest index abbc0fffcf51..eaba7f3c8e9e 100644 --- a/dev-python/oct2py/Manifest +++ b/dev-python/oct2py/Manifest @@ -1 +1,2 @@ DIST oct2py-5.6.0.tar.gz 437965 BLAKE2B e22aca80608e1132f2cb8936e9dac7c97bd8e5463b6997dd80f0ed567af2a59a28b4c58995b11e2c1a970bc0bde81afda432d8ce5306b2eb5417b1f75b8b4b19 SHA512 d5eae408812358e48c9a72e823dc06a7556c09176170def00c53aacba75c6568357afe8e9a079c02e08c88ee1e7f1aa4284508471680b5542894745b19e7af36 +DIST oct2py-5.6.1.tar.gz 440686 BLAKE2B 5255b0413a655f74db243d8d3a338a8468400af0c392a7ae5c6ac894edd8fa526acda5c8dbad7c5d8414dc9de3f4fa8c4aa055a396238464556186edd9500b1b SHA512 2485c7434666f8d580396759024e4f807c6e14f5d0f30a0f2449373488735c6ee91b6a8bdde8d951e0371790cd7673710986f6e3b6af0c77b3a36e92bb1c1285 diff --git a/dev-python/oct2py/oct2py-5.6.1.ebuild b/dev-python/oct2py/oct2py-5.6.1.ebuild new file mode 100644 index 000000000000..9e338f47723e --- /dev/null +++ b/dev-python/oct2py/oct2py-5.6.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +DISTUTILS_USE_PEP517=hatchling +inherit distutils-r1 pypi + +DESCRIPTION="Python to GNU Octave bridge" +HOMEPAGE=" + https://github.com/blink1073/oct2py + https://blink1073.github.io/oct2py/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="examples" + +RDEPEND=" + >=dev-python/numpy-1.12[${PYTHON_USEDEP}] + >=dev-python/octave_kernel-0.34.0[${PYTHON_USEDEP}] + >=dev-python/scipy-0.17[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/nbconvert[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + )" + +EPYTEST_DESELECT=( + # No graphics toolkit available: 743589 + "oct2py/ipython/tests/test_octavemagic.py::OctaveMagicTest::test_octave_plot" +) + +distutils_enable_sphinx docs/source \ + dev-python/numpydoc \ + dev-python/pydata-sphinx-theme \ + dev-python/myst-parser \ + dev-python/sphinxcontrib-spelling +distutils_enable_tests pytest + +python_install_all() { + distutils-r1_python_install_all + + if use examples; then + docinto examples + dodoc -r example/. + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/dev-python/pandas/pandas-2.2.0.ebuild b/dev-python/pandas/pandas-2.2.0.ebuild index 8ef99c36c69f..472ed770bb05 100644 --- a/dev-python/pandas/pandas-2.2.0.ebuild +++ b/dev-python/pandas/pandas-2.2.0.ebuild @@ -21,7 +21,7 @@ HOMEPAGE=" SLOT="0" LICENSE="BSD" -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc x86" IUSE="full-support minimal test X" RESTRICT="!test? ( test )" diff --git a/dev-python/pipenv/Manifest b/dev-python/pipenv/Manifest index 98862f7c9984..a78ee4044bd4 100644 --- a/dev-python/pipenv/Manifest +++ b/dev-python/pipenv/Manifest @@ -1,2 +1 @@ -DIST pipenv-2023.11.15.gh.tar.gz 10837840 BLAKE2B 611bac2cda46236264026bb3aa4183e4458dfee07dc43640f902bb85840033beb32e4617584d8a243c640d84893368f91a1d91454cdfd477d6c075fc56a04dd2 SHA512 662190a43529724e24a2e1e4b967867c7fa4ddd99fd903d45659e2a685880b2a0086df69dfb3ed3c2973da8aec5604be6935d21d8ce5e224b5418a6adabc12b7 -DIST pipenv-2023.7.11.gh.tar.gz 10828051 BLAKE2B 3eeab9c5328dc5914e7e024f07bf105241ca777187ce50d5765f0ca1bb7270d8c6bda6a842b188fcacb57ba8bf5d0ed5f7b29b9edce5d45e485c8079691ac991 SHA512 d37cf030f4f77d4c95d0f0883140b1e829d4473b43fdc3f61c3d39827fdf9c98ecfc794d3eacf3ebedb55dadb018416c1250938a193a6382ac61ce859d19e193 +DIST pipenv-2023.12.1.gh.tar.gz 10728288 BLAKE2B dc9425303e24652b797c9f9f9f6cc6f13f30e32775fe0458ee472af5d859ee245c58f3adb6040390bd53d3e1efd6493f930c7336e69956516b36e26e70ca14b7 SHA512 caadbeb32c0445abfae65d86df8d9a5875e71c1a0a281193194ae61c0b095c8f9361a5dd67f92acd5b64d8dc1d877324e959357470894d7d60ceb1a619c831db diff --git a/dev-python/pipenv/files/pipenv-2022.9.24-inject-site-packages.patch b/dev-python/pipenv/files/pipenv-2022.9.24-inject-site-packages.patch deleted file mode 100644 index 04cf0ed9e317..000000000000 --- a/dev-python/pipenv/files/pipenv-2022.9.24-inject-site-packages.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff --git a/pipenv/patched/pip/__main__.py b/pipenv/patched/pip/__main__.py -index b424ab20..79d52838 100644 ---- a/pipenv/patched/pip/__main__.py -+++ b/pipenv/patched/pip/__main__.py -@@ -28,6 +28,13 @@ if __name__ == "__main__": - ) - import importlib.util - import sys -+ -+ -+ SITE_PACKAGES_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) -+ -+ # Inject site directory into system path. -+ sys.path.insert(-1, SITE_PACKAGES_ROOT) -+ - spec = importlib.util.spec_from_file_location( - "pipenv", location=os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "__init__.py")) - pipenv = importlib.util.module_from_spec(spec) -diff --git a/pipenv/resolver.py b/pipenv/resolver.py -index 3fea0a1e..a0d9da29 100644 ---- a/pipenv/resolver.py -+++ b/pipenv/resolver.py -@@ -6,6 +6,11 @@ import sys - - os.environ["PIP_PYTHON_PATH"] = str(sys.executable) - -+SITE_PACKAGES_ROOT = os.path.dirname(os.path.dirname(__file__)) -+ -+# Inject site directory into system path. -+sys.path.insert(-1, SITE_PACKAGES_ROOT) -+ - - def _ensure_modules(): - spec = importlib.util.spec_from_file_location( diff --git a/dev-python/pipenv/files/pipenv-2023.4.29-append-always-install.patch b/dev-python/pipenv/files/pipenv-2023.4.29-append-always-install.patch deleted file mode 100644 index 25a9c604e5b4..000000000000 --- a/dev-python/pipenv/files/pipenv-2023.4.29-append-always-install.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/pipenv/routines/install.py b/pipenv/routines/install.py -index 4b8b2bf8c..a3e1fbcf7 100644 ---- a/pipenv/routines/install.py -+++ b/pipenv/routines/install.py -@@ -580,6 +580,14 @@ def batch_install_iteration( - strip_extras_markers_from_requirement, - ) - -+ # Gentoo patch: -+ # Install dependencies into the venv even if they exist -+ # in the system. -+ # This is needed because pipenv imports the system packages to run. -+ # It does not change your system's packages. -+ if (extra_pip_args is not None) and ("-I" not in extra_pip_args): -+ extra_pip_args.append("-I") -+ - is_artifact = False - for dep in deps_to_install: - if dep.req.req: diff --git a/dev-python/pipenv/files/pipenv-2023.7.11-fix-imports-utils.patch b/dev-python/pipenv/files/pipenv-2023.7.11-fix-imports-utils.patch deleted file mode 100644 index 2e348bf8e440..000000000000 --- a/dev-python/pipenv/files/pipenv-2023.7.11-fix-imports-utils.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/pipenv/utils/environment.py b/pipenv/utils/environment.py -index 2e066eef2..219d8f9e5 100644 ---- a/pipenv/utils/environment.py -+++ b/pipenv/utils/environment.py -@@ -1,7 +1,9 @@ - import os - -+import click -+import dotenv -+ - from pipenv import environments --from pipenv.vendor import click, dotenv - - - def load_dot_env(project, as_dict=False, quiet=False): diff --git a/dev-python/pipenv/files/pipenv-2023.7.11-fix-imports.patch b/dev-python/pipenv/files/pipenv-2023.7.11-fix-imports.patch deleted file mode 100644 index a437d55b6964..000000000000 --- a/dev-python/pipenv/files/pipenv-2023.7.11-fix-imports.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff --git a/pipenv/environment.py b/pipenv/environment.py -index dbb89b011..89f2aaf9e 100644 ---- a/pipenv/environment.py -+++ b/pipenv/environment.py -@@ -14,7 +14,9 @@ from sysconfig import get_paths, get_python_version, get_scheme_names - from urllib.parse import urlparse - from urllib.request import url2pathname - -+import click - import pipenv -+ - from pipenv.patched.pip._internal.commands.install import InstallCommand - from pipenv.patched.pip._internal.index.package_finder import PackageFinder - from pipenv.patched.pip._vendor import pkg_resources -@@ -23,7 +25,6 @@ from pipenv.utils.funktools import chunked, unnest - from pipenv.utils.indexes import prepare_pip_source_args - from pipenv.utils.processes import subprocess_run - from pipenv.utils.shell import make_posix --from pipenv.vendor import click - from pipenv.vendor.pythonfinder.utils import is_in_path - from pipenv.vendor.requirementslib.fileutils import normalize_path, temp_path - from pipenv.vendor.requirementslib.utils import temp_environ -diff --git a/pipenv/project.py b/pipenv/project.py -index f865988b9..e8714ef63 100644 ---- a/pipenv/project.py -+++ b/pipenv/project.py -@@ -44,9 +44,11 @@ from pipenv.utils.shell import ( - system_which, - ) - from pipenv.utils.toml import cleanup_toml, convert_toml_outline_tables --from pipenv.vendor import click, plette, tomlkit -+from pipenv.vendor import plette - from pipenv.vendor.requirementslib.models.utils import get_default_pyproject_backend - -+import click, tomlkit -+ - try: - # this is only in Python3.8 and later - from functools import cached_property diff --git a/dev-python/pipenv/pipenv-2023.11.15.ebuild b/dev-python/pipenv/pipenv-2023.12.1.ebuild index 78a5824b1a0f..10380d8aef72 100644 --- a/dev-python/pipenv/pipenv-2023.11.15.ebuild +++ b/dev-python/pipenv/pipenv-2023.12.1.ebuild @@ -16,16 +16,14 @@ S="${WORKDIR}"/${PN}-${MY_PV} LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~riscv" +KEYWORDS="~amd64 ~arm64 ~riscv" PATCHES=( "${FILESDIR}/pipenv-2023.9.8-inject-system-packages.patch" "${FILESDIR}/pipenv-2023.9.8-append-always-install-to-pip-extra-args.patch" - "${FILESDIR}/pipenv-2023.11.15-fix-import-path-PackageDAG.patch" ) RDEPEND=" - >=dev-python/cerberus-1.3.2[${PYTHON_USEDEP}] dev-python/click[${PYTHON_USEDEP}] dev-python/click-didyoumean[${PYTHON_USEDEP}] >=dev-python/colorama-0.4.4[${PYTHON_USEDEP}] @@ -33,11 +31,10 @@ RDEPEND=" >=dev-python/markupsafe-2.0.1[${PYTHON_USEDEP}] >=dev-python/pexpect-4.8.0[${PYTHON_USEDEP}] dev-python/pipdeptree[${PYTHON_USEDEP}] - dev-python/plette[${PYTHON_USEDEP}] + ~dev-python/plette-0.4.4[${PYTHON_USEDEP}] >=dev-python/ptyprocess-0.7.0[${PYTHON_USEDEP}] - <dev-python/pydantic-2.0.0[${PYTHON_USEDEP}] dev-python/pyparsing[${PYTHON_USEDEP}] - <dev-python/pythonfinder-2.0.6[${PYTHON_USEDEP}] + ~dev-python/pythonfinder-2.1.0[${PYTHON_USEDEP}] $(python_gen_cond_dep ' dev-python/tomli[${PYTHON_USEDEP}] ' python3_{9..10}) >=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}] >=dev-python/python-dotenv-0.21.0[${PYTHON_USEDEP}] diff --git a/dev-python/pipenv/pipenv-2023.7.11.ebuild b/dev-python/pipenv/pipenv-2023.7.11.ebuild deleted file mode 100644 index eb42815ef4a7..000000000000 --- a/dev-python/pipenv/pipenv-2023.7.11.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 multiprocessing - -MY_PV=${PV/_beta/b} -DESCRIPTION="Python Development Workflow for Humans" -HOMEPAGE="https://github.com/pypa/pipenv https://pypi.org/project/pipenv/" -SRC_URI="https://github.com/pypa/pipenv/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" -S="${WORKDIR}"/${PN}-${MY_PV} - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~x86" - -PATCHES=( - "${FILESDIR}/pipenv-2022.9.24-inject-site-packages.patch" - "${FILESDIR}/pipenv-2023.4.29-append-always-install.patch" - "${FILESDIR}/pipenv-2023.7.11-fix-imports.patch" - "${FILESDIR}/pipenv-2023.7.11-fix-imports-utils.patch" -) - -RDEPEND=" - dev-python/attrs[${PYTHON_USEDEP}] - >=dev-python/cerberus-1.3.2[${PYTHON_USEDEP}] - dev-python/click[${PYTHON_USEDEP}] - >=dev-python/colorama-0.4.4[${PYTHON_USEDEP}] - >=dev-python/markupsafe-2.0.1[${PYTHON_USEDEP}] - >=dev-python/pexpect-4.8.0[${PYTHON_USEDEP}] - >=dev-python/ptyprocess-0.7.0[${PYTHON_USEDEP}] - dev-python/pyparsing[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' dev-python/tomli[${PYTHON_USEDEP}] ' python3_{9..10}) - >=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}] - >=dev-python/python-dotenv-0.21.0[${PYTHON_USEDEP}] - >=dev-python/virtualenv-20.0.35[${PYTHON_USEDEP}] - dev-python/virtualenv-clone[${PYTHON_USEDEP}] - >=dev-python/requests-2.26.0[${PYTHON_USEDEP}] - dev-python/ruamel-yaml[${PYTHON_USEDEP}] - dev-python/tomlkit[${PYTHON_USEDEP}] -" - -BDEPEND=" - ${RDEPEND} - test? ( - dev-python/flaky[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pytz[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -# IMPORTANT: The following sed command patches the vendor direcotry -# in the pipenv source. Attempts to simply bump the version of the -# package without checking that it works is likely to fail -# The vendored packages should eventually all be removed -# see: https://bugs.gentoo.org/717666 -src_prepare() { - local pkgName - local jobs=$(makeopts_jobs) - local packages=( attr attrs cerberus colorama dotenv markupsafe \ - pexpect ptyprocess pyparsing requests urllib3 tomlkit ) - for pkgName in ${packages[@]}; do - find ./ -type f -print0 | \ - xargs --max-procs="${jobs}" --null \ - sed --in-place \ - -e "s/from pipenv.vendor import ${pkgName}/import ${pkgName}/g" \ - -e "s/from pipenv.vendor.${pkgName}\(.*\) import \(\w*\)/from ${pkgName}\1 import \2/g"\ - -e "s/import pipenv.vendor.${pkgName} as ${pkgName}/import ${pkgName}/g" \ - -e "s/from .vendor import ${pkgName}/import ${pkgName}/g" || die "Failed to sed for ${pkgName}" - done - - distutils-r1_src_prepare - - # remove vendored versions - for pkgName in ${packages[@]}; do - find ./pipenv/vendor -regextype posix-extended -regex ".*${pkgName}$" -prune -exec rm -rvf {} + || die - # package names can be foo-bar, their module will be however foo_bar - find ./pipenv/vendor -regextype posix-extended -regex ".*${pkgName/_/-}" -prune -exec rm -rvf {} + || die - done - - find ./pipenv/vendor -regextype posix-extended -regex '.*cached[_-]property.*' -prune -exec rm -rvf {} + || die - - find ./ -type f -print0 | \ - xargs --max-procs="${jobs}" --null \ - sed --in-place \ - -e "s/from pipenv\.vendor import plette, toml, tomlkit, vistir/from pipenv\.vendor import plette, toml, vistir\\nimport tomlkit/g" - - # remove python ruaml yaml - sed --in-place -e "s/from pipenv\.vendor\.ruamel\.yaml import YAML/from ruamel\.yaml import YAML/g" pipenv/patched/safety/util.py || die "Failed sed in ruaml-yaml" - sed --in-place -e "s/from pipenv\.vendor\.ruamel\.yaml\.error import MarkedYAMLError/from ruamel\.yaml\.error import MarkedYAMLError/g" pipenv/patched/safety/util.py || die "Failed sed in ruamel-yaml" - - rm -vR pipenv/vendor/ruamel || die "Failed removing ruamel-yaml from vendor" - - for fname in Makefile README.md README.rst ruamel.*.LICENSE vendor.txt; do - rm -v pipenv/vendor/$fname || die "Failed removing pipenv/vendor/$fname" - done - -} - -python_test() { - epytest -m "not cli and not needs_internet" tests/unit/ -} diff --git a/dev-python/plette/Manifest b/dev-python/plette/Manifest index 32a18ae19cc5..bca984057c24 100644 --- a/dev-python/plette/Manifest +++ b/dev-python/plette/Manifest @@ -1 +1,2 @@ +DIST plette-0.4.4.gh.tar.gz 36359 BLAKE2B dc630b9e98db9a8f6047fe0bb31c2ab29d695745b59d457c9cac218922c0d578a474f80ddc419364fb8ef92c5952c5cea33ee571cce2d698015466edb738885a SHA512 c4342ce040966730d2eba638c718c1db9340051baa89238b99e64cf8ef734fe448f0aaeae224e9f6b51c9e38458e9caeb2c8d6abbd5db76249529aaee90ed5c0 DIST plette-1.0.0.gh.tar.gz 54297 BLAKE2B 7ade29df8bfc20d5c98f5f3290acea2f5e884f71b13c0950373f41240de54f3ea672d16c0557fef2e1be25aef0da68d4a7449ebea2f206d92901d7f11f6cc2bb SHA512 72a3f270f76dbf32cb418628f1b24046111a46633603b07fd44fd4ed50d946653afaec070bce8e67a1ecff3ec8607f2476d3b25760c76726218873898bef97ed diff --git a/dev-python/plette/plette-0.4.4.ebuild b/dev-python/plette/plette-0.4.4.ebuild new file mode 100644 index 000000000000..86fb823637a0 --- /dev/null +++ b/dev-python/plette/plette-0.4.4.ebuild @@ -0,0 +1,31 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Structured Pipfile and Pipfile.lock models" +HOMEPAGE=" + https://github.com/sarugaku/plette/ + https://pypi.org/project/plette/ +" +# pypi tarballs are missing test data +SRC_URI=" + https://github.com/sarugaku/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" + +RDEPEND=" + dev-python/cerberus[${PYTHON_USEDEP}] + dev-python/tomlkit[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/pydantic-core/pydantic-core-2.16.2.ebuild b/dev-python/pydantic-core/pydantic-core-2.16.2.ebuild index fef3f8e5e444..7ba651acd28d 100644 --- a/dev-python/pydantic-core/pydantic-core-2.16.2.ebuild +++ b/dev-python/pydantic-core/pydantic-core-2.16.2.ebuild @@ -109,7 +109,7 @@ LICENSE+=" || ( Apache-2.0 Boost-1.0 ) " SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 arm arm64 ~loong ~ppc ppc64 ~riscv ~s390 ~sparc x86" RDEPEND=" >=dev-python/typing-extensions-4.7.1[${PYTHON_USEDEP}] diff --git a/dev-python/pydantic/Manifest b/dev-python/pydantic/Manifest index 04e12b0d04b8..93a7542f48f3 100644 --- a/dev-python/pydantic/Manifest +++ b/dev-python/pydantic/Manifest @@ -3,3 +3,4 @@ DIST pydantic-2.5.2.tar.gz 652158 BLAKE2B d3a7eeb4e1933d4893df69d2600437a4df1a64 DIST pydantic-2.5.3.tar.gz 651797 BLAKE2B 9494bd7a243d5cda762d916b10120861870b5f3112f581aa33b888eab7b605adcd3eb861853467e2d021b88b1c2583bbaf6ace8e96154543c6946e13722ed345 SHA512 bfc2f9704688815dbf418e2a7c72e193de80f279ac578fdaefe763f7cd8a9dce6c9152bd950d013f7fa48ea743468ae588adf61e277924536637590b63792779 DIST pydantic-2.6.1.tar.gz 679826 BLAKE2B d1915b20200a9a3a3e1c854ecc2c760eba7b672cb336b07426475072da08090a6adbe6d674019d314b01c92d69aa6caecb52f8f45bdf6d81bde1a1bff6230a3f SHA512 89a202165950ab741eac8441eb6c014dab50474bd4d001f90a32cff55b1b6bf36433d4ae11df8ab5e51bbcf68efb9674cece9a512c1d85f428e13fb59e2ae2c0 DIST pydantic-2.6.3.tar.gz 680427 BLAKE2B 28d8d4edcfeeae4f0ba70ed09987e26ba569c38b2c511b6d0b4277b830173302228c964f4c086ac4412a331afa3fba16d9581bd31446fb1dfb43065eb29dfc59 SHA512 2eca898328beb1f33e343d3aa7edf8847baae0569d078507a58bbe0fcf355250c72b70a33f6b79cef697f41ced91eaeee1ffc4a7712fd6fd251fd64557e390d0 +DIST pydantic-2.6.4.tar.gz 680828 BLAKE2B 264698f21e4d57656f5a28651019956349a018f16b11099d4afd796329a8ad12847e45250372e5c7b189493e9c73efa624006cb2e6b5a7d77b2c45973a0d813f SHA512 9386c2e04ff71bc182be4892d1cdb910ca60ee68b7cc5c6e86a58529b51707094532dc5315bf152b147979bace3d2e4f6bb4fed546e16fe27b5ecd35c7d0541a diff --git a/dev-python/pydantic/pydantic-2.6.1.ebuild b/dev-python/pydantic/pydantic-2.6.1.ebuild index af7020515c33..bf33ff115191 100644 --- a/dev-python/pydantic/pydantic-2.6.1.ebuild +++ b/dev-python/pydantic/pydantic-2.6.1.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 arm arm64 ~loong ~ppc ppc64 ~riscv ~s390 ~sparc x86" RDEPEND=" >=dev-python/annotated-types-0.4.0[${PYTHON_USEDEP}] diff --git a/dev-python/pydantic/pydantic-2.6.4.ebuild b/dev-python/pydantic/pydantic-2.6.4.ebuild new file mode 100644 index 000000000000..25a966b1b7e7 --- /dev/null +++ b/dev-python/pydantic/pydantic-2.6.4.ebuild @@ -0,0 +1,57 @@ +# 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Data parsing and validation using Python type hints" +HOMEPAGE=" + https://github.com/pydantic/pydantic/ + https://pypi.org/project/pydantic/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/annotated-types-0.4.0[${PYTHON_USEDEP}] + ~dev-python/pydantic-core-2.16.3[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.6.1[${PYTHON_USEDEP}] +" +# pytest-8: https://github.com/pydantic/pydantic/issues/8674 +BDEPEND=" + >=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}] + test? ( + dev-python/cloudpickle[${PYTHON_USEDEP}] + dev-python/dirty-equals[${PYTHON_USEDEP}] + >=dev-python/email-validator-2.0.0[${PYTHON_USEDEP}] + >=dev-python/Faker-18.13.0[${PYTHON_USEDEP}] + <dev-python/pytest-8[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/benchmark/d' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=() + local EPYTEST_IGNORE=( + # require pytest-examples + tests/test_docs.py + # benchmarks + tests/benchmarks + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_mock +} diff --git a/dev-python/pytest-jupyter/Manifest b/dev-python/pytest-jupyter/Manifest index c0de1df2742c..f904705f3ea9 100644 --- a/dev-python/pytest-jupyter/Manifest +++ b/dev-python/pytest-jupyter/Manifest @@ -1 +1,2 @@ DIST pytest_jupyter-0.9.0.tar.gz 15520 BLAKE2B 59c80b3fc3a6a48c071a3fbf4068b5a3bbef888677f89db5f9e9a573a7de2ad34658a4543978bc747488fdc5f3720104af00fb2878b360bd503d01e851a5b65e SHA512 46e223754f5c36df7783207e8d9589d6c5525adf22b2c476fb7017d5cfac50d9ecdeadf4a7fcfb58e418ba84ee1f966d2655100e5b1c65ed780d34a02580fb7e +DIST pytest_jupyter-0.9.1.tar.gz 15519 BLAKE2B 58262222fec8c57bb979a66de83429dd9ed261506aa11f4737bb3e1ab2c00a81337b279b6052d4fc6996b02cfb40062d9707ec4ca5472f5a603b83a3602ecd0d SHA512 bb513b4560fb4edcebfe3bef5f62544ec241de235a23cb644a6c9830d8284b7b22ac448e48ad48350dc17fa35a9117bcceabfdbeaa578a97be3db34fa3a5a1f8 diff --git a/dev-python/pytest-jupyter/pytest-jupyter-0.9.1.ebuild b/dev-python/pytest-jupyter/pytest-jupyter-0.9.1.ebuild new file mode 100644 index 000000000000..31b0ede81f83 --- /dev/null +++ b/dev-python/pytest-jupyter/pytest-jupyter-0.9.1.ebuild @@ -0,0 +1,35 @@ +# 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Pytest plugin for testing Jupyter libraries and extensions" +HOMEPAGE=" + https://jupyter.org/ + https://github.com/jupyter-server/pytest-jupyter/ + https://pypi.org/project/pytest-jupyter/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/ipykernel-6.14[${PYTHON_USEDEP}] + >=dev-python/jupyter-client-7.4.0[${PYTHON_USEDEP}] + >=dev-python/jupyter-core-5.7[${PYTHON_USEDEP}] + >=dev-python/jupyter-server-1.21[${PYTHON_USEDEP}] + >=dev-python/nbformat-5.3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/pytest-salt-factories/Manifest b/dev-python/pytest-salt-factories/Manifest index c89c1aa324dc..983812bfbac5 100644 --- a/dev-python/pytest-salt-factories/Manifest +++ b/dev-python/pytest-salt-factories/Manifest @@ -1,5 +1,4 @@ DIST pytest-salt-factories-1.0.0_rc20.gh.tar.gz 160140 BLAKE2B 7ecd9af695626c465e5776ed218bd92f30a556394cf4af0c2b6fb87c182f8aaf2d8f998358a7eef95fae53c85a6be2d4ed5a6ff191496fcac62a97e25cf19063 SHA512 5677c6638b5dc7f90c01f2c2204e1910c2bf6ea2c10b714173d3443d4c682b5f515ad7881e2ceee66f6eaf619e399d6fa10052604fdc9c5157c58348b63c8f2b DIST pytest-salt-factories-1.0.0_rc23.gh.tar.gz 162711 BLAKE2B 28610679d7717d7a6f97a2f14a1ac838aec5101171ae65f2328d9b902d04b272c5e37f08d8ff3414af52ff7af954da24c083dfdc4afd1a9342b09cce0bf5aec3 SHA512 22d8f4a1c48a144437b9ff7d064760b59bb2a1003838e07f446a6150a77c162bffa7f21c570f796d8214d870d5b029e92abf7b0410ce19726085b607628364f0 -DIST pytest-salt-factories-1.0.0_rc25.gh.tar.gz 166148 BLAKE2B 11935c0164727968b9f2bd6f77498ea9ed4dbafd48bd6bb2730716fbcb1bb69b1ab09ef9ea2e2519368f4b6408bbb03f41fb0e52fc3cf75695f2b9c2b8d37294 SHA512 dd18688731b6bd2384abff9d739154b1ca7786bc3843d9fa8c293d1950925fff6c5820680a8095d4d5f3b75bcaeb07d8b3c7703ecab64a5f3a28bad11da18397 DIST pytest-salt-factories-1.0.0_rc28.gh.tar.gz 168150 BLAKE2B c286c2a3933f8a987f1073ba97097cec29bf494cac9c4ba21ec4c261e22570ac3445900cacf629cce6253fb1a5fb95eb3d637b4d26e8835648dd11c569a7255e SHA512 ea362daa83007d9054b023ca9c11864ba304d802fa359c8cb883aa929f339c5347d50560a2d4a9cbc151a7b05bc46d1dc2f7693dd32d26383766cb5f249f3484 DIST pytest-salt-factories-1.0.0_rc29.gh.tar.gz 168690 BLAKE2B d365cdef727e6ed0c0d2d06ce3c8731ddf67181d4d8386d106b7569c709fc5336529c72e907d44496463b47b18659376a64c79b08d45aaa5aa7d8d927a646db3 SHA512 7dd0e9d5bb6e4b292ef145f6fec770435f1cd23a07be67c98e155b1aa3a34bec1c542d97a6cae0302ad46e5c2f4e35eadb45bd7ea8979c05c6ddf1aacde9f755 diff --git a/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc25.ebuild b/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc25.ebuild deleted file mode 100644 index e5d1dad26884..000000000000 --- a/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc25.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 2020-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 - -DESCRIPTION="The new generation of the pytest-salt Plugin" -HOMEPAGE="https://github.com/saltstack/pytest-salt-factories" -SRC_URI="https://github.com/saltstack/${PN}/archive/${PV//_/}.tar.gz -> ${P}.gh.tar.gz" -S=${WORKDIR}/${PN}-${PV//_/} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~riscv x86" -IUSE="test" - -RDEPEND=" - dev-python/attrs[${PYTHON_USEDEP}] - dev-python/docker[${PYTHON_USEDEP}] - dev-python/psutil[${PYTHON_USEDEP}] - >=dev-python/pytest-7.0.0[${PYTHON_USEDEP}] - dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] - dev-python/pytest-skip-markers[${PYTHON_USEDEP}] - dev-python/pytest-system-statistics[${PYTHON_USEDEP}] - >=dev-python/pytest-shell-utilities-1.4.0[${PYTHON_USEDEP}] - dev-python/pyzmq[${PYTHON_USEDEP}] - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - >=app-admin/salt-3005.1[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} - test? ( - dev-python/importlib-metadata[${PYTHON_USEDEP}] - dev-python/pyfakefs[${PYTHON_USEDEP}] - dev-python/pytest-subtests[${PYTHON_USEDEP}] - ) -" - -PATCHES=( -) - -distutils_enable_tests pytest - -python_prepare_all() { - sed -r -e "s:use_scm_version=True:version='${PV}', name='${PN//-/.}':" -i setup.py || die - sed -r -e '/(setuptools|setup_requires)/ d' -i setup.cfg || die - - sed -i 's:tool.setuptools_scm:tool.disabled:' pyproject.toml || die - printf '__version__ = "%s"\n' "${PV}" > src/saltfactories/version.py || die - distutils-r1_python_prepare_all -} - -python_test() { - local -a EPYTEST_DESELECT=( - tests/functional/factories/cli/test_call.py::test_version_info - tests/functional/factories/cli/test_cloud.py::test_version_info - tests/functional/factories/cli/test_cp.py::test_version_info - tests/functional/factories/cli/test_key.py::test_version_info - tests/functional/factories/cli/test_run.py::test_version_info - tests/functional/factories/cli/test_salt.py::test_version_info - tests/functional/factories/cli/test_spm.py::test_version_info - tests/functional/factories/cli/test_ssh.py::test_version_info - tests/integration/factories/daemons/ssh/test_salt_ssh.py::test_salt_ssh - tests/integration/factories/daemons/sshd/test_sshd.py::test_connect - tests/scenarios/examples/test_echoext.py::test_echoext - tests/functional/factories/daemons/test_container_factory.py::test_skip_on_pull_failure - tests/functional/factories/daemons/test_container_factory.py::test_skip_if_docker_client_not_connectable - ) - - local tempdir - # ${T} is too long a path for the tests to work - tempdir="$(mktemp -du --tmpdir=/tmp salt-XXX)" || die - addwrite "${tempdir}" - - ( - cleanup() { rm -rf "${tempdir}" || die; } - - trap cleanup EXIT - export SHELL="/bin/bash" TMPDIR="${tempdir}" - epytest --no-sys-stats - ) -} diff --git a/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc29.ebuild b/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc29.ebuild index 9eb29db8c3e8..f579f09b3116 100644 --- a/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc29.ebuild +++ b/dev-python/pytest-salt-factories/pytest-salt-factories-1.0.0_rc29.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_1{0..1} ) +PYTHON_COMPAT=( python3_1{0..2} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 @@ -57,6 +57,8 @@ src_prepare() { python_test() { local EPYTEST_DESELECT=( + "tests/functional/test_manager.py::test_system_service_cli[system-service(True)]" + "tests/functional/test_manager.py::test_system_service_config_fixture[system-service(True)]" tests/integration/factories/daemons/ssh/test_salt_ssh.py::test_salt_ssh tests/integration/factories/daemons/sshd/test_sshd.py::test_connect tests/scenarios/examples/test_echoext.py::test_echoext diff --git a/dev-python/python-lsp-server/Manifest b/dev-python/python-lsp-server/Manifest index 8ebdcb9571ba..074dfdd8de91 100644 --- a/dev-python/python-lsp-server/Manifest +++ b/dev-python/python-lsp-server/Manifest @@ -1 +1,2 @@ DIST python-lsp-server-1.10.0.tar.gz 112917 BLAKE2B 2429e136ea2732d3bdfc2c77424a864364a7eb98bd447273d514fa53238b1ec276d46a51e558be8d959f100cd4dcfadf3a3eac996aa49b6b011babea84e8e3a8 SHA512 342452a5e3b1ae448a993f64501b2162b286f009026f1b5d306621c4befd0188699fc682206d50d06a93d8780862c8476186f8d0e4bb20592ddbbade1276445c +DIST python-lsp-server-1.10.1.tar.gz 113136 BLAKE2B d1e39e3354d5ab67bb465265c6c3514f25ba4857fa3379e502d3c40b456f6d228c63ad759af1832b4d089fb93a03c7f3d6797cea4079b63cdc58e3591e9d783a SHA512 4c8e6a72ef6004248a5cb4a1e4c251b9d487cd4ce39d6c7268ce611c8537d6a5912eeb49d2eb1a25c230934b17e9a624504591c25f0291e07971eeccb70b09ba diff --git a/dev-python/python-lsp-server/python-lsp-server-1.10.1.ebuild b/dev-python/python-lsp-server/python-lsp-server-1.10.1.ebuild new file mode 100644 index 000000000000..b7e7061a02fe --- /dev/null +++ b/dev-python/python-lsp-server/python-lsp-server-1.10.1.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="Python Language Server for the Language Server Protocol" +HOMEPAGE=" + https://github.com/python-lsp/python-lsp-server/ + https://pypi.org/project/python-lsp-server/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="all-plugins" + +RDEPEND=" + dev-python/docstring-to-markdown[${PYTHON_USEDEP}] + >=dev-python/jedi-0.17.2[${PYTHON_USEDEP}] + >=dev-python/python-lsp-jsonrpc-1.1.0[${PYTHON_USEDEP}] + dev-python/pluggy[${PYTHON_USEDEP}] + all-plugins? ( + >=dev-python/autopep8-2.0.4[${PYTHON_USEDEP}] + >=dev-python/flake8-7[${PYTHON_USEDEP}] + >=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}] + >=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}] + >=dev-python/pyflakes-3.2.0[${PYTHON_USEDEP}] + >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] + >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}] + >=dev-python/yapf-0.33.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/rope-1.11.0[${PYTHON_USEDEP}] + ' 'python*') + ) +" +BDEPEND=" + test? ( + >=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + >=dev-python/flake8-5.0.0[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + >=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}] + >=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}] + >=dev-python/pylint-2.5.0[${PYTHON_USEDEP}] + >=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}] + >=dev-python/yapf-0.33.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}] + >=dev-python/rope-1.2.0[${PYTHON_USEDEP}] + ' 'python*') + ) +" + +# Note: xdist breaks some tests +distutils_enable_tests pytest + +python_prepare_all() { + # remove pytest-cov dep + sed -i -e '/addopts =/d' pyproject.toml || die + # unpin all the deps + sed -i -e 's:,<[0-9.]*::' pyproject.toml || die + distutils-r1_python_prepare_all +} + +python_test() { + local EPYTEST_DESELECT=( + # broken by presence of pathlib2 + 'test/plugins/test_autoimport.py' + ) + local EPYTEST_IGNORE=( + # pydocstyle is archived upstream and broken with py3.12 + test/plugins/test_pydocstyle_lint.py + ) + + if [[ ${EPYTHON} == pypy3 ]] ; then + # Not all plugins are available for pypy3 + EPYTEST_IGNORE+=( + test/plugins/test_autoimport.py + test/plugins/test_completion.py + test/plugins/test_rope_rename.py + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +pkg_postinst() { + optfeature "Automatically format Python code to conform to the PEP 8 style guide" dev-python/autopep8 + optfeature "A wrapper around PyFlakes, pep8 & mccabe" dev-python/flake8 + optfeature "flake8 plugin: McCabe complexity checker" dev-python/mccabe + optfeature "Python style guide checker (fka pep8)" dev-python/pycodestyle + optfeature "Python docstring style checker" dev-python/pydocstyle + optfeature "Passive checker for Python programs" dev-python/pyflakes + optfeature "Python code static checker" dev-python/pylint + optfeature "Python refactoring library" dev-python/rope + optfeature "A formatter for Python files" dev-python/yapf +} diff --git a/dev-python/python-novaclient/Manifest b/dev-python/python-novaclient/Manifest index 12b4dbbfc372..486d99ede30e 100644 --- a/dev-python/python-novaclient/Manifest +++ b/dev-python/python-novaclient/Manifest @@ -1,2 +1,3 @@ DIST python-novaclient-18.4.0.tar.gz 339338 BLAKE2B 6a0c47d8d7aec338986d5928d29a736020a08ccbd3df3bbaeda77dd18de8fb78d51da9586065bf25bd620f224462cbcaf421dcb28c649e1a4ee92911a9f12a9a SHA512 767d53c3fa3b312b2210dcdbe8895baefa167c00041fe6b228a30099c892b17ed4339477894a81d314b746da5c2a772a07e7a887eb807a31ef7bbdbea621c40f DIST python-novaclient-18.5.0.tar.gz 339744 BLAKE2B 7d7a6ae9f57e5d703d370d4f58b3aec5680db3928b04eb60eff1688f09e63f5b1cd4bd2205a8cef39c7f5b79d4f4e5aafdd880a70142a8be87f93e5449519e25 SHA512 97d67e56c03dbb2dfcc0029beac2d55ebaf50405c6f9b18706e41605aac38fcab182e10f1cb5764775abea97dd358df9f9d334dbf105ea9a41bf5de6ed4c55cf +DIST python-novaclient-18.6.0.tar.gz 339868 BLAKE2B 069d7b213c8dc8b8061cc70ea49f9f7f7599aab1daead5b7e54423133f0765df32924ce05f1d2c00833e5ea177f6ffa9311055328246137bc134f3a162ef9fa4 SHA512 a2f93f063bc22b12294664edd37187a0edc80e01b62802d59a5603c11cba8154300e5206c9f835a0a0b6a00adb2b281271b6f8a1f50379668d88f4c5222d55b9 diff --git a/dev-python/python-novaclient/python-novaclient-18.6.0.ebuild b/dev-python/python-novaclient/python-novaclient-18.6.0.ebuild new file mode 100644 index 000000000000..007d17c30c8a --- /dev/null +++ b/dev-python/python-novaclient/python-novaclient-18.6.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=pbr +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A client for the OpenStack Nova API" +HOMEPAGE=" + https://opendev.org/openstack/python-novaclient/ + https://github.com/openstack/python-novaclient/ + https://pypi.org/project/python-novaclient/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] + >=dev-python/keystoneauth1-3.5.0[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] + >dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] + >=dev-python/prettytable-0.7.2[${PYTHON_USEDEP}] + >dev-python/requests-2.12.2[${PYTHON_USEDEP}] + >=dev-python/stevedore-2.0.1[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/bandit[${PYTHON_USEDEP}] + dev-python/ddt[${PYTHON_USEDEP}] + dev-python/fixtures[${PYTHON_USEDEP}] + dev-python/python-keystoneclient[${PYTHON_USEDEP}] + dev-python/python-cinderclient[${PYTHON_USEDEP}] + dev-python/python-glanceclient[${PYTHON_USEDEP}] + dev-python/python-neutronclient[${PYTHON_USEDEP}] + dev-python/requests-mock[${PYTHON_USEDEP}] + dev-python/openstacksdk[${PYTHON_USEDEP}] + dev-python/testscenarios[${PYTHON_USEDEP}] + dev-python/testtools[${PYTHON_USEDEP}] + dev-python/tempest[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +src_prepare() { + sed -e 's/test_osprofiler/_&/' -i novaclient/tests/unit/test_shell.py || die + sed -e 's/novaclient\.tests\.unit\.//' -i novaclient/tests/unit/test_api_versions.py || die + distutils-r1_src_prepare +} + +python_test() { + # functional tests require cloud instance access + eunittest -b novaclient/tests/unit +} diff --git a/dev-python/raet/raet-0.6.8-r6.ebuild b/dev-python/raet/raet-0.6.8-r6.ebuild new file mode 100644 index 000000000000..701cbfadc22b --- /dev/null +++ b/dev-python/raet/raet-0.6.8-r6.ebuild @@ -0,0 +1,48 @@ +# 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="Reliable Asynchronous Event Transport Protocol" +HOMEPAGE=" + https://github.com/RaetProtocol/raet/ + https://pypi.org/project/raet/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/six-1.6.1[${PYTHON_USEDEP}] + >=dev-python/libnacl-1.4.3[${PYTHON_USEDEP}] + >=dev-python/ioflo-2.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/raet-0.6.8-msgpack-1.0.patch" + "${FILESDIR}/raet-0.6.8-py310.patch" +) + +python_prepare_all() { + distutils-r1_python_prepare_all + sed -e "/setuptools_git/d" -i setup.py || die +} + +python_test() { + pushd "${BUILD_DIR}/install$(python_get_sitedir)" >/dev/null || die + "${EPYTHON}" raet/test/__init__.py || die "tests failed for ${EPYTHON}" + popd >/dev/null || die +} diff --git a/dev-python/rustworkx/Manifest b/dev-python/rustworkx/Manifest index 932aeeb887ba..85e38c07b65c 100644 --- a/dev-python/rustworkx/Manifest +++ b/dev-python/rustworkx/Manifest @@ -63,6 +63,7 @@ DIST rayon-core-1.12.1.crate 70701 BLAKE2B a32eb9ae9a71b4f0881f7bfd5375aa7db5681 DIST redox_syscall-0.4.1.crate 24858 BLAKE2B c3301137a0b84e03b09d28dfa377ab3bea74d574a08cee21d35713b278d8b5b30ca2a1d73a0981baeb4644cbb88c86c8eb15ab3bb2692e38b93e6b35fab4e0da SHA512 073ed9d96090cf46eab9877742277a013c62d8da86d9caf2310b4fa868af306511936553579e01309f27067d344226cc8dc5e3aef01d9b900da2febd33848f8d DIST rustc-hash-1.1.0.crate 9331 BLAKE2B 16ac56622897f47a06b661fb59a196b08d48e782ab87549c8bd5c6fe92f374c9bfd44dcb36588512bd9b6125c2fd79a12d648aaa308fd9694bcca3a7c1b49ac9 SHA512 84e673ea9b046f7b989d47f2c4505557fbd5de991e6fc9f56a03605d40e0b4ba5427cd566954890153cc033ccbec6c984306634571935bfe0d4cdfbe56f39544 DIST rustworkx-0.14.1.gh.tar.gz 558055 BLAKE2B 03ebbd55762ef3f8834ed688782580a2ffb05dc34410c9970337d776bcc52afb2ee474860cbcd173d57c3736b8562a1848df558d304de872d4f0e98522c57d46 SHA512 22fd8c8dedeb0a60efe6b16c3e268fa6bc599b7ddf0104349cbb4ec0664548416427d22712456a19f7b97fbea2dd7aba6bdc3ce7e582a1f1d95225b6d567be06 +DIST rustworkx-0.14.2.gh.tar.gz 558859 BLAKE2B 479510c4e132eda5af7a0301e760fe05daa26dd88c3299ca159ce0f87744d63cebfa33b6a1a6b43541b4c22607ea78352f36288e50d3f6535a6337be4edbf5c6 SHA512 625a4942cba111cdc4a9cf6fd8612ccb5ed94c28e4dcb176137105fc81516d2226fb57b1e401d91e323229eb1444775e5bca239b1bc8a4f26be6d8cea9997dab DIST ryu-1.0.16.crate 47351 BLAKE2B 13c72ec8aa608f6c53cf27c95d06b90839c5bec5e54b0441e9c4f779af3dece30d01a2276c717a733f92406a5a02b09c045b2b5f92714fe492d7263b6c6808e6 SHA512 89e3e18346ae6e4035787766f286a6eb62f5294e39ad902cc29e95c53781c4e5dd629f567f22ecc7e9fe9d1c273323da9b867aadc9cd8a066727c58330b51b10 DIST scopeguard-1.2.0.crate 11619 BLAKE2B 8b7e9ed6cefef9ee55407fb9690d57a2a98bb93e5105aeebdb475a52485e9e185255249e1dce8f83cd80534e7402d485aac3efa7e8493b13135de27550cd4bc4 SHA512 6247719a15fe1e4e2d179127b9a934bd2f99367724f41175ed9522f58824b6bc69b35002eae66b35880375ff61d77ac43ddaa78cbde7160a35183a1da32d3fbb DIST serde-1.0.195.crate 76856 BLAKE2B 6a80b59335f222ae48d5e377c30611f30fe6416e6853ca47a39016e21f649cb9dfbe4964ce19e5da977fb9a963228a6a81c1e85af99ae12d7a0a5722901aa2f5 SHA512 0002ecb933d08fbdc8585ee74efb4048d385459f629261f5a4a8401b794f1c02b8296db79f479013a0b2a47ba99bee6c02d60d0fc2454e32f1b038b4071e8727 diff --git a/dev-python/rustworkx/rustworkx-0.14.2.ebuild b/dev-python/rustworkx/rustworkx-0.14.2.ebuild new file mode 100644 index 000000000000..fa67033c4d91 --- /dev/null +++ b/dev-python/rustworkx/rustworkx-0.14.2.ebuild @@ -0,0 +1,153 @@ +# Copyright 2022-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} ) + +CRATES=" + ahash@0.8.6 + alga@0.9.3 + allocator-api2@0.2.16 + approx@0.3.2 + autocfg@1.1.0 + bitflags@1.3.2 + cfg-if@1.0.0 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-utils@0.8.19 + either@1.9.0 + equivalent@1.0.1 + fixedbitset@0.4.2 + getrandom@0.2.12 + hashbrown@0.12.3 + hashbrown@0.14.3 + heck@0.4.1 + hermit-abi@0.3.4 + indexmap@1.9.3 + indexmap@2.1.0 + indoc@2.0.4 + itertools@0.10.5 + itertools@0.11.0 + itoa@1.0.10 + libc@0.2.152 + libm@0.2.8 + lock_api@0.4.11 + matrixmultiply@0.3.8 + memchr@2.7.1 + memoffset@0.9.0 + ndarray-stats@0.5.1 + ndarray@0.15.6 + noisy_float@0.2.0 + num-bigint@0.4.4 + num-complex@0.2.4 + num-complex@0.4.4 + num-integer@0.1.45 + num-traits@0.2.17 + num_cpus@1.16.0 + numpy@0.20.0 + once_cell@1.19.0 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + petgraph@0.6.4 + ppv-lite86@0.2.17 + priority-queue@1.3.2 + proc-macro2@1.0.78 + pyo3-build-config@0.20.2 + pyo3-ffi@0.20.2 + pyo3-macros-backend@0.20.2 + pyo3-macros@0.20.2 + pyo3@0.20.2 + quick-xml@0.31.0 + quote@1.0.35 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rand_pcg@0.3.1 + rawpointer@0.2.1 + rayon-cond@0.3.0 + rayon-core@1.12.1 + rayon@1.8.1 + redox_syscall@0.4.1 + rustc-hash@1.1.0 + ryu@1.0.16 + scopeguard@1.2.0 + serde@1.0.195 + serde_derive@1.0.195 + serde_json@1.0.111 + smallvec@1.13.1 + sprs@0.11.1 + syn@2.0.48 + target-lexicon@0.12.13 + unicode-ident@1.0.12 + unindent@0.2.3 + version_check@0.9.4 + wasi@0.11.0+wasi-snapshot-preview1 + 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 + zerocopy-derive@0.7.32 + zerocopy@0.7.32 +" + +inherit cargo distutils-r1 + +DESCRIPTION="A high performance Python graph library implemented in Rust" +HOMEPAGE=" + https://github.com/Qiskit/rustworkx/ + https://pypi.org/project/rustworkx/ +" +SRC_URI=" + https://github.com/Qiskit/rustworkx/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + ${CARGO_CRATE_URIS} +" + +LICENSE="Apache-2.0" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 MIT + Unicode-DFS-2016 + || ( LGPL-3 MPL-2.0 ) +" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/numpy-1.16.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-rust[${PYTHON_USEDEP}] + test? ( + dev-python/fixtures[${PYTHON_USEDEP}] + dev-python/graphviz[${PYTHON_USEDEP}] + >=dev-python/networkx-2.5[${PYTHON_USEDEP}] + dev-python/stestr[${PYTHON_USEDEP}] + >=dev-python/testtools-2.5.0[${PYTHON_USEDEP}] + media-gfx/graphviz[gts] + ) +" + +# Libraries built with rust do not use CFLAGS and LDFLAGS. +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/rustworkx/rustworkx.*\\.so" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local EPYTEST_DESELECT=( + # TODO: hangs + tests/retworkx_backwards_compat/visualization/test_mpl.py + tests/rustworkx_tests/visualization/test_mpl.py + ) + rm -rf rustworkx || die + epytest +} diff --git a/dev-python/sphinxcontrib-plantuml/Manifest b/dev-python/sphinxcontrib-plantuml/Manifest index cd0a3bae0dfd..fd1c41ea3d14 100644 --- a/dev-python/sphinxcontrib-plantuml/Manifest +++ b/dev-python/sphinxcontrib-plantuml/Manifest @@ -1 +1,2 @@ DIST sphinxcontrib-plantuml-0.28.gh.tar.gz 19322 BLAKE2B b76166130ddcebc9312ea40d20dd0710403566a989dfdc40b906a724b32d8e3b53d50a4db1871e771eafb46f9cfea463f58348910c4bdeed0f25996269be8dea SHA512 52553e8ee5a9dbb3644f28a26f6be48a910e2013673169a8a9f0776406f6453b2443967af1837056010b0621d681e7fd00ab590858b07665bb74699c81aa81e2 +DIST sphinxcontrib-plantuml-0.29.gh.tar.gz 19376 BLAKE2B c410be6af6364e347dd1b8e782e55d9cea1c799dc3e2d5055c893b37e437c5e300cafc79e70947447979fe4b11d97fab7cddd6e0894654e274cd05cb5d4abba3 SHA512 9bcec86db5956dd9cbad097ad52b5dc915598c3324662491229268689c3c57c5ce680b38e38ff3360a109f3fd50753c92252ecaf928b124f9a515f52d1da93b4 diff --git a/dev-python/sphinxcontrib-plantuml/files/sphinxcontrib-plantuml-0.29-pytest-8.patch b/dev-python/sphinxcontrib-plantuml/files/sphinxcontrib-plantuml-0.29-pytest-8.patch new file mode 100644 index 000000000000..2f10e1fae51d --- /dev/null +++ b/dev-python/sphinxcontrib-plantuml/files/sphinxcontrib-plantuml-0.29-pytest-8.patch @@ -0,0 +1,53 @@ +From 74e31ad4dd8f4fefd5b9e430e4d9caea3002fd97 Mon Sep 17 00:00:00 2001 +From: Yuya Nishihara <yuya@tcha.org> +Date: Sun, 10 Mar 2024 19:30:21 +0900 +Subject: [PATCH] tests: rename setup/teardown functions for pytest 8.1.1 + compatibility + +I don't know if that's intended, but nose-style setup() is no longer called. +--- + tests/test_functional.py | 4 ++-- + tests/test_svgstyle.py | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/tests/test_functional.py b/tests/test_functional.py +index 697b01d..8ef6a3d 100644 +--- a/tests/test_functional.py ++++ b/tests/test_functional.py +@@ -12,7 +12,7 @@ + _fakecmd = os.path.join(os.path.dirname(__file__), 'fakecmd.py') + + +-def setup(): ++def setup_module(): + global _tempdir, _srcdir, _outdir + _tempdir = tempfile.mkdtemp() + _srcdir = os.path.join(_tempdir, 'src') +@@ -20,7 +20,7 @@ def setup(): + os.mkdir(_srcdir) + + +-def teardown(): ++def teardown_module(): + shutil.rmtree(_tempdir) + + +diff --git a/tests/test_svgstyle.py b/tests/test_svgstyle.py +index c62e1ed..a25901f 100644 +--- a/tests/test_svgstyle.py ++++ b/tests/test_svgstyle.py +@@ -5,12 +5,12 @@ + from sphinxcontrib import plantuml + + +-def setup(): ++def setup_module(): + global _tempdir + _tempdir = tempfile.mkdtemp() + + +-def teardown(): ++def teardown_module(): + shutil.rmtree(_tempdir) + + diff --git a/dev-python/sphinxcontrib-plantuml/sphinxcontrib-plantuml-0.29.ebuild b/dev-python/sphinxcontrib-plantuml/sphinxcontrib-plantuml-0.29.ebuild new file mode 100644 index 000000000000..c119576663bd --- /dev/null +++ b/dev-python/sphinxcontrib-plantuml/sphinxcontrib-plantuml-0.29.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 + +DESCRIPTION="Sphinx extensions for PlantUML" +HOMEPAGE=" + https://github.com/sphinx-contrib/plantuml/ + https://pypi.org/project/sphinxcontrib-plantuml/ +" +SRC_URI=" + https://github.com/sphinx-contrib/plantuml/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/${P#sphinxcontrib-}" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +BDEPEND=" + test? ( + app-text/texlive + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] + dev-tex/latexmk + dev-texlive/texlive-fontutils + dev-texlive/texlive-latexextra + ) +" + +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/sphinx-contrib/plantuml/commit/74e31ad4dd8f4fefd5b9e430e4d9caea3002fd97 + "${FILESDIR}/${P}-pytest-8.patch" +) + +python_test() { + # Fix for sphinx.errors.ExtensionError: Could not import extension sphinxcontrib.applehelp + # See https://projects.gentoo.org/python/guide/test.html#importerrors-for-c-extensions, thanks to mgorny. + rm -rf sphinxcontrib || die + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/spyder/Manifest b/dev-python/spyder/Manifest index 052c4cc443f8..7d3a327c5757 100644 --- a/dev-python/spyder/Manifest +++ b/dev-python/spyder/Manifest @@ -1,4 +1,6 @@ DIST spyder-5.5.1.gh.tar.gz 16254673 BLAKE2B 15c10994abb851048fd5386ef2ae776cc2a9ace6ca4efd4418c393ba2dd98d23ed842447e95cfce26ccac802ddfa8669839024cf6d9fdcd0ce63fead0d1e8246 SHA512 bb55cd29e0e5712152b44e3e11aa83c13396c9ff965239e86a07cc2ab20bdcc0aa23b202eb07839baa911e515917b7e3bf1ddc970ce446bff84655145751ee94 +DIST spyder-5.5.2.gh.tar.gz 16254498 BLAKE2B 792849e731af17a04b6cfdd3c26d3860c51de89c1dc6ba2f85649d5442805f7cb5a8887900f491e352b34bc0024e690bf990fe67fbd32b265bb8ccf0e22178c2 SHA512 551805e351f0fd1af695a6bd5582ed71bcd1257618d07464ede44a648de4f95bbb063ed4026627561803b0a2c7e714d0e8db126621532106191f54a44d16d72d DIST spyder-6.0.0_alpha4.gh.tar.gz 15503538 BLAKE2B ee896fe2c3c2afd464a8c86204f770ef08ff2fdfc68f7431d2706f76516b6e2b31c9cda8df3236cb3b85799d67f983fbbbfcdc92400a2a88f1efdcd166622f50 SHA512 8ff36feecf6ce99d90ec07fc0cc3ecab075af4e36d64ba650316a46d1f79ca1a08ca7eb2b48dee6e5eddaaafaff14445f0b687742e9a439c3e4def098e489879 DIST spyder-docs-0aa81d44ec6490c155be1bb1acca0a27328b12e0.gh.tar.gz 94895731 BLAKE2B 468412372bf2f70f838fa89dc1b88997fa2d9d92e36d6a5abac736b6b5f2782f25121b18b876c7c6e2af9d7eda433aaccd017c2e8c8c06a223420f0ce9684fc1 SHA512 9ac0f930a1a864e81e4181f101449a6506728d0d89254409a58e68bc17a3de39f4d1bf329f11da433d8ee4f3122faf3b337654d011263a70b253459e9562e923 +DIST spyder-docs-390681bc6557a051579337723c11b835d3855222.gh.tar.gz 94896996 BLAKE2B 62b7709c8a587271758a51169b269771b4b56bf32218ee3beda66c7dc7836bff89df518af61bcbb03a97374b18d4107c47f33661b388dfc92d66a93482642371 SHA512 9456ba1b891b9668006ecb1f2baa6ecfbe4df944d8bf0519c3bdf346a13b25cb1b4d272421e4b96593bc2dfc8bce2a4aa89380d2bda53b3d907f13c31a21abf7 DIST spyder-docs-678f4e94542e25c8c0bfc1cb6abca94126f24fa6.gh.tar.gz 94896707 BLAKE2B 6912279a38da0be7bb368daa740bb801d8d2f7a31062178b8416d42644fdb3c0ec6a019ec7657e6e1e8e4273d29cdc7b7e36d85293b4f860edb2059fe27dc028 SHA512 3b8201256fa555b3b85bdfcfcfa17f08a42b438f141f9870ba5c807def63ed1b4304791209bc063833537036a2ff68897a40d610de9b662897cca7601ec09a44 diff --git a/dev-python/spyder/spyder-5.5.2.ebuild b/dev-python/spyder/spyder-5.5.2.ebuild new file mode 100644 index 000000000000..bba2c0d84b75 --- /dev/null +++ b/dev-python/spyder/spyder-5.5.2.ebuild @@ -0,0 +1,192 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 optfeature virtualx xdg + +# Commit of documentation to fetch +DOCS_PV="390681bc6557a051579337723c11b835d3855222" + +DESCRIPTION="The Scientific Python Development Environment" +HOMEPAGE=" + https://www.spyder-ide.org/ + https://github.com/spyder-ide/spyder/ + https://pypi.org/project/spyder/ +" +SRC_URI=" + https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${PN}-docs-${DOCS_PV}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/atomicwrites-1.2.0[${PYTHON_USEDEP}] + >=dev-python/chardet-2.0.0[${PYTHON_USEDEP}] + >=dev-util/cookiecutter-1.6.0[${PYTHON_USEDEP}] + >=dev-python/diff-match-patch-20181111[${PYTHON_USEDEP}] + >=dev-python/intervaltree-3.0.2[${PYTHON_USEDEP}] + >=dev-python/jellyfish-0.7[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] + >=dev-python/keyring-17.0.0[${PYTHON_USEDEP}] + >=dev-python/nbconvert-4.0[${PYTHON_USEDEP}] + >=dev-python/numpydoc-0.6.0[${PYTHON_USEDEP}] + >=dev-python/pexpect-4.4.0[${PYTHON_USEDEP}] + >=dev-python/pickleshare-0.4[${PYTHON_USEDEP}] + >=dev-python/psutil-5.3[${PYTHON_USEDEP}] + >=dev-python/pygments-2.0[${PYTHON_USEDEP}] + >=dev-python/pylint-venv-3.0.2[${PYTHON_USEDEP}] + >=dev-python/python-lsp-black-2.0.0[${PYTHON_USEDEP}] + <dev-python/python-lsp-black-3[${PYTHON_USEDEP}] + >=dev-python/pyls-spyder-0.4.0[${PYTHON_USEDEP}] + >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] + >=dev-python/pyzmq-24.0.0[${PYTHON_USEDEP}] + >=dev-python/qdarkstyle-3.2[${PYTHON_USEDEP}] + <dev-python/qdarkstyle-3.3[${PYTHON_USEDEP}] + >=dev-python/qstylizer-0.2.2[${PYTHON_USEDEP}] + >=dev-python/qtawesome-1.2.1[${PYTHON_USEDEP}] + >=dev-python/qtconsole-5.5.1[${PYTHON_USEDEP}] + <dev-python/qtconsole-5.6.0[${PYTHON_USEDEP}] + >=dev-python/QtPy-2.1.0[${PYTHON_USEDEP},pyqt5,svg,webengine] + >=sci-libs/rtree-0.9.7[${PYTHON_USEDEP}] + >=dev-python/sphinx-0.6.6[${PYTHON_USEDEP}] + >=dev-python/spyder-kernels-2.5.1[${PYTHON_USEDEP}] + <dev-python/spyder-kernels-2.6.0[${PYTHON_USEDEP}] + >=dev-python/textdistance-4.2.0[${PYTHON_USEDEP}] + >=dev-python/three-merge-0.1.1[${PYTHON_USEDEP}] + >=dev-python/watchdog-0.10.3[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/cython[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/matplotlib[tk,${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-order[${PYTHON_USEDEP}] + dev-python/pytest-qt[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/QtPy[${PYTHON_USEDEP},pyside2,pyqt5] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + )" + +# Based on the courtesy of Arfrever +# This patch removes a call to update-desktop-database during build +# This fails because access is denied to this command during build +PATCHES=( + "${FILESDIR}/${PN}-5.0.0-build.patch" + "${FILESDIR}/${PN}-5.2.0-doc-theme-renamed.patch" +) + +DOCS=( + "AUTHORS.txt" + "Announcements.md" + "CHANGELOG.md" + "CODE_OF_CONDUCT.md" + "CONTRIBUTING.md" + "NOTICE.txt" + "README.md" + "RELEASE.md" +) + +distutils_enable_tests pytest +distutils_enable_sphinx docs/doc \ + dev-python/sphinx-panels \ + dev-python/pydata-sphinx-theme \ + dev-python/sphinx-multiversion + +python_prepare_all() { + # move docs into workdir + mv ../spyder-docs-${DOCS_PV}* docs || die + + # these dependencies are packaged separately: + # dev-python/spyder-kernels, + # dev-python/python-lsp-server, + # dev-python/qdarkstyle + rm -r external-deps/* || die + # runs against things packaged in external-deps dir + rm conftest.py || die + + # Do not depend on pyqt5<5.16, this dependency is carried by QtPy[pyqt5] + # Do not depend on pyqtwebengine<5.16, this dependency is carried by QtPy[webengine] + # Do not depend on parso and jedi, this is dependency is carried in python-lsp-server + # Do not depend on python-lsp-server, this dependency is carried in pyls-spyder + # Do not depend on ipython, this dependency is carried in spyder-kernels + # The explicit version requirements only make things more complicated, if e.g. + # pyls-spyder gains compatibility with a newer version of python-lsp-server + # in a new release it will take time for this information to propagate into + # the next spyder release. So just remove the dependency and let the other + # ebuilds handle the version requirements to speed things up and prevent + # issues such as Bug 803269. + sed -i \ + -e "/'pyqt5[ 0-9<=>.,]*',/d" \ + -e "/'pyqtwebengine[ 0-9<=>.,]*',/d" \ + -e "/'python-lsp-server\[all\][ 0-9<=>.,]*',/d" \ + -e "/'parso[ 0-9<=>.,]*',/d" \ + -e "/'jedi[ 0-9<=>.,]*',/d" \ + -e "/'pylint[ 0-9<=>.,]*',/d" \ + setup.py || die + # -e "/'ipython[ 0-9<=>.,]*',/d" \ + + sed -i \ + -e "/^PYLS_REQVER/c\PYLS_REQVER = '>=0.0.1'" \ + -e "/^PYLSP_REQVER/c\PYLSP_REQVER = '>=0.0.1'" \ + -e "/^PARSO_REQVER/c\PARSO_REQVER = '>=0.0.1'" \ + -e "/^JEDI_REQVER/c\JEDI_REQVER = '>=0.0.1'" \ + -e "/^PYLINT_REQVER/c\PYLINT_REQVER = '>=0.0.1'" \ + spyder/dependencies.py || die + # -e "/^IPYTHON_REQVER/c\IPYTHON_REQVER = '>=0.0.1'" \ + + # do not check deps, fails because we removed dependencies above + sed -i -e 's:test_dependencies_for_spyder_setup_install_requires_in_sync:_&:' \ + spyder/tests/test_dependencies_in_sync.py || die + + # can't check for update, need network + rm spyder/workers/tests/test_update.py || die + + # skip online test + rm spyder/widgets/github/tests/test_github_backend.py || die + + distutils-r1_python_prepare_all +} + +# Calling pytest directly somehow passes the pytest arguments to spyder +# causing an invalid argument error +python_test() { + virtx "${EPYTHON}" runtests.py +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib + optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas + optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy + optfeature "Symbolic mathematics in the IPython console" dev-python/sympy + optfeature "Import Matlab workspace files in the Variable Explorer" dev-python/scipy + optfeature "Run Cython files in the IPython console" dev-python/cython + optfeature "The hdf5/h5py plugin" dev-python/h5py + optfeature "The line profiler plugin" dev-python/spyder-line-profiler + optfeature "Vim key bindings" dev-python/spyder-vim + optfeature "Unittest support" dev-python/spyder-unittest + optfeature "System terminal inside spyder" dev-python/spyder-terminal + optfeature "Jupyter notebook support" dev-python/spyder-notebook + # spyder-memory-profiler is not compatible with spyder-5.2+ yet + # optfeature "The memory profiler plugin" dev-python/spyder-memory-profiler + # spyder-reports not yet updated to >=spyder-4.0.0 + # optfeature "Markdown reports using Pweave" dev-python/spyder-reports + # Plugins with no release yet: + # optfeature "Manage virtual environments and packages" dev-python/spyder-env-manager + # optfeature "VCS (e.g. git) integration" dev-python/spyder-vcs +} diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index c20bf2fb3a0f..bcbef08a4f72 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -22,6 +22,7 @@ DIST smallvec-1.11.2.crate 34801 BLAKE2B 58645e99db8f02db64d02c75860c7ea41836c42 DIST sqlglot-22.2.1.tar.gz 17761904 BLAKE2B 67cfb6333f9f4d00ed7ac4cd1c3eedfd7f374e98b63474464e01937eeae1a978fa9dc1f948cb90e26f39a4e27efc1f5c57c9a82697076f46d8c1c67bcb0d7785 SHA512 3894f1c3924c6830822788e22f6b271ac47d555a6a1d264221fba15dcfa67dc27496944568bdb202bdb7a53fc67ee8f9afc25c1ef4cc624cab144e2d49de032a DIST sqlglot-22.3.0.tar.gz 12723662 BLAKE2B 301c2590d91c274e038d0fcce467cc6991af4a36300ae8ec9196f189d275195deb85bee11bc168ef6e979507618f73b96eb07c9f5de9d77ac06e0c291f6f2965 SHA512 21c2bb9b63b44fb6813253ac382512d45e5f6a109449b28c4ab468055217b8402fd0a2d9f39cfc09f37f7bcd7ea43828d5138a6012a5230254417d5ad1cbb32f DIST sqlglot-22.3.1.tar.gz 12763515 BLAKE2B b4f3eba750ed44153d0032fa698b25580625cae4857ffac3fdc675304ae50cb89c576c32233982d80cae0b4cd3ad7b94e1eafd431bbaf3d5f2d1915446c49136 SHA512 511868ae992f037a0a844a940f3ccbd8b482fc6aad422bd060ab695d580504626248de8c71413c40745dedcb43020a56098d8fdadd83d649d78c33734a236a2a +DIST sqlglot-22.4.0.tar.gz 12770391 BLAKE2B c9695cd2241b5003ea3b3dee22ea53cc690f8444f168cbca627c9993792d68addccf8e86ad95c97bc553fb886f54b6a9932a890913cf2bb220403509cb243217 SHA512 6225722ab46aadbf01f1f24b5bd4fbeedbf97a6db6262365a08ea188d9cff1eecb380c4629a69065a0e2e5a1c397969d855b8bd3553527b6b36653ac60a8c66d 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-22.4.0.ebuild b/dev-python/sqlglot/sqlglot-22.4.0.ebuild new file mode 100644 index 000000000000..c040bab3734b --- /dev/null +++ b/dev-python/sqlglot/sqlglot-22.4.0.ebuild @@ -0,0 +1,121 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +CARGO_OPTIONAL=1 +CRATES=" + autocfg@1.1.0 + bitflags@1.3.2 + cfg-if@1.0.0 + heck@0.4.1 + indoc@2.0.4 + libc@0.2.150 + lock_api@0.4.11 + memoffset@0.9.0 + once_cell@1.19.0 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + proc-macro2@1.0.70 + pyo3-build-config@0.20.0 + pyo3-ffi@0.20.0 + pyo3-macros-backend@0.20.0 + pyo3-macros@0.20.0 + pyo3@0.20.0 + quote@1.0.33 + redox_syscall@0.4.1 + scopeguard@1.2.0 + smallvec@1.11.2 + syn@2.0.41 + target-lexicon@0.12.12 + unicode-ident@1.0.12 + unindent@0.2.3 + windows-targets@0.48.5 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_msvc@0.48.5 + windows_i686_gnu@0.48.5 + windows_i686_msvc@0.48.5 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_msvc@0.48.5 +" + +inherit cargo distutils-r1 pypi optfeature + +DESCRIPTION="An easily customizable SQL parser and transpiler" +HOMEPAGE=" + https://sqlglot.com/ + https://github.com/tobymao/sqlglot/ + https://pypi.org/project/sqlglot/ +" +SRC_URI+=" + native-extensions? ( + ${CARGO_CRATE_URIS} + ) +" + +LICENSE="MIT" +LICENSE+=" native-extensions? (" +# Dependent crate licenses +LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016" +LICENSE+=" )" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+native-extensions" + +BDEPEND=" + native-extensions? ( + ${RUST_DEPEND} + dev-util/maturin[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/sqlglotrs/sqlglotrs.*.so" + +src_unpack() { + cargo_src_unpack +} + +src_prepare() { + # remove fragile timing check + sed -i -e '/assertLessEqual(time\.time/d' tests/test_parser.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + + if use native-extensions; then + local DISTUTILS_USE_PEP517=maturin + cd sqlglotrs || die + distutils-r1_python_compile + cd - >/dev/null || die + fi +} + +python_test() { + local EPYTEST_IGNORE=( + # Tests require pyspark or duckdb which aren't in the tree. + # Pandas would be a requirement normally, but it gets ignored by proxy. + "tests/dataframe/integration/test_dataframe.py" + "tests/dataframe/integration/test_grouped_data.py" + "tests/dataframe/integration/test_session.py" + "tests/test_executor.py" + "tests/test_optimizer.py" + ) + + # make sure not to use an earlier installed version + local -x SQLGLOTRS_TOKENIZER=$(usex native-extensions 1 0) + rm -rf sqlglotrs || die + epytest +} + +pkg_postinst() { + optfeature "simplifying timedelta expressions" dev-python/python-dateutil +} diff --git a/dev-python/terminado/Manifest b/dev-python/terminado/Manifest index 0a4a312eb749..d8dca0603d8f 100644 --- a/dev-python/terminado/Manifest +++ b/dev-python/terminado/Manifest @@ -1 +1,2 @@ DIST terminado-0.18.0.tar.gz 32250 BLAKE2B 1993df502e0e54f78160aca91b475f989cd83a3ea6dedef3d70db7a2d2c7b4dd8ccbcb854302e665f079f4b12c91ad434c23407974ad18e8c6e1f47cf54179ec SHA512 4cefaf34e00d4c22b01c2cfbd55e385df1c2ad6e812fb6f9a47d1af2126251028d633a40c20e9babec7de927a44fc580c5972f85d00fbdd32b895a4197346c90 +DIST terminado-0.18.1.tar.gz 32701 BLAKE2B 136a4b8e9cd60c96d2e67c612bdcaa58c3e740d0782ecd9c15235d9a7b74ccab6e8f86502f6f73af355630446bcc3d4181b46922ae074bbb171be68bc04caaf6 SHA512 a7b5a420cef31926756fcfd6b7353868f9a5f169969940695348d7bd04501fc0f5e1e1814f8580f4e47edfc0218d29e145244102d66aaecb48fbe2afb39a7482 diff --git a/dev-python/terminado/terminado-0.18.1.ebuild b/dev-python/terminado/terminado-0.18.1.ebuild new file mode 100644 index 000000000000..043bddeaf478 --- /dev/null +++ b/dev-python/terminado/terminado-0.18.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Terminals served to term.js using Tornado websockets" +HOMEPAGE=" + https://github.com/jupyter/terminado/ + https://pypi.org/project/terminado/ +" + +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" + +RDEPEND=" + dev-python/ptyprocess[${PYTHON_USEDEP}] + dev-python/tornado[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_test() { + # workaround new readline defaults + echo "set enable-bracketed-paste off" > "${T}"/inputrc || die + local -x INPUTRC="${T}"/inputrc + distutils-r1_src_test +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p timeout -p rerunfailures --reruns=3 +} diff --git a/dev-python/traitlets/Manifest b/dev-python/traitlets/Manifest index 9361d53ad73d..a42acae64479 100644 --- a/dev-python/traitlets/Manifest +++ b/dev-python/traitlets/Manifest @@ -1 +1,2 @@ DIST traitlets-5.14.1.tar.gz 161107 BLAKE2B b247ce64383a6d677e426668cab844b8c476bd3bfaa6a1aa4d8325dd53c5c507aaa80b482e172771c491fea44de1568ca8455679a5fc915046d1d2bdba3b44d7 SHA512 c71f6a7825650eaf57d832e13c45b2526233082f371ab8ee035181c089558a11dc8ef4923b87a96cfdb80e83ba05d70d997686c031bde94c6bd523e032ba68fb +DIST traitlets-5.14.2.tar.gz 161435 BLAKE2B 63ffb85bb857f67bf986051a595294cc3ab541a9e410e4757d3d42c616f8605ca547f37f7e476b855e2060b5c8bef111bd5b0abc5a7e3d30f969802d94480b40 SHA512 44300ef05acfb243abd3005ab23699299fbe12a70e1aa88e05ffe3d5ef7e3e35107bf6bf55b652cb011e47e7e24191c1ca7967d9f0288078fda329be7107c771 diff --git a/dev-python/traitlets/traitlets-5.14.2.ebuild b/dev-python/traitlets/traitlets-5.14.2.ebuild new file mode 100644 index 000000000000..4ff88a4c3d98 --- /dev/null +++ b/dev-python/traitlets/traitlets-5.14.2.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=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A configuration system for Python applications" +HOMEPAGE=" + https://github.com/ipython/traitlets/ + https://pypi.org/project/traitlets/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +BDEPEND=" + test? ( + >=dev-python/argcomplete-2.0[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + dev-python/myst-parser \ + dev-python/pydata-sphinx-theme +distutils_enable_tests pytest + +python_test() { + local EPYTEST_IGNORE=( + tests/test_typing.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_mock +} diff --git a/dev-python/tree-sitter/tree-sitter-0.20.4.ebuild b/dev-python/tree-sitter/tree-sitter-0.20.4.ebuild index f091dfa9e9a0..dc2b35d33a4b 100644 --- a/dev-python/tree-sitter/tree-sitter-0.20.4.ebuild +++ b/dev-python/tree-sitter/tree-sitter-0.20.4.ebuild @@ -41,7 +41,7 @@ S=${WORKDIR}/py-${P} LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" DEPEND="dev-libs/tree-sitter:=" RDEPEND="${DEPEND} diff --git a/dev-python/zipp/Manifest b/dev-python/zipp/Manifest index 6942cb4dbabf..01ad241f3ef3 100644 --- a/dev-python/zipp/Manifest +++ b/dev-python/zipp/Manifest @@ -1 +1,2 @@ DIST zipp-3.17.0.tar.gz 20367 BLAKE2B d1b21b7692e77a019769cd0ab93c850a409bc1eea22e2e6eb0ecaf0c14b5c42a11110b272ee73afb111675f15dfab32aceae6515c05fd4e0c4749352e4be3c90 SHA512 efd100add7e8face19a6163d07b5efbef6f896d1f3ed2dbdd443ed7e523428bd779d1f05dfe806d4d2bbe10c17c21136f2a0b6f0cbe6000dd8a6abb86dede725 +DIST zipp-3.18.0.tar.gz 21258 BLAKE2B e1f2cb629117dbf8b30d9da7b2d7ec63c9f2dc15d7d0d70f7ac06c86c347fd2b825cf2f473bb66130c6cb0b4425c737e6b4f95034ef8d171f78b75e0ae28d1a3 SHA512 a347573ff33e1e1118fee13012c7df9f8aaf42606a3fcfcead3fb3e2bd7212de5c388c22bfd104b5a60b0d2515f13cb789dc64a0492496dd69b9807a23df0963 diff --git a/dev-python/zipp/zipp-3.18.0.ebuild b/dev-python/zipp/zipp-3.18.0.ebuild new file mode 100644 index 000000000000..5e6e238b8126 --- /dev/null +++ b/dev-python/zipp/zipp-3.18.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 8 -- sys-apps/portage dep +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Backport of pathlib-compatible object wrapper for zip files" +HOMEPAGE=" + https://github.com/jaraco/zipp/ + https://pypi.org/project/zipp/ +" + +LICENSE="MIT" +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" + +# big_o is only used in test_complexity, that we ignore +BDEPEND=" + test? ( + dev-python/jaraco-functools[${PYTHON_USEDEP}] + dev-python/jaraco-itertools[${PYTHON_USEDEP}] + dev-python/more-itertools[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + # performance tests are flaky by design + tests/test_complexity.py +) + +src_configure() { + grep -q 'build-backend = "setuptools' pyproject.toml || + die "Upstream changed build-backend, recheck" + # write a custom pyproject.toml to ease setuptools bootstrap + cat > pyproject.toml <<-EOF || die + [build-system] + requires = ["flit_core >=3.2,<4"] + build-backend = "flit_core.buildapi" + + [project] + name = "zipp" + version = "${PV}" + description = "Backport of pathlib-compatible object wrapper for zip files" + EOF +} |
