diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-03-22 08:33:34 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-03-22 08:33:34 +0000 |
| commit | 890b811f0ede1c8b9cc5f6b1fbef096329583cb3 (patch) | |
| tree | b5e3c3995d9b2570d30eb928133b1d7545cc067f /dev-python | |
| parent | 2d15d47274cbeedd03f04fc85339f45225bae38a (diff) | |
| download | baldeagleos-repo-890b811f0ede1c8b9cc5f6b1fbef096329583cb3.tar.gz baldeagleos-repo-890b811f0ede1c8b9cc5f6b1fbef096329583cb3.tar.xz baldeagleos-repo-890b811f0ede1c8b9cc5f6b1fbef096329583cb3.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
69 files changed, 1430 insertions, 40 deletions
diff --git a/dev-python/Faker/Faker-18.3.0.ebuild b/dev-python/Faker/Faker-18.3.0.ebuild new file mode 100644 index 000000000000..9fd3af59256e --- /dev/null +++ b/dev-python/Faker/Faker-18.3.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 2022-2023 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_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A Python package that generates fake data for you" +HOMEPAGE=" + https://github.com/joke2k/faker/ + https://pypi.org/project/Faker/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}] + !dev-ruby/faker +" +BDEPEND=" + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP},tiff] + dev-python/validators[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/Faker/Manifest b/dev-python/Faker/Manifest index f6c88f162f61..f108c6e975e8 100644 --- a/dev-python/Faker/Manifest +++ b/dev-python/Faker/Manifest @@ -1,2 +1,3 @@ DIST Faker-17.6.0.tar.gz 1654373 BLAKE2B 69a1d3bcd12188f7d9c0af61d57c62489434fc2fb6a4fea3c45a98d7395c3df83926d260672790d3b88f4b6bcf780e5b842e10b7efb500d503159869505bf4b2 SHA512 a879fb7e0c82693d4d3062b32382eb6d1f3c556c7d2e4c28168cba43c560bf17ebb84b94692ba7db738871251990feca8ccbf271c6e08c61847b76b84deb9680 DIST Faker-18.2.0.tar.gz 1661956 BLAKE2B e8d7f9cc7cb5d5fd8fe9400311a54613557e072d504bd34944cffa777720484ec950854a6f7ddac8193afec560beaee86661a83a80b10de329db038f5a302d13 SHA512 799251ed4cffa0af3159856846f376bd0c0bb0233188cdcf72e7e5fdbb60841a56ca6ccd696c6a79d13f3dfb7a17e95b904c467d49d02eac4d1eeec6c89ef9f1 +DIST Faker-18.3.0.tar.gz 1662268 BLAKE2B 072dcb435712e0aee52bf0c1fa381ddefe3cd06567f222736fde9520b0d502a91199058910bb2d4fa72b2d0863d2fc62506add4b4b1a4e2c718e6ab4c3ad2e8d SHA512 54c7e4ea1685c0ac52b26bbd1f1bf14d6dd9b2d0919133c449665be9594ea073214a8d3ecbb79fa59a0cdf30dcd911275fd8009e404e65e8bd3aaa07643a3f5a diff --git a/dev-python/argcomplete/Manifest b/dev-python/argcomplete/Manifest index d78bc7044b15..41bf582c1b95 100644 --- a/dev-python/argcomplete/Manifest +++ b/dev-python/argcomplete/Manifest @@ -4,3 +4,4 @@ DIST argcomplete-2.1.1.tar.gz 54042 BLAKE2B f4d1825306a17a873e3b3a9f23fea20ba29c DIST argcomplete-2.1.2.tar.gz 54114 BLAKE2B 19d29eb26c8d77998dcba51c263f49800ff98f22038964faf63d7b5963e8d62ca71ade9493937014f2e030add8a7d1032e2fdffce28765e12164906499cd2bcb SHA512 a91e3c0274c780da173659524f166b98f55342e54fbd38583757e65350b2288ea0e7f5acee7cb83b11478eda1b9b0f82ae6b0f559d7104c4ed67a6e1c9befa24 DIST argcomplete-3.0.0.tar.gz 54666 BLAKE2B 98ea63847232e17a485f2a5484fc58d2154281046c190c98f542ee9c3e82ee13d4504056a8da29a093632693badb9a93067ad64b28ffa3d58d22de9c0a99f21a SHA512 ecb88f6487fe6b4e7ecd8b504496bd2e4ffb4ca9dc0e27557d6db49b5b07610f6a8560e15cb5a5ad49af71e5b6c1d825a2e8a72731b2c39ba3907c2a9fe0a14f DIST argcomplete-3.0.3.tar.gz 54772 BLAKE2B 59ad1fc393f37875c152e7bda958cf185bb4d5cf6b331d4c2847f09a040365449906bdce3eb6bd251d569e3fa50bafbdb2f328c0bcc7f2b7dc2608c562b694d0 SHA512 413407d6f54708d6321b6ab67bab5755084846588aa4fceabe35ea4de95d652887847c6df4739da51ae89aeadac90e0f6cb0e1d92237267fa92502e2c8c27070 +DIST argcomplete-3.0.4.tar.gz 55160 BLAKE2B bb4453d9cfc5a82d77d96068845c4aaa187fd9fef4751d1f115700e496eb97d74fc1c677d0fccfa14ce4ae3dbd205ea68a684d98e88be3731712efe73a5db858 SHA512 0c38f7b2a26045717e1ee52d812d8b9d0688e484201b100b4ad1b7a881e0ef61b793f979d620edcc0a79f512a8e87dbc81b84d17a7857d43192fdd3adc1c6733 diff --git a/dev-python/argcomplete/argcomplete-3.0.4.ebuild b/dev-python/argcomplete/argcomplete-3.0.4.ebuild new file mode 100644 index 000000000000..67eef1a1c772 --- /dev/null +++ b/dev-python/argcomplete/argcomplete-3.0.4.ebuild @@ -0,0 +1,40 @@ +# 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_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Bash tab completion for argparse" +HOMEPAGE=" + https://github.com/kislyuk/argcomplete/ + https://pypi.org/project/argcomplete/ +" + +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" +IUSE="test" +RESTRICT="!test? ( test )" + +# pip is called as an external tool +BDEPEND=" + test? ( + app-shells/fish + app-shells/tcsh + dev-python/pexpect[${PYTHON_USEDEP}] + >=dev-python/pip-19 + ) +" + +src_prepare() { + sed -i -e 's:timeout=5:timeout=30:' test/test.py || die + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" test/test.py -v || die +} diff --git a/dev-python/asyncstdlib/Manifest b/dev-python/asyncstdlib/Manifest index a7c0efc58390..f93e2e29969e 100644 --- a/dev-python/asyncstdlib/Manifest +++ b/dev-python/asyncstdlib/Manifest @@ -1 +1,2 @@ DIST asyncstdlib-3.10.5.gh.tar.gz 54697 BLAKE2B b8a99a83e97084c4e09ddac0402ca23a8d42921b72774c0658aa0b9a1aa0ac1329baae782f105a52a4b6d979d490d97814ea6eac0e7570a7ca27784a27fa5c4d SHA512 3dfa8d1e5e2ef02dbf52fe7094b68496066978cfa9839cad59222ace40e0871369b45d93c1caa87e0f029c328253f6d72d8377625a8ed182498280662fcb7545 +DIST asyncstdlib-3.10.6.gh.tar.gz 56335 BLAKE2B 15b33e90454c2b1f9ca8ddd9c71db74af1541e26af59c1a5a8b6240ec7b9e5db06f0455c778de39ff6cce1e87db41403fbc1b8965da0764f8215c4dd6bfa8e17 SHA512 e8b8b72f7d59593876f6701632d4b4839bf6110134b8dc62a33f665c52528a94f53ac6c43195520c2902e66f68b379cf7d9258e29fb25c69ae2fa98cfe4b10a6 diff --git a/dev-python/asyncstdlib/asyncstdlib-3.10.6.ebuild b/dev-python/asyncstdlib/asyncstdlib-3.10.6.ebuild new file mode 100644 index 000000000000..07ce68201b49 --- /dev/null +++ b/dev-python/asyncstdlib/asyncstdlib-3.10.6.ebuild @@ -0,0 +1,25 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="The missing async toolbox" +HOMEPAGE=" + https://github.com/maxfischer2781/asyncstdlib/ + https://pypi.org/project/asyncstdlib/ +" +SRC_URI=" + https://github.com/maxfischer2781/asyncstdlib/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +distutils_enable_tests pytest diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 0ee2b4d45ba4..0e936e48e793 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -3,3 +3,4 @@ DIST boto3-1.26.89.gh.tar.gz 615718 BLAKE2B 3257e6efafaf139daf935385c252c10929be DIST boto3-1.26.93.gh.tar.gz 617542 BLAKE2B 08f045cdac7c977d9a575ca7f487314baf6f358e82b13ff3a2063d85ed23aa98c38445d444ce78730b01381fe04eb5bd5909868a5e01a529d2028c065294714b SHA512 9af0dad9189030bbd310b634af80b731799166d89c561d640308ae913c1f81f0ce50e1a0c303bff974006281be03125e454495936cca30db3cf33a4d95d66783 DIST boto3-1.26.94.gh.tar.gz 617861 BLAKE2B 908b40868735038810cf75c903bbc8bad00a6ea8776b2a5a236683f18f2185971f8a13db5349086b1aef2c4d51361c8ebf30f2d671cea7f4101c9882a59b6acf SHA512 036278668afa33dfdaab9cc2e02c2c3e0596ec1c1b407767f22bc6a4cd87913f883f85430ff6a120c5e0fdd2194b70c911fe7a207bc26ed5fcd415f3754cde35 DIST boto3-1.26.95.gh.tar.gz 623665 BLAKE2B d1d979210e22d4d39eff7148711be28ceb80b26409567c1d23f67a523667276c3a6b2a79519f89bed6d72c8cd4c8a9e04ad886805de51605c1fefcf45cebd08b SHA512 0147714fc05e5b8cab29ac66d9701fc3f64623f84a800597478133dd20f3637f15471a8cd63fc88820a7229b425843731e00470eb66106cdf525da5ce0ff3091 +DIST boto3-1.26.96.gh.tar.gz 624075 BLAKE2B 6603922e29464733f0e2c59f7df5b5ca9d0092e69ab9d70bb64248ccc6c522a543ec14a480b62aeaaf26b3802867ded3ce054bb5caa37a0bd909e805cce6c422 SHA512 db5740b305d667028c0724555575d7ca21afa4f7ae634159dd5379d3907539964068120eb4011184ab63749302884a8ad4cd80fc0de9d69fd01c6f64ab3ee379 diff --git a/dev-python/boto3/boto3-1.26.96.ebuild b/dev-python/boto3/boto3-1.26.96.ebuild new file mode 100644 index 000000000000..9523f65d5fb9 --- /dev/null +++ b/dev-python/boto3/boto3-1.26.96.ebuild @@ -0,0 +1,68 @@ +# 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_{10..11} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/boto3" + inherit git-r3 + BOTOCORE_PV=${PV} +else + SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + " + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + + # botocore is x.(y+3).z + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)" +fi + +RDEPEND=" + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +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() { + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 0e05afd8969b..eeffbf643107 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -3,3 +3,4 @@ DIST botocore-1.29.89.gh.tar.gz 11227280 BLAKE2B 41a1243972e591ea23fb2eebaa5b5fb DIST botocore-1.29.93.gh.tar.gz 11239506 BLAKE2B 7a05d5c611cbeda21e62abbbe13ab18cceae2d8b28136fc8669b09e3ebdcad5e5e352b32e807af7f2f038b6d045f82cf1a9cb3ec854f37db1f3204725fd8971e SHA512 df4ba05c28323321eae25412b97eb9f48978563aad5a0c166515bac3193b0404ebe111565be3b1e42ea47439f749e339ce11cc21736d5403ffbbe689f6fd8da8 DIST botocore-1.29.94.gh.tar.gz 11242930 BLAKE2B d6abdda0ad69bfa635c2cdccefff5c0feaa27fb1a307d5cacb140ded35c246a52ebbe5657a9317bdc1441939d2bd62d5829b2ecce01c05976f56737f92fc3f62 SHA512 23c1fb835d492f414a0a67ac03e50ea31f6343676c7e6e8649067b11e3213f84eb068562fe5bd9a49ead9e37381ab132ac820d98fa4af805b41eaf53b0f9cb1b DIST botocore-1.29.95.gh.tar.gz 11252473 BLAKE2B 500dfc60af5127b56d41fc8ffa2742b5a0086614e48517590c795ae51ea55936a621e4a88d27248a9c52dfb4fe99c716ac2b191329071b94c13078facf4b0967 SHA512 2efbff00cc696930bb71713ce18ad61449c2e79c0ede48218347e3c410a9ff9752c44a35dd03f45286c2f6e05b34e85bd8b01c0c9f92d877c9e2d0209b6cafe6 +DIST botocore-1.29.96.gh.tar.gz 11257444 BLAKE2B 28cea7e2909a4c1f5a399633dbaa52b87fedc25f4c9cfc9f7c9a977dc84f86dcb3da9d1109b2c77e815bb5338337c850f260d9c2adc27d1f8bd529f087c2a299 SHA512 a6c414e275d7b31eed94175fd54142a909b8957685ab6779488704c905595f83c0bf376d5d37386266b103a3efde1a46f853ac7b1631056069903c0c57b55da2 diff --git a/dev-python/botocore/botocore-1.29.96.ebuild b/dev-python/botocore/botocore-1.29.96.ebuild new file mode 100644 index 000000000000..0f4daaa48e81 --- /dev/null +++ b/dev-python/botocore/botocore-1.29.96.ebuild @@ -0,0 +1,74 @@ +# 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_{10..11} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/botocore" + inherit git-r3 +else + SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + " + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +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 + # fails on unrelated warnings + tests/unit/test_client.py::TestAutoGeneratedClient::test_BOTO_DISABLE_COMMONNAME + tests/unit/test_client.py::TestClientErrors::test_BOTO_DISABLE_COMMONNAME + # TODO + tests/functional/test_credentials.py::SSOSessionTest::test_token_chosen_from_provider + ) + + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/docstring-to-markdown/Manifest b/dev-python/docstring-to-markdown/Manifest index cb457e6c6182..9b97b93c7e53 100644 --- a/dev-python/docstring-to-markdown/Manifest +++ b/dev-python/docstring-to-markdown/Manifest @@ -1 +1,2 @@ DIST docstring-to-markdown-0.11.gh.tar.gz 25349 BLAKE2B ea5c5d568146422826075bddc1acfe64ebe9d8c2a1631aae2afc50e99e380b038becc8f589097b329c80287fb2308dc3ce4c898252eb45086a893c74fa7a7aeb SHA512 6f593628f1dc49897359f7366ee7cb380e5f5e68f6cefd16f349eb470df62804c8f20d679484b987dbb33155e2c97ee98c6759e17ebb1ca38499ea5e984baede +DIST docstring-to-markdown-0.12.gh.tar.gz 25464 BLAKE2B bb5168b9ddd14f2da63577e302b9c7ec016abcbbfbd1653a22ed646f6980fb4e6d0994a9aa4a6c28f0955cb60d581f2d2e216ab731ae405b3c02d0f14e8fe82f SHA512 ac958cca518164406feff07f665d6edc6113d547393ff28d29a64b8b3f1bae306255ebf859f3e5f1fc75fabea985e1dd24d47c32766403b6ffabf9c31ff7ba45 diff --git a/dev-python/docstring-to-markdown/docstring-to-markdown-0.12.ebuild b/dev-python/docstring-to-markdown/docstring-to-markdown-0.12.ebuild new file mode 100644 index 000000000000..8bb7b1ef2e9f --- /dev/null +++ b/dev-python/docstring-to-markdown/docstring-to-markdown-0.12.ebuild @@ -0,0 +1,32 @@ +# 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_{7,8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="On the fly conversion of Python docstrings to markdown" +HOMEPAGE=" + https://github.com/python-lsp/docstring-to-markdown/ + https://pypi.org/project/docstring-to-markdown/ +" +SRC_URI=" + https://github.com/python-lsp/docstring-to-markdown/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +distutils_enable_tests pytest + +python_prepare_all() { + # Do not depend on pytest-cov/pytest-flake8 + sed -e '/--cov/d' -e '/--flake8/d' -i setup.cfg || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/elementpath/Manifest b/dev-python/elementpath/Manifest index df7805fbabb8..df0c7587a1cd 100644 --- a/dev-python/elementpath/Manifest +++ b/dev-python/elementpath/Manifest @@ -1 +1,2 @@ DIST elementpath-4.0.1.gh.tar.gz 305205 BLAKE2B 0de825213e91c5eb51b8b07973a311e982c0812180ac6bf79ac3357c7a747ff25b2126c5687a71fc06a619309749aee518ecf18bfa64335e0a5a93249579dace SHA512 22f76c028e665282fb81a99939c870c742461f5a107788fde398e88d4e59850161a4a7ab3159ce01076933cf211fcc4ec3e5727719e10520978ba33c9a13903d +DIST elementpath-4.1.0.tar.gz 317239 BLAKE2B 9a8b0832a866ac8cec524dc42ce4fa99c015bc8becd122ebcb13bb297d2aab3267941b0739f30ad4487d3ed405a2b192e29de0134895493c90ba2f360fdcbb75 SHA512 af40c4a2a0b97c4a39b79f12e8d7a1ec6600282684bf3bbb722e88c28a517d24db7795551d06f4b0f2f87113f93e18ff6cfb15fd142cd33b47388e69f66de9ea diff --git a/dev-python/elementpath/elementpath-4.1.0.ebuild b/dev-python/elementpath/elementpath-4.1.0.ebuild new file mode 100644 index 000000000000..76956a781094 --- /dev/null +++ b/dev-python/elementpath/elementpath-4.1.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 2019-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="XPath 1.0/2.0 parsers and selectors for ElementTree and lxml" +HOMEPAGE=" + https://github.com/sissaschool/elementpath/ + https://pypi.org/project/elementpath/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +BDEPEND=" + test? ( + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/xmlschema[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +src_prepare() { + # fails for some reason, more fit for upstream testing anyway + rm tests/test_typing.py || die + distutils-r1_src_prepare +} diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest index 83f2961e7935..082c6732d649 100644 --- a/dev-python/fakeredis/Manifest +++ b/dev-python/fakeredis/Manifest @@ -1,3 +1,4 @@ DIST fakeredis-py-2.10.0.gh.tar.gz 160050 BLAKE2B 9c97abe80ca683cd068e3e8616b068c166f08f1b1eb360b76c57da4b9d68396a5dd6fb4152e92dcd73a1407c50e259db54ba5edd61bc2dca774672de84fcf2d3 SHA512 31df18ead5e2937a7a98297f4dc08790371968dd1fa6d9dfa54eb35ab27c2a4a88e2186c252c8a630e0e70fa04e67eccb68e687f9383b6770313cf8b79f6b3bc DIST fakeredis-py-2.10.1.gh.tar.gz 159626 BLAKE2B 41d28b57c369273d96a985d6b47c8b162d1fc94c508daae12048e139c9d7bb9c44b39c95eb77cfb06d24cd1b44ccaa65f3d32f4976bfdda72e319d5da1cd69c4 SHA512 5659f5e3a6344448916bfe9ad88fff45b266488aa6d4e0b503f8594308ecfb8e97b1f588b658cb01a5dbe5fc06e64a1bbb6eafaa28aed0b8761b5e15638615ea +DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b SHA512 2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a DIST fakeredis-py-2.9.2.gh.tar.gz 165549 BLAKE2B 351e07976ed6a4d11429c83aefe3a0e2d4397a97fdb2904ab65ac4d2717d129f5ac018f071b8670012aabe127d87350f3285f6f86369bb4b7eadbd61da5774f7 SHA512 6e9ab0851f74ade2325aad88b86212b4052ca53a7510034cd888ef4080eec4129b226ab8c166ab09fa6e3d3b2c3c70fce8adafdb4081a4d3501fd4d9d5e04b84 diff --git a/dev-python/fakeredis/fakeredis-2.10.2.ebuild b/dev-python/fakeredis/fakeredis-2.10.2.ebuild new file mode 100644 index 000000000000..fb976bc9dfa8 --- /dev/null +++ b/dev-python/fakeredis/fakeredis-2.10.2.ebuild @@ -0,0 +1,84 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +MY_P=fakeredis-py-${PV} +DESCRIPTION="Fake implementation of redis API for testing purposes" +HOMEPAGE=" + https://github.com/cunla/fakeredis-py/ + https://pypi.org/project/fakeredis/ +" +SRC_URI=" + https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + <dev-python/redis-5[${PYTHON_USEDEP}] + >=dev-python/redis-4.2[${PYTHON_USEDEP}] + <dev-python/sortedcontainers-3[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.4.0[${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 + ) + 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' + ) + 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/frozendict/Manifest b/dev-python/frozendict/Manifest index 4bdae1f6bc76..291455434320 100644 --- a/dev-python/frozendict/Manifest +++ b/dev-python/frozendict/Manifest @@ -1 +1,2 @@ DIST frozendict-2.3.5.gh.tar.gz 307566 BLAKE2B 8d8b7d483e248be5de3c6e689dbb7e8dc40f8a8112456308e6a0e633dee04640aa0bb43edcf07e2a9829b87b8d082aa0926581622372224e9636cca27eaeaef0 SHA512 9e3820f2a24f2362f1be82049df871449a5225a927efa7735a2e9320e3c9f835a4a0a99a0037a3366df55a5744b38e96b358a9cc624defa79f45a5bff4c3b61d +DIST frozendict-2.3.6.gh.tar.gz 309471 BLAKE2B 1de3b0c2993243622d6f9c1058b086e3225216b6e80d0bc9b73b974ba2a1f18faa8ec97f5e1b3083e7ac4469517202fc273ec694f02e5405c5d4fc241acf9d14 SHA512 b57a77164f77b0f067e29377b7694ac9e4d7dbae617b649ed2018779dab5c3da27176481079386f43f3b3dc66a84cac0bd85b4b0b650072b812b3c6cffd06ba9 diff --git a/dev-python/frozendict/frozendict-2.3.6.ebuild b/dev-python/frozendict/frozendict-2.3.6.ebuild new file mode 100644 index 000000000000..02ae16c6ed57 --- /dev/null +++ b/dev-python/frozendict/frozendict-2.3.6.ebuild @@ -0,0 +1,38 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="A simple immutable mapping for python" +HOMEPAGE=" + https://github.com/Marco-Sulla/python-frozendict/ + https://pypi.org/project/frozendict/ +" +SRC_URI=" + https://github.com/Marco-Sulla/python-frozendict/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/python-${P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" + +distutils_enable_tests pytest + +python_compile() { + # This prevents the build system from ignoring build failures, sigh. + local -x CIBUILDWHEEL=1 + + distutils-r1_python_compile +} + +python_test() { + rm -rf frozendict || die + epytest +} diff --git a/dev-python/google-api-python-client/Manifest b/dev-python/google-api-python-client/Manifest index d179d24c638a..70887e90e0f1 100644 --- a/dev-python/google-api-python-client/Manifest +++ b/dev-python/google-api-python-client/Manifest @@ -1,2 +1,3 @@ DIST google-api-python-client-2.80.0.gh.tar.gz 38885627 BLAKE2B f81943e8c4179130bbd7f3d89cdd3c7c5c828c78b9cbed6a5c011c3a0751a19a223b6e52a5fe8f739a8170b6e0e186b5e6b56b4ac08c88a1bf167cb5652d0e18 SHA512 cabd955f730a2b9bf8e8e3579b28935cbbc16b0ac4534d4b841317ff86cec420dd2a5a7b5b319a6a765cce02258fb43cafd6165ae49a7b99e0e891d9ba86e198 DIST google-api-python-client-2.81.0.gh.tar.gz 39081445 BLAKE2B 779b22f07b12834d649982a52491b567472af7fd83f49e6b9d4a20a991dd57e5bd11e32fdba05f004449733bf5cb2fd2a5ec4a3f012a558989563c88256c3199 SHA512 72e357d68314cda2cbb6d679ad22ecedf3a1ede87b94067bbaca886bd9a17ef3f881ca6060fc23c3c8848fba96668ff0b7ba9f4b44da625f3f34bed5f537e762 +DIST google-api-python-client-2.82.0.tar.gz 10656632 BLAKE2B c94f96c727f7d0cacf008791b3b480fdda3289cfb4326691de7a26d6aeb28ae11c39ef4c8e0dd06a5025e0f77ef473a87cc329b6a10857bff0ba1c4a76814d8d SHA512 913e46120dd624907f1126a00f80ad378e5a874186e09b62b9a5e31b080e5c35af7aaa28e1527c54b2697d2e1af32f02d22aa1dcaa07d3f271fba77ba654d2aa diff --git a/dev-python/google-api-python-client/google-api-python-client-2.82.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.82.0.ebuild new file mode 100644 index 000000000000..0194f9640998 --- /dev/null +++ b/dev-python/google-api-python-client/google-api-python-client-2.82.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{10..11} ) + +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/googleapis-common-protos/Manifest b/dev-python/googleapis-common-protos/Manifest index df043d5d1f6d..20a1e77a5c5c 100644 --- a/dev-python/googleapis-common-protos/Manifest +++ b/dev-python/googleapis-common-protos/Manifest @@ -1 +1,2 @@ DIST googleapis-common-protos-1.58.0.tar.gz 117015 BLAKE2B 7821d83e40c42196517e27f9340741deb2c04fe15129c6e6f9c90c884ce6c4ffae38d456494d5271ac42f680595f82941df70bb2d94c5c20743d99c237a29354 SHA512 3e057e8dce7898ebf5c63ea1ded4f336ad5235ee6e7595739efd4c005b34f63d88481242f2d5a38b8d531d79d1957c2b79918bf61eb3ebc52227ec20b204cc82 +DIST googleapis-common-protos-1.59.0.tar.gz 117558 BLAKE2B cd566fd57f9a3e783389aa31ee9c148efa267b727c134ef870c3a3da8d43caf7a55b0623f26810b7fa24ec3f828d8e517ffe76eedf6c80eac677b4b982e74a07 SHA512 7699f818f30f2938a6c701b41e84cd0cefd652c6004169532461b5c435270ea42806271032ff5b3cc8cae04b9a8568795aa0786dc362f190fe3e1eeee0a0cda7 diff --git a/dev-python/googleapis-common-protos/googleapis-common-protos-1.59.0.ebuild b/dev-python/googleapis-common-protos/googleapis-common-protos-1.59.0.ebuild new file mode 100644 index 000000000000..2bb77565f0d4 --- /dev/null +++ b/dev-python/googleapis-common-protos/googleapis-common-protos-1.59.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 2020-2023 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_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python classes generated from the common protos in the googleapis repository" +HOMEPAGE=" + https://github.com/googleapis/python-api-common-protos/ + https://pypi.org/project/googleapis-common-protos/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + <dev-python/protobuf-python-5[${PYTHON_USEDEP}] + >=dev-python/protobuf-python-3.15.0[${PYTHON_USEDEP}] + !dev-python/namespace-google +" + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}" -name '*.pth' -delete || die +} + +# no tests as this is all generated code diff --git a/dev-python/httplib2/Manifest b/dev-python/httplib2/Manifest index 5c971426580d..a32c10350a55 100644 --- a/dev-python/httplib2/Manifest +++ b/dev-python/httplib2/Manifest @@ -1 +1,2 @@ DIST httplib2-0.21.0.gh.tar.gz 373245 BLAKE2B d7194773c2b61cbf579da5aea7f52cb3481eed86896be215b942de7f9418a39c4a934868c9e01b6bfb050a32e4b7bc7ff775b28af5ba5db2827131e436bf0b04 SHA512 8269014f05f5e4b668c7dea8ae708b27a60b4216d712a93ab58b74f399ab5bc0dcdcd8c1411ccff587c7bdb6bc20917451ad969e5bef2d5c5262327cabe17bbb +DIST httplib2-0.22.0.gh.tar.gz 373972 BLAKE2B 6adfbc61d4f898666512da5d02cf082fcaf76bf1816de955510f5c4721a36c38d99fef963d5150b62cca091543ed65bb1ef5f33ce99123e1cd2abe467d4970e3 SHA512 77210f85ccaa2d2cf4a6c89f5146ca5eb9a6f26f00e862f6d0716ec73baffdf94714ae1d5eaced4349920b91276a7835e2f028c6d9156e84c241514b198791e5 diff --git a/dev-python/httplib2/httplib2-0.22.0.ebuild b/dev-python/httplib2/httplib2-0.22.0.ebuild new file mode 100644 index 000000000000..7c10aaee5073 --- /dev/null +++ b/dev-python/httplib2/httplib2-0.22.0.ebuild @@ -0,0 +1,70 @@ +# 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_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A comprehensive HTTP client library" +HOMEPAGE=" + https://pypi.org/project/httplib2/ + https://github.com/httplib2/httplib2/ +" +SRC_URI=" + https://github.com/httplib2/httplib2/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +RDEPEND=" + app-misc/ca-certificates + dev-python/pyparsing[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-libs/openssl + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( "${FILESDIR}"/${PN}-0.12.1-use-system-cacerts.patch ) + +src_prepare() { + sed -i -e '/--cov/d' setup.cfg || die + # cryptography dep is entirely optional, and has a good fallback + sed -i -e 's:from cryptography.*:pass:' tests/__init__.py || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # broken by using system certificates + tests/test_cacerts_from_env.py::test_certs_file_from_builtin + tests/test_cacerts_from_env.py::test_certs_file_from_environment + tests/test_cacerts_from_env.py::test_with_certifi_removed_from_modules + + # broken by new PySocks, probably + tests/test_proxy.py::test_server_not_found_error_is_raised_for_invalid_hostname + tests/test_proxy.py::test_socks5_auth + + # broken by recerting (TODO) + tests/test_https.py::test_min_tls_version + tests/test_https.py::test_max_tls_version + + # new cryptography or openssl-3? + tests/test_https.py::test_client_cert_password_verified + ) + + # tests in python* are replaced by tests/ + # upstream fails at cleaning up stuff + epytest tests +} diff --git a/dev-python/ipykernel/Manifest b/dev-python/ipykernel/Manifest index ad0a4d1b9668..0b57e7973d17 100644 --- a/dev-python/ipykernel/Manifest +++ b/dev-python/ipykernel/Manifest @@ -1,3 +1,4 @@ DIST ipykernel-6.20.2.tar.gz 149263 BLAKE2B 38b3afdbe237ec2facb3af42311315a060f1dba845cb3f7ce10a3d5f68679804640b0dbda869395817a8612af2033f5936ff7f6f3b3b822f47ed512a3b8c0c4d SHA512 9c79c7fa175cd81a920e6b1f2159dda30ba9068437cb1d24b09d864ded36b439045e58f240daee1a46ae375f1990cf318cd8b2e2c02aa6d6e2004d90aff5225a DIST ipykernel-6.21.2.tar.gz 150365 BLAKE2B e1bc29018459738a3358af2d4225397028013c1ef9ceb571cb225fafb1a1570c349759caf723e03c6a67a9c354c83d178ae777f7ea4222f5c2ed35e41e22638d SHA512 e4d3aa102d83f9c9b16f392c5b37d55a9cd987ca6a58ce1c4b59d282ec945dcc8803539bf54d7b3bb71c11058fc20a3947fd875bebc5efa5f629015b544fe819 DIST ipykernel-6.21.3.tar.gz 150659 BLAKE2B 1fd0f0994b0065c662611bf629a4a755a2285b66f9d1e60bcc46fc84a445c7af6b882e09be2c4d26e8ca524a4ccda8534d04e357ec575a8fc034f0f4a437b750 SHA512 68e7bbae60e07805590e00acb186b14ef3c21426db9c49d04b93cb38083a7c5c20b177b72743674224741d8ca946604e8ae733f26d11738b7d99fabdee642064 +DIST ipykernel-6.22.0.tar.gz 151303 BLAKE2B c3567066375099d388c65b43b5b8c8059a823f4185855b6131fd90f42624a71c08d839a3c59c41cf83bb51ec07d0c0487d7bbee573eafa7e7d049dbeff8e59a8 SHA512 e109a2b771ffa40e05416bd925f26a4492c65a44a1acd8100e65ae3e779da9a0eef7222566e79cdcbed4b0fc3224fbd0722728d3fe953b16ab1a14090d0205c2 diff --git a/dev-python/ipykernel/ipykernel-6.22.0.ebuild b/dev-python/ipykernel/ipykernel-6.22.0.ebuild new file mode 100644 index 000000000000..73932e988d6c --- /dev/null +++ b/dev-python/ipykernel/ipykernel-6.22.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi virtualx + +DESCRIPTION="IPython Kernel for Jupyter" +HOMEPAGE=" + https://github.com/ipython/ipykernel/ + https://pypi.org/project/ipykernel/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + >=dev-python/comm-0.1.1[${PYTHON_USEDEP}] + >=dev-python/debugpy-1.6.5[${PYTHON_USEDEP}] + >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}] + >=dev-python/jupyter_client-8[${PYTHON_USEDEP}] + >=dev-python/jupyter_core-4.12[${PYTHON_USEDEP}] + >=dev-python/matplotlib-inline-0.1[${PYTHON_USEDEP}] + dev-python/nest_asyncio[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + >=dev-python/pyzmq-20[${PYTHON_USEDEP}] + >=dev-python/tornado-6.1[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.4.0[${PYTHON_USEDEP}] +" +# RDEPEND seems specifically needed in BDEPEND, at least jupyter +# bug #816486 +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/ipyparallel[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + # Use python3 in kernel.json configuration, bug #784764 + sed -i -e '/python3.[0-9]\+/s//python3/' \ + "${BUILD_DIR}/install${EPREFIX}/usr/share/jupyter/kernels/python3/kernel.json" || die +} + +src_test() { + local EPYTEST_DESELECT=( + # TODO + ipykernel/tests/test_debugger.py::test_attach_debug + ipykernel/tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines + ipykernel/tests/test_debugger.py::test_rich_inspect_at_breakpoint + ipykernel/tests/test_debugger.py::test_rich_inspect_not_at_breakpoint + ipykernel/tests/test_debugger.py::test_set_breakpoints + ipykernel/tests/test_debugger.py::test_stop_on_breakpoint + ipykernel/tests/test_debugger.py::test_copy_to_globals + # hangs? + ipykernel/tests/test_eventloop.py::test_tk_loop + ) + + virtx distutils-r1_src_test +} diff --git a/dev-python/ipywidgets/Manifest b/dev-python/ipywidgets/Manifest index 0d6801940b4b..9607ea3a86d4 100644 --- a/dev-python/ipywidgets/Manifest +++ b/dev-python/ipywidgets/Manifest @@ -1 +1,2 @@ DIST ipywidgets-8.0.4.tar.gz 114780 BLAKE2B c29c431f6ba576b96792700ba325665be682f8263938dfb6e5f2c727bcdb059ed7f2997cf68ec4d76c636e99d1010b16779377a717b466005743a0fa85a2ac3a SHA512 74bdbcd7406b3a9a968842859de345c024cadc0fad3758bc02298c67d2f7b6c99c5130949a9817bf9d43f4b002c5207732dd1a42792b9ef8fceb57c36a228727 +DIST ipywidgets-8.0.5.tar.gz 115363 BLAKE2B 55624c6c99f58b0cccfd89d96678355bd28625632a903f86dc260432a67840bfdb65e233779cb4c694ae677a16ef7cb0f8420388c69123653eb96f38310e9a3e SHA512 f7bf1b6a772a866dc913bde3d01c33dfe8117564bbac2076e39b134c7e0bc7fd67fe08aed94300a261a3cfe1e19f9b045118a285eb543f526ac702f55e646001 diff --git a/dev-python/ipywidgets/ipywidgets-8.0.5.ebuild b/dev-python/ipywidgets/ipywidgets-8.0.5.ebuild new file mode 100644 index 000000000000..62f5dd7d81bd --- /dev/null +++ b/dev-python/ipywidgets/ipywidgets-8.0.5.ebuild @@ -0,0 +1,42 @@ +# 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_{7,8,9,10,11} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="IPython HTML widgets for Jupyter" +HOMEPAGE=" + https://ipywidgets.readthedocs.io/ + https://github.com/jupyter-widgets/ipywidgets/ + https://pypi.org/project/ipywidgets/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/ipython_genutils-0.2.0[${PYTHON_USEDEP}] + >=dev-python/traitlets-4.3.1[${PYTHON_USEDEP}] + >=dev-python/widgetsnbextension-3.6.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/ipykernel[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # upstream hack to autoconfigure ipywidgets in jupyter + # we don't have jupyterlab_widgets packaged + sed -i -e '/jupyterlab_widgets/d' setup.cfg || die + distutils-r1_src_prepare +} diff --git a/dev-python/jaraco-classes/jaraco-classes-3.2.3.ebuild b/dev-python/jaraco-classes/jaraco-classes-3.2.3.ebuild index 779e3d678ab7..6bc1096a50e8 100644 --- a/dev-python/jaraco-classes/jaraco-classes-3.2.3.ebuild +++ b/dev-python/jaraco-classes/jaraco-classes-3.2.3.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -13,8 +15,6 @@ HOMEPAGE=" https://github.com/jaraco/jaraco.classes/ https://pypi.org/project/jaraco.classes/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-collections/jaraco-collections-3.8.0.ebuild b/dev-python/jaraco-collections/jaraco-collections-3.8.0.ebuild index c220ae3d4adb..3cce9dbcec6b 100644 --- a/dev-python/jaraco-collections/jaraco-collections-3.8.0.ebuild +++ b/dev-python/jaraco-collections/jaraco-collections-3.8.0.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -13,8 +15,6 @@ HOMEPAGE=" https://github.com/jaraco/jaraco.collections/ https://pypi.org/project/jaraco.collections/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-context/jaraco-context-4.3.0.ebuild b/dev-python/jaraco-context/jaraco-context-4.3.0.ebuild index 60c95edd5c7f..f8250b263996 100644 --- a/dev-python/jaraco-context/jaraco-context-4.3.0.ebuild +++ b/dev-python/jaraco-context/jaraco-context-4.3.0.ebuild @@ -5,6 +5,8 @@ EAPI=7 DISTUTILS_USE_PEP517=flit +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -14,8 +16,6 @@ HOMEPAGE=" https://github.com/jaraco/jaraco.context/ https://pypi.org/project/jaraco.context/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-envs/jaraco-envs-2.4.0.ebuild b/dev-python/jaraco-envs/jaraco-envs-2.4.0.ebuild index 6dee94ea7d6e..954d34743fc3 100644 --- a/dev-python/jaraco-envs/jaraco-envs-2.4.0.ebuild +++ b/dev-python/jaraco-envs/jaraco-envs-2.4.0.ebuild @@ -4,14 +4,14 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi DESCRIPTION="Classes for orchestrating Python (virtual) environments" HOMEPAGE="https://github.com/jaraco/jaraco.envs" -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-functools/jaraco-functools-3.6.0.ebuild b/dev-python/jaraco-functools/jaraco-functools-3.6.0.ebuild index 7100a1699dbd..6b1540ee9e73 100644 --- a/dev-python/jaraco-functools/jaraco-functools-3.6.0.ebuild +++ b/dev-python/jaraco-functools/jaraco-functools-3.6.0.ebuild @@ -5,6 +5,8 @@ EAPI=7 DISTUTILS_USE_PEP517=flit +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -14,8 +16,6 @@ HOMEPAGE=" https://github.com/jaraco/jaraco.functools/ https://pypi.org/project/jaraco.functools/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-itertools/jaraco-itertools-6.2.1.ebuild b/dev-python/jaraco-itertools/jaraco-itertools-6.2.1.ebuild index 795055825757..0b43ea5cb003 100644 --- a/dev-python/jaraco-itertools/jaraco-itertools-6.2.1.ebuild +++ b/dev-python/jaraco-itertools/jaraco-itertools-6.2.1.ebuild @@ -4,14 +4,14 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi DESCRIPTION="Tools for working with iterables. Complements itertools and more_itertools" HOMEPAGE="https://github.com/jaraco/jaraco.itertools" -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-logging/jaraco-logging-3.1.2.ebuild b/dev-python/jaraco-logging/jaraco-logging-3.1.2.ebuild index 61bd5436e9b4..d25d2f67fe55 100644 --- a/dev-python/jaraco-logging/jaraco-logging-3.1.2.ebuild +++ b/dev-python/jaraco-logging/jaraco-logging-3.1.2.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -13,8 +15,6 @@ HOMEPAGE=" https://github.com/jaraco/jaraco.logging/ https://pypi.org/project/jaraco.logging/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-path/jaraco-path-3.4.1.ebuild b/dev-python/jaraco-path/jaraco-path-3.4.1.ebuild index 617a63899991..1aed62b0207c 100644 --- a/dev-python/jaraco-path/jaraco-path-3.4.1.ebuild +++ b/dev-python/jaraco-path/jaraco-path-3.4.1.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -13,8 +15,6 @@ HOMEPAGE=" https://github.com/jaraco/jaraco.path/ https://pypi.org/project/jaraco.path/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-stream/jaraco-stream-3.0.3-r1.ebuild b/dev-python/jaraco-stream/jaraco-stream-3.0.3-r1.ebuild index 700e4cf7c61b..8bf3a8ee6b22 100644 --- a/dev-python/jaraco-stream/jaraco-stream-3.0.3-r1.ebuild +++ b/dev-python/jaraco-stream/jaraco-stream-3.0.3-r1.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -13,8 +15,6 @@ HOMEPAGE=" https://github.com/jaraco/jaraco.stream/ https://pypi.org/project/jaraco.stream/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-test/jaraco-test-5.3.0.ebuild b/dev-python/jaraco-test/jaraco-test-5.3.0.ebuild index 6be9905364b9..1ec4afa8cfaf 100644 --- a/dev-python/jaraco-test/jaraco-test-5.3.0.ebuild +++ b/dev-python/jaraco-test/jaraco-test-5.3.0.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -13,8 +15,6 @@ HOMEPAGE=" https://github.com/jaraco/jaraco.test/ https://pypi.org/project/jaraco.test/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild b/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild index b2576aa9eb31..08bf99c6da52 100644 --- a/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild +++ b/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild @@ -5,6 +5,8 @@ EAPI=7 DISTUTILS_USE_PEP517=flit +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -14,8 +16,6 @@ HOMEPAGE=" https://github.com/jaraco/jaraco.text/ https://pypi.org/project/jaraco.text/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="MIT" SLOT="0" diff --git a/dev-python/jupyter_client/Manifest b/dev-python/jupyter_client/Manifest index 92dcce0beefc..e9502719c804 100644 --- a/dev-python/jupyter_client/Manifest +++ b/dev-python/jupyter_client/Manifest @@ -1,2 +1,3 @@ DIST jupyter_client-7.4.9.tar.gz 329115 BLAKE2B 8b43b237ac79bc51e40e403cf4a3ada18d03437094dc1dd9b9988adb1bcfbc56ba4b2373d3dd858df583b723723127f934c01544f3d6a576886b012364674f0f SHA512 0de91309ffddd2da50ae69bff4f7ecd741398171982f66488e6367d78388c6844b353bed1834684fa4af890364120ce09f2fa6b3ed7778c501058ae558439969 DIST jupyter_client-8.0.3.tar.gz 334366 BLAKE2B 04ea6e8206fe0b741da1ba0d17cb559657824c20f4fcff48fd0ce4287dce7da9a151000e7a0f08cbf3fa6b1868d8d7e424d49d70a258283466350946f4ce5220 SHA512 27eca49e44c13d819624c6ab596b24b9b469f82a788920eb4db02cee43c2efdf22ea68bf282f5f4ca28d38c9238d51d70d7aa214f2c3b8f6c2a7ebcaf12d567c +DIST jupyter_client-8.1.0.tar.gz 335241 BLAKE2B d9491f958b21ba09494bf42ff5a3bae786388a16c007f5756df8900fc53c6fdb4d67bff09b16290338d07fc3c3466483f20ab82482fb235e0e55481294eaeef1 SHA512 21317e5ca61b72408e94116f0be545753088d891742579fcf7a451be179a7783dc153d2898e0ff50ce06017f90cb48f907a5bb056090b13ec0da2af7287f6dcd diff --git a/dev-python/jupyter_client/jupyter_client-8.1.0.ebuild b/dev-python/jupyter_client/jupyter_client-8.1.0.ebuild new file mode 100644 index 000000000000..3e4079be1230 --- /dev/null +++ b/dev-python/jupyter_client/jupyter_client-8.1.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +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="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + +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-timeout[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # TODO: times out + tests/test_client.py::TestAsyncKernelClient::test_input_request + # TODO + tests/test_multikernelmanager.py::TestKernelManager::test_tcp_cinfo +) diff --git a/dev-python/nbformat/Manifest b/dev-python/nbformat/Manifest index 1f8db9edd1ed..27c9f05dd61c 100644 --- a/dev-python/nbformat/Manifest +++ b/dev-python/nbformat/Manifest @@ -1 +1,2 @@ DIST nbformat-5.7.3.tar.gz 140407 BLAKE2B 7e699939e0d13394851d6bccd02855beca041192ffc273c754770fe6c7d6135a17b32b40224d664bbfbc02e30dbb92aacb24b56cfd44a6c10b4c817a09bd11c1 SHA512 d705d959ea4d5b5294f137dff6b2b60b936ad7d2ff4aa06030429e9ee1e55cc5c9ec7d0f2196a67b67080e79177a18085c6bf75b84ab8ac5606fabb53455e4c2 +DIST nbformat-5.8.0.tar.gz 140655 BLAKE2B e45b6fcc45fa01ceed49fba0b3a3fd749df6692e355156845cf69fd9d2e176332c61c89b5474ffa89d96da4d4453b668150e96ac266cddd254efdcb1a3b742a1 SHA512 f000db59701eec2fed8adba6c1b521bdfaf942bcd0dba2d8d6d79a7d28b078f4a29df05ca3f393c1651f3ddc6b3690f536928d6fff5937982cc52dd013bc6498 diff --git a/dev-python/nbformat/nbformat-5.8.0.ebuild b/dev-python/nbformat/nbformat-5.8.0.ebuild new file mode 100644 index 000000000000..dc3fab293e32 --- /dev/null +++ b/dev-python/nbformat/nbformat-5.8.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +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 ~hppa ~ia64 ~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/numpydoc \ + dev-python/myst-parser \ + dev-python/pydata-sphinx-theme +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/oslo-concurrency/oslo-concurrency-5.1.1.ebuild b/dev-python/oslo-concurrency/oslo-concurrency-5.1.1.ebuild index 0768b18b0841..ba4c43312954 100644 --- a/dev-python/oslo-concurrency/oslo-concurrency-5.1.1.ebuild +++ b/dev-python/oslo-concurrency/oslo-concurrency-5.1.1.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} ) inherit distutils-r1 pypi @@ -14,8 +16,6 @@ HOMEPAGE=" https://github.com/openstack/oslo.concurrency/ https://pypi.org/project/oslo.concurrency/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/oslo-config/oslo-config-9.1.1.ebuild b/dev-python/oslo-config/oslo-config-9.1.1.ebuild index e5fc852634a9..e2b90268dff3 100644 --- a/dev-python/oslo-config/oslo-config-9.1.1.ebuild +++ b/dev-python/oslo-config/oslo-config-9.1.1.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} ) inherit distutils-r1 pypi @@ -14,8 +16,6 @@ HOMEPAGE=" https://github.com/openstack/oslo.config/ https://pypi.org/project/oslo.config/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/oslo-context/oslo-context-5.1.1.ebuild b/dev-python/oslo-context/oslo-context-5.1.1.ebuild index 5f9630182fa7..5444786e30e7 100644 --- a/dev-python/oslo-context/oslo-context-5.1.1.ebuild +++ b/dev-python/oslo-context/oslo-context-5.1.1.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} ) inherit distutils-r1 pypi @@ -14,8 +16,6 @@ HOMEPAGE=" https://github.com/openstack/oslo.context/ https://pypi.org/project/oslo.context/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/oslo-i18n/oslo-i18n-6.0.0.ebuild b/dev-python/oslo-i18n/oslo-i18n-6.0.0.ebuild index ff290e24eeed..0137f145b9fa 100644 --- a/dev-python/oslo-i18n/oslo-i18n-6.0.0.ebuild +++ b/dev-python/oslo-i18n/oslo-i18n-6.0.0.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} ) inherit distutils-r1 pypi @@ -14,8 +16,6 @@ HOMEPAGE=" https://github.com/openstack/oslo.i18n/ https://pypi.org/project/oslo.i18n/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/oslo-log/Manifest b/dev-python/oslo-log/Manifest index ac3f91e75387..a9dc7bcafd31 100644 --- a/dev-python/oslo-log/Manifest +++ b/dev-python/oslo-log/Manifest @@ -1 +1,2 @@ DIST oslo.log-5.1.0.tar.gz 96584 BLAKE2B ced8ccc5ddaf1865e29dadf31bf7b691e2cbddfd2f1c4b2dcca36ce66e47516275058d05c11ddfb36a319efb5b220645f2c5c63ac16eaba599e4591cb09cbcfc SHA512 f4288892039f92e2cf75db79aa6cff567b5c3474a49f1d38ca7046bd00c1235afb59777c9e57b68a13b6696206527ef8f66c2a60aed8c6f8b1279f8418aba3cb +DIST oslo.log-5.2.0.tar.gz 93528 BLAKE2B d52ee82e9e2d422649e9bc0baab77c8f72e3640cfba44d326daa759e746d8f83aa04fd5f3f6b7b9e2ffcced910706b85407f3f3f4f83755b48f7883d2150ac61 SHA512 171606a0e93f2a354c8b4369e6674d25b4f2e25a5c91ca3760beb753d7cc9b0d64754ec4ccb10785db3e5b40655be5f0c5f17bf5a3095af6077771a9cd7c2f4b diff --git a/dev-python/oslo-log/oslo-log-5.1.0.ebuild b/dev-python/oslo-log/oslo-log-5.1.0.ebuild index bc4b68abf5f7..4298c163176e 100644 --- a/dev-python/oslo-log/oslo-log-5.1.0.ebuild +++ b/dev-python/oslo-log/oslo-log-5.1.0.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} ) inherit distutils-r1 pypi @@ -14,8 +16,6 @@ HOMEPAGE=" https://github.com/openstack/oslo.log/ https://pypi.org/project/oslo.log/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/oslo-log/oslo-log-5.2.0.ebuild b/dev-python/oslo-log/oslo-log-5.2.0.ebuild new file mode 100644 index 000000000000..f4c9b74ecd72 --- /dev/null +++ b/dev-python/oslo-log/oslo-log-5.2.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="OpenStack logging config library, configuration for all openstack projects" +HOMEPAGE=" + https://opendev.org/openstack/oslo.log/ + https://github.com/openstack/oslo.log/ + https://pypi.org/project/oslo.log/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/pbr-3.1.1[${PYTHON_USEDEP}] + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}] + >=dev-python/oslo-context-2.20.0[${PYTHON_USEDEP}] + >=dev-python/oslo-i18n-3.20.0[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-3.36.0[${PYTHON_USEDEP}] + >=dev-python/oslo-serialization-1.25.0[${PYTHON_USEDEP}] + >=dev-python/debtcollector-1.19.0[${PYTHON_USEDEP}] + >=dev-python/pyinotify-0.9.6[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.7.0[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/pbr-3.1.1[${PYTHON_USEDEP}] + test? ( + >=dev-python/testtools-2.3.0[${PYTHON_USEDEP}] + >=dev-python/oslotest-3.3.0[${PYTHON_USEDEP}] + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest +distutils_enable_sphinx doc/source \ + dev-python/openstackdocstheme \ + dev-python/oslo-config + +python_test() { + eunittest -b +} diff --git a/dev-python/oslo-serialization/oslo-serialization-5.1.1.ebuild b/dev-python/oslo-serialization/oslo-serialization-5.1.1.ebuild index d563c9df9ca1..5dbb721ddf38 100644 --- a/dev-python/oslo-serialization/oslo-serialization-5.1.1.ebuild +++ b/dev-python/oslo-serialization/oslo-serialization-5.1.1.ebuild @@ -4,6 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} ) inherit distutils-r1 pypi @@ -14,8 +16,6 @@ HOMEPAGE=" https://github.com/openstack/oslo.serialization/ https://pypi.org/project/oslo.serialization/ " -SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")" -S=${WORKDIR}/${P/-/.} LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/oslo-utils/oslo-utils-6.1.0.ebuild b/dev-python/oslo-utils/oslo-utils-6.1.0.ebuild index a81a512879a4..ad4cdefd98b2 100644 --- a/dev-python/oslo-utils/oslo-utils-6.1.0.ebuild +++ b/dev-python/oslo-utils/oslo-utils-6.1.0.ebuild @@ -4,15 +4,18 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/.} PYTHON_COMPAT=( python3_{7,8,9,10,11} ) -inherit distutils-r1 +inherit distutils-r1 pypi -MY_P=${P/-/.} DESCRIPTION="Oslo Utility library" -HOMEPAGE="https://launchpad.net/oslo" -SRC_URI="mirror://pypi/${PN::1}/${PN/-/.}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" +HOMEPAGE=" + https://opendev.org/openstack/oslo.utils/ + https://github.com/openstack/oslo.utils/ + https://pypi.org/project/oslo.utils/ +" LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/pyzmq/Manifest b/dev-python/pyzmq/Manifest index c31b9640b4dd..2a2757aa7feb 100644 --- a/dev-python/pyzmq/Manifest +++ b/dev-python/pyzmq/Manifest @@ -1,3 +1,4 @@ DIST pyzmq-24.0.1.gh.tar.gz 404000 BLAKE2B 01928ba3c64a5afce8e7a97821658da2067a5f6c36c0173ab2f818e83a729939f346ef67bb9a39251abf365f5772abdf7e9e62afb4cc434b5603f474485a7427 SHA512 d4b6346e780f356941a624321f1619771fb2f0ef9f65a3c0a03e837ef081ece7ed59c03f57e8647ab1cd38cfc7404d597dd294768f9e9b890115b9eebc085484 DIST pyzmq-25.0.0.gh.tar.gz 387190 BLAKE2B aba258637fa698e3e2241c36b561d76971a82d20137573ed75bacf429cd21e2f2cbf6c15c76e7c6a9f2e3d7acd7cb03e5091f71bb41d6365c93d670a2cc81392 SHA512 9a4f25f6a9f6a9e636c7d50af69ee9d4629503fd707f6cd17772430f71bd386a573e5eed19eca0419ce0a3ca1f811601c785b5b6b9749b5cf03654a97c2afaf6 DIST pyzmq-25.0.1.gh.tar.gz 397477 BLAKE2B ee546f43a309005f256c5531e694340ff888a70e8c2bde51da62eb601eab715c2d58d155ea00b7006398e842ae96b3532ce52111be912de9bb85e6e161a192fc SHA512 b8125c7ed74685d501e3726213fb0437ce37ec62a6493a8c46018a9e0c71409fe9066b03a026a071681f76df466e46ef26963cad5f748a1fd064363159ac48d4 +DIST pyzmq-25.0.2.gh.tar.gz 398050 BLAKE2B 501aea8b46ef5c06ca75489869047b2e6aefd06d121b540fdfc85c45ea2f9a40b58b84433555d8001fbfb1671ad6df1953c79567aabc8cffba26516a4a60626c SHA512 dcba8fb561d1be135ba03e28078ed68835dc20a52ef9c47be240bd1edd37eb92d4da184045e8eff666f3d84a376ae35ca08172fc207823b5255160e9e3b1ef01 diff --git a/dev-python/pyzmq/pyzmq-25.0.2.ebuild b/dev-python/pyzmq/pyzmq-25.0.2.ebuild new file mode 100644 index 000000000000..b2590bc6dd33 --- /dev/null +++ b/dev-python/pyzmq/pyzmq-25.0.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +# TODO: Find out exactly where this error comes from +# error: '<' not supported between instances of 'str' and 'int' +#DISTUTILS_USE_PEP517=setuptools +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library" +HOMEPAGE=" + https://zeromq.org/languages/python/ + https://pypi.org/project/pyzmq/ + https://github.com/zeromq/pyzmq/" +SRC_URI=" + https://github.com/zeromq/pyzmq/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="drafts" + +# There are additional test failures if zeromq has the draft api enabled, but pyzmq has it disabled. +DEPEND=" + >=net-libs/zeromq-4.2.2-r2:=[drafts=] +" +# It uses cffi backend for pypy, cython backend for cpython +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + dev-python/py[${PYTHON_USEDEP}] + dev-python/cffi:=[${PYTHON_USEDEP}] + ' pypy3) +" +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/cython[${PYTHON_USEDEP}] + ' 'python*') + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + >=dev-python/tornado-5.0.2[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-23.2.0-libdir.patch +) + +EPYTEST_DESELECT=( + # TODO + zmq/tests/test_constants.py::TestConstants::test_draft + zmq/tests/test_cython.py::test_cython + + # Hangs often + zmq/tests/test_log.py::TestPubLog::test_blank_root_topic +) + +EPYTEST_IGNORE=( + # Avoid dependency on mypy + zmq/tests/test_mypy.py + + # Broken upstream + zmq/tests/test_auth.py + + # pytest-asyncio incompatibility? + zmq/tests/test_zmqstream.py +) + +distutils_enable_tests pytest +# TODO: Package enum_tools +# distutils_enable_sphinx docs/source \ +# dev-python/numpydoc \ +# dev-python/sphinx-rtd-theme \ +# dev-python/myst-parser + +python_prepare_all() { + export ZMQ_DRAFT_API=$(usex drafts '1' '0') + export ZMQ_PREFIX="${EPREFIX}/usr" + distutils-r1_python_prepare_all +} + +python_test() { + cd "${BUILD_DIR}/lib" || die + epytest -p no:flaky +} diff --git a/dev-python/recommonmark/recommonmark-0.7.1-r1.ebuild b/dev-python/recommonmark/recommonmark-0.7.1-r1.ebuild index f20c4f9e3cd1..9e1c4cc5bc93 100644 --- a/dev-python/recommonmark/recommonmark-0.7.1-r1.ebuild +++ b/dev-python/recommonmark/recommonmark-0.7.1-r1.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" RDEPEND=" >=dev-python/commonmark-0.8.1[${PYTHON_USEDEP}] diff --git a/dev-python/redis/Manifest b/dev-python/redis/Manifest index f700d36a9508..edad50224523 100644 --- a/dev-python/redis/Manifest +++ b/dev-python/redis/Manifest @@ -1 +1,2 @@ DIST redis-py-4.5.1.gh.tar.gz 4737828 BLAKE2B ce4f44c32e0c0bf050c868725e41b037dc9c8bc1915f83994db5196a44fc618acfb9670e61e640c4c756c9e66794a96f9d4d140c58fccc06b181dce040275377 SHA512 bbee0aee1568a95a591c9083a901c2f47dfb5c9cfa9186b4a47a6575691cd7634d2c461fad84c54fc6df53a83029d1facd19e7c59cafa4331254ef8f04967cb6 +DIST redis-py-4.5.2.gh.tar.gz 4738198 BLAKE2B d3b566bee468c46536811580c21a66b94b157079858502edd2f2359944b1029e56370b5763ba27b55f446cb6eef45c99e0132547d02b4dcb63a0d910c7c477ad SHA512 6f4a30051749b31a0fcde1e61996fb9a92e71094a8f3dabeaef8aa1794431e59be8c67f337f6476b73eaca78ab14edd6e2c4de4621b9311f9124e70c68c1eec1 diff --git a/dev-python/redis/redis-4.5.2.ebuild b/dev-python/redis/redis-4.5.2.ebuild new file mode 100644 index 000000000000..a2bd31a2e7f5 --- /dev/null +++ b/dev-python/redis/redis-4.5.2.ebuild @@ -0,0 +1,83 @@ +# 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_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +MY_P=redis-py-${PV} +DESCRIPTION="Python client for Redis key-value store" +HOMEPAGE=" + https://github.com/redis/redis-py/ + https://pypi.org/project/redis/ +" +SRC_URI=" + https://github.com/redis/redis-py/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/async-timeout-4.0.2[${PYTHON_USEDEP}] + ' 3.{9..10}) +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # Flaky test + tests/test_pubsub.py::TestPubSubDeadlock::test_pubsub_deadlock + # TODO + tests/test_commands.py::TestRedisCommands::test_acl_list + # redis-7 different return + tests/test_commands.py::TestRedisCommands::test_xautoclaim + ) + + # TODO: try to run more servers? + epytest -m "not redismod and not onlycluster and not replica and not ssl" +} + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + + if has_version ">=dev-db/redis-7"; then + local extra_conf=" + enable-debug-command yes + enable-module-command yes + " + fi + + # Spawn Redis itself for testing purposes + einfo "Spawning Redis" + einfo "NOTE: Port ${redis_port} must be free" + "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server" + daemonize yes + pidfile ${redis_pid} + port ${redis_port} + bind 127.0.0.1 ::1 + ${extra_conf} + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} diff --git a/dev-python/tempest/Manifest b/dev-python/tempest/Manifest index 0ad9fde44e11..cb6905a9e090 100644 --- a/dev-python/tempest/Manifest +++ b/dev-python/tempest/Manifest @@ -1,2 +1,3 @@ DIST tempest-33.0.0.tar.gz 1126464 BLAKE2B 14bce9e0baf1878fc30cc5026c7849cda5abc0291706c7cd051827ffb1e15670e653a20ba6c0c898e86a7e1bee498d14139f82887606f5587b7775d18f96595f SHA512 1a34bc81a18121e3be05ab1a2b637aa8bfc41a0a8e11824294c78468762fb5f303ebf9607f5e72aed1cc5b130b26e22bf72c0574472a0de4eca083e899ff6eb0 DIST tempest-34.0.0.tar.gz 1138466 BLAKE2B fb08579592445ad9d7bebff5c828b507ddd4d3db560d3d6548a1f26e3ee942f0fda74082eaeee8bba224f284942a4dcf1cabeab9a35821b1a03d0d9d1d126b45 SHA512 83d23d8e6cf6507eec175733372a4f8a4e95e9cb66cdb0ad716bdd4de211a8ae290ba0f56f6ebd1262ff8769619aa6b9e4cba4bc6e7e3dabf1c702167077a962 +DIST tempest-34.1.0.tar.gz 1139228 BLAKE2B 32fefb49ad5a341d297cf660387e66f69e0f3f81cba5f0530190bf5562c7a391359667390045fd746977020376e426aea351a2f50652d67693946bdb8dcfba18 SHA512 89cb682edb3d99c22e9c654a9e546e649837abf7e0b798d84c16d70bef4527d094dd6bbe1d11b8996412cd7e6f073fd1a3f80e5214d7d3a44965f3b542fa13e5 diff --git a/dev-python/tempest/tempest-34.1.0.ebuild b/dev-python/tempest/tempest-34.1.0.ebuild new file mode 100644 index 000000000000..56819857ad7d --- /dev/null +++ b/dev-python/tempest/tempest-34.1.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="OpenStack Integration Testing" +HOMEPAGE=" + https://pypi.org/project/tempest/ + https://docs.openstack.org/tempest/latest/ + https://launchpad.net/tempest/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] + >dev-python/cliff-2.9.0[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] + >=dev-python/paramiko-2.7.0[${PYTHON_USEDEP}] + >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}] + >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}] + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}] + >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-4.7.0[${PYTHON_USEDEP}] + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + >=dev-python/pyyaml-3.12[${PYTHON_USEDEP}] + >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] + >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}] + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}] + >=dev-python/defusedxml-0.7.1[${PYTHON_USEDEP}] + >=dev-python/fasteners-0.16.0[${PYTHON_USEDEP}] +" +BDEPEND=" + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] + test? ( + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}] + dev-python/stestr[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +src_prepare() { + # Small subset of tests, which fail as result of not using specific + # testing environment. Others expect to run suite using stestr. + rm -r tempest/tests/lib/services/volume/v3/ || die + rm tempest/tests/test_list_tests.py || die + rm tempest/tests/lib/cmd/test_check_uuid.py || die + + # remove dep on hacking + rm tempest/tests/test_hacking.py || die + + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + mv "${BUILD_DIR}"/install/{usr/,}etc || die +} + +python_test() { + local -x OS_LOG_CAPTURE=1 OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 + local -x OS_TEST_TIMEOUT=300 + eunittest -b -s tempest/tests -t . +} diff --git a/dev-python/tifffile/Manifest b/dev-python/tifffile/Manifest index 6654d1b0f510..5f001dae6bac 100644 --- a/dev-python/tifffile/Manifest +++ b/dev-python/tifffile/Manifest @@ -1 +1,2 @@ DIST tifffile-2023.3.15.gh.tar.gz 331071 BLAKE2B 4bb1f725bd38523dd60383aab530c8e8ec25a71fc5e9350cc77023ab2ce4bd8c5d85dc97a50144fc0148710be8bd7b0f8b5f20d4e2f9a85b541cc9b0e41ebfaa SHA512 b7f8f5a0a4dbacc409a39b1906104ee0024e7275ca1d7dd4cf3137b29dc38ef13103719ab191f7b61e2ef939e734d7442977d5f3a2c6560a1ce0361cd488ca7c +DIST tifffile-2023.3.21.gh.tar.gz 331285 BLAKE2B ce63dc2f389d3e93cf50c52efe849423c091bdf048ce7f408fe6ee4556da4b9efcbaa031e7bc7f2b3f953117f7ce18014d1a77f9253a82d6dc4352464cf4151d SHA512 68b90d7eab293991b0227090d5b4c047469cd65c339f8d19da68097d99640c7f45cf8746eac4b3da9a388a58cd4343bbcad25496b08c13c913e48f982e14f5b9 diff --git a/dev-python/tifffile/tifffile-2023.3.21.ebuild b/dev-python/tifffile/tifffile-2023.3.21.ebuild new file mode 100644 index 000000000000..66babf481615 --- /dev/null +++ b/dev-python/tifffile/tifffile-2023.3.21.ebuild @@ -0,0 +1,60 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 + +DESCRIPTION="Read and write TIFF files" +HOMEPAGE=" + https://pypi.org/project/tifffile/ + https://github.com/cgohlke/tifffile/ + https://www.cgohlke.com/ +" +SRC_URI=" + https://github.com/cgohlke/tifffile/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/numpy-1.19.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/dask[${PYTHON_USEDEP}] + dev-python/defusedxml[${PYTHON_USEDEP}] + >=dev-python/fsspec-2021.5.0[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/xarray[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internet + tests/test_tifffile.py::test_class_omexml + tests/test_tifffile.py::test_class_omexml_fail + tests/test_tifffile.py::test_class_omexml_modulo + tests/test_tifffile.py::test_class_omexml_attributes + tests/test_tifffile.py::test_class_omexml_multiimage + tests/test_tifffile.py::test_write_ome + tests/test_tifffile.py::test_write_ome_manual + # requires tons of free space + tests/test_tifffile.py::test_write_3gb + tests/test_tifffile.py::test_write_5GB_bigtiff + tests/test_tifffile.py::test_write_5GB_fails + tests/test_tifffile.py::test_write_6gb + tests/test_tifffile.py::test_write_bigtiff + 'tests/test_tifffile.py::test_write_imagej_raw' + # TODO + tests/test_tifffile.py::test_issue_imagej_hyperstack_arg + tests/test_tifffile.py::test_issue_description_overwrite +) diff --git a/dev-python/trimesh/Manifest b/dev-python/trimesh/Manifest index 78dc6780a15a..24d7bad1b06e 100644 --- a/dev-python/trimesh/Manifest +++ b/dev-python/trimesh/Manifest @@ -1,2 +1,3 @@ DIST trimesh-3.19.4.gh.tar.gz 12673418 BLAKE2B c54e0e1a946b858371d5de2f028bbc64a353a06859f428d6e221058a46e853bb7f245d7348b1cc7fbbdb930ba9600e24a39c2884a9acfa00b9d31d6576b87959 SHA512 b490e6d021a41c0a094c5e3596033a189d08310c04a2ce70c9b72d492e1cad1b5c9f110487c66d0a37eed97754e979c7b449d10a6a6abdbd81241099c248d5cf DIST trimesh-3.20.2.gh.tar.gz 12683352 BLAKE2B 3ed73e426fd72723d19b668aae790f44ad46b310b6ddbbedf1e87aa56880037fa09b43921131ce2a5bff02022e6630222c63fb205a4345e81959e14b0013c3fa SHA512 fb6ca184b9d62e7820f1b92c8ce67a02eed6355c49dbb209b328e149ab6e600c306a10bcbae3bceaaec0244874eebc8bdf06709310f8458e9f72ee9ad213ad65 +DIST trimesh-3.21.0.gh.tar.gz 12688064 BLAKE2B 5ac8c4cd3f087b63ad6e224a693380a7f5cad5d1e09e2d21d91410f462d51833baf09ac7015c52fa85e475832122c0aa61e8bfa340d42fb08c9e9fb0e5d8dbdb SHA512 1805213b8fe19fa5716ad8da1c23d7e23d06e96de13a18f59907a62fdf5b67ad9fb7842a7f19b4a315444261f210bbb312f6b0bbf728ee015f9d489e2dce4f0a diff --git a/dev-python/trimesh/trimesh-3.21.0.ebuild b/dev-python/trimesh/trimesh-3.21.0.ebuild new file mode 100644 index 000000000000..50458139f318 --- /dev/null +++ b/dev-python/trimesh/trimesh-3.21.0.ebuild @@ -0,0 +1,65 @@ +# 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_{7,8,9,10,11} ) + +inherit distutils-r1 multiprocessing optfeature + +DESCRIPTION="Python library for loading and using triangular meshes" +HOMEPAGE=" + https://trimsh.org/ + https://github.com/mikedh/trimesh/ + https://pypi.org/project/trimesh/ +" +SRC_URI=" + https://github.com/mikedh/${PN}/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/colorlog[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/networkx[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pycollada[${PYTHON_USEDEP}] + dev-python/pyglet[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/shapely-1.8.2[${PYTHON_USEDEP}] + dev-python/svg-path[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + dev-python/xxhash[${PYTHON_USEDEP}] + sci-libs/rtree[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/mapbox_earcut[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + epytest -n "$(makeopts_jobs)" +} + +pkg_postinst() { + optfeature_header "${PN} functionality can be extended by installing the following packages:" + optfeature "making GUI applications with 3D stuff" dev-python/glooey + optfeature "2D triangulations of polygons" dev-python/mapbox_earcut + optfeature "loading a number of additional mesh formats" dev-python/meshio + optfeature "figuring out how much memory we have" dev-python/psutil + optfeature "marching cubes and other nice stuff" sci-libs/scikit-image +} diff --git a/dev-python/watchdog/Manifest b/dev-python/watchdog/Manifest index e832e3dd4d86..b3e6470c3f86 100644 --- a/dev-python/watchdog/Manifest +++ b/dev-python/watchdog/Manifest @@ -1,3 +1,4 @@ DIST watchdog-2.2.1.gh.tar.gz 101485 BLAKE2B 4ec0a2c14d0dcb8d39ed4dea48c1318474768298b4eade4f7c08f811282ffdbf5871c7d55d71681863c38d1f0603c46aaadda73bf38a20ef263fa3b4cf76c354 SHA512 bbd6e3e3fdc7ee5df21b78241922c0050aeb0c01e394fa7d025465f04f3307d190af4cf6e822826975a3b095fb479dfd103be0675f12782e8899f556797baed4 DIST watchdog-2.3.0.gh.tar.gz 103265 BLAKE2B 0817b64e6fc4b31b922f2f73091cc39f702605fa31041a75312635e5500dfeeeab749f0bfd95f3e27900be8f017c4a1b0c07aab40989a9000d1970a2b1e06c1f SHA512 733d408e74a81ce834075472d7488e8d767f80ef92a2a13cc986c1f5d879b0353f0cb85c1996168ae6b8b82d135bcb26c6c18b51a01a8d75915bdec94acd607d DIST watchdog-2.3.1.tar.gz 123140 BLAKE2B a49307b890b9f69eda760c6285d325fddc7281347740b36d7c840a5e28ef496498420c21424f1553bf1dc0d47a928194720ef1ae542e7c0f6f58085760c2e8f5 SHA512 a492c818fcc8b21ca4052fecafdf6b4d00f441034d73b10464fc9c09a89d539acd8304e591ded96e5d992e2c9455be018373ba4f06a33b047e606c083f9061e8 +DIST watchdog-3.0.0.tar.gz 124593 BLAKE2B bc8135dcbe9b1000fb7befc85ebf62518222b0470676cf94aabbe8f871bb05064a46ae4d11ce34f8030d35268c073fe82757b911e3983a8b683ffbd09227395c SHA512 fa1421b01af99d7fa676c9077b2330ead17c004d9bb9e9edd78d4bbf87cf41624ecd669ca48613d99be2109373bbab4e004b69665d2ca42e082573e4740c13d0 diff --git a/dev-python/watchdog/watchdog-3.0.0.ebuild b/dev-python/watchdog/watchdog-3.0.0.ebuild new file mode 100644 index 000000000000..1ab70ef47ba9 --- /dev/null +++ b/dev-python/watchdog/watchdog-3.0.0.ebuild @@ -0,0 +1,50 @@ +# 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_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="Python API and shell utilities to monitor file system events" +HOMEPAGE=" + https://github.com/gorakhargosh/watchdog/ + https://pypi.org/project/watchdog/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/pytest-timeout-0.3[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -e '/--cov/d' -i setup.cfg || die + default +} + +python_test() { + local EPYTEST_DESELECT=( + # known flaky + tests/test_emitter.py::test_close + # requires root powers via sudo (yes, seriously) + tests/test_inotify_buffer.py::test_unmount_watched_directory_filesystem + ) + + epytest -p no:django +} + +pkg_postinst() { + optfeature "Bash completion" dev-python/argcomplete +} diff --git a/dev-python/widgetsnbextension/Manifest b/dev-python/widgetsnbextension/Manifest index 401c0e5ed640..aa9fcbc2c449 100644 --- a/dev-python/widgetsnbextension/Manifest +++ b/dev-python/widgetsnbextension/Manifest @@ -1 +1,2 @@ DIST widgetsnbextension-4.0.5.tar.gz 1022805 BLAKE2B 1b64a633414b085fbdaee7394d17243b4b0eb3d6d3b7f8766d48eb0066d159a8ed594a0444e0724a876e213582274ac5faccc502349a8ee657ccbfcd047769c0 SHA512 8a25c97baaef32b46254e515676bd6894a025b710e48e374f2490bb1d5de96adb87c3b0673f69bebbb332b0f0ad6d9367c5d64146ae6452bc2090a66e8470a09 +DIST widgetsnbextension-4.0.6.tar.gz 1056186 BLAKE2B c42a0b1f5a9fe713e5ea31c6c2da80bce3ff00abaa80dce423f9f2a95fa37197a47eec1b0b7eae2889d1fcb509e4c0de6d618068cd99d40927f6ea09a7b4129b SHA512 20296c449bae36625294916fad182d0bd66e7dec1204c9d6a999479fb14a88d9021c890894f41ff244c291fec33b43ba8166c4059bac15bce6b9c4e33ec9349e diff --git a/dev-python/widgetsnbextension/widgetsnbextension-4.0.6.ebuild b/dev-python/widgetsnbextension/widgetsnbextension-4.0.6.ebuild new file mode 100644 index 000000000000..fff9268f39cf --- /dev/null +++ b/dev-python/widgetsnbextension/widgetsnbextension-4.0.6.ebuild @@ -0,0 +1,30 @@ +# 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_{7,8,9,10,11} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="IPython HTML widgets for Jupyter" +HOMEPAGE=" + https://ipython.org/ + https://pypi.org/project/widgetsnbextension/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-python/notebook[${PYTHON_USEDEP}] +" + +src_install() { + distutils-r1_src_install + + mv "${ED}/usr/etc" "${ED}/etc" || die +} diff --git a/dev-python/zeroconf/Manifest b/dev-python/zeroconf/Manifest index 49c7c0adc037..b018ae103ba5 100644 --- a/dev-python/zeroconf/Manifest +++ b/dev-python/zeroconf/Manifest @@ -1 +1,2 @@ DIST python-zeroconf-0.47.3.gh.tar.gz 151413 BLAKE2B eff81832a029cf173c55290355207bfd17b1701f85c60be544252d00579ad835eb2b7c0a29c967ba62b1293d9efae953bc3b564c5ca134c2a898621584cdf544 SHA512 e1435490ba6890d9f0fe8efd7be64f0f9fd20a6ae723b176861865a8a795593db7cd797062f9977a5b1df4107781011d25bdf69dd4cc54dd94ef6e891c425df4 +DIST python-zeroconf-0.47.4.gh.tar.gz 151640 BLAKE2B 4591135e81fc0c1c22444fb8823f5ad246f234a79a9aa2697a947a7838f5880007e2acbfe8c60a3f69c0a1cf803e35b35b17b7cf013dc7408e759273bbca94b2 SHA512 2b8438e0832cfc6ac40d54eaed75749389fd9287b82b074f129bba76e7f31e3cfd58e5de28c54b3cf3e14d3c8540ff09b5f10d85f705ede2ef18718b1a87ebf1 diff --git a/dev-python/zeroconf/zeroconf-0.47.4.ebuild b/dev-python/zeroconf/zeroconf-0.47.4.ebuild new file mode 100644 index 000000000000..3e8c2563f56d --- /dev/null +++ b/dev-python/zeroconf/zeroconf-0.47.4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 + +MY_P=python-zeroconf-${PV} +DESCRIPTION="Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)" +HOMEPAGE=" + https://github.com/python-zeroconf/python-zeroconf/ + https://pypi.org/project/zeroconf/ +" +SRC_URI=" + https://github.com/python-zeroconf/python-zeroconf/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/ifaddr-0.1.7[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/async-timeout-3.0.0[${PYTHON_USEDEP}] + ' 3.{9..10}) +" +# the build system uses custom build script that uses distutils to build +# C extensions, sigh +BDEPEND=" + >=dev-python/cython-0.29.32[${PYTHON_USEDEP}] + >=dev-python/setuptools-65.6.3[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # network + tests/test_core.py::Framework::test_close_multiple_times + tests/test_core.py::Framework::test_launch_and_close + tests/test_core.py::Framework::test_launch_and_close_context_manager + tests/test_core.py::Framework::test_launch_and_close_v4_v6 + tests/test_core.py::Framework::test_launch_and_close_v6_only + tests/services/test_types.py::ServiceTypesQuery::test_integration_with_listener_ipv6 + + # fragile to timeouts (?) + tests/services/test_browser.py::test_service_browser_expire_callbacks + tests/utils/test_asyncio.py::test_run_coro_with_timeout + ) + + epytest -o addopts= +} |
