From 2e0fe0ea29315336eebdbcd88c0d03ed85569bfd Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Wed, 4 Dec 2024 18:50:47 +0000 Subject: Adding metadata --- dev-python/autopxd/Manifest | 1 + dev-python/autopxd/autopxd-2.5.0.ebuild | 31 ++++ dev-python/autopxd/metadata.xml | 10 ++ dev-python/boto3/Manifest | 1 + dev-python/boto3/boto3-1.35.74.ebuild | 53 +++++++ dev-python/botocore/Manifest | 1 + dev-python/botocore/botocore-1.35.74.ebuild | 67 ++++++++ dev-python/cleo/Manifest | 1 - dev-python/cleo/cleo-2.2.1.ebuild | 53 ------- .../click-aliases/click-aliases-1.0.5.ebuild | 2 +- dev-python/cryptg/cryptg-0.5.0_p0.ebuild | 2 +- dev-python/fonttools/Manifest | 1 + dev-python/fonttools/fonttools-4.55.1.ebuild | 99 ++++++++++++ dev-python/hachoir/hachoir-3.3.0.ebuild | 2 +- dev-python/jellyfish/Manifest | 21 +++ dev-python/jellyfish/jellyfish-1.1.2.ebuild | 79 ++++++++++ dev-python/langdetect/Manifest | 2 - .../files/langdetect-1.0.9-explicit-config.patch | 13 ++ dev-python/langdetect/langdetect-1.0.9.ebuild | 4 +- dev-python/langdetect/metadata.xml | 10 +- dev-python/line-profiler/Manifest | 1 + .../line-profiler/line-profiler-4.2.0.ebuild | 46 ++++++ dev-python/lru-dict/lru-dict-1.3.0.ebuild | 2 +- dev-python/mako/Manifest | 1 + dev-python/mako/mako-1.3.7.ebuild | 54 +++++++ dev-python/pillow-heif/Manifest | 2 +- .../files/pillow-heif-0.15.0-respect-cflags.patch | 11 -- .../files/pillow-heif-0.21.0-respect-cflags.patch | 11 ++ dev-python/pillow-heif/pillow-heif-0.20.0.ebuild | 41 ----- dev-python/pillow-heif/pillow-heif-0.21.0.ebuild | 48 ++++++ dev-python/prometheus-client/Manifest | 1 + .../prometheus-client-0.21.1.ebuild | 35 +++++ .../pydantic-settings-2.6.1.ebuild | 2 +- dev-python/pydantic/Manifest | 1 + dev-python/pydantic/pydantic-2.10.3.ebuild | 65 ++++++++ dev-python/pyglm/Manifest | 2 + dev-python/pyglm/metadata.xml | 10 ++ dev-python/pyglm/pyglm-2.7.3.ebuild | 39 +++++ dev-python/pyrime/Manifest | 2 +- dev-python/pyrime/pyrime-0.0.4.ebuild | 37 ----- dev-python/pyrime/pyrime-0.0.7.ebuild | 39 +++++ dev-python/pysnmp/Manifest | 1 + dev-python/pysnmp/pysnmp-7.1.14.ebuild | 49 ++++++ dev-python/python-daemon/Manifest | 1 + .../python-daemon/python-daemon-3.1.2.ebuild | 52 +++++++ dev-python/python-olm/python-olm-3.2.16.ebuild | 6 +- dev-python/python-statemachine/Manifest | 1 + .../python-statemachine-2.5.0.ebuild | 48 ++++++ dev-python/python-tests/Manifest | 9 ++ .../python-tests/python-tests-3.11.11_p1.ebuild | 74 +++++++++ dev-python/python-tests/python-tests-3.12.8.ebuild | 69 +++++++++ dev-python/python-tests/python-tests-3.13.1.ebuild | 69 +++++++++ dev-python/pyzotero/Manifest | 3 +- dev-python/pyzotero/pyzotero-1.5.20.ebuild | 38 ----- dev-python/pyzotero/pyzotero-1.5.25.ebuild | 38 ----- dev-python/pyzotero/pyzotero-1.5.28.ebuild | 38 +++++ dev-python/questionary/questionary-2.0.1.ebuild | 2 +- dev-python/repology-client/Manifest | 2 +- .../repology-client/repology-client-0.0.2.ebuild | 37 ----- .../repology-client/repology-client-0.3.0.ebuild | 39 +++++ dev-python/rich-click/rich-click-1.8.5.ebuild | 2 +- dev-python/rpds-py/Manifest | 6 + dev-python/rpds-py/rpds-py-0.22.1.ebuild | 60 ++++++++ dev-python/rst2ansi/rst2ansi-0.1.5-r3.ebuild | 2 +- dev-python/securesystemslib/Manifest | 1 + .../securesystemslib/securesystemslib-1.2.0.ebuild | 41 +++++ dev-python/snakeoil/Manifest | 1 + dev-python/snakeoil/snakeoil-0.10.10.ebuild | 33 ++++ .../sphinx-sitemap/sphinx-sitemap-2.6.0.ebuild | 2 +- dev-python/textual-serve/Manifest | 2 +- .../textual-serve/textual-serve-1.1.0.ebuild | 27 ---- .../textual-serve/textual-serve-1.1.1.ebuild | 27 ++++ dev-python/textual/Manifest | 2 +- dev-python/textual/textual-0.86.3.ebuild | 73 --------- dev-python/textual/textual-0.88.1.ebuild | 84 ++++++++++ dev-python/types-gdb/Manifest | 2 +- .../types-gdb/types-gdb-12.1.4.20240704.ebuild | 17 --- .../types-gdb/types-gdb-15.0.0.20241204.ebuild | 16 ++ dev-python/uv/Manifest | 3 + dev-python/uv/uv-0.5.6.ebuild | 170 +++++++++++++++++++++ 80 files changed, 1649 insertions(+), 401 deletions(-) create mode 100644 dev-python/autopxd/Manifest create mode 100644 dev-python/autopxd/autopxd-2.5.0.ebuild create mode 100644 dev-python/autopxd/metadata.xml create mode 100644 dev-python/boto3/boto3-1.35.74.ebuild create mode 100644 dev-python/botocore/botocore-1.35.74.ebuild delete mode 100644 dev-python/cleo/cleo-2.2.1.ebuild create mode 100644 dev-python/fonttools/fonttools-4.55.1.ebuild create mode 100644 dev-python/jellyfish/jellyfish-1.1.2.ebuild create mode 100644 dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch create mode 100644 dev-python/line-profiler/line-profiler-4.2.0.ebuild create mode 100644 dev-python/mako/mako-1.3.7.ebuild delete mode 100644 dev-python/pillow-heif/files/pillow-heif-0.15.0-respect-cflags.patch create mode 100644 dev-python/pillow-heif/files/pillow-heif-0.21.0-respect-cflags.patch delete mode 100644 dev-python/pillow-heif/pillow-heif-0.20.0.ebuild create mode 100644 dev-python/pillow-heif/pillow-heif-0.21.0.ebuild create mode 100644 dev-python/prometheus-client/prometheus-client-0.21.1.ebuild create mode 100644 dev-python/pydantic/pydantic-2.10.3.ebuild create mode 100644 dev-python/pyglm/Manifest create mode 100644 dev-python/pyglm/metadata.xml create mode 100644 dev-python/pyglm/pyglm-2.7.3.ebuild delete mode 100644 dev-python/pyrime/pyrime-0.0.4.ebuild create mode 100644 dev-python/pyrime/pyrime-0.0.7.ebuild create mode 100644 dev-python/pysnmp/pysnmp-7.1.14.ebuild create mode 100644 dev-python/python-daemon/python-daemon-3.1.2.ebuild create mode 100644 dev-python/python-statemachine/python-statemachine-2.5.0.ebuild create mode 100644 dev-python/python-tests/python-tests-3.11.11_p1.ebuild create mode 100644 dev-python/python-tests/python-tests-3.12.8.ebuild create mode 100644 dev-python/python-tests/python-tests-3.13.1.ebuild delete mode 100644 dev-python/pyzotero/pyzotero-1.5.20.ebuild delete mode 100644 dev-python/pyzotero/pyzotero-1.5.25.ebuild create mode 100644 dev-python/pyzotero/pyzotero-1.5.28.ebuild delete mode 100644 dev-python/repology-client/repology-client-0.0.2.ebuild create mode 100644 dev-python/repology-client/repology-client-0.3.0.ebuild create mode 100644 dev-python/rpds-py/rpds-py-0.22.1.ebuild create mode 100644 dev-python/securesystemslib/securesystemslib-1.2.0.ebuild create mode 100644 dev-python/snakeoil/snakeoil-0.10.10.ebuild delete mode 100644 dev-python/textual-serve/textual-serve-1.1.0.ebuild create mode 100644 dev-python/textual-serve/textual-serve-1.1.1.ebuild delete mode 100644 dev-python/textual/textual-0.86.3.ebuild create mode 100644 dev-python/textual/textual-0.88.1.ebuild delete mode 100644 dev-python/types-gdb/types-gdb-12.1.4.20240704.ebuild create mode 100644 dev-python/types-gdb/types-gdb-15.0.0.20241204.ebuild create mode 100644 dev-python/uv/uv-0.5.6.ebuild (limited to 'dev-python') diff --git a/dev-python/autopxd/Manifest b/dev-python/autopxd/Manifest new file mode 100644 index 000000000000..a388c9845281 --- /dev/null +++ b/dev-python/autopxd/Manifest @@ -0,0 +1 @@ +DIST autopxd2-2.5.0.tar.gz 109511 BLAKE2B 599ac008291d60a5734de034ff7341048b83114c835056525b08efbce20b9fd087e211cd00debd35ff2b050d9304e2218e48402ee12b47a731ed94be9dfaa009 SHA512 e1eecf7742d0520e62d850eff98904635507d75aaf1c6180d85d606050dfa216d5acd3e955a252db51986c11726f6e48b1ab8d2d9ea0893b0f5827332edd7ce0 diff --git a/dev-python/autopxd/autopxd-2.5.0.ebuild b/dev-python/autopxd/autopxd-2.5.0.ebuild new file mode 100644 index 000000000000..1afe15bb4165 --- /dev/null +++ b/dev-python/autopxd/autopxd-2.5.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYPI_PN="${PN}2" +inherit distutils-r1 pypi + +DESCRIPTION="generates .pxd files automatically from .h files" +HOMEPAGE=" + https://github.com/elijahr/python-autopxd2 + https://pypi.org/project/autopxd2 +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] + dev-python/pycparser[${PYTHON_USEDEP}] +" + +python_test() { + epytest +} diff --git a/dev-python/autopxd/metadata.xml b/dev-python/autopxd/metadata.xml new file mode 100644 index 000000000000..1f5112a5fdf6 --- /dev/null +++ b/dev-python/autopxd/metadata.xml @@ -0,0 +1,10 @@ + + + + + wuzhenyu@ustc.edu + Wu, Zhenyu + + + gentoo-guru-overlay + \ No newline at end of file diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 42b34dd94a7d..918f398ebefc 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -2,3 +2,4 @@ DIST boto3-1.35.63.gh.tar.gz 891481 BLAKE2B 092f4380aa31e57b3c8f6ef41ea8f0a4272e DIST boto3-1.35.68.gh.tar.gz 901189 BLAKE2B f7449998af169c873319d7b8748035db72c3af7be6499453c9fe61f40cbfd724dce7cf003fe700f6046f43c887768f4c26dd52e491f5734a5ec55c5b54e360c0 SHA512 24582ed20764870e2491a2dc48869089ebc4371a279eff68827ce3a6a962568fc1738e52285fa89a3a846385b498bb233460c1d0ae3177d735ad20b2cef7fea2 DIST boto3-1.35.71.gh.tar.gz 903019 BLAKE2B 48bf56c54a8eaa52c1850078a92cef7e5acb06f2d9d551414d640c6f5c5f381f2edc4ae6f582d9c1578f68d78a272142033bd41caba95577af917a492e995edb SHA512 56df8d30c0d3efc71caa6d629354e1311d944c71b5568b4154fc93c315558d600e4411ccc80abca98cb4a3adf3a3ab4f4dbce22ca06184e11d720f36f33b58d2 DIST boto3-1.35.72.gh.tar.gz 906195 BLAKE2B 42fa9727d0d35eaa2ea61580538923da30d57e2569dd2ff0b75a2f19ee29b0e5745e93724bf5145296794ee2ee51f3abe1bad017435e68ce9f12c61ccfd3bdf7 SHA512 c54bd53eb6c7753a310dfa26fa9080d5331b0e5ca4cc87c32265f045a615b406e2ace93e41301c6039108ea5be4aa5fd826b875b63253ca4b8c2f8c5892f7bcd +DIST boto3-1.35.74.gh.tar.gz 908732 BLAKE2B e8e25f5a349956ebe12e80e3170b6cfb97e1e4ea166877f349191667098ae42775d2d37158470d90c41844f3ff2ddd37f40a533c7b18bc2a46dc5d21a14dc986 SHA512 86311657423cc06004268e66750037d0ea91518db156ed7712397afa66c701350b96c5ad32ead49936231e9e196a686dcaefbec8a90b5168450977ed77532486 diff --git a/dev-python/boto3/boto3-1.35.74.ebuild b/dev-python/boto3/boto3-1.35.74.ebuild new file mode 100644 index 000000000000..d91ce27598cf --- /dev/null +++ b/dev-python/boto3/boto3-1.35.74.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/botocore-${PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}] +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 985f47bc7f76..47782ef4882a 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -2,3 +2,4 @@ DIST botocore-1.35.63.gh.tar.gz 13692343 BLAKE2B 41ded808c412e9af8f938cf64db1632 DIST botocore-1.35.68.gh.tar.gz 13887015 BLAKE2B f49ea77be07628c9c0a471a76b87bc2b2e0371afdfdaf6da2ad39fdc828376dff14681167a2989b440f37fc5754dae12c7160cb14fb82187acbcf07e34647fc3 SHA512 e31ff9022f29e4cacd9c6085e9c8741d799986746e34965c37e12d8ecfc3a5f4fed8e14045e9ce4f2f552f31d07641ffe8a0209d9d220b942e1b54c2e0d0f848 DIST botocore-1.35.71.gh.tar.gz 13908196 BLAKE2B beba990a19a2a6de3a10d9acd9f97c79872548a5c2bdb2e0944d69292efefd171a0f2e2c989da1551f07902f35b9530984cfe037ff6a9ac9168f9fc5dc5105d5 SHA512 e962cd711e8a9ee6df4e58b3bab22b5e9ded2d75d89fcabd50476789270af50513dcdd4eaeba9f7f778cb9055b4b0cadde0e436cdb1ef333b4322c9f128e910e DIST botocore-1.35.72.gh.tar.gz 14003906 BLAKE2B 8d02bed4b6b39ff29ce981ed9bbca2acd1261c4d2514373ef299b6809126de90162c489dbece90e75e45e679bed2b5febaa5f48661b01168ed91a73f94ed5506 SHA512 b5b3941fe6bd0b8c150ca1443170c554314853def35641865479228d510cfc306b6ba5f70ff24c98ec34d3edd8c5da168f7351e6631c6df6837cd0f8b9f4f607 +DIST botocore-1.35.74.gh.tar.gz 14071251 BLAKE2B 13ac404c0b25a812df9638cc3a90d3ee36517b616da98315f9aa4b62a39c6c11076b23fbf45d250d13b15aee284b48ee90860b2d71c8edc6c6326d554110a5ff SHA512 185e038d5b0c204a12febc36297377ba92fa7ea91f56d084d7191f298a5eb333fb5fd059feca041055dbed3104381efae3aa9d575f489153e2d292dcee86ddb5 diff --git a/dev-python/botocore/botocore-1.35.74.ebuild b/dev-python/botocore/botocore-1.35.74.ebuild new file mode 100644 index 000000000000..7816e9efeb52 --- /dev/null +++ b/dev-python/botocore/botocore-1.35.74.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + =dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/cleo/Manifest b/dev-python/cleo/Manifest index af13cbc69e2f..96e21f71bf3f 100644 --- a/dev-python/cleo/Manifest +++ b/dev-python/cleo/Manifest @@ -1,2 +1 @@ DIST cleo-2.1.0.gh.tar.gz 165795 BLAKE2B 7c9d0cc869d1e185c2c5a092a8aa1d1b3cce5fc25246939c0ff94920ac7070000b110be9f6cd9d1f827ed951ff22b9ad62e3c17a941022967b7599e456cda837 SHA512 e73a4c02470052f0f602fae8b5bf7073f3342d0816074398b19f0fb25caddda51b6d2fcb9ef57026638d0dc8861a2b5142d87551b105cefa5e54426e4aa1225c -DIST cleo-2.2.1.gh.tar.gz 162526 BLAKE2B 2f5da066672ecf7067801cd6287cd81055be893001a00067ada150c76363dde1ad3dc715d030963a15cee56080a15d1843d34499a92a55a4d4a3dfe340239ce5 SHA512 905411ca3f4769b12857df807e19f42f88f2aade3dd9b7f38dc3e61efce926479a6afcfc4cfff622ec98122d35871eef47e9146a61a159d4cf083e9eceb3b4ed diff --git a/dev-python/cleo/cleo-2.2.1.ebuild b/dev-python/cleo/cleo-2.2.1.ebuild deleted file mode 100644 index 84fd2a95101c..000000000000 --- a/dev-python/cleo/cleo-2.2.1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Python tool for building testable command-line interfaces" -HOMEPAGE=" - https://github.com/python-poetry/cleo/ - https://pypi.org/project/cleo/ -" -SRC_URI=" - https://github.com/python-poetry/cleo/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" - -BDEPEND=" - test? ( - dev-python/pytest-mock[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - # unpin rapidfuzz - sed -i -e '/rapidfuzz/s:\^:>=:' pyproject.toml || die - distutils-r1_src_prepare -} - -python_test() { - local EPYTEST_DESELECT=() - - case ${EPYTHON} in - pypy3) - EPYTEST_DESELECT+=( - tests/ui/test_exception_trace.py::test_render_debug_better_error_message_recursion_error - ) - ;; - esac - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=pytest_mock - epytest -} diff --git a/dev-python/click-aliases/click-aliases-1.0.5.ebuild b/dev-python/click-aliases/click-aliases-1.0.5.ebuild index c99284ede9e9..91b303d5f158 100644 --- a/dev-python/click-aliases/click-aliases-1.0.5.ebuild +++ b/dev-python/click-aliases/click-aliases-1.0.5.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) inherit distutils-r1 diff --git a/dev-python/cryptg/cryptg-0.5.0_p0.ebuild b/dev-python/cryptg/cryptg-0.5.0_p0.ebuild index 9c172856072f..a7463ca8c370 100644 --- a/dev-python/cryptg/cryptg-0.5.0_p0.ebuild +++ b/dev-python/cryptg/cryptg-0.5.0_p0.ebuild @@ -8,7 +8,7 @@ EAPI=8 CARGO_OPTIONAL=1 DISTUTILS_USE_PEP517=setuptools DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) CRATES=" aes@0.8.4 diff --git a/dev-python/fonttools/Manifest b/dev-python/fonttools/Manifest index d9ebbb2f3e32..3b48139682cf 100644 --- a/dev-python/fonttools/Manifest +++ b/dev-python/fonttools/Manifest @@ -3,3 +3,4 @@ DIST fonttools-4.53.1.gh.tar.gz 3850978 BLAKE2B 9c6b5af2cbde939b82043e29ffbbb234 DIST fonttools-4.54.0.gh.tar.gz 3858868 BLAKE2B edd02f52d094223e4217a85cab10c7c384977cf7a57abaab401b73c8a0fc638b4e23fa44f7f3a728824bc67888ebb7136a3bdce08efe99434d0b07347fc188b6 SHA512 0840c8fbcabd5555c2226bb89cba306e5b792c4ed92063f7c32c26616d9e4b061ae782177a1181a9e891a686ca6265796e50ed7c0acf8c82051697a8618f7623 DIST fonttools-4.54.1.gh.tar.gz 3863311 BLAKE2B 879edb1d5639b2d5a40d10531209504bf30912804a482be16071673727f693042e3158c65b02dc290bfad91767d3f4df10c62539b400f1d48253acf5bf2b86be SHA512 07e5d2401979fa7b1f926a3e3dfb05c2d712e9056e5bd49f879ed818d1f0ec1eb2435b295e30cd95a4e57288e2ce1c113c96a98093b4b57843bb6e3c9d07a7ad DIST fonttools-4.55.0.gh.tar.gz 3886815 BLAKE2B ace8c3c1c866f4c181f685a44aeb69b8927bd7ddd452cb8268dc7c06183b372ddd88b64f7eba7ab3e4fa15ae359ffcf1d8144de4afbb1b4751173d75259eef3b SHA512 5f8a65687b5d66604eff5c518aaa51e5b2307e624e5397e5dc15b9489eeb6f300376ab6c70288f9bb7056532951f16085c5580f03b44de2a1d53f2860b573191 +DIST fonttools-4.55.1.gh.tar.gz 3888082 BLAKE2B 01cc804ad04814dbb397000e7c408e0994dce5c33c8f1a43b570258b27b9981f437d0469bdcbdf22eb3ee101fc6c17f8a1ab064e11a1bf471f6e3f2957056010 SHA512 68bab5b76b2dda4ebb306764434248020ee0750e4ab700ebb0db6c78b832dd87d58ee12c51b2b54da13027ea0a109460e6ed68eb0afebd5fbe51fb6d2ce7e7ff diff --git a/dev-python/fonttools/fonttools-4.55.1.ebuild b/dev-python/fonttools/fonttools-4.55.1.ebuild new file mode 100644 index 000000000000..2b9bd3ce3dd4 --- /dev/null +++ b/dev-python/fonttools/fonttools-4.55.1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 virtualx + +DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts" +HOMEPAGE=" + https://github.com/fonttools/fonttools/ + https://pypi.org/project/fonttools/ +" +SRC_URI=" + https://github.com/fonttools/fonttools/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions" + +RDEPEND=" + >=dev-python/fs-2.4.9[${PYTHON_USEDEP}] +" +BDEPEND=" + native-extensions? ( + $(python_gen_cond_dep ' + dev-python/cython[${PYTHON_USEDEP}] + ' 'python*') + ) + test? ( + dev-python/brotlicffi[${PYTHON_USEDEP}] + dev-python/munkres[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + app-arch/zopfli + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # When dev-python/pytest-shutil is installed, we get weird import errors. + # This is due to incomplete nesting in the Tests/ tree: + # + # Tests/feaLib/__init__.py + # Tests/ufoLib/__init__.py + # Tests/svgLib/path/__init__.py + # Tests/otlLib/__init__.py + # Tests/varLib/__init__.py + # + # This tree requires an __init__.py in Tests/svgLib/ too, bug #701148. + touch Tests/svgLib/__init__.py || die + + distutils-r1_python_prepare_all +} + +python_compile() { + local -x FONTTOOLS_WITH_CYTHON=$(usex native-extensions) + [[ ${EPYTHON} == pypy3 ]] && FONTTOOLS_WITH_CYTHON=0 + distutils-r1_python_compile +} + +src_test() { + # virtualx used when matplotlib is installed causing plot module tests to run + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # flaky test + Tests/ttLib/woff2_test.py::WOFF2ReaderTest::test_get_normal_tables + ) + + if [[ ${EPYTHON} == pypy3 ]] && + has_version "dev-python/pyxattr[${PYTHON_USEDEP}]" && + { + has_version " - marcin.deranek@slonko.net - Marcin Deranek + pastalian46@gmail.com + Takuya Wakazono - - https://github.com/Mimino666/langdetect/issues - - slonko-overlay + + gentoo-guru-overlay \ No newline at end of file diff --git a/dev-python/line-profiler/Manifest b/dev-python/line-profiler/Manifest index e961efc57d9d..1283416da0a6 100644 --- a/dev-python/line-profiler/Manifest +++ b/dev-python/line-profiler/Manifest @@ -1 +1,2 @@ DIST line_profiler-4.1.3.gh.tar.gz 103226 BLAKE2B 209fe81bfd29cad1fe5866af792294d956a8f5d4d20948335a418aa0c7c3c5ff23e271c49cfc6cf228287cb1031e00a0f540fc88f52ccc3a0c329443de17b188 SHA512 cc8367b40558647f097e33152bd1d8b241720a1ed79c1f1930a7958e333cecdf38bc7d1ab0a8ebfb11e3251fa076966076ec42a8b633dfcb9de0c598c02b8b93 +DIST line_profiler-4.2.0.gh.tar.gz 105578 BLAKE2B 5ccef934619986e225e338e6e8b99bc2182c571b8c5377df829d83365bafb0a23eefd5cdbe4bba92a728bc6ac3299084fb61177d342c9a0034c4fc1f9d69b45b SHA512 1ed1324445f3189d7a7b9528c96b0251e1a44faace43c9ca14ecafbead60134138803cabb7c355f7b943bed85720f53689fd40260f02c98dc8597128b945ce01 diff --git a/dev-python/line-profiler/line-profiler-4.2.0.ebuild b/dev-python/line-profiler/line-profiler-4.2.0.ebuild new file mode 100644 index 000000000000..7fea6df353dd --- /dev/null +++ b/dev-python/line-profiler/line-profiler-4.2.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +MY_P=line_profiler-${PV} +DESCRIPTION="Line-by-line profiler" +HOMEPAGE=" + https://github.com/pyutils/line_profiler/ + https://pypi.org/project/line-profiler/ +" +SRC_URI=" + https://github.com/pyutils/line_profiler/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/ipython[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/ubelt[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +export LINE_PROFILER_BUILD_METHOD=cython + +python_test() { + cd tests || die + epytest +} diff --git a/dev-python/lru-dict/lru-dict-1.3.0.ebuild b/dev-python/lru-dict/lru-dict-1.3.0.ebuild index fcc056be8dfe..8d1a11ada188 100644 --- a/dev-python/lru-dict/lru-dict-1.3.0.ebuild +++ b/dev-python/lru-dict/lru-dict-1.3.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) PYPI_NO_NORMALIZE=1 inherit distutils-r1 pypi diff --git a/dev-python/mako/Manifest b/dev-python/mako/Manifest index c0388276e6ba..c44eceeda6de 100644 --- a/dev-python/mako/Manifest +++ b/dev-python/mako/Manifest @@ -1 +1,2 @@ DIST mako-1.3.6.tar.gz 390206 BLAKE2B 9ead8381e738033d06950a537ecd04b8f83909027430f5d246a0dac13f3e7ad874353d3945d2d1f5ff188d5379db051a1092c68b84e0f6f4d93a7fc8ed715b4d SHA512 ad7a05b7cb4a330495ba5842d578565356d19912fee20e2d894a6e5a7812197944943d947eb15a539ef4a11d2bafde29fc7b007767228bd8e40f154d53631073 +DIST mako-1.3.7.tar.gz 392052 BLAKE2B 06e5c850f77c85fd5e11a66707f0eb3d318dcc5f5080f6a8f4292270a0195f17a032ecc87cbe418e2364e6ebe74e29ca2b6acbf9cdf0bc2b4992981acc85168c SHA512 b52bcaa688091ae0fb8195e16bec6b4075c1424073cb0aef9cfdd7a92a27386f492181aeeb6c1b30aea57a9c9c4c32dc909133e9ef8e1de858d24c2d816c776c diff --git a/dev-python/mako/mako-1.3.7.ebuild b/dev-python/mako/mako-1.3.7.ebuild new file mode 100644 index 000000000000..8fafab0f5a3e --- /dev/null +++ b/dev-python/mako/mako-1.3.7.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=${PN^} +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A Python templating language" +HOMEPAGE=" + https://www.makotemplates.org/ + https://github.com/sqlalchemy/mako/ + https://pypi.org/project/Mako/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="doc" + +RDEPEND=" + >=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/babel[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + test/test_exceptions.py::ExceptionsTest::test_alternating_file_names + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +python_install_all() { + rm -r doc/build || die + + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/pillow-heif/Manifest b/dev-python/pillow-heif/Manifest index a4be976894da..eb79d4e0a9d0 100644 --- a/dev-python/pillow-heif/Manifest +++ b/dev-python/pillow-heif/Manifest @@ -1 +1 @@ -DIST pillow_heif-0.20.0.tar.gz 16173556 BLAKE2B aa549d4344e2e7f04e85d287e5b800068823dd9c9af22cbc24d6891c7e7c23d2e875979a83aa3cd2fbaf1fe60488a885257d644f2b3528f5029c0900101689ea SHA512 2c11cc0d93b0b684a80c1b2b6c076928417f021cda1aa46f1806c39ed24a5283d7878a679bf7e6293b9e6f90d3c60c10c7ce1597c528c269cd8892dd18a8aa9b +DIST pillow_heif-0.21.0.tar.gz 16178019 BLAKE2B 1ac057f4485331c36348f277b31d073dfe5d3aab69baaef0947449002fb095c81ffd562442f059afc29a19cafb3fa898b011c17a622963e6813a53dd2779c2f7 SHA512 9683b3eea9ea4dc0730bfab2e1163545ea31719b62cfd90a4f58aaf7ab401aef27afb7b9458c93daf9e5fa445b8f7f1ec3b3174fa9ae44513d9baaa10e777913 diff --git a/dev-python/pillow-heif/files/pillow-heif-0.15.0-respect-cflags.patch b/dev-python/pillow-heif/files/pillow-heif-0.15.0-respect-cflags.patch deleted file mode 100644 index 0a3c021348ad..000000000000 --- a/dev-python/pillow-heif/files/pillow-heif-0.15.0-respect-cflags.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/setup.py -+++ b/setup.py -@@ -206,7 +206,7 @@ - self._add_directory(library_dirs, "/usr/lib") - self._add_directory(library_dirs, "/lib") - -- self._update_extension("_pillow_heif", ["heif"], extra_compile_args=["-Ofast", "-Werror"]) -+ self._update_extension("_pillow_heif", ["heif"]) - - self.compiler.library_dirs = library_dirs + self.compiler.library_dirs - self.compiler.include_dirs = include_dirs + self.compiler.include_dirs diff --git a/dev-python/pillow-heif/files/pillow-heif-0.21.0-respect-cflags.patch b/dev-python/pillow-heif/files/pillow-heif-0.21.0-respect-cflags.patch new file mode 100644 index 000000000000..543ab690562e --- /dev/null +++ b/dev-python/pillow-heif/files/pillow-heif-0.21.0-respect-cflags.patch @@ -0,0 +1,11 @@ +--- a/setup.py ++++ b/setup.py +@@ -206,7 +206,7 @@ class PillowHeifBuildExt(build_ext): + self._add_directory(library_dirs, "/usr/lib") + self._add_directory(library_dirs, "/lib") + +- self._update_extension("_pillow_heif", ["heif"], extra_compile_args=["-O3", "-Werror"]) ++ self._update_extension("_pillow_heif", ["heif"]) + + self.compiler.library_dirs = library_dirs + self.compiler.library_dirs + self.compiler.include_dirs = include_dirs + self.compiler.include_dirs diff --git a/dev-python/pillow-heif/pillow-heif-0.20.0.ebuild b/dev-python/pillow-heif/pillow-heif-0.20.0.ebuild deleted file mode 100644 index 36e98a4c519a..000000000000 --- a/dev-python/pillow-heif/pillow-heif-0.20.0.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) -inherit distutils-r1 pypi - -DESCRIPTION="Python interface for libheif library" -HOMEPAGE=" - https://github.com/bigcat88/pillow_heif - https://pypi.org/project/pillow-heif/ -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - !test? ( - dev-python/pillow[${PYTHON_USEDEP}] - >=media-libs/libheif-1.17.6:= - ) - test? ( - dev-python/pillow[jpeg,lcms,webp,zlib,${PYTHON_USEDEP}] - >=media-libs/libheif-1.17.6:=[x265] - ) -" -BDEPEND=" - test? ( - dev-python/defusedxml[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - media-libs/opencv[png,python,${PYTHON_USEDEP}] - ) -" - -PATCHES=( "${FILESDIR}/${PN}-0.15.0-respect-cflags.patch" ) - -distutils_enable_tests pytest diff --git a/dev-python/pillow-heif/pillow-heif-0.21.0.ebuild b/dev-python/pillow-heif/pillow-heif-0.21.0.ebuild new file mode 100644 index 000000000000..c22a7b4abbcf --- /dev/null +++ b/dev-python/pillow-heif/pillow-heif-0.21.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +inherit distutils-r1 pypi + +DESCRIPTION="Python interface for libheif library" +HOMEPAGE=" + https://github.com/bigcat88/pillow_heif + https://pypi.org/project/pillow-heif/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + !test? ( + dev-python/pillow[${PYTHON_USEDEP}] + >=media-libs/libheif-1.17.6:= + ) + test? ( + dev-python/pillow[jpeg,lcms,webp,zlib,${PYTHON_USEDEP}] + >=media-libs/libheif-1.17.6:=[x265] + ) +" +BDEPEND=" + test? ( + dev-python/defusedxml[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + media-libs/opencv[png,python,${PYTHON_USEDEP}] + ) +" + +PATCHES=( "${FILESDIR}/${P}-respect-cflags.patch" ) + +EPYTEST_DESELECT=( + # only works with libeif-1.19.5 + # https://github.com/bigcat88/pillow_heif/pull/312/commits/d740dcce7d967d025c4100611cc7a4632aa3fc3a + "tests/read_test.py::test_heif_read_images[image_path16]" + "tests/read_test.py::test_heif_read_images[image_path43]" +) + +distutils_enable_tests pytest diff --git a/dev-python/prometheus-client/Manifest b/dev-python/prometheus-client/Manifest index cfe71f9123a2..80560cb263dc 100644 --- a/dev-python/prometheus-client/Manifest +++ b/dev-python/prometheus-client/Manifest @@ -1 +1,2 @@ DIST prometheus_client-0.21.0.tar.gz 78634 BLAKE2B 878c6b3948ebb45fced9ceb24ef5ebb07b2538117712dc2b0a6365282fa1bd0e732f5c79bf496aa54386cc42ced458202b1537c6706e3906a6c48d71a3709437 SHA512 ad86e7d7eb1919bda77c5fe80e800721c6d93f8b849955903ec346c2c6d35130f7e179b470c261aba3d8aa2f2cb10c43dcc5e8c06024dcd79fac5818b87f76c5 +DIST prometheus_client-0.21.1.tar.gz 78551 BLAKE2B 309b32e8fd52576190c6010c52a1ec9c7cec5ce7a617285acb424dacf3cbc9a7cc4681b4fce1c291626d603ac9708c7e05d5562d2bd82c95558609b6477b2f4e SHA512 e62302e46d1dddd38463e02ed1d79448084cb76e0b2301c3af5ca4312646c450472a3bf42e4fda440d580635e8eec611948ae4a99b16961672ec3a34ce4a3df9 diff --git a/dev-python/prometheus-client/prometheus-client-0.21.1.ebuild b/dev-python/prometheus-client/prometheus-client-0.21.1.ebuild new file mode 100644 index 000000000000..17cec18787e0 --- /dev/null +++ b/dev-python/prometheus-client/prometheus-client-0.21.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python client for the Prometheus monitoring system" +HOMEPAGE=" + https://github.com/prometheus/client_python/ + https://pypi.org/project/prometheus-client/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/twisted[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_IGNORE=( + # optional tests, broken with >=dev-python/asgiref-3.8 + tests/test_asgi.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/pydantic-settings/pydantic-settings-2.6.1.ebuild b/dev-python/pydantic-settings/pydantic-settings-2.6.1.ebuild index 10bd7298f5a6..02f9e325888c 100644 --- a/dev-python/pydantic-settings/pydantic-settings-2.6.1.ebuild +++ b/dev-python/pydantic-settings/pydantic-settings-2.6.1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) inherit distutils-r1 pypi diff --git a/dev-python/pydantic/Manifest b/dev-python/pydantic/Manifest index d2e8cf6fff8e..6f74332738a1 100644 --- a/dev-python/pydantic/Manifest +++ b/dev-python/pydantic/Manifest @@ -3,4 +3,5 @@ DIST pydantic-2.10.0b1.tar.gz 777569 BLAKE2B 6fdde0673b28feb51921417b501b8a9fb43 DIST pydantic-2.10.0b2.tar.gz 781700 BLAKE2B 82a3d8e4ab99113ca3e5ac46e058d1844d0870ce4fd5d6ada2ef23cebfc19cb040c4af553088b07904b857609e872caa7d20946536c5ed77fe4a452093e52cf3 SHA512 93ffa34b34ced16746b1f3e53218b863284f08cb1ec2f966cd024826926305c69b8b3bdfb389b9f1a2f26e5b678b054c20cd15bb2849cd665457977e9338b5e8 DIST pydantic-2.10.1.tar.gz 783717 BLAKE2B fed0933c2f9443ab75cd1d8330944cef11abd0d1dad454c8b857ac76583c8dc9d32e1de99e7096b1e9b0134b258490dabd2b98db1c7901ef73fe5ef7c2675f1e SHA512 fd2283ec7463568f12e2a7a687e2a2b030441101f6c9aa621914ce1ba2bfd0b43da0767bdb0d1909a321f11cd37f85222eac4cc4ca59aa73a7b2fc6ccefd0f8a DIST pydantic-2.10.2.tar.gz 785401 BLAKE2B b148575c16226b6abf38348edc1727013aab3450d18df42862f49d44535888b6674d553057563d89bea3f980592fcdafa125984f8ed9d98aff2a1da79458604a SHA512 07aeec5a6fb18b11a27128c24835cb2cc414aa9caa5b3c50c61d5a4aaeed27c5d6fff8448c56328b3d3b25265ed6bb07360172ea341c054f3457cda202e0a44a +DIST pydantic-2.10.3.tar.gz 786486 BLAKE2B 74abce2fb92704ab15b4b855fb1d96256720cca086a9911a031a5ffcf3c0fc8fcc2c9975affca8796709a13b4c5173c9598ec939207aa544762767577dc7117f SHA512 d5264c29b042ce24e8c03bad7a7db1fa556fb84c90b287cb87ddc52560d60db3d363ed7f05ea1af9e1469e52150388c9b119982cea5272960c0db2b31bd57fc6 DIST pydantic-2.9.2.tar.gz 769917 BLAKE2B 4e34fda6a9e8e8331278d0b7d0c2dfd61bde637c126fa6dabf78a09c6ef993f84dc8df6af421c8fb6d69c8e1c387a40e4bcd38cbe02f5ac521c6c70821735763 SHA512 2aace9e79a98bd94e5dc626736a245051912a11fdce36013d2ad2f96b266052386a3e12b259dca30ddc38b63c6b00b5bcc9cd5e80f7805de4d8701064f0982aa diff --git a/dev-python/pydantic/pydantic-2.10.3.ebuild b/dev-python/pydantic/pydantic-2.10.3.ebuild new file mode 100644 index 000000000000..f3d3b68b6777 --- /dev/null +++ b/dev-python/pydantic/pydantic-2.10.3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Data parsing and validation using Python type hints" +HOMEPAGE=" + https://github.com/pydantic/pydantic/ + https://pypi.org/project/pydantic/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/annotated-types-0.6.0[${PYTHON_USEDEP}] + ~dev-python/pydantic-core-2.27.1[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.12.2[${PYTHON_USEDEP}] + dev-python/tzdata[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}] + test? ( + dev-python/cloudpickle[${PYTHON_USEDEP}] + dev-python/dirty-equals[${PYTHON_USEDEP}] + >=dev-python/email-validator-2.0.0[${PYTHON_USEDEP}] + >=dev-python/faker-18.13.0[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4.23.0[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/rich[${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 + ) + + if ! has_version "dev-python/cloudpickle[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( + tests/test_pickle.py + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_mock +} diff --git a/dev-python/pyglm/Manifest b/dev-python/pyglm/Manifest new file mode 100644 index 000000000000..546f86117e38 --- /dev/null +++ b/dev-python/pyglm/Manifest @@ -0,0 +1,2 @@ +DIST pyglm-2.7.3-glm.gh.tar.gz 232356 BLAKE2B ae9c1dada06c33240eac906af5e6ecad903a19d62640aa569371a0aa223ebc0afa6d7f3cfc4ad419376bc43d5877e5e606f5e419d048306247f8b3eba352ca1d SHA512 9005100f39990b5b61eced679863d116bb6375060384c6e4cddbd2dc0caa3a66d165d9b294de84fdfe58e610f15500ffa172ca0760eba4efff9d91c65a310852 +DIST pyglm-2.7.3.gh.tar.gz 735017 BLAKE2B 9584c9f7dd7121843ccaa8b036d535532b29b3d4eee48b5ce24daddd1669160cf9f5262c08ef8c6912ccb3f8e39958a63563a2e0369ebc88b5673a3bd4822c77 SHA512 e48019abc27f8c6dfbad48d7fd94169f0cea24fb8ba3428ea7f418e7129eb900fc1c670b96637a3b7ff8a5fefbd3dbaa399738eb508523460d5b2a62e148a202 diff --git a/dev-python/pyglm/metadata.xml b/dev-python/pyglm/metadata.xml new file mode 100644 index 000000000000..137044fdb488 --- /dev/null +++ b/dev-python/pyglm/metadata.xml @@ -0,0 +1,10 @@ + + + + + gasc@eurecom.fr + Gasc Henri + + + gentoo-guru-overlay + \ No newline at end of file diff --git a/dev-python/pyglm/pyglm-2.7.3.ebuild b/dev-python/pyglm/pyglm-2.7.3.ebuild new file mode 100644 index 000000000000..05e2e400e1cb --- /dev/null +++ b/dev-python/pyglm/pyglm-2.7.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +HASH="fbc534be62f8c785db989f8ae7526edf6d0dc306" +DESCRIPTION="Fast OpenGL Mathematics (GLM) for Python" +HOMEPAGE="https://github.com/Zuzu-Typ/PyGLM https://pypi.org/project/PyGLM" +SRC_URI=" + https://github.com/Zuzu-Typ/PyGLM/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz + https://github.com/Zuzu-Typ/glm/archive/${HASH}.tar.gz -> ${P}-glm.gh.tar.gz +" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + media-libs/glm + test? ( dev-python/numpy[${PYTHON_USEDEP}] ) +" + +src_prepare() { + default + mv "${WORKDIR}/glm-${HASH}"/* -t "${S}/glm" +} + +EPYTEST_DESELECT=( + # Tests fails, see https://github.com/Zuzu-Typ/PyGLM/issues/227 + test/PyGLM_test.py::test_findMSB + test/PyGLM_test.py::test_bitCount +) +distutils_enable_tests pytest diff --git a/dev-python/pyrime/Manifest b/dev-python/pyrime/Manifest index 703c4b88a9b7..5cbf2f71e386 100644 --- a/dev-python/pyrime/Manifest +++ b/dev-python/pyrime/Manifest @@ -1 +1 @@ -DIST pyrime-0.0.4.tar.gz 44562 BLAKE2B c120a3f52fada357db3249a352a46a1d7f62bd525f2c5080884a2cad26ff89711a2ec30c42fbaf92c6f6c3d30cb383afe97e91d721855758f73013f36a95ce13 SHA512 b19439ec60b2bf02209aefff28e2422a8668f97dfb8715f9a85dfb9fc0d952d15f209f43849955bb9a7b7839480a54850d46f11479a895967b212940721d9cc6 +DIST pyrime-0.0.7.tar.gz 42660 BLAKE2B 0166f8248c2af6451a39096dedba69e0f8448b92119795813813a306affebdf492e27c05c91e884df7b509ae53a37e9546419bc38abf127b85b870c5944da480 SHA512 e88cfa65ae9cba052fbf1110bf0270cabc3fe44898bdbbf5f59ca83cff192b678c0b2ea86d8385f4a2c43765b94c22667de605a2958099bd8444bdafe23f32af diff --git a/dev-python/pyrime/pyrime-0.0.4.ebuild b/dev-python/pyrime/pyrime-0.0.4.ebuild deleted file mode 100644 index f1e02d50d6f8..000000000000 --- a/dev-python/pyrime/pyrime-0.0.4.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=meson-python -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) -inherit distutils-r1 pypi - -DESCRIPTION="rime for python" -HOMEPAGE=" - https://github.com/Freed-Wu/pyrime - https://pypi.org/project/pyrime -" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="+prompt-toolkit +ptpython" - -DEPEND=" - app-i18n/librime -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -RDEPEND=" - $DEPEND - prompt-toolkit? ( dev-python/prompt-toolkit ) - ptpython? ( dev-python/ptpython ) -" - -python_test() { - epytest -} diff --git a/dev-python/pyrime/pyrime-0.0.7.ebuild b/dev-python/pyrime/pyrime-0.0.7.ebuild new file mode 100644 index 000000000000..de102a11a944 --- /dev/null +++ b/dev-python/pyrime/pyrime-0.0.7.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=meson-python +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +inherit distutils-r1 pypi + +DESCRIPTION="rime for python" +HOMEPAGE=" + https://github.com/Freed-Wu/pyrime + https://pypi.org/project/pyrime +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="+prompt-toolkit +ptpython" + +DEPEND=" + app-i18n/librime + dev-python/cython[${PYTHON_USEDEP}] + dev-python/autopxd[${PYTHON_USEDEP}] +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +RDEPEND=" + $DEPEND + prompt-toolkit? ( dev-python/prompt-toolkit[${PYTHON_USEDEP}] ) + ptpython? ( dev-python/ptpython[${PYTHON_USEDEP}] ) +" + +python_test() { + epytest +} diff --git a/dev-python/pysnmp/Manifest b/dev-python/pysnmp/Manifest index 454b33b5bbe5..1eec5aee6579 100644 --- a/dev-python/pysnmp/Manifest +++ b/dev-python/pysnmp/Manifest @@ -1 +1,2 @@ DIST pysnmp-7.1.13.tar.gz 378397 BLAKE2B e10c50b85f604211f0b96199150fa3580c40e7acac8670fe1419d2095fd8bf479ce0c4ff1ef77a69f2c178e0c9f8b8ccdc72ee75acb3153cfc428d398bf0051e SHA512 630dd81ea6db5c7b75564031c8382408fda6a4625fa9f694a57f9f3570c70293de2560f3b1fb607d929d604731633dcbb9e6fd9cb9a8b189ef339257a3c16569 +DIST pysnmp-7.1.14.tar.gz 380516 BLAKE2B 972426164598d1579b174cadae84e610cfe0a8c5574c25cee8ea8dca804021900818a2d66c89df6d185257050f88625a1cdddcfcc5b43fcf03d053523bdae9cd SHA512 edbce007d53bd0a876bef7ee2b0286b46f6c6a33b9da89a82d737580bc31a34197a9ad490e4d09441984ccc89b61110bfea2a9f563a84b081d4127a29bee1c80 diff --git a/dev-python/pysnmp/pysnmp-7.1.14.ebuild b/dev-python/pysnmp/pysnmp-7.1.14.ebuild new file mode 100644 index 000000000000..59db4fe102cf --- /dev/null +++ b/dev-python/pysnmp/pysnmp-7.1.14.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +inherit distutils-r1 pypi + +DESCRIPTION="Python SNMP library" +HOMEPAGE=" + https://pypi.org/project/pysnmp/ + https://github.com/lextudio/pysnmp/ +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86" +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND=" + >=dev-python/cryptography-43.0.1[${PYTHON_USEDEP}] + >=dev-python/pyasn1-0.4.8[${PYTHON_USEDEP}] + >=dev-python/pysmi-1.5.7[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +# TODO +# distutils_enable_sphinx docs/source dev-python/furo dev-python/sphinx-copybutton dev-python/sphinx-sitemap + +python_test() { + local EPYTEST_DESELECT=( + # TODO + tests/smi/manager/test_mib-tree-inspection.py::test_getNodeName_by_symbol_description_with_module_name_2 + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + mibdump CISCO-ENHANCED-IPSEC-FLOW-MIB.py || die + mibdump LEXTUDIO-TEST-MIB || die + mibdump NET-SNMP-EXAMPLES-MIB || die + mibdump IF-MIB || die + epytest -p asyncio +} diff --git a/dev-python/python-daemon/Manifest b/dev-python/python-daemon/Manifest index df8de7b158f9..ee2c30ce17d6 100644 --- a/dev-python/python-daemon/Manifest +++ b/dev-python/python-daemon/Manifest @@ -1,2 +1,3 @@ DIST python_daemon-3.1.0.tar.gz 61947 BLAKE2B d6f24cb72a033401a2eb1149c359ec49e044b0d549ae8ccb337dc60525f3ad80efd8646a50a51e6ba0768a5e8e77a3a5bd5b1a5aea3b54c5546769a5599d49ad SHA512 d7641baba841af8724dd37b66db605d07a62c947f01ff6328c44aca56deaa5a0891b8fe3bbbf5840e16c7080402776676892f105aac900944a8d2921a12edba4 DIST python_daemon-3.1.1.tar.gz 71104 BLAKE2B 56ab3f178233f4fffe64413d34046297f1a136b9e6843e5f90a05e2634bb6cad49dec39ec66d85bf3edd003127ee57a0ed772b192d073e8d7a935956b0992cc2 SHA512 faf074e8ef07b5cda32cbdd66f613d2830569d6a0316b8048e0173b65c45b5472a42a90edacecb811c4cd7daf1d239f898f8a939c4dfb807ef88455f2dc27a9b +DIST python_daemon-3.1.2.tar.gz 71576 BLAKE2B 605b84271935e5c8bf54aee64f4a4a4dfec06e87acb7d2edd2c7676c67f0b1b933bceec29ab91debad8745e501744cf507f745e1aa0b159f7b600257ed68815c SHA512 3901b9f14f11b8765eb31874fdb9410cbda1425ce70d2702827fe4745b5b8fb93f23e9f71faa6b0ca001745aeea03c186c4e29d973cb12a5912340dae6aa2ee0 diff --git a/dev-python/python-daemon/python-daemon-3.1.2.ebuild b/dev-python/python-daemon/python-daemon-3.1.2.ebuild new file mode 100644 index 000000000000..96b64c9f1ce1 --- /dev/null +++ b/dev-python/python-daemon/python-daemon-3.1.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Library to implement a well-behaved Unix daemon process" +HOMEPAGE=" + https://pagure.io/python-daemon/ + https://pypi.org/project/python-daemon/ +" + +# build system and tests use GPL-3.0+ but none of these files are installed +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND=" + >=dev-python/lockfile-0.10[${PYTHON_USEDEP}] +" + +BDEPEND=" + dev-python/docutils[${PYTHON_USEDEP}] + test? ( + dev-python/testtools[${PYTHON_USEDEP}] + dev-python/testscenarios[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +src_prepare() { + distutils-r1_src_prepare + + # overengineered logic with NIH deps + rm setup.py || die + cat > setup.cfg <<-EOF || die + [metadata] + version = ${PV} + description = ${DESCRIPTION} + maintainer = + long_description = + exclude = doc + EOF + + # tests for their overengineered setup + rm test/test_{setup,util_metadata}.py || die +} diff --git a/dev-python/python-olm/python-olm-3.2.16.ebuild b/dev-python/python-olm/python-olm-3.2.16.ebuild index 7b0db6fb774b..f98a4e501489 100644 --- a/dev-python/python-olm/python-olm-3.2.16.ebuild +++ b/dev-python/python-olm/python-olm-3.2.16.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) DISTUTILS_USE_PEP517=setuptools DISTUTILS_EXT=1 inherit distutils-r1 @@ -20,7 +20,9 @@ KEYWORDS="~amd64" DEPEND="dev-libs/olm" RDEPEND=" ${DEPEND} - dev-python/cffi[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/cffi[${PYTHON_USEDEP}] + ' 'python*') " EPYTEST_DESELECT=( diff --git a/dev-python/python-statemachine/Manifest b/dev-python/python-statemachine/Manifest index 457e2233f0bd..d50202bcfd58 100644 --- a/dev-python/python-statemachine/Manifest +++ b/dev-python/python-statemachine/Manifest @@ -1,2 +1,3 @@ DIST python-statemachine-2.3.6.gh.tar.gz 351057 BLAKE2B 03d605b0389dd9fac3e2d8a979295ab7724a79b2b1e677cbd114d8eddaa9a987f361aebbea29eb670930fd7978cb1d9f59ef2a40ec98f9c515d080fcc902f25c SHA512 cc8400a118da6d54b97108ff8b11462aee32dc28ada97fbf2a68049de2659c5a7faaa24802fab376b72586c1052db13b67b570a5d62eb9c28252572d14634215 DIST python-statemachine-2.4.0.gh.tar.gz 362766 BLAKE2B 79a34b43841cf920ae1eb87821c19d31f4dc1eb59903ad1cce6166586b44ed7437278ae647ffac190bd1dc795d251b81022b51aef644607d5f2f7b92f1c89e9e SHA512 fc51668efee69a2a59c5f3a5bbb08e6a6647a819175bbd02305e6eac51d0f8ef31c4e89f85dcb7451c24681ee76f0534e676995e134c0cbbed4d680c5418c612 +DIST python-statemachine-2.5.0.gh.tar.gz 405778 BLAKE2B 5c85d7c75de1fe77694acc50a31b9f389a1b0b7ec572939a9662ef2b538b506d8acc30ee3d8168d21ca229c1ce7bfd14b4c54946dfa5d7577cb67ec1a3867352 SHA512 79331758fe305525fd7f97e3e1a9eecc22f79e96047080a31ad8df8d033b506d39c79fa5fe9e20cc2cb63db271517842ffcdab3f1fdb9785d135d3f65dffce6d diff --git a/dev-python/python-statemachine/python-statemachine-2.5.0.ebuild b/dev-python/python-statemachine/python-statemachine-2.5.0.ebuild new file mode 100644 index 000000000000..5f1e8a92703d --- /dev/null +++ b/dev-python/python-statemachine/python-statemachine-2.5.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +DESCRIPTION="Python Finite State Machines made easy." +HOMEPAGE=" + https://pypi.org/project/python-statemachine/ + https://github.com/fgmacedo/python-statemachine +" +SRC_URI="https://github.com/fgmacedo/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="dev-python/pydot[${PYTHON_USEDEP}]" + +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-django[${PYTHON_USEDEP}] + dev-python/django[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + tests/test_mixins.py::test_mixin_should_instantiate_a_machine +) + +EPYTEST_IGNORE=( + tests/test_profiling.py + tests/django_project/workflow/tests.py +) + +python_test() { + epytest -o 'addopts=""' + +} diff --git a/dev-python/python-tests/Manifest b/dev-python/python-tests/Manifest index 0606468ed5ca..b68e2378d875 100644 --- a/dev-python/python-tests/Manifest +++ b/dev-python/python-tests/Manifest @@ -2,16 +2,25 @@ DIST Python-3.10.15.tar.xz 19596540 BLAKE2B fe62f7c7377136576e73a59b5f0b3c9729f9 DIST Python-3.10.15.tar.xz.asc 833 BLAKE2B 31858fe2d3c8d868417eea66de1cf0b2fc7880e73ea7770b50191b8088bbd1c78485c64d94f6f005d18cef559d7e8e0906cb2a30aa1472d90f5af4cca045970b SHA512 0cac9b78649330a2a35a835d45e4a8a111db45943cc0ae0d24f5d9e03a058b4b739fe43d6cd1aee481dcd415a57820bf875996fa60b81d4d5911588db5adad70 DIST Python-3.11.10.tar.xz 20067656 BLAKE2B aba211a09e4c083d71574c7537ba98474476ebf7092ddda815f8d355d01605456868a89f0bcc6a9e747f71f914fa0129547de2ae70d8b579c6458fdeeafd23f0 SHA512 6ce77cced1ce90bb5eea38504dfc1bc19c872149a5a63fdd8353ac8c772c54ab7a42176e141c7f6f898d31761bf93e1739b238920fbeefbedd6016ad033c1de0 DIST Python-3.11.10.tar.xz.asc 833 BLAKE2B a1cbe57e568367fbc5817c983696619f515263a9b37662ca536c4d1132ad336959285bbe3076a251778016966f030d1e259f48accdb0df67c116af0e335acb8f SHA512 3a9efe1dd39fd6883ae3fc8dd7f6e25af7e06c6e6049cf9a31a1a82e6d7c84f85ac838d2a71127977d93ce77233a8bbff86a10a80d24fcee85a4e70fcbd1db19 +DIST Python-3.11.11.tar.xz 20085792 BLAKE2B a9a778eff94529e1029ae252ef28ecdc2f0673a4406d831865e12de3cba21ea48905542d0e806e428802b05947239ca6a44eff3573bd541469b01644790c7377 SHA512 3ff90f15f725fa8d06686158aaddb887a247b03ca4dc1fdfd81a8efb53373db3e8673bd0b3de30bb7669f3f07d9854e9d8a2dbcd49b18d15b8172787a53a0a9e +DIST Python-3.11.11.tar.xz.asc 833 BLAKE2B 6a9d873e181d636712567ea46823ad7f972f872d038092506e67bada24187441188b8fde4672c205ce6d37e60c4e0c69a8f3cc5d1915fd8f5dd8743292a16d1b SHA512 d71b0b42537fb636e8c469d62d13ff020149e4fb9d87eb17f8c999301195e418d134dbdb7e4ab49b06de16e96f8ef6bbcf2a749956fffca2ce03185f191c181d DIST Python-3.12.6.tar.xz 20434028 BLAKE2B 527fafdbfd0c1784ff72a93cdeb3f49666bae7d9343b6d1e4ef773fc52bd397081b41bec3ee9ed5b7652f28f09f29a1b553424cef26aebfa6c2e13499870bf2b SHA512 e658b0d59b5cfdc591d626e8282b9945759f27ee6fbc8bcb8670737db32ffc11fb832dfed9b0e80188fb5f7f3f39fe6dd6191ab7736376453c9e248321e9b063 DIST Python-3.12.6.tar.xz.asc 963 BLAKE2B d5f9e4c5053610a1a53769278e69d8a25e2fb047afb2a55dfee67917d8d200ebc159e614327ac87f34a4a9718cb3436b55190322ee231116b26074a78bb72642 SHA512 91a15bb7e8dd26616a2cdabe69c3ee81668cc67cb55a88b2be20433d24c9f8ae41c8f93f67aff2fa5858cd5b94600409cd472bd437a2fd33153483734ecd863f DIST Python-3.12.7.tar.xz 20444032 BLAKE2B eed8744261cab3b401963ec5187a8b814adb9a18f8d0a6a3d59c027a83cf8408524af9b20204b0a0861d173cc33c45ae37bb1542a1ace3344dc59c649087ff1f SHA512 4a363d3f852ad8f4fd1484aa4cec35494a3811be48ef67fadb2bdf2e2489ed07dc78fad6ab475257db503ddd64d39f9800f23a1c94b6bbd15b7f632cff0c90ae DIST Python-3.12.7.tar.xz.asc 963 BLAKE2B 8c7db3d1971d93a10c611a2e6dd3679d0b331b48df87b5fe410b089061e48753d98af67084d4f051a31ae803fce3aa3c7af7cba9c692640f50068bd1e46f40e6 SHA512 4d0a7a0da2c81888e93d8ff89ca2ed4bb85a7b0bd00f0d54a14e2c201affac2677ef3984d2b5aea253e624f6465548d9032eefdd9033c1eb3864d82cfd8d3df0 +DIST Python-3.12.8.tar.xz 20489808 BLAKE2B 24b9a5abafdb9fedfc371e7acf0efce50bdc6702050c4f5f0b9e97916a899e3462f928cb217c48e6ffae6fdd4d2cd7c05c5f1d73eaa9ef646f4b3281db5ca977 SHA512 406ce1146c4c2c70d252df56bbe9e5970ef469395cbaa211a96af71f32de2cf7abd944906920cc18b4a470027e63a3f64bf7679fb4954b31bf4ca4baf24fa370 +DIST Python-3.12.8.tar.xz.asc 963 BLAKE2B 5aeacf16d337949a66bb56e346447e7bbcd9166b60fc512c98bcff6862976732ef2e3ac59869cd9df29a653c2bafd4af63b1e6c14f4c6603efb85d5c3dd88357 SHA512 19493499ddb80764aa105e100585d2ef872798dc30fdff2e31d158cd7fd65b69ca133c6d9d16eb974660eed6ba474a26a2af3acd13a90522cf50e142492bd9a6 DIST Python-3.13.0.tar.xz 22532980 BLAKE2B 4a4e397199402de8c9fe8e4d63443ed972cbe8a4f541743908d699c7987127d159d600fd14145b6a946e8671426279d230c9155fdc5863c1e49a945eedcbf21b SHA512 44a143c9b96b55b01885ec020c3364265bda55289615cd7d5071915b0d0178a6f35e7551a89090001fcb7f3172d38177a56bf8b8532b15c9dbc50295c9210152 DIST Python-3.13.0.tar.xz.asc 963 BLAKE2B d05f02692a9fea42b73dbfe5dc42bd6533555e5ecb848510d2b94bb7f0e55d4a0f89bcd20b073ed2c7f7a68be35b12cb6dbff6bc16fc9a4592ded2c339ada7fd SHA512 1b8bb0fe4eb93e31ec1770e90b94d44b5864c0391aad5dcba3a30d8e505d9b17107385414353c0060007f8a536254f49b8e919f36ddf6421a6e4330f817f1a3e +DIST Python-3.13.1.tar.xz 22589692 BLAKE2B 161d5c0a7b4cacc4ce9983f9540a7e01662a7b76cbb34c5f3681582b0e7207574bdec5ad7bf79d820d8744b69bc2fb7196cf07a2ecadbfab6a158872f562741d SHA512 056c9b5fc0a6b540f41513d045f43c1ed463d15e0f345cecec703ec9c2335e53b4beb19de9c74ab2b236b023f934d5fd9ae7727a808634eaa01cfe66018a9a35 +DIST Python-3.13.1.tar.xz.asc 963 BLAKE2B 47cbfb6bceb92716181a0ed8f41742958568e62609fa4996d341e465bd6be0ebcab586ba1ebe275aa3a99108221be047fab66ec4b7e90af27d9db7524b6b4951 SHA512 1b56b7c2f547aa39c75c18978e174debb113444ce3f9da3829ba6842e3160051e0de70bd49d306b8014299aa8aa911d7c67efe71dd648c3528cf8d7535a01599 DIST python-gentoo-patches-3.10.15_p1.tar.xz 24048 BLAKE2B 191c28ad9bc781d6f3077870e8d40ff98a47a64009ecfbbd10fe2b3c5330692181837fd3e9b336fd01f936a39160fc12761b2ef9bc00843248ab978cda2e2767 SHA512 4461e351c991694415e2812e558d6c3d3f79295358623dc955bc0839691a170d95a3efd31c0bf9f0d6191e4184d7b55fdb485b948d591782fef5b060d7660cce DIST python-gentoo-patches-3.10.15_p2.tar.xz 25284 BLAKE2B 24ecd523dba88915db130b174a5d692b9218decf81db7617ba016d4e21555cefa807e344a490110bcd3992637a95d0ce3179b219911417d29d008b4e2b5d7b33 SHA512 e1017b80272c57c18dbf7e1515d50fe13ead8de028d1ccaf1339a93ad4b0286f758979ee6f27011fa12350855cefdbdf049927bf2dd185905d4f3fe146c5bd68 DIST python-gentoo-patches-3.11.10_p1.tar.xz 10592 BLAKE2B 1cc02d22b55cb76beba133c37e6db3b9ba12b11cd8776acb064f14431842405cbc9efb5a06319cff1c73d9178ddbbe2e340829d4628c88a9589aa2fc1d308f80 SHA512 7ddb08e4d8a9173a26fa18de687a4c85c3d460e2bc595da6f4b15cfe3be264ccdc7d61d5fed1e7a82f256d21caf3ea7de87f774fde61a9d37bed15f86f546adb +DIST python-gentoo-patches-3.11.11_p1.tar.xz 11644 BLAKE2B d080e1b987ea0e1b397113f20a5c84f6a34d6619a3ed9f7389fd10d95636169563fba97d212477ca7f9b93d2bd0b66c9521fc61963bb468805a661ca3ab287a7 SHA512 f6045adf25923053fc9a60506b9164c9c062580d6886f1a3dcaca00dc4affe69aa9e138f8ce93f093798ccf33322ccca2aca674ab87457df98a93dcaca234b44 DIST python-gentoo-patches-3.12.6_p2.tar.xz 8144 BLAKE2B 2f36ce972e0b3e2884c9df629e3aeb1af05e4c77dffb866ff28e08a0a7df3c7cf36a9de250d148d909c07fd5bad483c95b3267818657c04e7d0d6fe512e21f9a SHA512 caa86c6cf693f9293b3aa8944452d117b78c1c3f8d6a6aa658cb5c2d2ffb0cecc6cf14b293872bd2101766ee7167ba88183904b2814090f8cbc64c1fa3b771be DIST python-gentoo-patches-3.12.6_p4.tar.xz 8764 BLAKE2B a75b9bc3768f1e07272f43d1a8f0fb6858eee7c786bc3141cd152382c287ee984b92ff1301e5894db7c24af994ee52ac7374a3edf692aa4255c1413b73209020 SHA512 237c9e8b50173a757204621d7019f68f230ea3e520ea1f078528acfb509fe7f44c0919a8ac0245e79b1a51c3e3545dd9ded51047451048ca782e35b1c4365363 DIST python-gentoo-patches-3.12.7_p1.tar.xz 10228 BLAKE2B 71cc6034201198d9483414fa362d68b550bfcbf75ca6f44dd8ab9d90b201098a05cbf4799b1db9359f4dc464acfcee9b0ce59045db27e8e9ce916b5aab010448 SHA512 22f9256c28b96723ad86878cbe44da155e280a8df08c6bcc568dc5296aca1a6fcc41ab823ee9e6d34ce5954bbedb76aea7dba2d9189e0558c536e8b2b9a3c8ce +DIST python-gentoo-patches-3.12.8.tar.xz 10772 BLAKE2B 9833b5ee6c307a4aa1335fd966fcd64a0f3732a97a190abdd3121b3496ea68ead9436af4ec5e3e8c0e781fd68df41403a1b2e5f29f264fc8569a883141e5f7f9 SHA512 d5906845a6259f7349a0299e185f569750b493c64ea1f6537dc8bfc0babc9b54de7db1c4f1b5b6ec2f7076937ad07ca0ca9c4941bbb8d542da6c687957bdbd5e DIST python-gentoo-patches-3.13.0.tar.xz 8316 BLAKE2B 8fb8ba8f41f310140ad7066b614952023112d5043e5d82058364125611785144c1843e87eecb7669bcbab51c40d0694069526219f7419a7009517ce0821b74ba SHA512 0eb31ebfa3411020aa70b3b66fd7eec98b4b7a686b0e8f1f7ed76a8186a7c1ee85ccd9565a86a1d7ec13b975855eeb7303036af05e2dfdce3d64e4ad99299df4 +DIST python-gentoo-patches-3.13.1.tar.xz 8320 BLAKE2B 2fef9c501df7ed7603eabb3e01a8c3bde5bcfae3a8ac9bbe772b458cb04ffa9598cf38f3a74f6dcbcda29e7bd294d664b8fb12f7ddd9e0e42ed6268300947bb0 SHA512 419e1f12daaf19ed2d2195699b5e8c2c604779562d84d6a68adb4016dcb13fc3e0383ccc4b01eb153930600e6c9cdcc518929ffce3d6343019226a6111e9d617 diff --git a/dev-python/python-tests/python-tests-3.11.11_p1.ebuild b/dev-python/python-tests/python-tests-3.11.11_p1.ebuild new file mode 100644 index 000000000000..70726a3617cd --- /dev/null +++ b/dev-python/python-tests/python-tests-3.11.11_p1.ebuild @@ -0,0 +1,74 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit python-r1 verify-sig + +MY_PV=${PV} +MY_P="Python-${MY_PV%_p*}" +PYVER=$(ver_cut 1-2) +PATCHSET="python-gentoo-patches-${MY_PV}" + +DESCRIPTION="Test modules from dev-lang/python" +HOMEPAGE=" + https://www.python.org/ + https://github.com/python/cpython/ +" +SRC_URI=" + https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz + https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz + verify-sig? ( + https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz.asc + ) +" +S="${WORKDIR}/${MY_P}/Lib" + +LICENSE="PSF-2" +SLOT="${PYVER}" +KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + ~dev-lang/python-${PV}:${PYVER} + ! "${S}/mkdocs.yml" - grep -v "\- \"*[Bb]log" "${S}/mkdocs-nav.yml" >> "${S}/mkdocs.yml" - #docs_compile - rm "${S}/mkdocs.yml" -} - -pkg_postinst() { - optfeature "bindings for python" dev-python/tree-sitter - #optfeature "support for all languages" dev-python/tree-sitter-languages -} diff --git a/dev-python/textual/textual-0.88.1.ebuild b/dev-python/textual/textual-0.88.1.ebuild new file mode 100644 index 000000000000..3efb2dafd302 --- /dev/null +++ b/dev-python/textual/textual-0.88.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +DOCS_BUILDER="mkdocs" +DOCS_DEPEND=" + dev-python/mkdocstrings + dev-python/mkdocstrings-python + dev-python/mkdocs-exclude + dev-python/mkdocs-git-revision-date-localized-plugin + dev-python/mkdocs-material + dev-python/mkdocs-rss-plugin +" +DOCS_INITIALIZE_GIT=1 + +inherit distutils-r1 optfeature #docs + +DESCRIPTION="Modern Text User Interface framework" +HOMEPAGE="https://github.com/Textualize/textual https://pypi.org/project/textual/" +SRC_URI="https://github.com/Textualize/textual/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/markdown-it-py-2.1.0[${PYTHON_USEDEP}] + >=dev-python/platformdirs-3.6.0[${PYTHON_USEDEP}] + =dev-python/rich-13.3.3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/griffe[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/platformdirs[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + =dev-python/textual-dev-1.7*[${PYTHON_USEDEP}] + ) +" +# currently masked +#BDEPEND+="doc? ( dev-python/tree-sitter-languages[${PYTHON_USEDEP}] ) +DEPEND="${RDEPEND}" + +# PATCHES=( +# "${FILESDIR}/fix-mkdocstrings.patch" +# ) + +EPYTEST_XDIST=1 +EPYTEST_DESELECT=( + # Those tests ask to press keys + tests/snapshot_tests/test_snapshots.py + tests/test_xterm_parser.py::test_escape_sequence_resulting_in_multiple_keypresses + + # Need a package that should be optional + tests/text_area/test_languages.py +) +distutils_enable_tests pytest +python_test() { + if [[ ${EPYTHON} == python3.13 ]]; then + EPYTEST_DESELECT+=( + # See https://github.com/Textualize/textual/issues/5327 + "tests/text_area" + ) + epytest -m 'not syntax' tests + else + epytest tests + fi +} + +python_compile_all() { + echo "INHERIT: mkdocs-offline.yml" > "${S}/mkdocs.yml" + grep -v "\- \"*[Bb]log" "${S}/mkdocs-nav.yml" >> "${S}/mkdocs.yml" + #docs_compile + rm "${S}/mkdocs.yml" +} + +pkg_postinst() { + optfeature "bindings for python" dev-python/tree-sitter + #optfeature "support for all languages" dev-python/tree-sitter-languages +} diff --git a/dev-python/types-gdb/Manifest b/dev-python/types-gdb/Manifest index f5a4eec2bb67..0664acf495d9 100644 --- a/dev-python/types-gdb/Manifest +++ b/dev-python/types-gdb/Manifest @@ -1,2 +1,2 @@ -DIST types-gdb-12.1.4.20240704.tar.gz 11819 BLAKE2B 80866a0eb484e7b3e30a01ea3606b5ee4a832194efba38dcec61d61316ad61eed432d478fdcef10bc481707468156c209bc3ec34e5995b350a84afd3aa21d9a8 SHA512 1d8141dc056df6b5a2a95a682098f254e499ca9cce5c98393c977cfb08bb4e13de9d5e1e539fef95f5836a396491fe74ac0db1610f3e1f194c36568e7e142682 DIST types-gdb-15.0.0.20241015.tar.gz 14343 BLAKE2B e9a7695c318ad1391c9f5c3eea82d9fd821234b539d7a7cd6e81e994f2d76bf58e73a36364bd52561cfe756e49840b4dd730bebe8b2dd5ff87c1c375cd696125 SHA512 0299448d2a07af9afda92ecc435a21b80aeec45ab5300a8e6c61c4767f0ea1f6593e46f0e76979f392b2b4a51af2d1f61a8474ac6e51c53467fbee14b88cfc98 +DIST types_gdb-15.0.0.20241204.tar.gz 19947 BLAKE2B e4b9e90f49dd2100f95be6d8cf323869581e46054b3130c1b4465b66cb7e58380de37af40751d06a581a5690aa96c11a0e4b7187c7bda5b9acb823c5572f2525 SHA512 f7acc0bad022244d95a45a6bbf428e893f7cd8e5e88ea34459bb209a7e36c6a34bac78a5824d9df39a0f6f8e0360285e478ed3d3c894bffa76d52c9bbc3b2b56 diff --git a/dev-python/types-gdb/types-gdb-12.1.4.20240704.ebuild b/dev-python/types-gdb/types-gdb-12.1.4.20240704.ebuild deleted file mode 100644 index 5b6f8698ec22..000000000000 --- a/dev-python/types-gdb/types-gdb-12.1.4.20240704.ebuild +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Typing stubs for gdb" -HOMEPAGE="https://pypi.org/project/types-gdb/" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" diff --git a/dev-python/types-gdb/types-gdb-15.0.0.20241204.ebuild b/dev-python/types-gdb/types-gdb-15.0.0.20241204.ebuild new file mode 100644 index 000000000000..b3ec5812fd0b --- /dev/null +++ b/dev-python/types-gdb/types-gdb-15.0.0.20241204.ebuild @@ -0,0 +1,16 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Typing stubs for gdb" +HOMEPAGE="https://pypi.org/project/types-gdb/" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index 66a5b821543c..3ed189eb2788 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -1,3 +1,4 @@ +DIST pubgrub-57832d0588fbb7aab824813481104761dc1c7740.gh.tar.gz 95600 BLAKE2B 8bdf971091d6816c326925c4603aa9296d6a92c2ede6a6245e0e5e64b741863e5d93aac03990004c13bd592d3d6ca2c662500e4c8d33e9959d6df9e1023a41e5 SHA512 8eae3c00928d921ca7cfdeff124962e477ae32387fb4b1ebfecd968181ec6bb2c2d96c918d8a9f521f1b9666eb6272c9f982b444d22a432f9471414f081694ee DIST pubgrub-57afc831bf2551f164617a10383cf288bf5d190d.gh.tar.gz 93839 BLAKE2B 14253f61758d294b4140bbeacf4ab169e4e653eed1f8b36269a650962bda16e867a16b21b1f8304323e776d9c6714748807b69a29807378579940ae1ddc0d626 SHA512 1423aa1f2410ed130cba2d663e0bba4d0a27db53cec81d389fdfe08c196e203fc7212b73fed2aa8c382306093d1a38c8def069e5adc0fc3506ecefa820c825ac DIST pubgrub-95e1390399cdddee986b658be19587eb1fdb2d79.gh.tar.gz 88127 BLAKE2B 661b639a7028b7dfe4967b4e2f187c3d403e1796bb09ae4606854414547cf81a5907d7dc9c1f8c3f6fe6986b1c8c22a89fee9e93d2ca79d5241350916991cf05 SHA512 8fdcd1ca1badbd140eb386ff37dd91b26d2b81273544b25a376462b900e9b84e59523ff75a68abe4a03834d72ee0d44246f16aea5c7e9091ad5375a86d3aee70 DIST pubgrub-9cd9049a64c7352de2ff3b525b9ae36421b0cc18.gh.tar.gz 95485 BLAKE2B 08db87c7bce1d6553e23fda3a4ab8d259d09ef50500846fbadae3c24841d7df0af40b052448d71f52196bb2da4ce0428ad9ad6c43dbede2910f39e602c168f6b SHA512 1ea397be9ecc236c275706c8bdd9c6f9baa9852fce30cdc7009bfeff43ecc745391c3aa75784f1a39bcc8d77b9687f028a494610af632ab6e8a9efbc88ad1653 @@ -11,3 +12,5 @@ DIST uv-0.5.3-crates.tar.xz 46488584 BLAKE2B 896f56ca633f3bdfb167df1a93c12358613 DIST uv-0.5.3.gh.tar.gz 2908026 BLAKE2B 0b9393a5d0cf8833e3e4bd9cd3374f689c5295053f02b4e750512f57a02844126d91e2538e044d4fac719a573ad13f592fe99ec1bcdd233b409e1dd9e32a3e9e SHA512 00afce159326a0551ef09d6e0fa82270b9baf40ba47ed3ef5e56b73e272f56d4d9a410fdc3e832989218c0997f7778a2d339b87171e69fed55baacdf2d48b556 DIST uv-0.5.5-crates.tar.xz 46246372 BLAKE2B c461c5140f7ffae63d16fac6c4069999c57d62095d4e4c447981edc63bb7d5c0da74b5bdbd60150abbf9a645430c52df4ec305e05c1025ce0603b221e01d32bc SHA512 3caba853e65b9fec57a4e3a260c57af8a38e7d9a73b09da22661a14ec329cf0ed7d1851a6804d69c750390edb59872c6d97b023557c48730bedc7ccd2b1b9bef DIST uv-0.5.5.gh.tar.gz 2932557 BLAKE2B 0a31c0529ab82ed6eb0cbb5595f6b00dfffa53c55b204adc70bec5bd1b22b1108caff9422d9ff2adb0ff17468ede46b9393639945b7cd11df2f03fd0bdb754c3 SHA512 0962ccf3b69be53e7d3d6b5d539b2b0c02dd615ab25913c3feb2701e1285e2e8c2fc2ba3d0dc361121ceb4cd439d7fa3a30ff82eb6b76ec23958a8a27154c88d +DIST uv-0.5.6-crates.tar.xz 46263172 BLAKE2B 73b1d2dc957f89f923dda09a8c038426041292c442ce253ff9110f996cd1e1f892a5a438d8e1c894fc0d823401cced0ddc8ad88b5e6a83199af7055a04ce85dc SHA512 c9d4f8085416bffb1e1872fd907d15a50cae0c0c5fba994d27b3acdc3c836dffd771558246573af4bb7467353a031ea56018d5ae1fbdffa4f63988462de00343 +DIST uv-0.5.6.gh.tar.gz 2952255 BLAKE2B b815b60b99f959751f5839365b8b210919247ad99bff93ee4d202bc152bd06b83a62914cfbf341bfddb5b2c87d9e546c5e2a6d1baff1599d0218160ee89de504 SHA512 fc8c7f4f60a3d2ce997341450daf20ad039ef379ac5dd4575f8db0327284bd8278419b66f8f9695f2701a9579ab004b5b60476bd8dc4c27314211f795118bc5a diff --git a/dev-python/uv/uv-0.5.6.ebuild b/dev-python/uv/uv-0.5.6.ebuild new file mode 100644 index 000000000000..c67a480aec6d --- /dev/null +++ b/dev-python/uv/uv-0.5.6.ebuild @@ -0,0 +1,170 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [async_zip]='https://github.com/charliermarsh/rs-async-zip;c909fda63fcafe4af496a07bfda28a5aae97e58d;rs-async-zip-%commit%' + [pubgrub]='https://github.com/astral-sh/pubgrub;57832d0588fbb7aab824813481104761dc1c7740;pubgrub-%commit%' + [tl]='https://github.com/astral-sh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%' + [version-ranges]='https://github.com/astral-sh/pubgrub;57832d0588fbb7aab824813481104761dc1c7740;pubgrub-%commit%/version-ranges' +) + +RUST_MIN_VER="1.80.1" + +inherit cargo check-reqs + +CRATE_PV=${PV} +DESCRIPTION="A Python package installer and resolver, written in Rust" +HOMEPAGE=" + https://github.com/astral-sh/uv/ + https://pypi.org/project/uv/ +" +# pypi sdist misses scripts/, needed for tests +SRC_URI=" + https://github.com/astral-sh/uv/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + ${CARGO_CRATE_URIS} +" +if [[ ${PKGBUMPING} != ${PVR} ]]; then + SRC_URI+=" + https://dev.gentoo.org/~mgorny/dist/uv-${CRATE_PV}-crates.tar.xz + " +fi + +# most of the code +LICENSE="|| ( Apache-2.0 MIT )" +# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below +# Dependent crate licenses +LICENSE+=" + 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT + MPL-2.0 Unicode-3.0 Unicode-DFS-2016 ZLIB +" +# ring crate +LICENSE+=" openssl" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="test" +PROPERTIES="test_network" + +DEPEND=" + app-arch/bzip2:= + app-arch/xz-utils:= + app-arch/zstd:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + test? ( + dev-lang/python:3.8 + dev-lang/python:3.9 + dev-lang/python:3.10 + dev-lang/python:3.11 + dev-lang/python:3.12 + !!~dev-python/uv-0.5.0 + ) +" + +QA_FLAGS_IGNORED="usr/bin/.*" + +check_space() { + local CHECKREQS_DISK_BUILD=3G + use debug && CHECKREQS_DISK_BUILD=9G + check-reqs_pkg_setup +} + +pkg_pretend() { + check_space +} + +pkg_setup() { + check_space + rust_pkg_setup +} + +src_prepare() { + default + + # enable system libraries where supported + export ZSTD_SYS_USE_PKG_CONFIG=1 + # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys? + + # remove unbundled sources, just in case + find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die + + # bzip2-sys requires a pkg-config file + # https://github.com/alexcrichton/bzip2-rs/issues/104 + mkdir "${T}/pkg-config" || die + export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}} + cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die + Name: bzip2 + Version: 9999 + Description: + Libs: -lbz2 + EOF +} + +src_configure() { + local myfeatures=( + git + pypi + python + ) + + cargo_src_configure --no-default-features +} + +src_compile() { + cd crates/uv || die + cargo_src_compile +} + +src_test() { + # work around https://github.com/astral-sh/uv/issues/4376 + local -x PATH=${BROOT}/usr/lib/python-exec/python3.12:${PATH} + local -x COLUMNS=100 + local -x PYTHONDONTWRITEBYTECODE= + # fix tests failing because of our config + local -x XDG_CONFIG_DIRS=${T} + + cd crates/uv || die + cargo_src_test --no-fail-fast +} + +src_install() { + cd crates/uv || die + cargo_src_install + + insinto /etc/xdg/uv + newins - uv.toml <<-EOF || die + # These defaults match Fedora, see: + # https://src.fedoraproject.org/rpms/uv/pull-request/18 + + # By default ("automatic"), uv downloads missing Python versions + # automatically and keeps them in the user's home directory. + # Disable that to make downloading opt-in, and especially + # to avoid unnecessarily fetching custom Python when the distro + # package would be preferable. Python builds can still be + # downloaded manually via "uv python install". + # + # https://docs.astral.sh/uv/reference/settings/#python-downloads + python-downloads = "manual" + + # By default ("managed"), uv always prefers self-installed + # Python versions over the system Python, independently + # of versions. Since we generally expect users to use that + # to install old Python versions not in ::gentoo anymore, + # this effectively means that uv would end up preferring very + # old Python versions over the newer ones that are provided + # by the system. Default to using the system versions to avoid + # this counter-intuitive behavior. + # + # https://docs.astral.sh/uv/reference/settings/#python-preference + python-preference = "system" + EOF +} -- cgit v1.3.1