diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-07-27 06:26:28 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-07-27 06:26:28 +0000 |
| commit | a68c508b7b5578589aba8577b1651003fe959d84 (patch) | |
| tree | c64203479369f9eed3f0a381edf3e82e18394a92 /dev-python | |
| parent | 04b1885d8f229998d367ac5e87b7a526f3ff82f5 (diff) | |
| download | baldeagleos-repo-a68c508b7b5578589aba8577b1651003fe959d84.tar.gz baldeagleos-repo-a68c508b7b5578589aba8577b1651003fe959d84.tar.xz baldeagleos-repo-a68c508b7b5578589aba8577b1651003fe959d84.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
73 files changed, 1855 insertions, 71 deletions
diff --git a/dev-python/apsw/Manifest b/dev-python/apsw/Manifest index b3f946b489e6..6b332db37543 100644 --- a/dev-python/apsw/Manifest +++ b/dev-python/apsw/Manifest @@ -1 +1,2 @@ DIST apsw-3.42.0.0.gh.tar.gz 863081 BLAKE2B 5eee11867e41c396be7cc9bbde1c4bb82a1e294ddd05613d6fbd50ac95c2d5e374632fde3215a838779253ad0f2eb97a4550771767a9f9f7a53c062c7eee5f7e SHA512 e0afa56d1a1d4e8627fe721c36098182efad23128cb053c7c25fc6412d6fe63a50beb66e0bc8dce527c17ff7bd9adb9e71a35fbc4ee769b5231d4dd941b21572 +DIST apsw-3.42.0.1.gh.tar.gz 881270 BLAKE2B a983aebe53f6baf419fb0fec6d87797d11c1e1f0fadd546139c9b9c3cec6f8848e79af46a928597e6cf33937bb2b2e2157cf908cf18152c7f956864e3d09fe2c SHA512 78a02c8e987df90838923b2a2d4838a184e7e8d9be70a09a4a27eb43e9f06546f831895ab519b681f628e5432b3e5b71d56ecc2f3e45a89765dc13667ca6e844 diff --git a/dev-python/apsw/apsw-3.42.0.1.ebuild b/dev-python/apsw/apsw-3.42.0.1.ebuild new file mode 100644 index 000000000000..96cd5f26a156 --- /dev/null +++ b/dev-python/apsw/apsw-3.42.0.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="APSW - Another Python SQLite Wrapper" +HOMEPAGE=" + https://github.com/rogerbinns/apsw/ + https://pypi.org/project/apsw/ +" +SRC_URI=" + https://github.com/rogerbinns/apsw/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" +IUSE="doc" + +DEPEND=" + >=dev-db/sqlite-${PV%.*}:3 +" +RDEPEND=" + ${DEPEND} +" + +src_configure() { + cat >> setup.cfg <<-EOF || die + [build_ext] + enable=load_extension + use_system_sqlite_config=True + EOF +} + +python_test() { + esetup.py build_test_extension + cd "${T}" || die + "${EPYTHON}" -m apsw.tests -v || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 2cdaf97e3bb4..2ddc48ee38f1 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -1,3 +1,5 @@ DIST boto3-1.28.10.gh.tar.gz 678958 BLAKE2B 55356d6234a12a09cb03bc8907d5c8c3810a8ab62bdebd9cc005d557dd54c85a749c2b2cd35e11e0f933f2ee02e48962b4e4971259792b2eb9dc4ff08745f215 SHA512 13f889f312e1f8cb4c8c4921892c60342a4bc31021505fc42b659da2ad5d44806029a3c9acd1e8a509d587771d3f9ed42b8ec7bc3ebf1ca2a45525c57153e4f9 +DIST boto3-1.28.11.gh.tar.gz 679904 BLAKE2B 06fb7e0759c2b51f9af8c69a7aeca4610ee39dd6e230450695337833dd4295508ed7e505fbb9d72e8d5015ee741c7080627848f2c77b18cfed7b5afee0d923f8 SHA512 0ca9dbd174d6d7cb8ac4dac913a9abe3f03188d231cc8b11cbd51ad6bb4189b69d590fc5b18c001b18ff4d8db3f4fe19476fa5616d0bbf7125ed5b4eb848413a +DIST boto3-1.28.12.gh.tar.gz 680624 BLAKE2B 0403c4ab78a03b678faa3cdde05a30fb8cf48d5781d23016efd1415fabadd9eee39cbde7b447f771c2129270caa0ceed98040e4051d2046918e20a63dfe40508 SHA512 28b6b314532919bba137bf02927d28db7167e50d5c31ed2b367dd76eeec33590bf518074bd0f3aeb122bd1028c856f7fff8c76e688f154a0d358ee0a24a4e405 DIST boto3-1.28.3.gh.tar.gz 675019 BLAKE2B 93b29307fbfec4e61dc60d28e4f20392ae2a730f048a0b2e8cb99fd515a036fc4ca889ddd564e09b1f3eab4cb9499c5918b4e7430d63148dd2854d126719a468 SHA512 514d0f373f25bb691abf5f1f8b0209a07097191b2ad8fb6339739e7a0bd2b8e6d5a88f1250e928ca89b1f1aa5e27a44bf2cab38a57680c01214d370d11944ded DIST boto3-1.28.9.gh.tar.gz 677993 BLAKE2B a800de94cfb0d317b41091fb1d2bb0fd6449df85da434879c0689bf36998b2a52331ba077c65cae9967fcce998a15d2a6f6a758931fa12a00b95487adaf81dfa SHA512 6e1e5e74d20d2e67f29597ddcda70475cbea863978ca93ec77a0f478690477c9782111701771d5b8354f4402c21496e7f5627b1398cbd6fd87627fd978f5e360 diff --git a/dev-python/boto3/boto3-1.28.11.ebuild b/dev-python/boto3/boto3-1.28.11.ebuild new file mode 100644 index 000000000000..03c610b184f7 --- /dev/null +++ b/dev-python/boto3/boto3-1.28.11.ebuild @@ -0,0 +1,66 @@ +# 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 + +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_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/boto3/boto3-1.28.12.ebuild b/dev-python/boto3/boto3-1.28.12.ebuild new file mode 100644 index 000000000000..03c610b184f7 --- /dev/null +++ b/dev-python/boto3/boto3-1.28.12.ebuild @@ -0,0 +1,66 @@ +# 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 + +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_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 bcc054937493..30fb4c8b2f02 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -1,3 +1,5 @@ DIST botocore-1.31.10.gh.tar.gz 11793022 BLAKE2B 8c9f2a0439916ecb4af94b7e55347e4eda7a2b9e1202f15bb14ddc48feb1ff1f79e7c2f665995f2bcabb48acc5434f9809cb2c00016138f6f2aa8d242896078a SHA512 00fc9b7a09543ae2f0a1b02ad34544bcc7e421cd6094a210f781ac461f84b33afaedb6711360d112e23cf3f7eb502232298906119e635c56e09ed1980a77f188 +DIST botocore-1.31.11.gh.tar.gz 11799687 BLAKE2B d2a7bad627c6e5272b8d9b1f7ebf95937a89e1f51d1e9465bebcd819ba7bebde56a23ca9b42ab4b4a2a3114da1829435da5d49441c6931a46a15e31258c66ab1 SHA512 5aa5cd98176d53a66355d06a32497a2662b655ed68b69ba577330f0f506a465188117711f6ea78d2c65d654318515139585997d22735723c35613fdb94d2a646 +DIST botocore-1.31.12.gh.tar.gz 11814932 BLAKE2B 3d5813b4dcfbb379f3f78dbc9a92c1cac2692b169560bcbe4146c71ac7e9c65a3343e460fe26df797f17bd481f9710f708ea13bcb494b2c621fede7b579e9efb SHA512 c3f85f6d87c148ca097b59e57966af5985714cf0fc2eaad6fb54823706e36c2fe64d44c726107a5898794d1635ccb49bcbbc12bf64df1dbd5e2304ea7520ffc7 DIST botocore-1.31.3.gh.tar.gz 11769948 BLAKE2B 452c494faa430b6782685b9960cc9ea15ce3dedfe1b5343ee7bdbd7544e108bbfc7bb58d527419b5dc5f4077dd806752eec927196b82ac286903992fef339e52 SHA512 0f2853c14d7695ea4eeacea6fed93e77436df143bd0b9bec967490eb88e3d6531c916dca91c1a3bde4b57253d77acabe2413acde4d1473d01e15ef69b45621e0 DIST botocore-1.31.9.gh.tar.gz 11785638 BLAKE2B 23f2c010f98b5ca8414c9a031524b1cb7d75366bf84d34df980ef4085a73bc62643cca5255519f891f7a9468abbf0d97adddf6684c3c0a751b0f9f390122c19d SHA512 b2bf0089a81c5389d86c9f7b2545358f23a1219d7e5bf152285f58293a171210b46c22c814ab3f8da460a2acbdd5127193fa7a2e19a021db511f9d08931037bf diff --git a/dev-python/botocore/botocore-1.31.11.ebuild b/dev-python/botocore/botocore-1.31.11.ebuild new file mode 100644 index 000000000000..509d06dedf97 --- /dev/null +++ b/dev-python/botocore/botocore-1.31.11.ebuild @@ -0,0 +1,79 @@ +# 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 + +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_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 + # urllib3-2 compatibility, mock relies on implementation details + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_expect_100_continue_no_response_from_server + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_expect_100_continue_returned + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_expect_100_continue_sends_307 + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_expect_100_sends_connection_header + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_handles_expect_100_with_different_reason_phrase + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_state_reset_on_connection_close + ) + + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/botocore/botocore-1.31.12.ebuild b/dev-python/botocore/botocore-1.31.12.ebuild new file mode 100644 index 000000000000..509d06dedf97 --- /dev/null +++ b/dev-python/botocore/botocore-1.31.12.ebuild @@ -0,0 +1,79 @@ +# 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 + +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_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 + # urllib3-2 compatibility, mock relies on implementation details + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_expect_100_continue_no_response_from_server + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_expect_100_continue_returned + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_expect_100_continue_sends_307 + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_expect_100_sends_connection_header + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_handles_expect_100_with_different_reason_phrase + tests/unit/test_awsrequest.py::TestAWSHTTPConnection::test_state_reset_on_connection_close + ) + + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/cfn-lint/Manifest b/dev-python/cfn-lint/Manifest index 2a5e1861e68d..d250058f0738 100644 --- a/dev-python/cfn-lint/Manifest +++ b/dev-python/cfn-lint/Manifest @@ -1,3 +1,5 @@ DIST cfn-lint-0.77.10.tar.gz 3488571 BLAKE2B 6b828c760bf93f1d31fe7d24d76cea63c91ed3f73837382898c4f60aea30d667b28065e4004a6fe62bee04141baa1b3baf576f30af4c823f7980d48c97e2602b SHA512 e5ca37620d33d199295d43d81c7390e181281418681fedbaaedca01a1128b8680451fba5ce429875c2242fefad8cfd234bb919fe948bbf9cdc442bb064d84972 DIST cfn-lint-0.78.1.tar.gz 3507466 BLAKE2B 2f22cd8241eec3a26a191fc12e6e4781513e45b5ee7540d3e59d6a1f9780142ce114d3ee2ea8e05b5425a2b111dd706447045961d05e7bb3b873eb837dc98a38 SHA512 5862c3efc51e274754a5d7eba9c53a16c87933eaadc0cc8fbb2f211c07040d24d828d30922870e02bdf0758ec4417426d827ab76840332775d765714a67a3850 DIST cfn-lint-0.78.2.tar.gz 3533168 BLAKE2B 043991f54cd6d793fc91af8d911184d6a98be34fb9a5735fd45113405707802fd0427654cf21de4c15b62fecd149a5d21af1b96ddf8810eb6ea507b5798a8d94 SHA512 63c575ba282cb097b321a8a00e70b1afdffd3c349e031d8a1ff2aacaeb397824e9f19968e2107a00d1aae6d7f644f376174ecc80389ee581727935867d73872e +DIST cfn-lint-0.79.1.tar.gz 3539730 BLAKE2B b970f8c2f45d7895b89794661649188fb731e319c2a674526656e1ecc7572c72b143814c63b9de1998f4589228eb7df06199f4db52782384a424ced63ead9b52 SHA512 5407973f8fa6fc243112232c1028d5a19fa72855c5c569a23199ddccb1d9ac95399e88907cdc9ea1d7a2df608c3f255ad17a4b21967936817b503c159c70fc0e +DIST cfn-lint-0.79.3.tar.gz 3541518 BLAKE2B 7d534f51bb848fe5fdb1f5a04b56483b5f5ae899fa652278ebe88898018fe03422cfe352a1606474d5622c806a07d1ce491e75c28398e871f5277e4cc310b530 SHA512 89e540977b9e3a4945ba8baba676270616e509eab75c450213b2d13d7adf5cf949bd56aa806710afe5065b8704b42a2b8a5ecf469f65190a897698d30d689a47 diff --git a/dev-python/cfn-lint/cfn-lint-0.79.1.ebuild b/dev-python/cfn-lint/cfn-lint-0.79.1.ebuild new file mode 100644 index 000000000000..15a3078b7cf3 --- /dev/null +++ b/dev-python/cfn-lint/cfn-lint-0.79.1.ebuild @@ -0,0 +1,64 @@ +# 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_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="CloudFormation Linter" +HOMEPAGE=" + https://github.com/aws-cloudformation/cfn-lint/ + https://pypi.org/project/cfn-lint/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/aws-sam-translator-1.71.0[${PYTHON_USEDEP}] + dev-python/jsonpatch[${PYTHON_USEDEP}] + >=dev-python/jschema_to_python-1.2.3[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] + dev-python/junit-xml[${PYTHON_USEDEP}] + <dev-python/networkx-4[${PYTHON_USEDEP}] + >dev-python/pyyaml-5.4[${PYTHON_USEDEP}] + >=dev-python/requests-2.15.0[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + >=dev-python/sarif_om-1.0.4[${PYTHON_USEDEP}] + >=dev-python/sympy-1.0.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + # unpin the deps + sed -e 's:~=[0-9.]*::' -e '/jsonschema/s:,<4.18::' -i setup.py || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO + test/unit/module/test_template.py::TestTemplate::test_build_graph + # requires git repo + test/unit/module/maintenance/test_update_documentation.py::TestUpdateDocumentation::test_update_docs + # Internet + test/unit/module/formatters/test_formatters.py::TestFormatters::test_sarif_formatter + test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_3 + # TODO: it looks as if AWS_DEFAULT_REGION didn't work + test/unit/module/core/test_run_cli.py::TestCli::test_bad_config + test/unit/module/core/test_run_cli.py::TestCli::test_override_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_positional_template_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_template_config + ) + + # from tox.ini + local -x AWS_DEFAULT_REGION=us-east-1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/cfn-lint/cfn-lint-0.79.3.ebuild b/dev-python/cfn-lint/cfn-lint-0.79.3.ebuild new file mode 100644 index 000000000000..15a3078b7cf3 --- /dev/null +++ b/dev-python/cfn-lint/cfn-lint-0.79.3.ebuild @@ -0,0 +1,64 @@ +# 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_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="CloudFormation Linter" +HOMEPAGE=" + https://github.com/aws-cloudformation/cfn-lint/ + https://pypi.org/project/cfn-lint/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/aws-sam-translator-1.71.0[${PYTHON_USEDEP}] + dev-python/jsonpatch[${PYTHON_USEDEP}] + >=dev-python/jschema_to_python-1.2.3[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] + dev-python/junit-xml[${PYTHON_USEDEP}] + <dev-python/networkx-4[${PYTHON_USEDEP}] + >dev-python/pyyaml-5.4[${PYTHON_USEDEP}] + >=dev-python/requests-2.15.0[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + >=dev-python/sarif_om-1.0.4[${PYTHON_USEDEP}] + >=dev-python/sympy-1.0.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + # unpin the deps + sed -e 's:~=[0-9.]*::' -e '/jsonschema/s:,<4.18::' -i setup.py || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO + test/unit/module/test_template.py::TestTemplate::test_build_graph + # requires git repo + test/unit/module/maintenance/test_update_documentation.py::TestUpdateDocumentation::test_update_docs + # Internet + test/unit/module/formatters/test_formatters.py::TestFormatters::test_sarif_formatter + test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_3 + # TODO: it looks as if AWS_DEFAULT_REGION didn't work + test/unit/module/core/test_run_cli.py::TestCli::test_bad_config + test/unit/module/core/test_run_cli.py::TestCli::test_override_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_positional_template_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_template_config + ) + + # from tox.ini + local -x AWS_DEFAULT_REGION=us-east-1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/css-parser/css-parser-1.0.9.ebuild b/dev-python/css-parser/css-parser-1.0.9.ebuild index 18aad9297e48..d8a9a8fe15e2 100644 --- a/dev-python/css-parser/css-parser-1.0.9.ebuild +++ b/dev-python/css-parser/css-parser-1.0.9.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="LGPL-2.1+" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv x86" BDEPEND=" test? ( diff --git a/dev-python/dnspython/Manifest b/dev-python/dnspython/Manifest index f615512fea32..503ad3623243 100644 --- a/dev-python/dnspython/Manifest +++ b/dev-python/dnspython/Manifest @@ -1,2 +1,3 @@ DIST dnspython-2.3.0.gh.tar.gz 339222 BLAKE2B 1e1bfd1d716f5afce1ccc2e0f1fbb8e575e91619bc32f2c5067f6da4e01ea927dd0a1ed4c35e6c88d34de320befd833c9c17d060ea71918775c1f5f0121b61a8 SHA512 0bb4b41262a1d97b724e48b4dfb70f1fb544c18824e7d2bc2dcb8ef6c943c6c827ce753ae4ccb2ab37e95c8f5ff5d2f4853f238509f21e6299a445760c41e10e DIST dnspython-2.4.0.gh.tar.gz 356155 BLAKE2B d77ac611a45bb6f19903752af480e03d25655e0c814768c67b9a605c7a41a8c17efa976a4ff55fcc7de811113415addb094f8edefb5ebaa29b25d5a5865ea9ab SHA512 61becb66d049f9a503a4e60195183cd7b2f6dfb67d28aac85e39d26d30abd1eb97b52f368796438d90a4ff9acb441d1e487d5699484c77ec58e3914885d66aca +DIST dnspython-2.4.1.gh.tar.gz 357296 BLAKE2B 7346a2c4ee60e5449edc567d69f5ec3e7a546b6fd1fda3b08448d3748a1fd991526b0d673b26b10b31cdb3029a07322b3e62f55f67685432e376ab6e2a8a49c0 SHA512 98f440f13b8600880cc56493d9f20bfd824d40eca4cde4ed4bcaa0fa617d30176f4d37bc391896a237bd7bd3ce99f0ef9779a2fb26dcdb02e455edec53a31fdd diff --git a/dev-python/dnspython/dnspython-2.4.1.ebuild b/dev-python/dnspython/dnspython-2.4.1.ebuild new file mode 100644 index 000000000000..ff5bb4648b7d --- /dev/null +++ b/dev-python/dnspython/dnspython-2.4.1.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=poetry +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="DNS toolkit for Python" +HOMEPAGE=" + https://www.dnspython.org/ + https://github.com/rthalley/dnspython/ + https://pypi.org/project/dnspython/ +" +SRC_URI=" + https://github.com/rthalley/dnspython/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="ISC" +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" +IUSE="dnssec examples" + +RDEPEND=" + dnssec? ( + dev-python/cryptography[${PYTHON_USEDEP}] + ) + <dev-python/idna-4.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/cryptography[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + epytest -s +} + +python_install_all() { + distutils-r1_python_install_all + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/dev-python/elementpath/Manifest b/dev-python/elementpath/Manifest index 95caa0903927..7e2bd819d1a5 100644 --- a/dev-python/elementpath/Manifest +++ b/dev-python/elementpath/Manifest @@ -1 +1,2 @@ DIST elementpath-4.1.4.tar.gz 321593 BLAKE2B 90b7ec9973acd300660fbe02b787eb5e6e2e2e6405b2337844f18415c48baaa5dd5c94fe90523e7c5090f9840c8cfdb333dd96afbb18e35c9adefda68dbda0ab SHA512 279ca4447b086f47f69e7cecbeb998e949ab6d5772cb5cddf231df8da2eed3a580813b0609758097bc409cbba46a884a3859d604cdf8a956c90503409ab90db2 +DIST elementpath-4.1.5.tar.gz 321891 BLAKE2B 70acff5974607a9ae79e90186f5477df8d85c5b42ff03625fbf006a02de82bbf14b79de3df55b38d65e9317fb5ab4ba4e27c38b8f7d8af11905340bb29e66731 SHA512 64a58dce8d7baf26286420ef15227804dd7f0296a8666929fbbb4425ee5523352dc8a0d610f6c7d1b9322a2292d6115ace79e0399f3c77cd074c85a4c9e0f0df diff --git a/dev-python/elementpath/elementpath-4.1.5.ebuild b/dev-python/elementpath/elementpath-4.1.5.ebuild new file mode 100644 index 000000000000..7c53dda68230 --- /dev/null +++ b/dev-python/elementpath/elementpath-4.1.5.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 pytest + +src_prepare() { + # fails for some reason, more fit for upstream testing anyway + rm tests/test_typing.py || die + distutils-r1_src_prepare +} diff --git a/dev-python/emoji/Manifest b/dev-python/emoji/Manifest index 5a2f1b87cf82..f0c10e87760d 100644 --- a/dev-python/emoji/Manifest +++ b/dev-python/emoji/Manifest @@ -1 +1,2 @@ DIST emoji-2.6.0.gh.tar.gz 417829 BLAKE2B f7633a3e1eeb007eb69dede86c24115d196112765424e8808c8a461e06c6eff681437fd170146f96f1892ef62d3b7b064a1b9a09ee940ac4bd624ad9b59f169c SHA512 5b4131708284f80ba6019a9eb7b4e1ad9e2d6212bdf8e112c93098a65b60535303c3545b6f556bbb63da957f74d757afeb9f189110b10fd5733fcd0febac0cb4 +DIST emoji-2.7.0.gh.tar.gz 424600 BLAKE2B 3d882651fd4796895db70aa1ef0fa2bd5e56f846e53b5043418678a4f0edf381512b248f3765ab69d99dd09166aa0c989b5eb4a9d6b490a0773d598240c1cfe0 SHA512 a44565e515d3a6279a9bd7ffcc31314b8d612aeedd8e02427a446e63b899b96ec63d934c29033c48d70ddc883215b92697b98d4ec0ab9437f9555e87ecfccfbf diff --git a/dev-python/emoji/emoji-2.7.0.ebuild b/dev-python/emoji/emoji-2.7.0.ebuild new file mode 100644 index 000000000000..7bd518f5e675 --- /dev/null +++ b/dev-python/emoji/emoji-2.7.0.ebuild @@ -0,0 +1,25 @@ +# 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="Emoji for Python" +HOMEPAGE=" + https://github.com/carpedm20/emoji/ + https://pypi.org/project/emoji/ +" +SRC_URI=" + https://github.com/carpedm20/emoji/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" + +distutils_enable_tests pytest diff --git a/dev-python/furo/Manifest b/dev-python/furo/Manifest index dd8dfe22a3a1..6e7c1e1c8ecc 100644 --- a/dev-python/furo/Manifest +++ b/dev-python/furo/Manifest @@ -1 +1,2 @@ DIST furo-2023.5.20-py3-none-any.whl 326767 BLAKE2B cc8eb3816bf99039e1a312f9fed21538b0154ece228e351107df89f5770c382614efc7202bae742d28d2fc8fceabc8b748b2bfbe8a230aeb70f280b622d42c11 SHA512 1a97b37aa9ce55878f34e3276eebeb4b138bd9e397b6711469fed4523ab8dadcd91e77234a1eca20561276f6660410a31f48f34ae320c6772d1055699cdd7125 +DIST furo-2023.7.26-py3-none-any.whl 326996 BLAKE2B 1da4cbbdcab66973e87228a423042f58499c95a0a4287ad4e5ff4b87a3ae27b31b68dfc1a267a1642b35455f420659755ef4791c519496799331379c806e8f2c SHA512 761c3b276d4db86dea0201c2f10e2958fe8ef784243687e6884406bdd11b009296158585ae865fc754c0b7674fe65cc2d6beaf3d997da672d2e4e319b1813fa1 diff --git a/dev-python/furo/furo-2023.7.26.ebuild b/dev-python/furo/furo-2023.7.26.ebuild new file mode 100644 index 000000000000..0bf37a918b27 --- /dev/null +++ b/dev-python/furo/furo-2023.7.26.ebuild @@ -0,0 +1,36 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# sphinx-theme-builder is completely unusable, as it requires pinning +# to a very-specific nodejs version number, and ofc loves fetching +# everything from the Internet + +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Clean customisable Sphinx documentation theme" +HOMEPAGE=" + https://pypi.org/project/furo/ + https://github.com/pradyunsg/furo/ +" +SRC_URI="$(pypi_wheel_url)" +S=${WORKDIR} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-basic-ng[${PYTHON_USEDEP}] +" + +python_compile() { + distutils_wheel_install "${BUILD_DIR}/install" \ + "${DISTDIR}/${P}-py3-none-any.whl" +} diff --git a/dev-python/google-api-python-client/Manifest b/dev-python/google-api-python-client/Manifest index 3652d4022fd0..9713eca24f3e 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.93.0.tar.gz 10929939 BLAKE2B 67369eac89a12f212841923e2f912ce18b3ae39c7e0fafd45cbcbff3556919a784ec8dce2f73bcf91de3f2faa0404ec17719582a283120cf43d03a1513ed6c7c SHA512 41c6ef0cdf09e8c486b91490383bcb5914d8bd15a0ed486abcfe9b9121b035a2a9d9b8abeeb60ee0f6757e100618308df8967c6ace687d991ce9b609dd3b0747 DIST google-api-python-client-2.94.0.tar.gz 10987576 BLAKE2B 11851577d05e15208f4dc8905a8147b753442ceb36ebac74b01ecb8f7993bbc1d02813d12f06fea3ec0bec7df180da4a4963899bc85479ac0c744627a5aed614 SHA512 750d55848ebe69605d4948e368ddbb590b69f579d394e533bbc81a28d21b7435b817d08092f508303725cb492245cae8b9f7f94628593d10e9574cfe79440b4b +DIST google-api-python-client-2.95.0.tar.gz 11044697 BLAKE2B 1a28798146d2f321f0455dd092430cefb6d15ddc3469ba0b5ee2aab6546c4c56477379e970ac4b0eeb1a969d53a5ea002206145c046bbfa89c1b6d65dad5a2d1 SHA512 3e8419d4de8e1604365b47bc13ebb69939f2c86bc46e1e08277a3766a23f03660c25ab9113a13b6abbfee2afb4f49678144bb11c4a423c4cf05c83717863183e diff --git a/dev-python/google-api-python-client/google-api-python-client-2.95.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.95.0.ebuild new file mode 100644 index 000000000000..0c85e8ca1676 --- /dev/null +++ b/dev-python/google-api-python-client/google-api-python-client-2.95.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_{7,8,9,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/indexed_gzip/Manifest b/dev-python/indexed-gzip/Manifest index b8edd923ebfd..fe0522c87299 100644 --- a/dev-python/indexed_gzip/Manifest +++ b/dev-python/indexed-gzip/Manifest @@ -1 +1,2 @@ DIST indexed_gzip-1.7.1.tar.gz 74457 BLAKE2B b22d2120adac59e64f5bcf38c831bb54ce5d6c3dd1e959eece9a454908d9ce2aa5dc10557bd63823616bedfe9d0c039a3f1c0512ef1d22a54437353c57e15158 SHA512 fa27e476f115eca1d1d3892c3480de97cb407bd489737bebc44eb28e92be91e14312cde33a67af145b44c7d93ccc706498c2cbfe6cbff5b9b091dd083cde0f7e +DIST indexed_gzip-1.8.3.tar.gz 74621 BLAKE2B e8092eea93235b7e6a154b34d12194ffbd3ecb88f2891b8b60ab526fa6a9247c78afded19b284b8143981a83333f376e82b65003ada61ce2efe7378fe84749a4 SHA512 f33fb19938ae39e4ede71f3f2a328f56e7fad5ee4872b25c0977ded1819541e9e63d64a1379b022cd82af79a5c0967d8fdde589d2276841a4b0e9d3179229035 diff --git a/dev-python/indexed_gzip/indexed_gzip-1.7.1.ebuild b/dev-python/indexed-gzip/indexed-gzip-1.7.1.ebuild index f1d6f8034771..f1d6f8034771 100644 --- a/dev-python/indexed_gzip/indexed_gzip-1.7.1.ebuild +++ b/dev-python/indexed-gzip/indexed-gzip-1.7.1.ebuild diff --git a/dev-python/indexed-gzip/indexed-gzip-1.8.3.ebuild b/dev-python/indexed-gzip/indexed-gzip-1.8.3.ebuild new file mode 100644 index 000000000000..e0666affef11 --- /dev/null +++ b/dev-python/indexed-gzip/indexed-gzip-1.8.3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 multiprocessing pypi + +DESCRIPTION="Fast random access of gzip files in Python" +HOMEPAGE=" + https://pypi.org/project/indexed-gzip/ + https://github.com/pauldmccarthy/indexed_gzip/ +" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-libs/zlib:= +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # strip custom "clean" command that doesn't support "-a" + # https://bugs.gentoo.org/838955 + # TODO: this can be removed once distutils-r1 stops using clean + sed -e '/cmdclass/d' -i setup.py || die + distutils-r1_src_prepare +} + +src_compile() { + if use test; then + export INDEXED_GZIP_TESTING=1 + fi + distutils-r1_src_compile +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)/indexed_gzip/tests" || die + epytest -n "$(makeopts_jobs)" --dist=worksteal +} diff --git a/dev-python/indexed_gzip/metadata.xml b/dev-python/indexed-gzip/metadata.xml index df32b543352c..df32b543352c 100644 --- a/dev-python/indexed_gzip/metadata.xml +++ b/dev-python/indexed-gzip/metadata.xml diff --git a/dev-python/ipykernel/Manifest b/dev-python/ipykernel/Manifest index 0347746d957c..8395f902cba2 100644 --- a/dev-python/ipykernel/Manifest +++ b/dev-python/ipykernel/Manifest @@ -1 +1,2 @@ DIST ipykernel-6.24.0.tar.gz 154452 BLAKE2B d9ff81dd2f4cc989fd8356d3f02451158dde49fd83076fd7fa42f002b095cc87f296f2deb34fdc1becbbc0391385466dc21d167ab22167a0bd6d1d561bb19427 SHA512 555ed0d6df7a4d82bb5db63718c320e1628b8d5691e831eae041ac78400be6935793b258c219815fd070cbad29e869897111add6958308db55ea03843a536393 +DIST ipykernel-6.25.0.tar.gz 155658 BLAKE2B f14afaf28ec82473fa0b7c33a281ebd91fd5d93b0e00bd838046b8f591f12bca64fed8514e97ce59ba20b78940bdd7afad93ef9a59656795de97e80ff46e8339 SHA512 7cd2d3cbb2c83ca165798dc830aae096ce3391535ef604f257c4c79357ebd1c7f7e95c6952e1fb95d1a460ccb5b1bf88396f984b6462986b3e73a4453dd33b52 diff --git a/dev-python/ipykernel/ipykernel-6.25.0.ebuild b/dev-python/ipykernel/ipykernel-6.25.0.ebuild new file mode 100644 index 000000000000..5c4918cb4970 --- /dev/null +++ b/dev-python/ipykernel/ipykernel-6.25.0.ebuild @@ -0,0 +1,79 @@ +# 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 ~s390 ~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 + # doesn't like pyside2? + ipykernel/tests/test_eventloop.py::test_qt_enable_gui + ) + + virtx distutils-r1_src_test +} diff --git a/dev-python/keyring/keyring-24.2.0.ebuild b/dev-python/keyring/keyring-24.2.0.ebuild index c6fbc9d7dff7..305d40f3a3f7 100644 --- a/dev-python/keyring/keyring-24.2.0.ebuild +++ b/dev-python/keyring/keyring-24.2.0.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" SLOT="0" LICENSE="PSF-2" -KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" +KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" RDEPEND=" >=dev-python/secretstorage-3.2[${PYTHON_USEDEP}] diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest index 5b7a6edd4e46..3a2715be6ff9 100644 --- a/dev-python/lxml/Manifest +++ b/dev-python/lxml/Manifest @@ -1,2 +1,3 @@ DIST lxml-4.9.2.gh.tar.gz 957365 BLAKE2B 201b3977da90386e413f1b89a4b7ee1e44d6bbea05e622e92feb1d67c637ce46ebf746f0648f034ed3bccd609233ccf7d8a7ee456f13b8d9ca8587ddf1ebd32a SHA512 816b2fe2eef2a97a0df66cbc39850c6dc3d6470e4033cc73edb40c80c0afbbe6c084d042d7c98b29497926e76f648caa42e1ebe5d83060af08af6972316077b0 +DIST lxml-4.9.3-patches.tar.xz 10544 BLAKE2B 407938d2f701400e919110c3bfe84e94621f39f8178850c466d41549ee0eff4f23e93cdd8ea684713e8276acfaa05d6f7b7af4d375c859b9fc5b2981d60983a3 SHA512 c2d5d2ffb035aed6d846de84885b87142b2be7a09ffe6927e7c032acab343730acfcbefd75e8141cf3b41b308c532869a7878b515f3d4eeefa7526a3d2599398 DIST lxml-4.9.3.gh.tar.gz 958628 BLAKE2B ffdf3fe781a03815f7c026229d313721c93375ebafad9b4a20c5d8a380a631401e546d8701a94d8c49615fb6a71e84940d8ca0299b47a37c1c9596db36659113 SHA512 903bd4935c7708b459aee9befcf3f6e3e3aaa9adc122591ea923b6e3d8fd288f07cab3f5f0edb08e3bf9db80414324f0a1a8e5a5089f9cda82f6c50f5df59423 diff --git a/dev-python/lxml/files/lxml-4.9.3-tests-py3.11-cython3.patch b/dev-python/lxml/files/lxml-4.9.3-tests-py3.11-cython3.patch new file mode 100644 index 000000000000..1fb466ab810f --- /dev/null +++ b/dev-python/lxml/files/lxml-4.9.3-tests-py3.11-cython3.patch @@ -0,0 +1,10 @@ +--- a/src/lxml/tests/test_errors.py ++++ b/src/lxml/tests/test_errors.py +@@ -25,6 +25,7 @@ class ErrorTestCase(HelperTestCase): + def test_empty_parse(self): + self.assertRaises(etree.XMLSyntaxError, etree.fromstring, '') + ++ @unittest.skipIf(sys.version_info >= (3, 11), "Known GC failure (https://bugzilla.redhat.com/show_bug.cgi?id=2051510)") + @unittest.skipIf(IS_PYPY, "broken on pypy") + def test_element_cyclic_gc_none(self): + # test if cyclic reference can crash etree diff --git a/dev-python/lxml/lxml-4.9.3-r1.ebuild b/dev-python/lxml/lxml-4.9.3-r1.ebuild new file mode 100644 index 000000000000..6b35c29ac464 --- /dev/null +++ b/dev-python/lxml/lxml-4.9.3-r1.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 optfeature toolchain-funcs + +DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries" +HOMEPAGE=" + https://lxml.de/ + https://pypi.org/project/lxml/ + https://github.com/lxml/lxml/ +" +SRC_URI=" + https://github.com/lxml/lxml/archive/${P}.tar.gz + -> ${P}.gh.tar.gz + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-4.9.3-patches.tar.xz +" +S=${WORKDIR}/lxml-${P} + +LICENSE="BSD ElementTree GPL-2 PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc examples +threads test" +RESTRICT="!test? ( test )" + +# Note: lib{xml2,xslt} are used as C libraries, not Python modules. +DEPEND=" + >=dev-libs/libxml2-2.10.3 + >=dev-libs/libxslt-1.1.38 +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + virtual/pkgconfig + >=dev-python/cython-0.29.35[${PYTHON_USEDEP}] + doc? ( + $(python_gen_any_dep ' + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] + ') + ) + test? ( + dev-python/cssselect[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-4.9.3-tests-pypy.patch + "${FILESDIR}"/${PN}-4.9.3-tests-py3.11-cython3.patch + "${WORKDIR}"/${PN}-4.9.3-patches +) + +python_check_deps() { + use doc || return 0 + python_has_version -b "dev-python/docutils[${PYTHON_USEDEP}]" && + python_has_version -b "dev-python/pygments[${PYTHON_USEDEP}]" && + python_has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]" && + python_has_version -b "dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]" +} + +python_prepare_all() { + # avoid replacing PYTHONPATH in tests. + sed -i -e '/sys\.path/d' test.py || die + + # don't use some random SDK on Darwin + sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \ + setupinfo.py || die + + distutils-r1_python_prepare_all +} + +python_compile() { + tc-export PKG_CONFIG + distutils-r1_python_compile +} + +python_compile_all() { + use doc && emake html +} + +python_test() { + local dir=${BUILD_DIR}/test$(python_get_sitedir)/lxml + local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH} + + cp -al "${BUILD_DIR}"/{install,test} || die + cp -al src/lxml/tests "${dir}/" || die + cp -al src/lxml/html/tests "${dir}/html/" || die + ln -rs "${S}"/doc "${dir}"/../../ || die + + "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}" +} + +python_install_all() { + if use doc; then + local DOCS=( README.rst *.txt doc/*.txt ) + local HTML_DOCS=( doc/html/. ) + fi + if use examples; then + dodoc -r samples + fi + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup4 + optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect +} diff --git a/dev-python/markdown/Manifest b/dev-python/markdown/Manifest index ce1418c30da9..87f59165c0c1 100644 --- a/dev-python/markdown/Manifest +++ b/dev-python/markdown/Manifest @@ -1,2 +1,3 @@ DIST Markdown-3.3.7.tar.gz 324130 BLAKE2B 4ecf804b81181a9895e15d2f54881544648939f2bb772b036aa84dc8bf57b7976c6ebdf8549041b39a303bd7c68c16df3c126463a8da19b3c92f99b420e9ffb9 SHA512 39b9f45939be9e842e90470307c3aeec88d1389439b0c7a0c5b39f6e203b51d3a52ce431c4d5c278f399552c4218fc1a619b0efc56883de50a9f300f42120f4e DIST Markdown-3.4.3.tar.gz 322175 BLAKE2B 628f6808f16299f22853116da94d7918d19b6195981f591faedda6a2ad15751df2d1e209eff922ba921dc6309cf35b7b82968a0c444544b8014918c73f8bad8f SHA512 9dec3f9e13ae73c45aa23a9ddd62d8103af83357e2c4fe447f079281bf3917d1ff43d9abf1903aa146baa46249e7f83b9e5f05756862f0de068304d2290e77da +DIST Markdown-3.4.4.tar.gz 324459 BLAKE2B 3ff05a2c8e51905f16b0cb8cda51c65e47c9d02091487fe48edf7a8ab4a73003c3469f1ce9e80f0ca6d73a30d1f22d4b6fbc1c52c34506951376aa899938665e SHA512 39e808d5a4a07b57e931a844c3d8f6fe564849f8b5922eef6708e5a600cf7e742d92617d9d9649cab0eab34a6ffc7bc97e9ea960ffef75e9062aa375769e6a28 diff --git a/dev-python/markdown/markdown-3.4.4.ebuild b/dev-python/markdown/markdown-3.4.4.ebuild new file mode 100644 index 000000000000..fe735841f342 --- /dev/null +++ b/dev-python/markdown/markdown-3.4.4.ebuild @@ -0,0 +1,39 @@ +# 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python implementation of the markdown markup language" +HOMEPAGE=" + https://python-markdown.github.io/ + https://pypi.org/project/Markdown/ + https://github.com/Python-Markdown/markdown/ +" + +LICENSE="BSD" +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" +IUSE="doc" + +BDEPEND=" + test? ( + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/pytidylib[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +python_install_all() { + use doc && dodoc -r docs/ + + distutils-r1_python_install_all +} diff --git a/dev-python/mistletoe/Manifest b/dev-python/mistletoe/Manifest index 20023c52d070..d17c4b4fefaa 100644 --- a/dev-python/mistletoe/Manifest +++ b/dev-python/mistletoe/Manifest @@ -1,2 +1 @@ -DIST mistletoe-1.0.1.tar.gz 48898 BLAKE2B e20d6c07e4796ebacc417e9153a2ebd59fa5baa1594887ca66eff8eac40352660f0fe2eb55dd400ee6b54b7c902307e3f16caef81094fb451a12da4f84197e6b SHA512 09a879a26c2d1f6664cb1cc1c5e40bb55a54858693dfca8c77c0caa9f85216b3fd27c3e9143ddf98406f0b7aa75651ff0fb498403d2e5b237fe8b885d660bc8f -DIST mistletoe-1.1.0.tar.gz 58192 BLAKE2B f8e046ac85925269ba6d69356a3478f57495914c09d792d348cd8d9bfae25fb0b9d6a337eb791a61e017c41e71fe33e23ceabd8d9b4711da67198472e3b1b09e SHA512 b7e022e24e8e85f3ecc40ad05e65fd3e17229a2e4410fe8216b10ee3d46b568efe4a9df1a7d0fc224f818f8372b4b71ae0b59c540c38ae7f4af97c471e249377 +DIST mistletoe-1.1.0.gh.tar.gz 116246 BLAKE2B 52761841380f28e490f1d675ab95bf0f31be44c909c5221dadca37eaeb3bc909c4d9091d52bd3a99f9b4b371fa102cf0f02225a1aa0732ccda4dca2ab85214e2 SHA512 3b1d8b6a9e3fc1fa67a212977a1c26cedafdf2bd2cc53113b8bb583433e69af0b4fd47b575f9a1ba4bda50b1c55a0d27faf9877b6300982eee2f6b8fcb621b7c diff --git a/dev-python/mistletoe/metadata.xml b/dev-python/mistletoe/metadata.xml index 77ae79dc6b36..a0d4c5913ba0 100644 --- a/dev-python/mistletoe/metadata.xml +++ b/dev-python/mistletoe/metadata.xml @@ -1,21 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>julien@jroy.ca</email> - <name>Julien Roy</name> + <maintainer type="project"> + <email>python@gentoo.org</email> </maintainer> - <longdescription>mistletoe is a Markdown parser in pure Python, designed to be fast, spec-compliant and fully customizable. - -Apart from being the fastest CommonMark-compliant Markdown parser implementation in pure Python, mistletoe also supports easy definitions of custom tokens. Parsing Markdown into an abstract syntax tree also allows us to swap out renderers for different output formats, without touching any of the core components.</longdescription> - <upstream> - <maintainer> - <email>mi@afteryu.me</email> - <name>miyuchina</name> - </maintainer> - <changelog>https://github.com/miyuchina/mistletoe/releases</changelog> - <bugs-to>https://github.com/miyuchina/mistletoe/issues</bugs-to> - <doc>https://github.com/miyuchina/mistletoe/blob/master/dev-guide.md</doc> - </upstream> - <origin>gentoo-guru-overlay</origin> + + <origin>gentoo-staging</origin> + <stabilize-allarches/> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/mistletoe/mistletoe-1.0.1.ebuild b/dev-python/mistletoe/mistletoe-1.0.1.ebuild deleted file mode 100644 index ebaa2f0754a7..000000000000 --- a/dev-python/mistletoe/mistletoe-1.0.1.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) -DISTUTILS_USE_PEP517=setuptools - -inherit distutils-r1 pypi - -DESCRIPTION="A fast, extensible and spec-compliant Markdown parser in pure Python." -HOMEPAGE="https://github.com/miyuchina/mistletoe" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND="" -DEPEND="${RDEPEND}" - -distutils_enable_tests pytest diff --git a/dev-python/mistletoe/mistletoe-1.1.0-r1.ebuild b/dev-python/mistletoe/mistletoe-1.1.0-r1.ebuild deleted file mode 100644 index a84719547fb9..000000000000 --- a/dev-python/mistletoe/mistletoe-1.1.0-r1.ebuild +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) -DISTUTILS_USE_PEP517=setuptools - -inherit distutils-r1 pypi - -DESCRIPTION="A fast, extensible and spec-compliant Markdown parser in pure Python." -HOMEPAGE="https://github.com/miyuchina/mistletoe" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -BDEPEND="test? ( dev-python/parameterized[${PYTHON_USEDEP}] )" - -distutils_enable_tests pytest diff --git a/dev-python/mistletoe/mistletoe-1.1.0.ebuild b/dev-python/mistletoe/mistletoe-1.1.0.ebuild new file mode 100644 index 000000000000..24f59bc41524 --- /dev/null +++ b/dev-python/mistletoe/mistletoe-1.1.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 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 fast, extensible Markdown parser in pure Python" +HOMEPAGE=" + https://github.com/miyuchina/mistletoe/ + https://pypi.org/project/mistletoe/ +" +# pypi has incomplete test suite +SRC_URI=" + https://github.com/miyuchina/mistletoe/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + test? ( + dev-python/parameterized[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/mkdocs-minify-plugin/Manifest b/dev-python/mkdocs-minify-plugin/Manifest index 81cdc051b9c5..bed593366e2a 100644 --- a/dev-python/mkdocs-minify-plugin/Manifest +++ b/dev-python/mkdocs-minify-plugin/Manifest @@ -1 +1,2 @@ DIST mkdocs-minify-plugin-0.6.4.gh.tar.gz 8792 BLAKE2B 42dae53b6918655f27f26521e84b42a97e75d7b8f1ec526165341810fce9b0c6bf0add9f451d0122b68e2543deed98a2661ccaefb4b51262fee71964ba3c5bf9 SHA512 d5adf7df838f10abad79c5790c3aefec11ac78078cc5f0640213a2e097cb251a16eba39d9aa6f53996a983d08bcd4558718754d3bd11af74cf407faab3f97453 +DIST mkdocs-minify-plugin-0.7.0.gh.tar.gz 8856 BLAKE2B c61cd0817f4e224ca22b71c395a4bfd0d144cf73ac39417dd2293176e98f31fd797a43c3c43d38a0232c5e287c9b6a84273171bdbf4d2eda5ce757f5b19188f8 SHA512 d14b2050bc8acca03532c46d44418d37401a6bd8dafe727a8331e46a57173044f8bb7f461c62eaa3bcd6ccd88065d9a999fcdfdce9b04d5cd62dd858c5ab0d2b diff --git a/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.0.ebuild b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.0.ebuild new file mode 100644 index 000000000000..ae04dcffc577 --- /dev/null +++ b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.0.ebuild @@ -0,0 +1,48 @@ +# 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} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="An MkDocs plugin to minify HTML and/or JS files prior to being written to disk" +HOMEPAGE=" + https://github.com/byrnereese/mkdocs-minify-plugin + https://pypi.org/project/mkdocs-minify-plugin/ +" +# pypi sdist lacks tests, as of 0.6.4 +SRC_URI=" + https://github.com/byrnereese/mkdocs-minify-plugin/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/csscompressor-0.9.5[${PYTHON_USEDEP}] + >=dev-python/mkdocs-1.4.1[${PYTHON_USEDEP}] + >=app-text/htmlmin-0.1.12[${PYTHON_USEDEP}] + >=dev-python/jsmin-3.0.1[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + # this is a fork of htmlmin with the same patches that we have + sed -i -e '/htmlmin2/d' setup.py || die + distutils-r1_src_prepare +} + +python_test() { + local -x PATH=${T}:${PATH} + cat > "${T}"/mkdocs <<-EOF || die + #!/bin/sh + exec "${EPYTHON}" -m mkdocs "\${@}" + EOF + chmod +x "${T}"/mkdocs || die + epytest +} diff --git a/dev-python/mkdocs-pymdownx-material-extras/Manifest b/dev-python/mkdocs-pymdownx-material-extras/Manifest index cdc2a4cd3c4b..a08a0c5f1937 100644 --- a/dev-python/mkdocs-pymdownx-material-extras/Manifest +++ b/dev-python/mkdocs-pymdownx-material-extras/Manifest @@ -1 +1,2 @@ DIST mkdocs_pymdownx_material_extras-2.4.3.tar.gz 24693 BLAKE2B c7b7518d5eaca04dff0373e897f9fb871aa8537a1438841ab58a4f157910070ccf339091340521d56b7b727cedf33dd5b3ca711155e39b505da195f2308ab0e0 SHA512 3659235bf200f2c400892e9223bc6a1465af116f6f5a85c4decedfd951eba57fbbcb70faf6c22ef9d79d049621d66e64790dad2fa95d43a41213f288b27405a9 +DIST mkdocs_pymdownx_material_extras-2.5.tar.gz 24753 BLAKE2B 7ba244926f796a0b050ce1b518ea7c7ef5744b34fa45b617257704598e471b2a8cfb8b89ac83536b11496046104e0a4eadf6bada966da9efb6b48dff9273ce2a SHA512 61e702971525b4100873db84c39e1a564448a52655269fe5ee02382f40a5aee8891c3e216e172f7ef9a16841e633207f37d151b4fd80c0313d3d4a377f9dd71d diff --git a/dev-python/mkdocs-pymdownx-material-extras/mkdocs-pymdownx-material-extras-2.5.ebuild b/dev-python/mkdocs-pymdownx-material-extras/mkdocs-pymdownx-material-extras-2.5.ebuild new file mode 100644 index 000000000000..c4c95ee6d27b --- /dev/null +++ b/dev-python/mkdocs-pymdownx-material-extras/mkdocs-pymdownx-material-extras-2.5.ebuild @@ -0,0 +1,23 @@ +# 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 pypi + +DESCRIPTION="Custom alterations based on Mkdocs-Material" +HOMEPAGE=" + https://github.com/facelessuser/mkdocs_pymdownx_material_extras/ + https://pypi.org/project/mkdocs-pymdownx-material-extras/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/mkdocs-material-8.3.3[${PYTHON_USEDEP}] +" diff --git a/dev-python/mkdocs/Manifest b/dev-python/mkdocs/Manifest index fd96e97eb66e..45782f62f3ca 100644 --- a/dev-python/mkdocs/Manifest +++ b/dev-python/mkdocs/Manifest @@ -1 +1,2 @@ DIST mkdocs-1.4.3.gh.tar.gz 4019852 BLAKE2B 4bf0d47d939fc9db0daa7954857ba35d7a48031d6029b1a0a1680b6bbe13890244b29d670efe9a0d2f18e1e73aab75879f4e7bcfc60cf944e816054a970ba8e6 SHA512 ac023f0e91f32faa38843c5ec42eb8aa32439b5a7e3967b9838f845687d0c7eadb3c13cbd4f1270e026a4b5afe15123d1568375f75a1ca07a28a93a595f5ac6b +DIST mkdocs-1.5.0.gh.tar.gz 4042630 BLAKE2B d3912b4ed4e89055c9f05ca2ff5e9c92755a95e3f27aee479d15728f6c9a1d6597e3da26e9211c0f8f3c28c806dc149be2e29203bbeda02ec3a30791c142ae4f SHA512 99651345703324a10800de537f7518b0b16b8273229596d773785f2487ff3e6f51b54f00cebe90a41c6e04a6689e49814663ff740c676f3daa4eb6f7017e0288 diff --git a/dev-python/mkdocs/mkdocs-1.5.0.ebuild b/dev-python/mkdocs/mkdocs-1.5.0.ebuild new file mode 100644 index 000000000000..72955130b94f --- /dev/null +++ b/dev-python/mkdocs/mkdocs-1.5.0.ebuild @@ -0,0 +1,86 @@ +# 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} ) + +inherit distutils-r1 + +DESCRIPTION="Project documentation with Markdown" +HOMEPAGE=" + https://www.mkdocs.org/ + https://github.com/mkdocs/mkdocs/ + https://pypi.org/project/mkdocs/ +" +SRC_URI=" + https://github.com/mkdocs/mkdocs/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" + +# https://bugs.gentoo.org/873349 +# Building documentation requires packaging: callouts and mkdocs-autorefs +# +# IUSE="doc" +# +# BDEPEND=" +# doc? ( +# $(python_gen_any_dep ' +# dev-python/mdx_gh_links[${PYTHON_USEDEP}] +# dev-python/mkdocs-redirects[${PYTHON_USEDEP}] +# ') +# ) +# " +RDEPEND=" + >=dev-python/Babel-2.9.0[${PYTHON_USEDEP}] + >=dev-python/click-7.0[${PYTHON_USEDEP}] + >=dev-python/jinja-2.11.1[${PYTHON_USEDEP}] + >=dev-python/markdown-3.3.3[${PYTHON_USEDEP}] + >=dev-python/markupsafe-2.0.1[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}] + >=dev-python/watchdog-2.0[${PYTHON_USEDEP}] + >=dev-python/ghp-import-1.0[${PYTHON_USEDEP}] + >=dev-python/pathspec-0.11.1[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] + >=dev-python/pyyaml_env_tag-0.1[${PYTHON_USEDEP}] + >=dev-python/importlib-metadata-4.3[${PYTHON_USEDEP}] + >=dev-python/packaging-20.5[${PYTHON_USEDEP}] + >=dev-python/mergedeep-1.3.4[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Tests fails if additional themes are installed + mkdocs/tests/utils/utils_tests.py::UtilsTests::test_get_themes + mkdocs/tests/utils/utils_tests.py::UtilsTests::test_get_themes_error + mkdocs/tests/utils/utils_tests.py::UtilsTests::test_get_themes_warning + + # Does not work in emerge env + mkdocs/tests/config/config_options_tests.py::ListOfPathsTest::test_paths_localized_to_config + + # TODO + mkdocs/tests/build_tests.py::testing_server + mkdocs/tests/livereload_tests.py::testing_server +) + +python_compile_all() { + default +# if use doc; then +# # cannot just do mkdocs build, because that fails if +# # the package isn't already installed +# python -m mkdocs build || die "Failed to make docs" +# # Colliding files found by ecompress: +# rm site/sitemap.xml.gz || die +# HTML_DOCS=( "site/." ) +# fi +} + +python_test() { + epytest '-opython_files=*tests.py' mkdocs/tests +} diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest index 8432736d34d2..dc880022501d 100644 --- a/dev-python/nbconvert/Manifest +++ b/dev-python/nbconvert/Manifest @@ -1,2 +1,3 @@ DIST nbconvert-7.6.0.tar.gz 886726 BLAKE2B 9623b10adf08f06921c7b162018a747ef02e47a99c9663261247af2ee895ca66d310c42bcfb8717009b8fd9e8da4a088c5d8369f0ebe5a570a1439d3ea0db37e SHA512 70870b875c0045796004ada5ea3ec5402339392419919c11f2713f07cb0f35605f8902a1e965706c13b972fa4d7785d4941834bd9565e3b3c8afde2a9d2868c9 DIST nbconvert-7.7.2.tar.gz 849694 BLAKE2B 20fb4f9385e5c0d7288974b1c2fb76529b48ac32a21a786e06844d001dfda94643250e54d484809d02c056378429b352ef17559790197305fdeffbe27722d1b2 SHA512 9a92efa3522eb38f975db82a5ea4559833cf30bb65c03f1a2895bc7e4f95c691aca3a8f8e48b0105e44e8428062ee82883480655442ca5fb215b48df45937a09 +DIST nbconvert-7.7.3.tar.gz 849762 BLAKE2B a887fc2bbb7978fdcabbaa46ea391a9b42ba904609ee0a67fc59f1d66373ee2d4cc6328b4c39a7deb77f5bb87c503dc61f7c3a5ce04e36a8149fe7ece42fab46 SHA512 8b6f5b05c89e4931716ecd7de1d16be54284a0c5699439f896f9c08bf3d88f930e6e6cf2fa688132a6c7b93ccd11be9526cc08732d4c28ccf3854f402e21fe82 diff --git a/dev-python/nbconvert/nbconvert-7.7.3.ebuild b/dev-python/nbconvert/nbconvert-7.7.3.ebuild new file mode 100644 index 000000000000..deded8faf5ac --- /dev/null +++ b/dev-python/nbconvert/nbconvert-7.7.3.ebuild @@ -0,0 +1,93 @@ +# 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} ) + +inherit distutils-r1 multiprocessing pypi virtualx + +DESCRIPTION="Converting Jupyter Notebooks" +HOMEPAGE=" + https://nbconvert.readthedocs.io/ + https://github.com/jupyter/nbconvert/ + https://pypi.org/project/nbconvert/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/bleach[${PYTHON_USEDEP}] + dev-python/defusedxml[${PYTHON_USEDEP}] + >=dev-python/jinja-3.0[${PYTHON_USEDEP}] + >=dev-python/jupyter-core-4.7[${PYTHON_USEDEP}] + dev-python/jupyterlab-pygments[${PYTHON_USEDEP}] + >=dev-python/markupsafe-2.0[${PYTHON_USEDEP}] + <dev-python/mistune-4[${PYTHON_USEDEP}] + >=dev-python/nbclient-0.5.0[${PYTHON_USEDEP}] + >=dev-python/nbformat-5.7[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}] + >=dev-python/pygments-2.4.1[${PYTHON_USEDEP}] + dev-python/tinycss2[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.1.1[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/ipykernel[${PYTHON_USEDEP}] + >=dev-python/ipywidgets-7[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + mkdir -p share/templates/classic/static || die + # tries to refetch stuff even if it's already present + sed -e 's:css = .*:raise PermissionError("You shall not fetch!"):' \ + -i hatch_build.py || die + distutils-r1_src_prepare +} + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # Missing pyppeteer for now + # TODO: Doesn't skip? + nbconvert/exporters/tests/test_webpdf.py + # Needs pyppeteer too + 'nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium' + # TODO + nbconvert/exporters/tests/test_qtpng.py::TestQtPNGExporter::test_export + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor + # latex failing, might be too new pandoc + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_filename_spaces + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_pdf + # too new pandoc but we don't have old anymore + nbconvert/utils/tests/test_pandoc.py::TestPandoc::test_minimal_version + nbconvert/utils/tests/test_pandoc.py::TestPandoc::test_pandoc_available + # crazy qtweb* stuff, perhaps permissions + nbconvert/exporters/tests/test_qtpdf.py::TestQtPDFExporter::test_export + ) + + # virtx implies nonfatal, make it explicit to avoid confusion + nonfatal epytest -n "$(makeopts_jobs)" --pyargs nbconvert || die +} + +pkg_postinst() { + if ! has_version virtual/pandoc; then + einfo "Pandoc is required for converting to formats other than Python," + einfo "HTML, and Markdown. If you need this functionality, install" + einfo "app-text/pandoc or app-text/pandoc-bin." + fi +} diff --git a/dev-python/nbxmpp/nbxmpp-4.3.1.ebuild b/dev-python/nbxmpp/nbxmpp-4.3.1.ebuild index 5e7f80a50d27..3304d93d51e2 100644 --- a/dev-python/nbxmpp/nbxmpp-4.3.1.ebuild +++ b/dev-python/nbxmpp/nbxmpp-4.3.1.ebuild @@ -21,7 +21,7 @@ S=${WORKDIR}/${MY_P} SLOT="0" LICENSE="GPL-3" -KEYWORDS="amd64 ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm64 ~loong ~riscv x86" RDEPEND=" dev-libs/gobject-introspection diff --git a/dev-python/pdm/Manifest b/dev-python/pdm/Manifest index 7806eda5507d..eb340ee8f308 100644 --- a/dev-python/pdm/Manifest +++ b/dev-python/pdm/Manifest @@ -1 +1,2 @@ DIST pdm-2.8.0.tar.gz 3069029 BLAKE2B 3fc3246c7bf26953be96def58d8249c981def96e1607b82b35f1b8347dc5246dd6b4613e4f2093e2e6453724e8709951d2fff38a1f02f2dcc5e85fe6e8c678da SHA512 95cc0a4cb032fa39281aea5ab2f31da7f503c6444a9c41d88ac9bf9ab650654a3f154506f2ed822e70266046c4b6a111518ed68aa7ab75aa31c096e071859bcd +DIST pdm-2.8.1.tar.gz 3014347 BLAKE2B 0dde8e2376065ac6241e06c24a7b1b241e5653f6e2cb7fd529cc8dfd3d0f6c6fc4c6a43208551594a7d837d11dbaff02612d944a9077cb132d3eee3c23559ee7 SHA512 f18fddd533cf0b72f9ff376c865bc5df6a58c248f4c9737404eb1d62f5d9a233f22b7a76db3b2f9b7a321c8d1e3aa2ea395d2dd3ffe29834ccc09c8272410b82 diff --git a/dev-python/pdm/pdm-2.8.1.ebuild b/dev-python/pdm/pdm-2.8.1.ebuild new file mode 100644 index 000000000000..375e66f18a35 --- /dev/null +++ b/dev-python/pdm/pdm-2.8.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=pdm-backend +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python package and dependency manager supporting the latest PEP standards" +HOMEPAGE=" + https://pypi.org/project/pdm/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/blinker[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/platformdirs[${PYTHON_USEDEP}] + dev-python/rich[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/pyproject-hooks[${PYTHON_USEDEP}] + dev-python/requests-toolbelt[${PYTHON_USEDEP}] + >=dev-python/unearth-0.10.0[${PYTHON_USEDEP}] + <dev-python/findpython-1[${PYTHON_USEDEP}] + dev-python/tomlkit[${PYTHON_USEDEP}] + dev-python/shellingham[${PYTHON_USEDEP}] + dev-python/python-dotenv[${PYTHON_USEDEP}] + >=dev-python/resolvelib-1.0.1[${PYTHON_USEDEP}] + dev-python/installer[${PYTHON_USEDEP}] + dev-python/cachecontrol[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/tomli[${PYTHON_USEDEP}]' pypy3 python3_10) +" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # Internet + 'tests/cli/test_build.py::test_build_with_no_isolation[False]' + tests/test_project.py::test_access_index_with_auth + tests/cli/test_others.py::test_build_distributions + 'tests/models/test_candidates.py::test_expand_project_root_in_url[demo @ file:///${PROJECT_ROOT}/tests/fixtures/artifacts/demo-0.0.1.tar.gz]' + 'tests/models/test_candidates.py::test_expand_project_root_in_url[-e file:///${PROJECT_ROOT}/tests/fixtures/projects/demo-#-with-hash#egg=demo]' + # hangs on interactive keyring prompts + tests/cli/test_config.py::test_repository_overwrite_default + tests/cli/test_config.py::test_hide_password_in_output_repository + tests/cli/test_config.py::test_hide_password_in_output_pypi + # junk output, sigh + tests/cli/test_others.py::test_info_command_json + # why does it try to use python 2.7?! + tests/cli/test_run.py::test_import_another_sitecustomize + ) + + epytest -m "not network and not integration and not path" +} diff --git a/dev-python/precis-i18n/precis-i18n-1.0.5.ebuild b/dev-python/precis-i18n/precis-i18n-1.0.5.ebuild index 877d4d3c9c84..7269cecc948a 100644 --- a/dev-python/precis-i18n/precis-i18n-1.0.5.ebuild +++ b/dev-python/precis-i18n/precis-i18n-1.0.5.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv x86" distutils_enable_tests unittest diff --git a/dev-python/protobuf-python/protobuf-python-4.21.9.ebuild b/dev-python/protobuf-python/protobuf-python-4.21.9.ebuild index bb717e07e836..0f090987f996 100644 --- a/dev-python/protobuf-python/protobuf-python-4.21.9.ebuild +++ b/dev-python/protobuf-python/protobuf-python-4.21.9.ebuild @@ -24,7 +24,7 @@ else https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz -> ${PARENT_P}.tar.gz " - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos" + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos" fi DESCRIPTION="Google's Protocol Buffers - Python bindings" diff --git a/dev-python/protobuf-python/protobuf-python-9999.ebuild b/dev-python/protobuf-python/protobuf-python-9999.ebuild index d710e1d06b8c..1c20e7fa7ff2 100644 --- a/dev-python/protobuf-python/protobuf-python-9999.ebuild +++ b/dev-python/protobuf-python/protobuf-python-9999.ebuild @@ -23,7 +23,7 @@ else https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz -> ${PARENT_P}.tar.gz " - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" fi DESCRIPTION="Google's Protocol Buffers - Python bindings" diff --git a/dev-python/pycryptodome/pycryptodome-3.18.0.ebuild b/dev-python/pycryptodome/pycryptodome-3.18.0.ebuild index 8d6cc97011fd..bd994343b547 100644 --- a/dev-python/pycryptodome/pycryptodome-3.18.0.ebuild +++ b/dev-python/pycryptodome/pycryptodome-3.18.0.ebuild @@ -23,7 +23,7 @@ SRC_URI=" LICENSE="BSD-2 Unlicense" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" DEPEND=" dev-libs/gmp:= diff --git a/dev-python/pydantic/Manifest b/dev-python/pydantic/Manifest index 996d93ed8693..49c1bbb97292 100644 --- a/dev-python/pydantic/Manifest +++ b/dev-python/pydantic/Manifest @@ -2,3 +2,4 @@ DIST pydantic-1.10.11.gh.tar.gz 766203 BLAKE2B 5ab426a805a471baac409c82d5a0cdaa9 DIST pydantic-1.10.12.gh.tar.gz 766366 BLAKE2B b00885b86ef331f3f8531d1514f4e3e1ef10d009b35453c6d5a6295ecfe2d2b842f66c7ea2a79ca1d235d54fa38b42432e14804163f944c4455f05c06869815a SHA512 413d433decfa3bb7173d6f4e6e06f746cfbf95f6d27c6a17098216ba81d64d7f8bb956cda195d0676559f96278f3800c77be53ecf46496ac009f130120642cc2 DIST pydantic-1.10.9.gh.tar.gz 765868 BLAKE2B 802c542d75b41ff2926215bf4f6bd68a906d581db7b08ed85577f9021d259717f3ef8dbacfe381723aa042aab8720ad182c57fee188f2436b33d21164e24ba23 SHA512 d376a302eac3427cdc8da0ed2fab01c0b5e7a059447777a53c394a60dac5fa0066488be8553022bb5aa89367d5a2e80e5d6e3cb39d9272843718dd07f6acd11e DIST pydantic-2.0.3.tar.gz 593215 BLAKE2B eff4de5d45e623e91df43eb89c3d350fdbb22adc1e05417cbb65c0dc3d58475d5e77bad046498d403a1663f7327ca6e5db517fd00f59d554532a53f4f1bbbbb6 SHA512 081f47e8948178a9cc5cf4aa17f0fb1f45d4fab28f5b89e2a56f5812c38a87ab97fb6758236fb64fc44553230807d51a9c7451c2bdbb8b77a9b0fc9083385391 +DIST pydantic-2.1.1.tar.gz 611057 BLAKE2B b414fa698fdc8aee12427d38d0c410ffdd9a39e271858f939587c4a58cd3f579f9d5406b44c1c27350040a036af3badf58b4e10657b52b2d8a720e37720dcda3 SHA512 02703bb889d517f14a977835e553356ddd4d25abf4c8e30df157d68d8006a7ac9ed95feeda73548560b5705ca0d2305af8c49d683d5f0178e48643bef03761e2 diff --git a/dev-python/pydantic/pydantic-2.1.1.ebuild b/dev-python/pydantic/pydantic-2.1.1.ebuild new file mode 100644 index 000000000000..58ef317a08c6 --- /dev/null +++ b/dev-python/pydantic/pydantic-2.1.1.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=hatchling +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +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 ~x86" + +RDEPEND=" + >=dev-python/annotated-types-0.4.0[${PYTHON_USEDEP}] + ~dev-python/pydantic-core-2.4.0[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.6.1[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}] + test? ( + 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-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 + ) + case ${EPYTHON} in + python3.12) + EPYTEST_DESELECT+=( + tests/test_abc.py::test_model_subclassing_abstract_base_classes_without_implementation_raises_exception + tests/test_computed_fields.py::test_abstractmethod_missing + tests/test_edge_cases.py::test_abstractmethod_missing_for_all_decorators + tests/test_generics.py::test_partial_specification_name + tests/test_model_signature.py::test_annotated_field + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_mock +} diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest index e03999af9ea7..70af9b432c4c 100644 --- a/dev-python/pylint/Manifest +++ b/dev-python/pylint/Manifest @@ -1 +1,2 @@ DIST pylint-2.17.4.gh.tar.gz 1411540 BLAKE2B ad8e5dfcd378e2c87f59fc7bad36c504296555ea0174d0f6fd3e59c04eb5610ee0a40257cd4d457418808b55efef8ffef7ca5d6e7da946323cb32e34cf5f0d67 SHA512 0232f0badf7124db549e768f5d158e7b7728fb34893726b5c3a0f599e201a18069118f0aab2aed0b0e1d47c0d4d37cec72d9c1c489ec5c3c316a53431ccf35a5 +DIST pylint-2.17.5.gh.tar.gz 1413718 BLAKE2B 7ba0a6cb78cdef5f16e80d98d1b02f41ae700c44365de26a0a650b60fe95b4b806e36786d16ec50ed5c78c8b86c13afe8e7fe215dd938df654c2883d5493d318 SHA512 431e722d027b03f1b657841ccaba43233961e810aecfe1a679e3ba4ba92fea94f28524195861a6fd4fe6fc6267a1af6489b9b69e5e30f919ac3a476fd35698ec diff --git a/dev-python/pylint/pylint-2.17.5.ebuild b/dev-python/pylint/pylint-2.17.5.ebuild new file mode 100644 index 000000000000..637d85c5d96c --- /dev/null +++ b/dev-python/pylint/pylint-2.17.5.ebuild @@ -0,0 +1,84 @@ +# 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 + +DESCRIPTION="Python code static checker" +HOMEPAGE=" + https://pypi.org/project/pylint/ + https://github.com/pylint-dev/pylint/ +" +SRC_URI=" + https://github.com/pylint-dev/pylint/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="examples" + +# Make sure to check https://github.com/pylint-dev/pylint/blob/main/pyproject.toml#L34 on bumps +# Adjust dep bounds! +RDEPEND=" + <dev-python/astroid-2.17[${PYTHON_USEDEP}] + >=dev-python/astroid-2.15.6[${PYTHON_USEDEP}] + >=dev-python/dill-0.3.6[${PYTHON_USEDEP}] + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] + <dev-python/isort-6[${PYTHON_USEDEP}] + >=dev-python/mccabe-0.6[${PYTHON_USEDEP}] + <dev-python/mccabe-0.8[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] + >=dev-python/tomlkit-0.10.1[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + >=dev-python/GitPython-3[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + rm -rf pylint || die + + local EPYTEST_DESELECT=( + # TODO + 'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]' + 'tests/test_functional.py::test_functional[dataclass_with_field]' + 'tests/test_functional.py::test_functional[no_name_in_module]' + 'tests/test_functional.py::test_functional[shadowed_import]' + tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_error_msg + tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_info_msg + tests/config/pylint_config/test_run_pylint_config.py::test_invocation_of_pylint_config + + # apparently fragile, needs unpickleable plugin + tests/test_check_parallel.py::TestCheckParallelFramework::test_linter_with_unpickleable_plugins_is_pickleable + ) + local EPYTEST_IGNORE=( + # No need to run the benchmarks + tests/benchmark/test_baseline_benchmarks.py + ) + epytest +} + +python_install_all() { + if use examples ; then + docompress -x "/usr/share/doc/${PF}/examples" + docinto examples + dodoc -r examples/. + fi + + distutils-r1_python_install_all +} diff --git a/dev-python/pypng/pypng-0.20220715.0.ebuild b/dev-python/pypng/pypng-0.20220715.0.ebuild index 3bb1dc8a989f..818702130733 100644 --- a/dev-python/pypng/pypng-0.20220715.0.ebuild +++ b/dev-python/pypng/pypng-0.20220715.0.ebuild @@ -21,7 +21,7 @@ S=${WORKDIR}/${MY_P} LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 arm arm64 ~riscv x86" +KEYWORDS="amd64 arm arm64 ~loong ~riscv x86" python_test() { # let's talk about code quality diff --git a/dev-python/python-axolotl-curve25519/python-axolotl-curve25519-0.4.1_p2-r4.ebuild b/dev-python/python-axolotl-curve25519/python-axolotl-curve25519-0.4.1_p2-r4.ebuild index 2ebfa1ff71a5..fccce04e1efb 100644 --- a/dev-python/python-axolotl-curve25519/python-axolotl-curve25519-0.4.1_p2-r4.ebuild +++ b/dev-python/python-axolotl-curve25519/python-axolotl-curve25519-0.4.1_p2-r4.ebuild @@ -18,7 +18,7 @@ S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="BSD GPL-3" SLOT="0" -KEYWORDS="amd64 ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm64 ~loong ~riscv x86" PATCHES=( "${FILESDIR}/python-axolotl-curve25519-fix-type.patch" "${FILESDIR}/${P}-fix-setuptools-warning.diff" ) diff --git a/dev-python/python-axolotl/python-axolotl-0.2.3-r3.ebuild b/dev-python/python-axolotl/python-axolotl-0.2.3-r3.ebuild index 208e1b7a0c6f..2d5afb01ac23 100644 --- a/dev-python/python-axolotl/python-axolotl-0.2.3-r3.ebuild +++ b/dev-python/python-axolotl/python-axolotl-0.2.3-r3.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/tgalal/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="GPL-3" SLOT="0" -KEYWORDS="amd64 ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm64 ~loong ~riscv x86" RDEPEND=" dev-python/cryptography[${PYTHON_USEDEP}] diff --git a/dev-python/pytools/Manifest b/dev-python/pytools/Manifest index d22aeb6771a4..42d28cd3c2c8 100644 --- a/dev-python/pytools/Manifest +++ b/dev-python/pytools/Manifest @@ -1 +1,2 @@ +DIST pytools-2023.1.1.tar.gz 75472 BLAKE2B a7d83dc55175d17fe7ded758279d236a9cd8f103fe7c9da2994a04dddd8799817509fbdd38466468ce4de2e5cd2984f4906f6f5524462cd72760ad32c6ebfab9 SHA512 0b8d4ec7145a42d9a679b7e08a05aa126c7d4514faa77e207fb154c84e56233b80dd49f388f261ba29e70e2cff836f6c850ea05af81360da8120756a0db35e6a DIST pytools-2023.1.tar.gz 75361 BLAKE2B 79c3439587624e9d236e6afd8ab2effa66ebc18c5f297db6bfebaf40dbe139de4851fa29d7741b064260041491a6693201583186a361994a8997eaaa221fffb2 SHA512 1d035f8b5e155def84d084926ab43b7e4c634cf7b2cd3e3914513360570bf87da059c8109e0257797dbe84c4bc36af559c805b252c863f2145113ff681eb5974 diff --git a/dev-python/pytools/pytools-2023.1.1.ebuild b/dev-python/pytools/pytools-2023.1.1.ebuild new file mode 100644 index 000000000000..492fede1fa48 --- /dev/null +++ b/dev-python/pytools/pytools-2023.1.1.ebuild @@ -0,0 +1,33 @@ +# 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='sqlite' + +inherit distutils-r1 pypi + +DESCRIPTION="Collection of tools missing from the Python standard library" +HOMEPAGE=" + https://mathema.tician.de/software/pytools/ + https://github.com/inducer/pytools/ + https://pypi.org/project/pytools/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" + +# NB: numpy is now an "extra" (optional) dep -- we can remove it from +# RDEPEND If revdeps don't need it +RDEPEND=" + >=dev-python/numpy-1.6.0[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/typing-extensions-4.0[${PYTHON_USEDEP}] + ' 3.8 3.9 3.10) +" + +distutils_enable_tests pytest diff --git a/dev-python/pywayland/Manifest b/dev-python/pywayland/Manifest index 979b3c791fb9..8f915db59f6d 100644 --- a/dev-python/pywayland/Manifest +++ b/dev-python/pywayland/Manifest @@ -1 +1,2 @@ DIST pywayland-0.4.15.gh.tar.gz 61084 BLAKE2B 2417aa57942f5a7810db3525d16070ed81613bd1ab8f864a95e9f1835f9793348ad1afd2dbaeed2bb08f5bcb58777ab545f8ef7cb70903703c89998095724f8c SHA512 c45d2a24c487cf1785b7bc488808157e2dcae630438c289864df615c98278e7c03de21431fa622e0917713130f5583ff5cb3181c0a7f595cebba2cdeec36a7cf +DIST pywayland-0.4.16.gh.tar.gz 61058 BLAKE2B 4b299fe1b3067e2e222012db921b4ae5fdfd103b0ca2b796522236b6b8b2ffc1e54ba8c97d30970cb5df35c9da18ca217ea5d97a37b11d7112d93c59a1df164f SHA512 1098e0ae88ffc874d1e49f6441f06db05d1bfebead06d65e1214d69542b9ada0ec45bfccd6fd11dd188b2ebcf3d0ac2a2370927af8a0838f4e683ec50fc5e01a diff --git a/dev-python/pywayland/pywayland-0.4.16.ebuild b/dev-python/pywayland/pywayland-0.4.16.ebuild new file mode 100644 index 000000000000..686968fcb983 --- /dev/null +++ b/dev-python/pywayland/pywayland-0.4.16.ebuild @@ -0,0 +1,55 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 xdg-utils + +DESCRIPTION="Python bindings for the libwayland library" +HOMEPAGE=" + https://pywayland.readthedocs.io/en/latest/ + https://github.com/flacjacket/pywayland + https://pypi.org/project/pywayland/ +" +SRC_URI=" + https://github.com/flacjacket/pywayland/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" + +RDEPEND=" + dev-libs/wayland + $(python_gen_cond_dep ' + dev-python/cffi[${PYTHON_USEDEP}] + ' 'python*') +" +DEPEND=" + ${RDEPEND} + dev-libs/wayland-protocols +" +BDEPEND=" + dev-util/wayland-scanner +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Needed for tests (XDG_RUNTIME_DIR) + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_test() { + # No die deliberately as sometimes it doesn't exist + rm -rf pywayland || die + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/pyyaml/files/pyyaml-6.0.1-cython3.patch b/dev-python/pyyaml/files/pyyaml-6.0.1-cython3.patch new file mode 100644 index 000000000000..346339916f17 --- /dev/null +++ b/dev-python/pyyaml/files/pyyaml-6.0.1-cython3.patch @@ -0,0 +1,36 @@ +https://bugs.gentoo.org/898680 +https://github.com/yaml/pyyaml/pull/731 + +From 17dc5b6cd96dcfe64fd71789c771ca9b96d260e5 Mon Sep 17 00:00:00 2001 +From: "Andrew J. Hesford" <ajh@sideband.org> +Date: Fri, 21 Jul 2023 09:50:00 -0400 +Subject: [PATCH] Fix builds with Cython 3 + +This is a *de minimis* fix for building with Cython 3. Recent Cython<3 +releases provided `Cython.Distutils.build_ext` as an alias to +`Cython.Distutils.old_build_ext.old_build_ext`; Cython 3 drops this +alias and instead uses a wholly new `Cython.Distutils.build_ext` that +does not provide the `cython_sources` function used in `setup.py`. + +Explicitly importing `old_build_ext` preserves the existing behavior for +recent Cython<3 and uses the correct behavior for Cython 3. Should the +import fail (*e.g.*, because the version of Cython available predates +the availability of `old_build_ext`), the import falls back to just +`Cython.Distutils.build_ext`. + +Signed-off-by: Andrew J. Hesford <ajh@sideband.org> +--- a/setup.py ++++ b/setup.py +@@ -82,7 +82,11 @@ + with_cython = True + try: + from Cython.Distutils.extension import Extension as _Extension +- from Cython.Distutils import build_ext as _build_ext ++ try: ++ from Cython.Distutils.old_build_ext import old_build_ext as _build_ext ++ except ImportError: ++ from Cython.Distutils import build_ext as _build_ext ++ + with_cython = True + except ImportError: + if with_cython: diff --git a/dev-python/pyyaml/pyyaml-6.0.1-r1.ebuild b/dev-python/pyyaml/pyyaml-6.0.1-r1.ebuild new file mode 100644 index 000000000000..892cd86f160a --- /dev/null +++ b/dev-python/pyyaml/pyyaml-6.0.1-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="YAML parser and emitter for Python" +HOMEPAGE=" + https://pyyaml.org/wiki/PyYAML + https://pypi.org/project/PyYAML/ + https://github.com/yaml/pyyaml/ +" +SRC_URI=" + https://github.com/yaml/pyyaml/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +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" +IUSE="examples" + +DEPEND=" + dev-libs/libyaml:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${PN}-6.0.1-cython3.patch +) + +distutils_enable_tests setup.py + +src_configure() { + export PYYAML_FORCE_CYTHON=1 +} + +python_install_all() { + distutils-r1_python_install_all + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF} + fi +} diff --git a/dev-python/qrcode/qrcode-7.4.2.ebuild b/dev-python/qrcode/qrcode-7.4.2.ebuild index be2c327f5f76..70e24e726687 100644 --- a/dev-python/qrcode/qrcode-7.4.2.ebuild +++ b/dev-python/qrcode/qrcode-7.4.2.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~riscv x86" +KEYWORDS="amd64 ~arm arm64 ~loong ~riscv x86" # optional deps: # - pillow and lxml for svg backend, set as hard deps diff --git a/dev-python/responses/Manifest b/dev-python/responses/Manifest index 5fc01c5f4283..37b9ad982360 100644 --- a/dev-python/responses/Manifest +++ b/dev-python/responses/Manifest @@ -1 +1,2 @@ DIST responses-0.23.1.tar.gz 72966 BLAKE2B e75db65ab98ebf7773c469dee5486b52b6f5c1f39d847c6f38a65e664c244937716c792cf009c750019043845b95c11ea38f99d68137899ef2ef48e60edc0c2a SHA512 2c05ac5c4ccca351940d3821b0830cee366cd7c9637f1e4c1e6b40c72ed2168a1036de634f03bfaaa2f7270e3825f6d9e8d31fc7a16f321f1de1cc64255454a1 +DIST responses-0.23.2.tar.gz 73678 BLAKE2B b49d04c9be0844c948ab7a8d8b8b81da152d4b7c47330937846262c45db6d562b107d7a864a07cc77d568491a8dafdd873fc6484ebf04d50d99441838474ecfb SHA512 f18f7b747871a4bffba59787b2c84d26799bed2f949c0e977fbd2ef6341425957bb27cc2beb067f75892a4b9a5af3d40f28083482950a4a6e29144fc1d529cff diff --git a/dev-python/responses/responses-0.23.2.ebuild b/dev-python/responses/responses-0.23.2.ebuild new file mode 100644 index 000000000000..250d1473ba13 --- /dev/null +++ b/dev-python/responses/responses-0.23.2.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 +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Utility for mocking out the Python Requests library" +HOMEPAGE=" + https://pypi.org/project/responses/ + https://github.com/getsentry/responses/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# tomli backend is optional now, with pyyaml being the new default. +# However, keeping it unconditional here for backwards compatibility. +RDEPEND=" + dev-python/pyyaml[${PYTHON_USEDEP}] + <dev-python/requests-3[${PYTHON_USEDEP}] + >=dev-python/requests-2.30.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) + dev-python/tomli-w[${PYTHON_USEDEP}] + <dev-python/urllib3-3[${PYTHON_USEDEP}] + >=dev-python/urllib3-2.0.0[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pytest-httpserver[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + # remove unnecessary RDEP on type stubs + sed -i -e '/types-/d' setup.py || die +} + +python_test() { + epytest -p no:localserver +} diff --git a/dev-python/secretstorage/secretstorage-3.3.3.ebuild b/dev-python/secretstorage/secretstorage-3.3.3.ebuild index a017a4e0ca26..c298cf819458 100644 --- a/dev-python/secretstorage/secretstorage-3.3.3.ebuild +++ b/dev-python/secretstorage/secretstorage-3.3.3.ebuild @@ -18,7 +18,7 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" RDEPEND=" dev-python/cryptography[${PYTHON_USEDEP}] diff --git a/dev-python/translate-toolkit/Manifest b/dev-python/translate-toolkit/Manifest index fb6c3a65a4ae..d66e3533cf4f 100644 --- a/dev-python/translate-toolkit/Manifest +++ b/dev-python/translate-toolkit/Manifest @@ -1 +1,2 @@ +DIST translate-3.10.0.gh.tar.gz 1195239 BLAKE2B be1e2925632d032081a07cd99d540a90f4526810d5a9f587b4c651c41f7afe53ec212b408dfb81bf57a74fb286124c49b5b7f9f56a9c4b861c8874c7c6986532 SHA512 9669e4eccb68eab93ed7a35e2673df4f60bcc9602c4d97954180a8eb7e92ad9b82d2c8ef0caa8d8ce19ee2ae58e04867729bfd326c9e1a11a451d702372377fe DIST translate-3.9.2.gh.tar.gz 1175987 BLAKE2B 1d187f56f2cb003690038489bf2f788c8f60e9aef522642439f1ee169c7722f8b5646114e3fef2e6ba8f4b3a02ae27a58241c25a146dc6b0b7c8fbbe4044d1b5 SHA512 23c8238ee65ede57654e86e255608211b5f183b18bf7c2865fc5621a77619f1ad798b6e3be907adfa0db883b750db2d3be89001335d25afe6b259d8e91ba509c diff --git a/dev-python/translate-toolkit/translate-toolkit-3.10.0.ebuild b/dev-python/translate-toolkit/translate-toolkit-3.10.0.ebuild new file mode 100644 index 000000000000..95b6a88cd7ad --- /dev/null +++ b/dev-python/translate-toolkit/translate-toolkit-3.10.0.ebuild @@ -0,0 +1,119 @@ +# 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="sqlite" + +inherit distutils-r1 + +MY_P=translate-${PV} +DESCRIPTION="Toolkit to convert between many translation formats" +HOMEPAGE=" + https://github.com/translate/translate/ + https://pypi.org/project/translate-toolkit/ +" +SRC_URI=" + https://github.com/translate/translate/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S="${WORKDIR}"/${MY_P} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+html +ical +ini +subtitles +yaml" + +RDEPEND=" + app-text/iso-codes + >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}] + dev-python/cheroot[${PYTHON_USEDEP}] + >=dev-python/Levenshtein-0.12.0[${PYTHON_USEDEP}] + >=dev-python/lxml-4.3.1[${PYTHON_USEDEP}] + >=dev-python/mistletoe-1.1.0[${PYTHON_USEDEP}] + >=dev-python/pyparsing-3[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + sys-devel/gettext + html? ( dev-python/utidylib[${PYTHON_USEDEP}] ) + ical? ( dev-python/vobject[${PYTHON_USEDEP}] ) + ini? ( >=dev-python/iniparse-0.5[${PYTHON_USEDEP}] ) + subtitles? ( media-video/gaupol[${PYTHON_USEDEP}] ) + yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] ) +" +# Technically, the test suite also has undeclared dependency +# on dev-python/snapshottest but all the tests using it are broken +# anyway, so we skip them. +BDEPEND=" + test? ( + dev-python/phply[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_test() { + # unfortunately, this bad quality package doesn't support XDG_DATA_DIRS + # correctly, so we need to reassemble all data files in a single directory + local -x XDG_DATA_HOME=${T}/share + cp -r translate/share "${T}/" || die + cp -r "${ESYSROOT}/usr/share"/gaupol "${XDG_DATA_HOME}"/ || die + + distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # Fails with network-sandbox (and even with it off but w/ softer fail) + 'tests/xliff_conformance/test_xliff_conformance.py::test_open_office_to_xliff' + 'tests/xliff_conformance/test_xliff_conformance.py::test_po_to_xliff' + # all tests based on snapshottest are broken and I'm too tired + # to figure this out + translate/tools/test_pocount.py::test_cases + translate/tools/test_pocount.py::test_output + translate/tools/test_junitmsgfmt.py::test_output + ) + local EPYTEST_IGNORE=( + # unpackaged fluent.* + translate/storage/test_fluent.py + # changes directory and does not change it back, sigh + tests/odf_xliff/test_odf_xliff.py + ) + + if ! use ini; then + EPYTEST_IGNORE+=( + translate/convert/test_ini2po.py + translate/convert/test_po2ini.py + ) + fi + + if ! use subtitles; then + EPYTEST_IGNORE+=( + translate/storage/test_subtitles.py + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /usr + doins -r translate/share + + if ! use html; then + rm "${ED}"/usr/bin/{html2po,po2html} || die + fi + if ! use ical; then + rm "${ED}"/usr/bin/{ical2po,po2ical} || die + fi + if ! use ini; then + rm "${ED}"/usr/bin/{ini2po,po2ini} || die + fi + if ! use subtitles; then + rm "${ED}"/usr/bin/{sub2po,po2sub} || die + fi +} |
