diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-02-25 18:53:14 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-02-25 18:53:14 +0000 |
| commit | b77d22afc76b0450bdb9a15c65eae4a4e954cb36 (patch) | |
| tree | 621dc3d3f4a1c71bfbaf25bf2ba2ea3f016ce13c /dev-python | |
| parent | 18336a373df542f72268fe92d76d1c820bd7ec47 (diff) | |
| download | baldeagleos-repo-b77d22afc76b0450bdb9a15c65eae4a4e954cb36.tar.gz baldeagleos-repo-b77d22afc76b0450bdb9a15c65eae4a4e954cb36.tar.xz baldeagleos-repo-b77d22afc76b0450bdb9a15c65eae4a4e954cb36.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
74 files changed, 1314 insertions, 421 deletions
diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index a7c39e12f1d3..7a28386ef99d 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1,2 +1,3 @@ DIST aiohttp-3.11.11.tar.gz 7669618 BLAKE2B 148c15503ca2b5449b8afe4d0cadb054625cd12c7e3d958547c7ba6b46ca4d4da1b4091db0f97e2003c8bc7a582c36f4c6aba062a8fe0b0894740042853b68e9 SHA512 7b5c6fdf15a3bdae49b28f6955f31f528aff29f635b8bbbe60f0677dea8fbbe5de8e09b3cbb85f8a846942470b9e44c9d287aaf9eb08f8e8d9fab3bd64079edf DIST aiohttp-3.11.12.tar.gz 7673175 BLAKE2B 56f511d5bf10c60823bf3fef9552add3c8cac4e68dc6848931bc875417067bf61a0437adce0ffa13a47c595546f31b497f9044b0b3f2c6d48b31bff7a7b75905 SHA512 9f770f5182394acace994d40ca3b7028698242ce5e0caecd16b2e511c9463ae43e3fac9aabfc21afcbb7e17a44e324d19d88f7e1c81d0b4646f81923f9b4f160 +DIST aiohttp-3.11.13.tar.gz 7674284 BLAKE2B 1975baf20e3d1b7fa5b6b5fbdf4fb916fea57fbfb2dbe9295300fa2952b1cd7fb8aaa814e37bb5c403e43ea9930ca35f9ca17bba5359e8c07e535dfc1d71d607 SHA512 cd9745ea07041e438bb42508ed86095582b7121d233719e9d16033c34d567063c2fd091536ab45ea1695ba118d49b955c56153fe7d6b51c2ee0a4760bfd816a9 diff --git a/dev-python/aiohttp/aiohttp-3.11.13.ebuild b/dev-python/aiohttp/aiohttp-3.11.13.ebuild new file mode 100644 index 000000000000..a0fbae8f985c --- /dev/null +++ b/dev-python/aiohttp/aiohttp-3.11.13.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2025 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 ) + +inherit distutils-r1 pypi + +DESCRIPTION="HTTP client/server for asyncio" +HOMEPAGE=" + https://github.com/aio-libs/aiohttp/ + https://pypi.org/project/aiohttp/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions test-rust" + +RDEPEND=" + >=dev-python/aiodns-3.2.0[${PYTHON_USEDEP}] + >=dev-python/aiohappyeyeballs-2.3.0[${PYTHON_USEDEP}] + >=dev-python/aiosignal-1.1.2[${PYTHON_USEDEP}] + >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}] + dev-python/brotlicffi[${PYTHON_USEDEP}] + >=dev-python/frozenlist-1.1.1[${PYTHON_USEDEP}] + >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}] + >=dev-python/propcache-0.2.0[${PYTHON_USEDEP}] + >=dev-python/yarl-1.17.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + <dev-python/async-timeout-6[${PYTHON_USEDEP}] + >=dev-python/async-timeout-4.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + native-extensions? ( + dev-python/cython[${PYTHON_USEDEP}] + ) + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + www-servers/gunicorn[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/time-machine[${PYTHON_USEDEP}] + ' 'python3*') + test-rust? ( + dev-python/trustme[${PYTHON_USEDEP}] + ) + ) +" + +DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # increase the timeout a little + sed -e '/abs=/s/0.001/0.01/' -i tests/test_helpers.py || die + # xfail_strict fails on py3.10 + sed -i -e '/--cov/d' -e '/pytest_cov/d' -e '/xfail_strict/d' setup.cfg || die + sed -i -e 's:-Werror::' Makefile || die + + distutils-r1_src_prepare +} + +python_configure() { + if [[ ! -d tools && ${EPYTHON} != pypy3 ]] && use native-extensions + then + # workaround missing files + mkdir tools || die + > requirements/cython.txt || die + > tools/gen.py || die + chmod +x tools/gen.py || die + # force rehashing first + emake requirements/.hash/cython.txt.hash + > .update-pip || die + > .install-cython || die + emake cythonize + fi +} + +python_compile() { + # implicitly disabled for pypy3 + if ! use native-extensions; then + local -x AIOHTTP_NO_EXTENSIONS=1 + fi + + distutils-r1_python_compile +} + +python_test() { + local EPYTEST_IGNORE=( + # proxy is not packaged + tests/test_proxy_functional.py + # python_on_whales is not packaged + tests/autobahn/test_autobahn.py + # benchmarks + tests/test_benchmarks_client.py + tests/test_benchmarks_client_request.py + tests/test_benchmarks_client_ws.py + tests/test_benchmarks_cookiejar.py + tests/test_benchmarks_http_websocket.py + tests/test_benchmarks_http_writer.py + tests/test_benchmarks_web_fileresponse.py + tests/test_benchmarks_web_middleware.py + tests/test_benchmarks_web_response.py + tests/test_benchmarks_web_urldispatcher.py + ) + + local EPYTEST_DESELECT=( + # Internet + tests/test_client_session.py::test_client_session_timeout_zero + # broken by irrelevant deprecation warnings + tests/test_circular_imports.py::test_no_warnings + ) + + # upstream unconditionally blocks building C extensions + # on PyPy3 but the test suite needs an explicit switch + if [[ ${EPYTHON} == pypy3* ]] || ! use native-extensions; then + local -x AIOHTTP_NO_EXTENSIONS=1 + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin + rm -rf aiohttp || die + epytest -m "not internal and not dev_mode" \ + -p rerunfailures --reruns=5 +} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 7e8fd3f1fb0a..a6425c5cdfe7 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -1,3 +1,4 @@ DIST boto3-1.36.16.gh.tar.gz 898785 BLAKE2B fa3de504bb8c58fa5653a3fc3414a333283c04ca800b8d37b310b291e60af96b27c994d2571e4dc0f159c98a41d014000ce7afe020f38da80a2cac49283ba2cc SHA512 6cbbe6cdb505ace41e5e20ff144d1d312d8a53e3c7c2e8d50a981c55e485cdf98ac6711c36cb3697e257aab08e240fa1e731485aec3dd8b74cd5163c489bd61f DIST boto3-1.36.21.gh.tar.gz 901823 BLAKE2B 9659b8f05c90deeeeedc19f8c1bbd777415b778cf33f0ff2945063e64d413da9365f1a7e0dfc6ee159c00785299eece92596ae38d8a5d2bba02fe344ed2a052c SHA512 f13d44519aa9d62ca26cd7731b7b83cb67bc85d649a3fd61756048a5fe9254d4a1af8fae55b546fce692ca35becf5bfea2c25bde2a63c8c8783b064a61814da7 DIST boto3-1.36.26.gh.tar.gz 903988 BLAKE2B f9bb945e9132a7af7bd92ff48e5a99cc89488283c30e2d7d0cbb22d9002bd41c5d5f8a449494d2aa4758648aca3c2e88dad8bebda640af4bba7df64e72ffd2bc SHA512 77a545fd94ed50114db72d7b763e232356e78cda7a2780c12c26b602ed85101218339adf6247ba45e3a8b16c33fb11f5fb34572a37dfeac43dd9322823372cc1 +DIST boto3-1.37.0.gh.tar.gz 905790 BLAKE2B 8748fb2d4a121fc2c363e1eec7b2f5659b95b3729aaa12986d4991245fe225ab2215de3877b787ad917f9cc143998f8386e4091269dfd83fb1345345bb82f637 SHA512 33efb9eca9750fda5323170ce5dd5f3368215a9046f616490bc5397ee159bbb4999502ce83176d4d1429c22c119e657357e70af3e8400b5bbbeedc6a30fdf98d diff --git a/dev-python/boto3/boto3-1.37.0.ebuild b/dev-python/boto3/boto3-1.37.0.ebuild new file mode 100644 index 000000000000..dfe05b3d9a81 --- /dev/null +++ b/dev-python/boto3/boto3-1.37.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 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 ~loong ~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.11.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 b780b744c04c..92aa7ed2d895 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -1,3 +1,4 @@ DIST botocore-1.36.16.gh.tar.gz 14211411 BLAKE2B 88ea5860e628985d7643acc430b62ed1a57c0c6a05081e156630bf4090aaf00fa18efd39f3d7914d2eab97b3cb1ac5d355714ccc1a6af3f2e1bec2a6b067e608 SHA512 7c1f66b7835df3fb5fef726762d09eecfc7b1c3cad5df7f6e1d1ec90fd1d7f505243d92c6c4184b0dc15b541c9e3d14d07cc91ce317655d98ad9d74f289e72e6 DIST botocore-1.36.21.gh.tar.gz 14227102 BLAKE2B 66948337c21be8024c64ad5daf35dd5f04493c2f83b4873f6040faf1231d4b491ca6714f96756527b4b0b3ab8d2047cfc5a24188c78d5540b8a9ac8c22a009ee SHA512 3f370bcf80faefc54cfa4fb2e342c58a48bcc529247128571892b5c7c4c0ba74b5a184539a7fb2e85faf9e542698846f991120cc47f40e9aa61f2785b7aa7290 DIST botocore-1.36.26.gh.tar.gz 14281837 BLAKE2B 925ebbca3e415ea7e3388c52e53a6d0a9a1aec001bd579293bfbbba5d756503371a137399d679926d5894f8f4e0fe498a37570dc4c19af99dfa67b4e3d374c3c SHA512 2f2d960a6519efae499acdb704d66a1f329927b30a53900ed035909847ca9a6c1a3b57291e0a0aa153b4bc49a959935b1840ad0d81244f8c2577fd4ba910fcf6 +DIST botocore-1.37.0.gh.tar.gz 14283514 BLAKE2B cfa58211455acdafa79782e08f8d6c4902b84b0008d4e2e6cfef248c84805f746f1f605ccf1b5e6920fa0b4f5007bbd02ce2d2654edad52b966344daacd7f7e6 SHA512 ca7c8a46cb0e38d94061ce56654c38b57245292ebf5b0b7aaebb844adb52b91bbf40a69c34c8275c10d757f9dd324dd3afee328e8fc212be7f0128a73b98aa2a diff --git a/dev-python/botocore/botocore-1.37.0.ebuild b/dev-python/botocore/botocore-1.37.0.ebuild new file mode 100644 index 000000000000..df85ee0d220c --- /dev/null +++ b/dev-python/botocore/botocore-1.37.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2025 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 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/clang/Manifest b/dev-python/clang/Manifest index f14cc7e05032..8a453d62c389 100644 --- a/dev-python/clang/Manifest +++ b/dev-python/clang/Manifest @@ -15,3 +15,4 @@ DIST llvm-project-20.1.0-rc2.src.tar.xz.sig 566 BLAKE2B aa91f7be228e51b0f2234bb5 DIST llvm-project-2cd8207b26ea4269630feba661f68554d7ae3c15.tar.gz 227261597 BLAKE2B 51ce992b651fcf08b7fd520420040803b59f1260947953325400c50bec576c418b162d8ae2d2307e70b885b1185c302a97409bcfe48cdb14b8e1384f4e2dfa9e SHA512 a41749943508ea4a18b47c4e947917b5268544e64372c0c3347f9ab8172a2c229d8b1d813d1e842be1b98aedd624524857ed3bb23fe98ad5f36e7a71581abb4b DIST llvm-project-581599096e8a1a89ccd3e053a1209c69a9079083.tar.gz 227830555 BLAKE2B 28a04dd5ce96716d389fe049c4b877f55d6e5cad5c77d8867dd7e3a448213ef413e4f4d7d5f77b0702b26a8eb25f53e08d90e2a5a97eaa3f89245531d9f6626d SHA512 d775aea9bf71d60673e966a689ff6b933afecab2c133a1f64a158551ba9db049221148eab5087bab0ce0ff917456b85fb4ea4d7284886326f54617d167a385a5 DIST llvm-project-c30a7f459452d5766da244564bc1d5888346c364.tar.gz 227560986 BLAKE2B c1c833aa6d488530826d96db81ca8be2fcf842ccf5b10a65ff18269fdfa32fa2742fb0a547eb315c2a9ee383e1b6b6cce4a78136e1740e04d322c79fb6a66a86 SHA512 0b68d3462e5eac89f50cff5e64603758ab74c701ff2de88c8569dd45b7e702b5d13b26c2745615c0c355d46d13765f47e4d43e61cde735240c6f386c0090becb +DIST llvm-project-d254fa877f419e61e54709f0a6f2e891da893a60.tar.gz 228028122 BLAKE2B 3321f3b205dfcd672d52122d7ba8e4e737916e01f5041a0dc140722f64359476632e036da0e0692cd366b080a073292cfdb4963e973bf800afabc20d06a2e86b SHA512 135c4864973b682cf41953d43d977eaa219a4a898fceb4b4a8cacbbc6a5dd271d26010b1db6c6c90e761bf3495036f3e7528ab259d48c9c4dc4a064332c0326f diff --git a/dev-python/clang/clang-21.0.0_pre20250225.ebuild b/dev-python/clang/clang-21.0.0_pre20250225.ebuild new file mode 100644 index 000000000000..a99c5601e047 --- /dev/null +++ b/dev-python/clang/clang-21.0.0_pre20250225.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +inherit llvm.org python-r1 + +DESCRIPTION="Python bindings for llvm-core/clang" +HOMEPAGE="https://llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# The module is opening libclang.so directly, and doing some blasphemy +# on top of it. +DEPEND=" + >=llvm-core/clang-${PV}:* + !llvm-core/llvm:0[clang(-),python(-)] + !llvm-core/clang:0[python(-)] +" +RDEPEND=" + ${DEPEND} + ${PYTHON_DEPS} +" +BDEPEND=" + ${PYTHON_DEPS} + test? ( + llvm-core/clang:${LLVM_MAJOR} + ) +" + +LLVM_COMPONENTS=( clang/bindings/python ) +llvm.org_set_globals + +python_test() { + # tests rely on results from a specific clang version, so override + # the search path + local -x CLANG_LIBRARY_PATH=${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/$(get_libdir) + local -x CLANG_NO_DEFAULT_CONFIG=1 + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" +} + +src_test() { + python_foreach_impl python_test +} + +src_install() { + python_foreach_impl python_domodule clang +} diff --git a/dev-python/cssselect2/cssselect2-0.7.0.ebuild b/dev-python/cssselect2/cssselect2-0.7.0.ebuild index 89cf78b47a63..9f80df941547 100644 --- a/dev-python/cssselect2/cssselect2-0.7.0.ebuild +++ b/dev-python/cssselect2/cssselect2-0.7.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=flit -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/decorator/Manifest b/dev-python/decorator/Manifest index 4705b6d73673..04510033b2f7 100644 --- a/dev-python/decorator/Manifest +++ b/dev-python/decorator/Manifest @@ -1,2 +1,3 @@ DIST decorator-5.1.1.tar.gz 35016 BLAKE2B 0e38ee2dea6793d489f5c50692549022f1b252ab3a7b75da5b785f856b7f18faaf5570dde2c68f6936c11460599839063e9eb8a133789a00f683761393a5103d SHA512 584857ffb0c3e52344b473ceb9e28adfd7d789d480a528471f8ab37be055ebe5feb170f41077010e25350e1c311189d45b90773cf12f0043de98ea8ebcde20ab DIST decorator-5.2.0.gh.tar.gz 54313 BLAKE2B bab7a0dc6b8431893cdf72258a6b6f8f45e2352cd4bf55fc63571e8d7acaa97f3fdc120a996df278b3eee40c3b0f7c4e9914a8a498feef79145a6d4b9ee772b0 SHA512 b50d645acd924b1c0a35ebe6d52f638fe771910e55a925a2cb642aca694d99c9886b7a580b631ee7c8760d485a0924051235d24d0ccc393638ed305694e14e17 +DIST decorator-5.2.1.tar.gz 56711 BLAKE2B bb08e43f6d3480a5c769fe8a433304a7959155430d576e8c6fbb6c6aaf27ef47d3af2bd4c349f9aa91f70bea0d694f7cd48bfe8a3135f782ada7a943a5cccd4e SHA512 c834a3536e429aaff38d34a56b574344551c160e25676ca5febb5dcf521d71f284ebb8294d3264f65a801219860352377e5a4be89927217cb5da9cb6c6aa45ec diff --git a/dev-python/decorator/decorator-5.2.1.ebuild b/dev-python/decorator/decorator-5.2.1.ebuild new file mode 100644 index 000000000000..92a169633c2b --- /dev/null +++ b/dev-python/decorator/decorator-5.2.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2025 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="Simplifies the usage of decorators for the average programmer" +HOMEPAGE=" + https://github.com/micheles/decorator/ + https://pypi.org/project/decorator/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" + +python_test() { + "${EPYTHON}" tests/test.py -v || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/flask-cors/Manifest b/dev-python/flask-cors/Manifest index f5b0b6aeea94..8c0e45a7e2fd 100644 --- a/dev-python/flask-cors/Manifest +++ b/dev-python/flask-cors/Manifest @@ -1 +1,2 @@ DIST flask-cors-5.0.0.gh.tar.gz 32891 BLAKE2B 0315f37fdd10d6000c8b5613a9b8616df5db1009e23614a68e430979888ead49c20174cde0e4f1a1019b455cac868b113bf09f0c004552cc452a12e1840764d3 SHA512 36cff5f9d9a3692a794510b431ad1889931e9d09c569078ab604e4b6b0777139afb10063f851f2e64d76ae6441444ada4a04855f8578a78bb5d3aabdf346e0de +DIST flask-cors-5.0.1.gh.tar.gz 87364 BLAKE2B 6aecc64b8e2d9eac058ad052c1fa8eb5d23b2502c4ddaa0c1f49f1bbfac7fa072b81cc9697a48e716b68db3355f65fe6374a2a2653e5dc2ed3d1452a39cd548e SHA512 24e09787fded384f08de94c507ea199e77a5a2d1895ced77811b7ce421c2851d3315df4b4935ed8d0b2b2bf073fb4e8dabb9fa840ee5e9b4fac240075400b90f diff --git a/dev-python/flask-cors/flask-cors-5.0.1.ebuild b/dev-python/flask-cors/flask-cors-5.0.1.ebuild new file mode 100644 index 000000000000..c8b8c478b0dc --- /dev/null +++ b/dev-python/flask-cors/flask-cors-5.0.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2025 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 + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/corydolphin/flask-cors.git" + inherit git-r3 +else + SRC_URI=" + https://github.com/corydolphin/flask-cors/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + " + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +fi + +DESCRIPTION="A Flask extension for Cross Origin Resource Sharing (CORS)" +HOMEPAGE=" + https://github.com/corydolphin/flask-cors/ + https://pypi.org/project/Flask-Cors/ +" + +LICENSE="MIT" +SLOT="0" + +RDEPEND=" + >=dev-python/flask-0.9[${PYTHON_USEDEP}] + >=dev-python/werkzeug-0.7[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/packaging[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + dev-python/sphinx-rtd-theme \ + dev-python/sphinxcontrib-httpdomain diff --git a/dev-python/flask-socketio/Manifest b/dev-python/flask-socketio/Manifest new file mode 100644 index 000000000000..5f9b7d92f3ab --- /dev/null +++ b/dev-python/flask-socketio/Manifest @@ -0,0 +1 @@ +DIST flask_socketio-5.5.1.tar.gz 37401 BLAKE2B b959a86f4798a69877e66771e2db9b1587a8a5ef5253e096771ed26f8f202c127146c2acd21c4e00a8b6f940977733f7a3fb73ac999c279a26953133361dc388 SHA512 c24a5a7f9bd211434714a1563fb40aa9ac1b4ab84ef2f4c4bb04aaf9d52a3ba9e2e9b50c81084c54f75d74c071fbcf0feef4a5d0599a90875d469667fa54fd71 diff --git a/dev-python/flask-socketio/flask-socketio-5.5.1.ebuild b/dev-python/flask-socketio/flask-socketio-5.5.1.ebuild new file mode 100644 index 000000000000..ad329ad8c795 --- /dev/null +++ b/dev-python/flask-socketio/flask-socketio-5.5.1.ebuild @@ -0,0 +1,29 @@ +# 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 pypi + +DESCRIPTION="Socket.IO integration for Flask applications." +HOMEPAGE="https://flask-socketio.readthedocs.io https://github.com/miguelgrinberg/flask-socketio" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +RDEPEND=" + dev-python/flask[${PYTHON_USEDEP}] + dev-python/python-socketio[${PYTHON_USEDEP}] +" + +DEPEND="${RDEPEND} + test? ( + dev-python/redis[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/flask-socketio/metadata.xml b/dev-python/flask-socketio/metadata.xml new file mode 100644 index 000000000000..56988650ec34 --- /dev/null +++ b/dev-python/flask-socketio/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>davidroman96@gmail.com</email> + <name>David Roman</name> + </maintainer> + + <origin>gentoo-guru-overlay</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/ghp-import/ghp-import-2.1.0-r1.ebuild b/dev-python/ghp-import/ghp-import-2.1.0-r1.ebuild index 43f772d6739a..12a47254fff2 100644 --- a/dev-python/ghp-import/ghp-import-2.1.0-r1.ebuild +++ b/dev-python/ghp-import/ghp-import-2.1.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/griffe/Manifest b/dev-python/griffe/Manifest index e02e8ea12c51..a0fb48567068 100644 --- a/dev-python/griffe/Manifest +++ b/dev-python/griffe/Manifest @@ -1,2 +1 @@ -DIST griffe-1.5.6.gh.tar.gz 393058 BLAKE2B f1c425e2f256e14e19e1b9c0e93e46d3fdcc79c82285c2163cacafc2dc0ff326805222f7097f28d7690ffbbd248733603387b3db16c068d581979bc18447fa11 SHA512 a65ed6569503e4b2b57bd7779e3f8b3d46266cf4c0dceeddf6b60db6479d417bb9527a99968e2913b153e45ed9f060d47c2497863daac6b413c10baf95756590 DIST griffe-1.5.7.gh.tar.gz 393455 BLAKE2B d294a62e131ce5276c52e3f11adef5081c10131156cdb3c112761569d3776091e1c1dfea445252cc3595572baf1caab416ff510d89f84a4511d147f1aa36b762 SHA512 cfea773780a645f92f8ad32b0f2e682561f63cf3082f2e24bd1f944f1a907b35db15883cb7df726d34e03373e73fe5e855f3d00a455cc01cac265bced822b4ed diff --git a/dev-python/griffe/griffe-1.5.6.ebuild b/dev-python/griffe/griffe-1.5.6.ebuild deleted file mode 100644 index 393939f16103..000000000000 --- a/dev-python/griffe/griffe-1.5.6.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 - -DESCRIPTION="Signature generator for Python programs" -HOMEPAGE=" - https://mkdocstrings.github.io/griffe/ - https://github.com/mkdocstrings/griffe/ - https://pypi.org/project/griffe/ -" -# Tests need files absent from the PyPI tarballs -SRC_URI=" - https://github.com/mkdocstrings/griffe/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" - -RDEPEND=" - >=dev-python/colorama-0.4[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/backports-strenum-1.3[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - test? ( - >=dev-python/jsonschema-4.17[${PYTHON_USEDEP}] - dev-python/mkdocstrings[${PYTHON_USEDEP}] - >=dev-python/pytest-xdist-2.4[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -export PDM_BUILD_SCM_VERSION=${PV} - -EPYTEST_DESELECT=( - # fragile to installed packages - # (failed on PySide2 for me) - tests/test_stdlib.py::test_fuzzing_on_stdlib -) diff --git a/dev-python/griffe/griffe-1.5.7.ebuild b/dev-python/griffe/griffe-1.5.7.ebuild index 7b425a186736..6f7090dd3f3d 100644 --- a/dev-python/griffe/griffe-1.5.7.ebuild +++ b/dev-python/griffe/griffe-1.5.7.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) inherit distutils-r1 @@ -42,8 +42,29 @@ distutils_enable_tests pytest export PDM_BUILD_SCM_VERSION=${PV} -EPYTEST_DESELECT=( - # fragile to installed packages - # (failed on PySide2 for me) - tests/test_stdlib.py::test_fuzzing_on_stdlib -) +python_test() { + local EPYTEST_DESELECT=( + # fragile to installed packages + # (failed on PySide2 for me) + tests/test_stdlib.py::test_fuzzing_on_stdlib + ) + + case ${EPYTHON} in + pypy3.11) + EPYTEST_DESELECT+=( + # https://github.com/pypy/pypy/issues/5226 + tests/test_inspector.py::test_inspecting_objects_from_private_builtin_stdlib_moduless + ) + ;& + pypy3*) + EPYTEST_DESELECT+=( + # tries importing CPython-specific modules + # https://github.com/mkdocstrings/griffe/issues/362 + tests/test_loader.py::test_load_builtin_modules + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 49dfd9525bd4..2d95692f0928 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -1,3 +1,4 @@ DIST hypothesis-6.125.2.gh.tar.gz 9508767 BLAKE2B 2f356f9678c1c8a56dcc66c5f96fee3426860e541e30c52b9108769fbb4112f9f4d8c77a9b9acef045a52749dd9325155fa8790c023f05dbf58608531ec0f89e SHA512 c953eef644a3c3239c2d0ace3eb6c02c7c48bb37d8fba6c6429720c7ab4b42fd76f6e42ee94f543db8d224bfb6912ed5e64feb181c24207a403e307364618843 DIST hypothesis-6.126.0.gh.tar.gz 9515798 BLAKE2B 8fbecef130bee50e856b4a3af9726d0bff759c1c8d69de9cff28387f87bc4aba72fc7b4944b9c1748c0b032de1556e197de5005ad193a61cc7d9f790f4975c5b SHA512 ee9e633c2f91c7d1a122515be0853c3aa9604db5ff79419c9ede646444c19d895b5cec8bb0dfed707b2b5a09c0899928643040c821e5b9dc47f46e19a18a0128 DIST hypothesis-6.127.1.gh.tar.gz 9518068 BLAKE2B 6cbc8aab8d2c952a7ab1ff9180f37e4acf6fb515899dbe1053ea474a6e4c1978a6fc928b94ee35ac12ed74581bf1b14869bffccb7e6564b1ab8578d025d8f710 SHA512 d77cfa4938779b0d6eda0c7a757f4b4dc23a199cc59eee89f59af90f1fa466f3b83ea1cd392ba0a88f1258ab08af77cae4d36afeccd0779707f82a8f9d1cca2f +DIST hypothesis-6.127.2.gh.tar.gz 9518116 BLAKE2B 7a114549226f2bf85bbc211695575881db5b6d099075cb5ae0f076b1339b040ac942a6783721b717fee6cbf0dd404381f82e13779269547d971664758ca1ae37 SHA512 0cad6b5c00152bb67f81df1f00d6f3ba4d047cc0820e6b8a74031af42ed5baca3cf7cfaa53f988782d4ddb61e0465a1625a177dba4f8c46c66b1804ef389674f diff --git a/dev-python/hypothesis/hypothesis-6.127.2.ebuild b/dev-python/hypothesis/hypothesis-6.127.2.ebuild new file mode 100644 index 000000000000..08befcf116e3 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.127.2.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +CLI_COMPAT=( pypy3 python3_{10..13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 optfeature + +TAG=hypothesis-python-${PV} +MY_P=hypothesis-${TAG} +DESCRIPTION="A library for property based testing" +HOMEPAGE=" + https://github.com/HypothesisWorks/hypothesis/ + https://pypi.org/project/hypothesis/ +" +SRC_URI=" + https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/${MY_P}/hypothesis-python" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="cli" + +RDEPEND=" + >=dev-python/attrs-22.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}] + ' 3.9 3.10) + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' "${CLI_COMPAT[@]}") + ) +" +BDEPEND=" + test? ( + dev-python/pexpect[${PYTHON_USEDEP}] + >=dev-python/pytest-8[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + # subtests are broken by warnings from random plugins + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,_hypothesis_pytestplugin + local -x HYPOTHESIS_NO_PLUGINS=1 + + # NB: paths need to be relative to pytest.ini, + # i.e. start with hypothesis-python/ + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # failing due to warnings from numpy/cython + hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture + ) + ;; + python3.13) + EPYTEST_DESELECT+=( + # TODO + 'hypothesis-python/tests/cover/test_reflection.py::test_clean_source[case-5]' + ) + ;; + esac + + epytest -o filterwarnings= -p rerunfailures --reruns=5 \ + tests/cover tests/pytest tests/quality +} + +src_install() { + local HAD_CLI= + + distutils-r1_src_install + + if [[ ! ${HAD_CLI} ]]; then + rm -r "${ED}/usr/bin" || die + fi +} + +python_install() { + distutils-r1_python_install + if use cli && has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then + HAD_CLI=1 + else + rm -r "${D}$(python_get_scriptdir)" || die + fi +} + +pkg_postinst() { + optfeature "datetime support" dev-python/pytz + optfeature "dateutil support" dev-python/python-dateutil + optfeature "numpy support" dev-python/numpy + optfeature "django support" dev-python/django dev-python/pytz + optfeature "pandas support" dev-python/pandas + optfeature "pytest support" dev-python/pytest +} diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest index 3a4e570caae8..57f29aa12e88 100644 --- a/dev-python/ipython/Manifest +++ b/dev-python/ipython/Manifest @@ -1 +1,2 @@ DIST ipython-8.32.0.tar.gz 5507441 BLAKE2B 73ae25982653d484e47d15e16f6d689860186edac57809f4efaa5a2b7a0c20c6c21bc3e759f562d5fb0cddd5dc88c8db4422f66cb03e78c701fe234e8cff9e6b SHA512 920e5aa4be023713c05d9c6b7a1ce0e81abd8829a7fad19adef050d013b9937fcc49ddbf44200ae62f4968b3ea197a0afe87d712873845230f4e0b5858eefdaf +DIST ipython-9.0.0b1.tar.gz 4362863 BLAKE2B 3a3cdc95b673ee652d09c90a297b59dc2360c9bb297f96c26c5036130016b7f575888fbe9db731544bd4ed2e3ef090b22ef0c0774ded419421852b61dd77f243 SHA512 addc32a75669a0169b9ad6d4e329fe0bdb1dd54ae2112c1f567bea72feb65c1e8eb8fe7c4a1204c0954eee160068f7ed4e92e07e391202b205158b671f1db000 diff --git a/dev-python/ipython/ipython-9.0.0_beta1.ebuild b/dev-python/ipython/ipython-9.0.0_beta1.ebuild new file mode 100644 index 000000000000..6f7fbb19eeb1 --- /dev/null +++ b/dev-python/ipython/ipython-9.0.0_beta1.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_REQ_USE='readline(+),sqlite,threads(+)' + +inherit distutils-r1 optfeature pypi virtualx + +DESCRIPTION="Advanced interactive shell for Python" +HOMEPAGE=" + https://ipython.org/ + https://github.com/ipython/ipython/ + https://pypi.org/project/ipython/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples notebook nbconvert qt5 +smp test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/ipython-pygments-lexers[${PYTHON_USEDEP}] + >=dev-python/jedi-0.16[${PYTHON_USEDEP}] + dev-python/matplotlib-inline[${PYTHON_USEDEP}] + >=dev-python/pexpect-4.3[${PYTHON_USEDEP}] + >=dev-python/prompt-toolkit-3.0.41[${PYTHON_USEDEP}] + <dev-python/prompt-toolkit-3.1[${PYTHON_USEDEP}] + >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}] + dev-python/stack-data[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.13.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' 3.11) +" + +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + app-text/dvipng[truetype] + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] + >=dev-python/matplotlib-3.9[${PYTHON_USEDEP}] + dev-python/nbformat[${PYTHON_USEDEP}] + >=dev-python/numpy-1.23[${PYTHON_USEDEP}] + dev-python/matplotlib-inline[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pickleshare[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/testpath[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +RDEPEND+=" + nbconvert? ( + dev-python/nbconvert[${PYTHON_USEDEP}] + ) +" +PDEPEND=" + $(python_gen_cond_dep ' + qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] ) + ' 'python*') + $(python_gen_cond_dep ' + notebook? ( + dev-python/notebook[${PYTHON_USEDEP}] + dev-python/ipywidgets[${PYTHON_USEDEP}] + dev-python/widgetsnbextension[${PYTHON_USEDEP}] + ) + ' 3.{10..12}) + smp? ( + >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] + >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + # Rename the test directory to reduce sys.path pollution + # https://github.com/ipython/ipython/issues/12892 + mv IPython/extensions/{,ipython_}tests || die + + distutils-r1_python_prepare_all +} + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local -x IPYTHON_TESTING_TIMEOUT_SCALE=20 + local EPYTEST_DESELECT=( + # TODO: looks to be a regression due to a newer dep + IPython/core/tests/test_oinspect.py::test_class_signature + IPython/core/tests/test_oinspect.py::test_render_signature_long + IPython/terminal/tests/test_shortcuts.py::test_modify_shortcut_with_filters + ) + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # https://github.com/ipython/ipython/issues/14244 + IPython/lib/tests/test_display.py::TestAudioDataWithoutNumpy + ) + ;; + python3.13) + EPYTEST_DESELECT+=( + # docstring mismatch? + IPython/core/tests/test_debugger.py::IPython.core.tests.test_debugger.test_ipdb_magics + ) + ;; + esac + + # nonfatal implied by virtx + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + nonfatal epytest -p asyncio --asyncio-mode=auto || + die "Tests failed on ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + # Create ipythonX.Y symlinks. + # TODO: + # 1. do we want them for pypy? No. pypy has no numpy + # 2. handle it in the eclass instead (use _python_ln_rel). + # With pypy not an option the dosym becomes unconditional + dosym ../lib/python-exec/${EPYTHON}/ipython \ + /usr/bin/ipython${EPYTHON#python} +} + +python_install_all() { + distutils-r1_python_install_all + + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} + +pkg_postinst() { + optfeature "code formatting" dev-python/black + optfeature "sympyprinting" dev-python/sympy + optfeature "cythonmagic" dev-python/cython + optfeature "%lprun magic command" dev-python/line-profiler + optfeature "%matplotlib magic command" dev-python/matplotlib-inline + + if use nbconvert; then + if ! has_version virtual/pandoc ; then + einfo "Node.js will be used to convert notebooks to other formats" + einfo "like HTML. Support for that is still experimental. If you" + einfo "encounter any problems, please use app-text/pandoc instead." + fi + fi +} diff --git a/dev-python/lhafile/Manifest b/dev-python/lhafile/Manifest index a62188ec86f9..38fceaebaa17 100644 --- a/dev-python/lhafile/Manifest +++ b/dev-python/lhafile/Manifest @@ -1 +1,2 @@ DIST python-lhafile-0.3.0.gh.tar.gz 267965 BLAKE2B 1331f21059f84f5e517339ac26546d73bc9dc125578840bf24483c274b651d8f0e2494b1b7e140bede07412b5c44e499269ea23dd1180bb955b1044b06d82ee8 SHA512 bb4db2767a702d30f2e713e5f7890d619de312d609761ade2ff8f4e99ffede8e35a72cd116abf3b8ea29b0885ebe2c993dc37f44722c8e5fe346be93dfdbbf81 +DIST python-lhafile-0.3.1.gh.tar.gz 267152 BLAKE2B e4d07b22aa036979e2db1ab3ffa54910e4fdad99201366f07a4fc9173e4f114cf6c46d910397324c72a9517c5a7f4bf4e9ce713f20eb68bc11cd79610a14e7b5 SHA512 73fcb03fe4436bbeab822e40fc4a9f02b67d2b99f2307e3e9ae894a768001ad662adf659fe1170ac0eb231b12e93b1c0429246396e16e0c1e149bd3cf7af8393 diff --git a/dev-python/lhafile/lhafile-0.3.1.ebuild b/dev-python/lhafile/lhafile-0.3.1.ebuild new file mode 100644 index 000000000000..bc5a9e0a2a4e --- /dev/null +++ b/dev-python/lhafile/lhafile-0.3.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2025 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=python-lhafile-${PV} +DESCRIPTION="LHA archive support for Python" +HOMEPAGE=" + https://github.com/FrodeSolheim/python-lhafile/ + https://pypi.org/project/lhafile/ +" +SRC_URI=" + https://github.com/FrodeSolheim/python-lhafile/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" +RESTRICT="test" # The tests don't work, they're probably outdated. diff --git a/dev-python/lit/Manifest b/dev-python/lit/Manifest index f14cc7e05032..8a453d62c389 100644 --- a/dev-python/lit/Manifest +++ b/dev-python/lit/Manifest @@ -15,3 +15,4 @@ DIST llvm-project-20.1.0-rc2.src.tar.xz.sig 566 BLAKE2B aa91f7be228e51b0f2234bb5 DIST llvm-project-2cd8207b26ea4269630feba661f68554d7ae3c15.tar.gz 227261597 BLAKE2B 51ce992b651fcf08b7fd520420040803b59f1260947953325400c50bec576c418b162d8ae2d2307e70b885b1185c302a97409bcfe48cdb14b8e1384f4e2dfa9e SHA512 a41749943508ea4a18b47c4e947917b5268544e64372c0c3347f9ab8172a2c229d8b1d813d1e842be1b98aedd624524857ed3bb23fe98ad5f36e7a71581abb4b DIST llvm-project-581599096e8a1a89ccd3e053a1209c69a9079083.tar.gz 227830555 BLAKE2B 28a04dd5ce96716d389fe049c4b877f55d6e5cad5c77d8867dd7e3a448213ef413e4f4d7d5f77b0702b26a8eb25f53e08d90e2a5a97eaa3f89245531d9f6626d SHA512 d775aea9bf71d60673e966a689ff6b933afecab2c133a1f64a158551ba9db049221148eab5087bab0ce0ff917456b85fb4ea4d7284886326f54617d167a385a5 DIST llvm-project-c30a7f459452d5766da244564bc1d5888346c364.tar.gz 227560986 BLAKE2B c1c833aa6d488530826d96db81ca8be2fcf842ccf5b10a65ff18269fdfa32fa2742fb0a547eb315c2a9ee383e1b6b6cce4a78136e1740e04d322c79fb6a66a86 SHA512 0b68d3462e5eac89f50cff5e64603758ab74c701ff2de88c8569dd45b7e702b5d13b26c2745615c0c355d46d13765f47e4d43e61cde735240c6f386c0090becb +DIST llvm-project-d254fa877f419e61e54709f0a6f2e891da893a60.tar.gz 228028122 BLAKE2B 3321f3b205dfcd672d52122d7ba8e4e737916e01f5041a0dc140722f64359476632e036da0e0692cd366b080a073292cfdb4963e973bf800afabc20d06a2e86b SHA512 135c4864973b682cf41953d43d977eaa219a4a898fceb4b4a8cacbbc6a5dd271d26010b1db6c6c90e761bf3495036f3e7528ab259d48c9c4dc4a064332c0326f diff --git a/dev-python/lit/lit-21.0.0_pre20250225.ebuild b/dev-python/lit/lit-21.0.0_pre20250225.ebuild new file mode 100644 index 000000000000..4230fa63b2a4 --- /dev/null +++ b/dev-python/lit/lit-21.0.0_pre20250225.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2025 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 llvm.org + +DESCRIPTION="A stand-alone install of the LLVM suite testing tool" +HOMEPAGE="https://llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +# Tests require 'FileCheck' and 'not' utilities (from llvm) +BDEPEND=" + test? ( + dev-python/psutil[${PYTHON_USEDEP}] + llvm-core/llvm + ) +" + +LLVM_COMPONENTS=( llvm/utils/lit ) +llvm.org_set_globals + +# TODO: move the manpage generation here (from llvm-core/llvm) + +src_prepare() { + # flaky test + # https://github.com/llvm/llvm-project/issues/72022 + rm tests/progress-bar.py || die + + cd "${WORKDIR}" || die + distutils-r1_src_prepare +} + +python_test() { + local -x LIT_PRESERVES_TMP=1 + local litflags=$(get_lit_flags) + ./lit.py ${litflags//;/ } tests || die +} diff --git a/dev-python/markdown-exec/Manifest b/dev-python/markdown-exec/Manifest index 15ebbca2a620..8ef725359da9 100644 --- a/dev-python/markdown-exec/Manifest +++ b/dev-python/markdown-exec/Manifest @@ -1,4 +1 @@ DIST markdown_exec-1.10.0.tar.gz 76830 BLAKE2B 7c8194decf4d44cabecfddee27d74e8a513b227533b9eb1c5c2bdc100ca9f64e2ef3641386839167ac937d62c9ec13f511fd5cd76bca8050dd19bb74b4e399ea SHA512 996d4ad9ea06943d34ced435f2bd3b22c0b6a4453d5a59443966ad8caa767f1a3eea1c7c6f1f01056b4d2019550e202a2e11cd8e148a149c5ca35f9f87c45990 -DIST markdown_exec-1.9.1.tar.gz 24932 BLAKE2B 1b9b9904f8f6d7cc58f643bb537f2b4b3fa07f86c809590284eda5a714a998238910ae1356d58c7aab8e472ebcbc0511965ac3951b17a568128eafd9a3d0c852 SHA512 8c89cbea29c821a8110fed1825cec215a772753fd2bef96c26beb91dd8af34c905eedd4101fbf99b427cf9b9b2b4de08d69769dba66ad9b16bc72f16bec92a48 -DIST markdown_exec-1.9.2.tar.gz 25316 BLAKE2B 3f36b88f17f6c0444a60cf4846bf2358acf579a312a95d545339547aa5c1431acc265255dc60ee9cb06cc5cb9cd5b77d9c93bb9d0a6b04c7227f30aa2e013980 SHA512 d98a66ca9b3c5e1c748fafcada658623759d09038ed6a3b8b04767ee6133b90e767f5a0dc171814aa5ef9fdb7a6e7698539f3406d7e21ba5a9f50e3d709f9a39 -DIST markdown_exec-1.9.3.tar.gz 74674 BLAKE2B fc0b9a47f379aabe389b20a3b301a40d9db145234761ff5f7b1b5f2762db45e148006da6193d08463472e109a3a9215736e2ff1b78e4144076a64dacfadc968e SHA512 c4256ec4bcfa6559a169771dcdecbfe104445c237fdd85b6bd06baf5b6f9871713307303b45e1e18a15a9145f63ca952a8d2f7b082c1059d0ba6c29249acbac4 diff --git a/dev-python/markdown-exec/markdown-exec-1.10.0.ebuild b/dev-python/markdown-exec/markdown-exec-1.10.0.ebuild index 3c12d17d1059..d60ef65d9c00 100644 --- a/dev-python/markdown-exec/markdown-exec-1.10.0.ebuild +++ b/dev-python/markdown-exec/markdown-exec-1.10.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=pdm-backend -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/markdown-exec/markdown-exec-1.9.1.ebuild b/dev-python/markdown-exec/markdown-exec-1.9.1.ebuild deleted file mode 100644 index 870be881ba19..000000000000 --- a/dev-python/markdown-exec/markdown-exec-1.9.1.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pdm-backend -# py3.13: https://github.com/pawamoy/markdown-exec/issues/58 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Utilities to execute code blocks in Markdown files" -HOMEPAGE=" - https://pawamoy.github.io/markdown-exec/ - https://pypi.org/project/markdown-exec/ -" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" -IUSE="ansi" - -RDEPEND=" - >=dev-python/pymdown-extensions-9[${PYTHON_USEDEP}] - ansi? ( - dev-python/pygments-ansi-color[${PYTHON_USEDEP}] - ) -" -BDEPEND=" - test? ( - dev-python/markupsafe[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest diff --git a/dev-python/markdown-exec/markdown-exec-1.9.2.ebuild b/dev-python/markdown-exec/markdown-exec-1.9.2.ebuild deleted file mode 100644 index 870be881ba19..000000000000 --- a/dev-python/markdown-exec/markdown-exec-1.9.2.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pdm-backend -# py3.13: https://github.com/pawamoy/markdown-exec/issues/58 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Utilities to execute code blocks in Markdown files" -HOMEPAGE=" - https://pawamoy.github.io/markdown-exec/ - https://pypi.org/project/markdown-exec/ -" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" -IUSE="ansi" - -RDEPEND=" - >=dev-python/pymdown-extensions-9[${PYTHON_USEDEP}] - ansi? ( - dev-python/pygments-ansi-color[${PYTHON_USEDEP}] - ) -" -BDEPEND=" - test? ( - dev-python/markupsafe[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest diff --git a/dev-python/markdown-exec/markdown-exec-1.9.3.ebuild b/dev-python/markdown-exec/markdown-exec-1.9.3.ebuild deleted file mode 100644 index 3c12d17d1059..000000000000 --- a/dev-python/markdown-exec/markdown-exec-1.9.3.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Utilities to execute code blocks in Markdown files" -HOMEPAGE=" - https://pawamoy.github.io/markdown-exec/ - https://pypi.org/project/markdown-exec/ -" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" -IUSE="ansi" - -RDEPEND=" - >=dev-python/pymdown-extensions-9[${PYTHON_USEDEP}] - ansi? ( - dev-python/pygments-ansi-color[${PYTHON_USEDEP}] - ) -" -BDEPEND=" - test? ( - dev-python/markupsafe[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest diff --git a/dev-python/markdown/markdown-3.7.ebuild b/dev-python/markdown/markdown-3.7.ebuild index 65c573b3ea23..587e55900732 100644 --- a/dev-python/markdown/markdown-3.7.ebuild +++ b/dev-python/markdown/markdown-3.7.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/matplotlib-venn/Manifest b/dev-python/matplotlib-venn/Manifest index 6ef53f6f56f6..7d302ef900bd 100644 --- a/dev-python/matplotlib-venn/Manifest +++ b/dev-python/matplotlib-venn/Manifest @@ -1 +1,2 @@ DIST matplotlib-venn-1.1.1.gh.tar.gz 978290 BLAKE2B 21f0541df95428557e60eaca95e7e2749825bb36c69855b7adca54141af7c343073d62f99fe3b45ae17dcd514cd91813b188e426f61e415f9a353ce214588b71 SHA512 b01fe31122d8a4f6914aaa24ad09cc571536952f1d22231c7c59a760c2baafce7d6e7bc91de8bfc1efd5d2aca18371f6b834908382407fdb5add806a137d8e16 +DIST matplotlib-venn-1.1.2.gh.tar.gz 978372 BLAKE2B 995747f378a0295011515b2448b2512e41b24ea9b4826b9f93c2089543bbf60859fa593a72c5a02f332264b97f166967ff7b46b042e8887a56257441831cdb20 SHA512 3641f313a8355cf9d0e7862689547593c7f4387a63ed8e85fdb7e3937d4ef61bfcab6b9ff2319d7864303f2cb12b9e531e7103f5d70cd32f2c66c10d538a81a7 diff --git a/dev-python/matplotlib-venn/matplotlib-venn-1.1.2.ebuild b/dev-python/matplotlib-venn/matplotlib-venn-1.1.2.ebuild new file mode 100644 index 000000000000..02dc4f8fd41a --- /dev/null +++ b/dev-python/matplotlib-venn/matplotlib-venn-1.1.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 2025 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 + +DESCRIPTION="Plot area-proportional two- and three-way Venn diagrams in matplotlib" +HOMEPAGE=" + https://github.com/konstantint/matplotlib-venn/ + https://pypi.org/project/matplotlib-venn/ +" +SRC_URI=" + https://github.com/konstantint/matplotlib-venn/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/shapely[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # TODO: some minor number mismatch + matplotlib_venn/layout/venn3/cost_based.py::matplotlib_venn.layout.venn3.cost_based.LayoutAlgorithm + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/mergedeep/mergedeep-1.3.4-r1.ebuild b/dev-python/mergedeep/mergedeep-1.3.4-r1.ebuild index edd072a7ff8a..2366d220390e 100644 --- a/dev-python/mergedeep/mergedeep-1.3.4-r1.ebuild +++ b/dev-python/mergedeep/mergedeep-1.3.4-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/mkdocs-autorefs/Manifest b/dev-python/mkdocs-autorefs/Manifest index e2f995e24b6b..580894e871be 100644 --- a/dev-python/mkdocs-autorefs/Manifest +++ b/dev-python/mkdocs-autorefs/Manifest @@ -1,2 +1,2 @@ -DIST mkdocs_autorefs-1.3.0.tar.gz 42597 BLAKE2B a07555f714578b2a88d98ed4201542a23fd0ed4f5b686cefe9571cf876e02c5f949fb92d2f02ac6e13d4d234afcc648bc52078b4ad18c2f372b1a5f9d719cf68 SHA512 a140f4ce6fa2e2b5a6174b7ad808ee300819d5edf4e8b421faa09de8bfaaaa450d04aa9c9bc3d1aeea4cf27fccdfdb04a504f4101e7e1200c6a62111e036912d DIST mkdocs_autorefs-1.3.1.tar.gz 2056416 BLAKE2B d66e83103b7380c5f3d3496e418b8f42c85c1f4d02f65f0c2bb0a8808cdf3ead3470fa627175c82fb097de3cd059c27be082e5fe9ae7e808843c1622d0f894e5 SHA512 a21b98d8ce4b5e5157bf8cd5416ac19ebcca5234342b3d0b9d3983a95de3e14c347670654cccc81d8971d06bdebafb3536aeef1ea156d3c73235dc917d841b20 +DIST mkdocs_autorefs-1.4.0.tar.gz 3128903 BLAKE2B c2d0140a31226db023ec46919c77ce9fd92c628f99d92a182db6dd849d3ffdb07b82aafe4c12e222a423f23c35eb64bfe81f1af8756b61fc6be91ec877e45562 SHA512 95cc6360f382bb7c188dd9f8a6163ea4b6d3dbe022bf7648cfbfafb522bc5f7eada1a4ec50d99b098344747ba3e9e0ca590df70e68d004a00b9849c28a6a73da diff --git a/dev-python/mkdocs-autorefs/mkdocs-autorefs-1.3.0.ebuild b/dev-python/mkdocs-autorefs/mkdocs-autorefs-1.4.0.ebuild index e1ecee85c6e0..cb52c10b256c 100644 --- a/dev-python/mkdocs-autorefs/mkdocs-autorefs-1.3.0.ebuild +++ b/dev-python/mkdocs-autorefs/mkdocs-autorefs-1.4.0.ebuild @@ -26,8 +26,9 @@ RDEPEND=" " BDEPEND=" test? ( + dev-python/griffe[${PYTHON_USEDEP}] >=dev-python/pygments-2.16[${PYTHON_USEDEP}] - >=dev-python/pymdown-extensions-10.0[${PYTHON_USEDEP}] + >=dev-python/pymdown-extensions-10.14[${PYTHON_USEDEP}] ) " diff --git a/dev-python/mkdocs-get-deps/mkdocs-get-deps-0.2.0.ebuild b/dev-python/mkdocs-get-deps/mkdocs-get-deps-0.2.0.ebuild index 6f4d095267ea..9197c4ae10af 100644 --- a/dev-python/mkdocs-get-deps/mkdocs-get-deps-0.2.0.ebuild +++ b/dev-python/mkdocs-get-deps/mkdocs-get-deps-0.2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/mkdocs-material-extensions/mkdocs-material-extensions-1.3.1.ebuild b/dev-python/mkdocs-material-extensions/mkdocs-material-extensions-1.3.1.ebuild index 9c07e78bbbe2..16aeeaf22f19 100644 --- a/dev-python/mkdocs-material-extensions/mkdocs-material-extensions-1.3.1.ebuild +++ b/dev-python/mkdocs-material-extensions/mkdocs-material-extensions-1.3.1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 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} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) inherit distutils-r1 diff --git a/dev-python/mkdocs-material/mkdocs-material-9.6.5.ebuild b/dev-python/mkdocs-material/mkdocs-material-9.6.5.ebuild index 09a2daf59272..432c9643e4eb 100644 --- a/dev-python/mkdocs-material/mkdocs-material-9.6.5.ebuild +++ b/dev-python/mkdocs-material/mkdocs-material-9.6.5.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 ) DOCS_BUILDER="mkdocs" DOCS_DEPEND=" @@ -41,7 +41,9 @@ RDEPEND=" >=dev-python/pygments-2.16[${PYTHON_USEDEP}] >=dev-python/pymdown-extensions-10.2[${PYTHON_USEDEP}] >=dev-python/readtime-2.0[${PYTHON_USEDEP}] - >=dev-python/regex-2022.4.24[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/regex-2022.4.24[${PYTHON_USEDEP}] + ' 'python*') >=dev-python/requests-2.26[${PYTHON_USEDEP}] social? ( >=dev-python/pillow-10.2[${PYTHON_USEDEP}] diff --git a/dev-python/mkdocs/mkdocs-1.6.1.ebuild b/dev-python/mkdocs/mkdocs-1.6.1.ebuild index 3641cf46960f..98e4c02584d8 100644 --- a/dev-python/mkdocs/mkdocs-1.6.1.ebuild +++ b/dev-python/mkdocs/mkdocs-1.6.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/mkdocstrings-python/Manifest b/dev-python/mkdocstrings-python/Manifest index 59733bd33446..13fc73859943 100644 --- a/dev-python/mkdocstrings-python/Manifest +++ b/dev-python/mkdocstrings-python/Manifest @@ -1,6 +1,2 @@ -DIST mkdocstrings_python-1.14.6.tar.gz 422060 BLAKE2B d5bfae63338b282ec88c70abce944ab6a866ac0fbf444de741f2dd84be6b6c5f37c22cca6fcf187dba773378f6fd518150c0e56a1dfcf0b6852706c7a9729323 SHA512 cfd8612827c7fd1329d7692c666f1e9925e71e2be0ab221b2c5f5f92bc7e4e3f1e2c0dc244a9162df36b8bdd9f8e8d0ddd0bb70fa53bf0c3f294e72a18faec26 -DIST mkdocstrings_python-1.14.7.tar.gz 422162 BLAKE2B 7e1468baf7e53a71da406a62c3903dc937c3036321ec27448219ce6f338bf5a164c273694da229282d1c32655b3ac35b679f7c9bc3d168f97859f1bbeffa986c SHA512 e5e8db2c7c155a005e34732aa42574b5c62b229077193e6d02106c81d672398f8e3cd1cdb80532f545bec23db0390e8c920a1b2dcd2dec404deea35853d54829 -DIST mkdocstrings_python-1.15.0.tar.gz 422613 BLAKE2B f1b73e627f9bc4b49635d8681046b6b2ec43fd8b3213ec42f9d88a90a4c49cfe414bb44352dfe2f8fc7b77a0189dfe3f0b6120730d31d42c5d5d1a3813fff61d SHA512 0b007404d6d9e2d81946908e3e91451c1fa51e73ce5eb056ffb8d61e9163cbf9fb23bc16e45f409d9a16053ebc76a9403f46feb8ea5f068740bd7fa239bc8607 -DIST mkdocstrings_python-1.15.1.tar.gz 422809 BLAKE2B cfb2ec447e949a4fa48d712107ca36f9af1cc53797f5486cd9bf8cac786d14057b8b0e0782cefb9e517d04cbddb656c73d46346888d7bb16cd8079699f47cd3c SHA512 801832c742f2a10475f0224748df88f644bb7b0b3bcf5486528485bac29d6a6e2a4ad75740bf30b986a25d58431b09cda64522fb14549100d1be0556f06a5ca5 -DIST mkdocstrings_python-1.16.0.tar.gz 423102 BLAKE2B b6a0ffb4e96d3b5e1a4405726a7c29b85557cbb981d5321c5f507451b36a711eea80de1b1a1b7a4a7ad8c20b0a5a2ae36ad77851fcc09e09086d238075c2a912 SHA512 a89d2aef580ad50cd1194f7ff9b05fa61d539273a815023c14378761f81b3a4aac1dd5b02bb47ea2050e5442dd350b6098fe237905b1f8d8ea9e27aa3fcd821a DIST mkdocstrings_python-1.16.1.tar.gz 423399 BLAKE2B b7bbf5ada8de1a70896fbd760a053712f16e55442028195579efb71b3cc9d7f17be10349cff146bf02991a9156fef62b853e4c2a4af2c3e551bfea8a44451dae SHA512 e4594e1051eeea1b9ada4c8919787a36145a5e6d7d2d7951c46c699c82ff7c6899efa8b94be9dc3d9476b6031e5ae6937b6517b00085bde04d837b4b2bbf5552 +DIST mkdocstrings_python-1.16.2.tar.gz 423492 BLAKE2B 2f5c7d8c3f5b6b1256b6f15334bc131cf0281883bf8072400ab195d724eddf2c8367c081abe571e0f4fd889c97181effc1764bd1e701da00fe44593007c12919 SHA512 52c78484139df79a1a9d0924a03c08e6902e91ebb3dc1db129c3bf372d670578206d00335d0a3ef34af0c33cebe592f829023ba645102839da76be07c72be739 diff --git a/dev-python/mkdocstrings-python/mkdocstrings-python-1.14.6.ebuild b/dev-python/mkdocstrings-python/mkdocstrings-python-1.14.6.ebuild deleted file mode 100644 index e898c0c421e0..000000000000 --- a/dev-python/mkdocstrings-python/mkdocstrings-python-1.14.6.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Python handler for dev-python/mkdocstrings" -HOMEPAGE=" - https://mkdocstrings.github.io/python/ - https://github.com/mkdocstrings/python/ - https://pypi.org/project/mkdocstrings-python/ -" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" - -RDEPEND=" - >=dev-python/griffe-0.49[${PYTHON_USEDEP}] - >=dev-python/mkdocstrings-0.28[${PYTHON_USEDEP}] - >=dev-python/mkdocs-autorefs-1.2[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/typing-extensions-4.0[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - test? ( - >=dev-python/beautifulsoup4-4.12.3[${PYTHON_USEDEP}] - >=dev-python/inline-snapshot-0.18[${PYTHON_USEDEP}] - dev-python/mkdocs-material[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -export PDM_BUILD_SCM_VERSION=${PV} - -python_test() { - local EPYTEST_DESELECT=( - # "None" meaning particular formatter not installed - "tests/test_rendering.py::test_format_code[None-print('Hello')]" - "tests/test_rendering.py::test_format_code[None-aaaaa(bbbbb, ccccc=1) + ddddd.eeeee[ffff] or {ggggg: hhhhh, iiiii: jjjjj}]" - ) - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p inline_snapshot -} diff --git a/dev-python/mkdocstrings-python/mkdocstrings-python-1.14.7.ebuild b/dev-python/mkdocstrings-python/mkdocstrings-python-1.14.7.ebuild deleted file mode 100644 index e898c0c421e0..000000000000 --- a/dev-python/mkdocstrings-python/mkdocstrings-python-1.14.7.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Python handler for dev-python/mkdocstrings" -HOMEPAGE=" - https://mkdocstrings.github.io/python/ - https://github.com/mkdocstrings/python/ - https://pypi.org/project/mkdocstrings-python/ -" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" - -RDEPEND=" - >=dev-python/griffe-0.49[${PYTHON_USEDEP}] - >=dev-python/mkdocstrings-0.28[${PYTHON_USEDEP}] - >=dev-python/mkdocs-autorefs-1.2[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/typing-extensions-4.0[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - test? ( - >=dev-python/beautifulsoup4-4.12.3[${PYTHON_USEDEP}] - >=dev-python/inline-snapshot-0.18[${PYTHON_USEDEP}] - dev-python/mkdocs-material[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -export PDM_BUILD_SCM_VERSION=${PV} - -python_test() { - local EPYTEST_DESELECT=( - # "None" meaning particular formatter not installed - "tests/test_rendering.py::test_format_code[None-print('Hello')]" - "tests/test_rendering.py::test_format_code[None-aaaaa(bbbbb, ccccc=1) + ddddd.eeeee[ffff] or {ggggg: hhhhh, iiiii: jjjjj}]" - ) - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p inline_snapshot -} diff --git a/dev-python/mkdocstrings-python/mkdocstrings-python-1.15.1.ebuild b/dev-python/mkdocstrings-python/mkdocstrings-python-1.15.1.ebuild deleted file mode 100644 index e898c0c421e0..000000000000 --- a/dev-python/mkdocstrings-python/mkdocstrings-python-1.15.1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Python handler for dev-python/mkdocstrings" -HOMEPAGE=" - https://mkdocstrings.github.io/python/ - https://github.com/mkdocstrings/python/ - https://pypi.org/project/mkdocstrings-python/ -" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" - -RDEPEND=" - >=dev-python/griffe-0.49[${PYTHON_USEDEP}] - >=dev-python/mkdocstrings-0.28[${PYTHON_USEDEP}] - >=dev-python/mkdocs-autorefs-1.2[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/typing-extensions-4.0[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - test? ( - >=dev-python/beautifulsoup4-4.12.3[${PYTHON_USEDEP}] - >=dev-python/inline-snapshot-0.18[${PYTHON_USEDEP}] - dev-python/mkdocs-material[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -export PDM_BUILD_SCM_VERSION=${PV} - -python_test() { - local EPYTEST_DESELECT=( - # "None" meaning particular formatter not installed - "tests/test_rendering.py::test_format_code[None-print('Hello')]" - "tests/test_rendering.py::test_format_code[None-aaaaa(bbbbb, ccccc=1) + ddddd.eeeee[ffff] or {ggggg: hhhhh, iiiii: jjjjj}]" - ) - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p inline_snapshot -} diff --git a/dev-python/mkdocstrings-python/mkdocstrings-python-1.16.0.ebuild b/dev-python/mkdocstrings-python/mkdocstrings-python-1.16.0.ebuild deleted file mode 100644 index e898c0c421e0..000000000000 --- a/dev-python/mkdocstrings-python/mkdocstrings-python-1.16.0.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Python handler for dev-python/mkdocstrings" -HOMEPAGE=" - https://mkdocstrings.github.io/python/ - https://github.com/mkdocstrings/python/ - https://pypi.org/project/mkdocstrings-python/ -" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" - -RDEPEND=" - >=dev-python/griffe-0.49[${PYTHON_USEDEP}] - >=dev-python/mkdocstrings-0.28[${PYTHON_USEDEP}] - >=dev-python/mkdocs-autorefs-1.2[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/typing-extensions-4.0[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - test? ( - >=dev-python/beautifulsoup4-4.12.3[${PYTHON_USEDEP}] - >=dev-python/inline-snapshot-0.18[${PYTHON_USEDEP}] - dev-python/mkdocs-material[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -export PDM_BUILD_SCM_VERSION=${PV} - -python_test() { - local EPYTEST_DESELECT=( - # "None" meaning particular formatter not installed - "tests/test_rendering.py::test_format_code[None-print('Hello')]" - "tests/test_rendering.py::test_format_code[None-aaaaa(bbbbb, ccccc=1) + ddddd.eeeee[ffff] or {ggggg: hhhhh, iiiii: jjjjj}]" - ) - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p inline_snapshot -} diff --git a/dev-python/mkdocstrings-python/mkdocstrings-python-1.15.0.ebuild b/dev-python/mkdocstrings-python/mkdocstrings-python-1.16.2.ebuild index e898c0c421e0..c42dd5127852 100644 --- a/dev-python/mkdocstrings-python/mkdocstrings-python-1.15.0.ebuild +++ b/dev-python/mkdocstrings-python/mkdocstrings-python-1.16.2.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) inherit distutils-r1 pypi @@ -21,8 +21,8 @@ KEYWORDS="~amd64 ~arm64 ~riscv" RDEPEND=" >=dev-python/griffe-0.49[${PYTHON_USEDEP}] - >=dev-python/mkdocstrings-0.28[${PYTHON_USEDEP}] - >=dev-python/mkdocs-autorefs-1.2[${PYTHON_USEDEP}] + >=dev-python/mkdocstrings-0.28.2[${PYTHON_USEDEP}] + >=dev-python/mkdocs-autorefs-1.4[${PYTHON_USEDEP}] $(python_gen_cond_dep ' >=dev-python/typing-extensions-4.0[${PYTHON_USEDEP}] ' 3.10) diff --git a/dev-python/mkdocstrings/Manifest b/dev-python/mkdocstrings/Manifest index f757130a6ee0..e3e14bfc68a7 100644 --- a/dev-python/mkdocstrings/Manifest +++ b/dev-python/mkdocstrings/Manifest @@ -1,2 +1,2 @@ -DIST mkdocstrings-0.28.0.tar.gz 3392797 BLAKE2B 9484110f80fa85602f64acd04941db1cebf2ff39d4385559f340d3837347fb51f596b7444e1d5efa26018cf8cfba200892b938c298d76ac169beb67c520b66a4 SHA512 a1dece5b99b4f82faa8b1c02a764252df7102c4e72489cff009388cb90833339c9170517373df7e449df311a5ab7dc4d19821e15a99f295065222db0809379ce DIST mkdocstrings-0.28.1.tar.gz 4551690 BLAKE2B ae30723c0f7a55e4d4950e1b07b95bbfc7c1ad0a6d9a93c1c0537b8f536fff7a928c8ae1c858c49e434050d2f9357aeb333e10a78e1f51e06dca371aa7066e9c SHA512 11b8190d744ec7926057f100010d926b60a013e6919aba1c89e9eacb33ee31734b1f9cf1b676631b1dc490a66cc063ff7a6cb1810d2ce0cadb2e9e02ccf16d5a +DIST mkdocstrings-0.28.2.tar.gz 5691916 BLAKE2B c1593205307285760f1d58db99e022b6ba43db1ab69ee024b109e98918407c1f256fedcddbab7778540cacb94764cdd7d5c042f39651554635fc68aa5727ebfc SHA512 946056f9ad179b58792756caf18f5881c2d24d05fc3adb24efe7fb8af7b44d68c648002098d4ff8b766ee6c9099bd918319df325fc5cb9854d47278c571f52ff diff --git a/dev-python/mkdocstrings/mkdocstrings-0.28.0.ebuild b/dev-python/mkdocstrings/mkdocstrings-0.28.2.ebuild index d012f2909764..0173819c6eaf 100644 --- a/dev-python/mkdocstrings/mkdocstrings-0.28.0.ebuild +++ b/dev-python/mkdocstrings/mkdocstrings-0.28.2.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) inherit distutils-r1 pypi @@ -24,7 +24,7 @@ RDEPEND=" >=dev-python/markdown-3.6[${PYTHON_USEDEP}] >=dev-python/markupsafe-1.1[${PYTHON_USEDEP}] >=dev-python/mkdocs-1.5[${PYTHON_USEDEP}] - >=dev-python/mkdocs-autorefs-1.3[${PYTHON_USEDEP}] + >=dev-python/mkdocs-autorefs-1.4[${PYTHON_USEDEP}] >=dev-python/mkdocs-get-deps-0.2[${PYTHON_USEDEP}] >=dev-python/pymdown-extensions-6.3[${PYTHON_USEDEP}] " @@ -32,7 +32,7 @@ BDEPEND=" test? ( dev-python/markdown-exec[${PYTHON_USEDEP}] dev-python/mkdocs-material[${PYTHON_USEDEP}] - dev-python/mkdocstrings-python[${PYTHON_USEDEP}] + >=dev-python/mkdocstrings-python-1.14.1[${PYTHON_USEDEP}] dev-python/sphinx[${PYTHON_USEDEP}] ) " diff --git a/dev-python/paginate/paginate-0.5.7.ebuild b/dev-python/paginate/paginate-0.5.7.ebuild index e791bf02b837..3e09bf42c8ba 100644 --- a/dev-python/paginate/paginate-0.5.7.ebuild +++ b/dev-python/paginate/paginate-0.5.7.ebuild @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Gentoo Authors +# Copyright 2023-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/psycopg/psycopg-3.2.4.ebuild b/dev-python/psycopg/psycopg-3.2.4.ebuild index 92df4256b81e..24cf3e2969b7 100644 --- a/dev-python/psycopg/psycopg-3.2.4.ebuild +++ b/dev-python/psycopg/psycopg-3.2.4.ebuild @@ -7,7 +7,7 @@ DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) -inherit distutils-r1 flag-o-matic +inherit distutils-r1 DESCRIPTION="PostgreSQL database adapter for Python" HOMEPAGE=" @@ -54,14 +54,6 @@ BDEPEND=" distutils_enable_tests pytest python_compile() { - # -Werror=strict-aliasing - # https://bugs.gentoo.org/935401 - # https://github.com/psycopg/psycopg/issues/867 - # - # Do not trust with LTO either. - append-flags -fno-strict-aliasing - filter-lto - # Python code + ctypes backend cd psycopg || die distutils-r1_python_compile diff --git a/dev-python/psycopg/psycopg-3.2.5.ebuild b/dev-python/psycopg/psycopg-3.2.5.ebuild index 6502f9a622b2..0f3d4be43735 100644 --- a/dev-python/psycopg/psycopg-3.2.5.ebuild +++ b/dev-python/psycopg/psycopg-3.2.5.ebuild @@ -7,7 +7,7 @@ DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) -inherit distutils-r1 flag-o-matic +inherit distutils-r1 DESCRIPTION="PostgreSQL database adapter for Python" HOMEPAGE=" @@ -54,14 +54,6 @@ BDEPEND=" distutils_enable_tests pytest python_compile() { - # -Werror=strict-aliasing - # https://bugs.gentoo.org/935401 - # https://github.com/psycopg/psycopg/issues/867 - # - # Do not trust with LTO either. - append-flags -fno-strict-aliasing - filter-lto - # Python code + ctypes backend cd psycopg || die distutils-r1_python_compile diff --git a/dev-python/pyglet/Manifest b/dev-python/pyglet/Manifest index c817c67c0384..37473ee595ee 100644 --- a/dev-python/pyglet/Manifest +++ b/dev-python/pyglet/Manifest @@ -1 +1,2 @@ DIST pyglet-2.1.2.gh.tar.gz 6535497 BLAKE2B 96195c8bf42d09bcf0ead5e1541ad93af56d8b5d63d88c472b4c5e32f587b40f158b3e84028eb8449ba32500a9585d6dc3ebf85054909b4df7d9ad358f264237 SHA512 d8c3d64ba9fa8d34a5dc52fe6010af2eea6effd8f9d1297c879979c256634317e391035a24e577b903f1be4635513446ece156277010e42b417796434c6e35de +DIST pyglet-2.1.3.gh.tar.gz 6534900 BLAKE2B edf8715213682b184050f1ab2d51913e787acf03e6911b68d7076afb9427ec6d60efbc28145f4e5b7e228d00d0aa5daa5ebb5a8c5a118f2006ab447360e8440f SHA512 fbdc45888ed0cbb380115365b96db82c57ffbfc8f03c03265a276992e154cc5ec81c752e6fc8940003d96c489009eefe0976e3f87129fea1605ab6db7b4fe1bf diff --git a/dev-python/pyglet/pyglet-2.1.3.ebuild b/dev-python/pyglet/pyglet-2.1.3.ebuild new file mode 100644 index 000000000000..21d1ab26d6c5 --- /dev/null +++ b/dev-python/pyglet/pyglet-2.1.3.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 virtualx xdg-utils + +MY_P=${P/_/.} +DESCRIPTION="Cross-platform windowing and multimedia library for Python" +HOMEPAGE=" + https://pyglet.org/ + https://github.com/pyglet/pyglet/ + https://pypi.org/project/pyglet/ +" +SRC_URI=" + https://github.com/pyglet/pyglet/archive/v${PV/_/.}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="examples image +sound" + +RDEPEND=" + virtual/glu + virtual/opengl + image? ( + || ( + dev-python/pillow[${PYTHON_USEDEP}] + x11-libs/gtk+:2 + ) + ) + sound? ( + || ( + media-libs/libpulse + media-libs/openal + ) + ) +" +# ffmpeg? ( media-libs/avbin-bin ) +BDEPEND=" + test? ( + dev-python/pillow[${PYTHON_USEDEP}] + media-libs/fontconfig + ) +" + +distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + xdg_environment_reset + + local EPYTEST_DESELECT=( + # lacking device/server permissions + tests/unit/media/test_listener.py::test_openal_listener + tests/unit/media/test_listener.py::test_pulse_listener + # fragile to system load + tests/unit/media/test_player.py::PlayerTestCase::test_pause_resume + tests/unit/test_clock_freq.py::test_elapsed_time_between_tick + ) + + # Specify path to avoid running interactive tests + # We could add in integration tests, but they're slow + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + nonfatal epytest tests/unit || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +} diff --git a/dev-python/pygments-ansi-color/pygments-ansi-color-0.3.0.ebuild b/dev-python/pygments-ansi-color/pygments-ansi-color-0.3.0.ebuild index dbb897f86559..2222ca25f44f 100644 --- a/dev-python/pygments-ansi-color/pygments-ansi-color-0.3.0.ebuild +++ b/dev-python/pygments-ansi-color/pygments-ansi-color-0.3.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 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} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) inherit distutils-r1 diff --git a/dev-python/pytest-httpserver/Manifest b/dev-python/pytest-httpserver/Manifest index d5c22f5de3d7..f6413c561cff 100644 --- a/dev-python/pytest-httpserver/Manifest +++ b/dev-python/pytest-httpserver/Manifest @@ -1 +1,2 @@ DIST pytest_httpserver-1.1.1.tar.gz 68190 BLAKE2B 80fec2aaa84f5625e6a67400153efc002f4586e0878745980fbb2f2c6bd82f5d6230284483a8ce7e501f51a5bd732dfd777d96183cfb83c793c347761e5eddb6 SHA512 3d212cb230ee5be5b1fb450944a9fa56396b692c8fd8a63fca71045640865657fd110a657ec0eb2e24c4d2fb43bfc5997fd056a107b7a6ce573dad4e914b7004 +DIST pytest_httpserver-1.1.2.tar.gz 68602 BLAKE2B e828c4beb2d3b100d2d5e30ad9947a1376be6372d4b9663e9d7d0885aab133baea66d2be9d4549a0c738973e9e809674ebfa6544e059da8772a69428f07cac88 SHA512 18c02bec035c6ac01830c0450b0729f1cc6fe27741cb56c792094887183dc088328465bce8bf118661803b1f27154cc85d847abbecac67e41f8d11e44caf4a5b diff --git a/dev-python/pytest-httpserver/pytest-httpserver-1.1.2.ebuild b/dev-python/pytest-httpserver/pytest-httpserver-1.1.2.ebuild new file mode 100644 index 000000000000..89f444d8aa62 --- /dev/null +++ b/dev-python/pytest-httpserver/pytest-httpserver-1.1.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 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 pypi + +DESCRIPTION="HTTP server for pytest to test HTTP clients" +HOMEPAGE=" + https://github.com/csernazs/pytest-httpserver/ + https://pypi.org/project/pytest_httpserver/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/werkzeug[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/requests[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_IGNORE=( + # tests from building release artifacts + tests/test_release.py + ) + + epytest -p no:localserver +} diff --git a/dev-python/python-socketio/Manifest b/dev-python/python-socketio/Manifest index 6c2371a25a4b..9ff5c0a9a8ad 100644 --- a/dev-python/python-socketio/Manifest +++ b/dev-python/python-socketio/Manifest @@ -1,2 +1,2 @@ -DIST python_socketio-5.11.3.tar.gz 117702 BLAKE2B 304747caec9933fc9b20287e049d4d964ad50efe6aeaf7cc5900892252d55ef20aebc92154f811f99304e775b8f90dc0e95726dc85cb6afc246969a1d37cbef2 SHA512 136e2e49eacb1b8ab2726487fd53a486fdb12f2803112b69017128dc3ecb6d1cbf9360da8e6b30fe1967a8d8a0c0d2fe0d305428a9e5b9bd3a0dc660406ae799 DIST python_socketio-5.11.4.tar.gz 118982 BLAKE2B 577202ad731b0b25eb57617f322ae203376cdb381e42d0318e72bcc8b5eb9dcbbef20d50f5d2acb20360280160a58e0ca966b42038dde917c173e5cda3636522 SHA512 c61d8247b1f2aab5eb2094a1c6bdd9cd53da66847584c48e7f8e026f8ba1705a87a8bfb7837485c1c3929b6d40b453d297a3a109298eb4ce6d6a784f08da2e1b +DIST python_socketio-5.12.1.tar.gz 119991 BLAKE2B f4f44f1c57ef1babff1bf1d456cfc1202360bb1a89b6f0eb20c3baef54d1654b0e20258ee031cebf07680ae0499475dd9d832480ca8555c6a09d65f51a761546 SHA512 f841eecfbc251f2933326d0de7c35b4b1c2a1b771c6683db8044b3bc67c7347dc3c0930900f2caf9097386994f2e980439dfd0682ca053e16e25b58f6ae27d2b diff --git a/dev-python/python-socketio/python-socketio-5.11.3.ebuild b/dev-python/python-socketio/python-socketio-5.12.1.ebuild index c7819639716f..e7d691e79486 100644 --- a/dev-python/python-socketio/python-socketio-5.11.3.ebuild +++ b/dev-python/python-socketio/python-socketio-5.12.1.ebuild @@ -15,7 +15,6 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -#wait for dev-python/python-engineio KEYWORDS="~amd64" IUSE="client asyncio-client" diff --git a/dev-python/pytidylib/pytidylib-0.3.2-r2.ebuild b/dev-python/pytidylib/pytidylib-0.3.2-r2.ebuild index d58565f3a4c8..ba90dc877e3b 100644 --- a/dev-python/pytidylib/pytidylib-0.3.2-r2.ebuild +++ b/dev-python/pytidylib/pytidylib-0.3.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/pyyaml-env-tag/pyyaml-env-tag-0.1-r1.ebuild b/dev-python/pyyaml-env-tag/pyyaml-env-tag-0.1-r1.ebuild index 12dcfd76b408..4118c14bb08e 100644 --- a/dev-python/pyyaml-env-tag/pyyaml-env-tag-0.1-r1.ebuild +++ b/dev-python/pyyaml-env-tag/pyyaml-env-tag-0.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/readtime/readtime-3.0.0.ebuild b/dev-python/readtime/readtime-3.0.0.ebuild index d425d31ec08c..42e83a50febe 100644 --- a/dev-python/readtime/readtime-3.0.0.ebuild +++ b/dev-python/readtime/readtime-3.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Gentoo Authors +# Copyright 2023-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/sh/Manifest b/dev-python/sh/Manifest index 625986dd7f93..ac6115f715a1 100644 --- a/dev-python/sh/Manifest +++ b/dev-python/sh/Manifest @@ -1 +1,2 @@ DIST sh-2.2.1.tar.gz 345105 BLAKE2B f788bb73b9a348caf98053147dd28133abd90e68c5398d7d285034d1ef7426f89b47dd4ef107ff2c692994f73453cf00e16b23c95c2dce821829165b2a4dfcf6 SHA512 42036749a1a036be9d984e945f6f5b42360d52d3f49cc5520ea3622873cbb121caf447ad1be65498a28e3d226398dccded139d17d4763fc2b010ceb54c50d3a9 +DIST sh-2.2.2.tar.gz 345866 BLAKE2B dcbfcb257b1c1e7ea57f41aa4207b5d16506c134f503a967f99102ce44ac10b1681369325ebefbb5b64e47b26f52a65bdac3fbd5e89071f321caf72e5a2fd056 SHA512 7235aac25d5f88320f27cf0f5a87ab4e8585e3585aea21d87e927745cf8e255067d0557f865695956b947fe084b28cd5d8ce97102e77cfc9483b39a9eaae23d7 diff --git a/dev-python/sh/sh-2.2.2.ebuild b/dev-python/sh/sh-2.2.2.ebuild new file mode 100644 index 000000000000..3b7e6d863f02 --- /dev/null +++ b/dev-python/sh/sh-2.2.2.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2025 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 pypi + +DESCRIPTION="Python subprocess interface" +HOMEPAGE=" + https://github.com/amoffat/sh/ + https://pypi.org/project/sh/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +distutils_enable_tests unittest + +python_test() { + local -x SH_TESTS_RUNNING=1 + eunittest -p "*_test.py" +} diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index 0ffa2e166c74..6b080d714b8c 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -1 +1,2 @@ DIST stripe-11.5.0.tar.gz 1386601 BLAKE2B 009cd3d273a009d20ec46f7d1875212cdee92514f9735a8474eba321d92f2fed9d55ea946feecf1aaf0e456dd76c5cd651eccaad8c68838575e7655940b75e5b SHA512 2f18732d59b92b9d17f4f3b728c8457dc10457d7a2c53d80ff1f770c09f77b7d7d1627ce51f4bd37432bc41b1aab5377eecc0adaa735a6b3f45f2193e0acf4fb +DIST stripe-11.6.0.tar.gz 1390405 BLAKE2B 0a630201e0c85d1c456a02f18c1383d8367e8980485cf20ab62fbad2a6a6f0612b2199626de1e7f5cefb477e7dcc07777d2af095994de04805fcba206469f6cd SHA512 f92978feef4083cb1a662da44101b9b670d442c141921f29b93a551a36d641faccdff60499115a4b8a0c62b74498403ad3ac7f04c4b16992f3cab5ee498cb25d diff --git a/dev-python/stripe/stripe-11.6.0.ebuild b/dev-python/stripe/stripe-11.6.0.ebuild new file mode 100644 index 000000000000..865cef97ef18 --- /dev/null +++ b/dev-python/stripe/stripe-11.6.0.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2025 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="Stripe Python bindings" +HOMEPAGE=" + https://github.com/stripe/stripe-python/ + https://pypi.org/project/stripe/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="telemetry" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.5.0[${PYTHON_USEDEP}] +" +# please bump dev-util/stripe-mock dep to the latest version on every bump +BDEPEND=" + test? ( + >=dev-util/stripe-mock-0.192.0 + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/anyio[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + net-misc/curl + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md ) + +src_prepare() { + distutils-r1_src_prepare + + if ! use telemetry; then + sed -i -e '/enable_telemetry/s:True:False:' stripe/__init__.py || die + fi +} + +python_test() { + local EPYTEST_DESELECT=( + # Internet + tests/test_http_client.py::TestLiveHTTPClients::test_httpx_request_async_https + 'tests/test_integration.py::TestIntegration::test_async_raw_request_timeout[asyncio-aiohttp]' + # timing + tests/test_integration.py::TestIntegration::test_passes_client_telemetry_when_enabled + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests -p anyio -p pytest_mock +} + +src_test() { + local stripe_mock_port=12111 + local stripe_mock_max_port=12121 + local stripe_mock_logfile="${T}/stripe_mock_${EPYTHON}.log" + # Try to start stripe-mock until we find a free port + while [[ ${stripe_mock_port} -le ${stripe_mock_max_port} ]]; do + ebegin "Trying to start stripe-mock on port ${stripe_mock_port}" + stripe-mock --http-port "${stripe_mock_port}" &> "${stripe_mock_logfile}" & + local stripe_mock_pid=${!} + sleep 2 + # Did stripe-mock start? + curl --fail -u "sk_test_123:" \ + "http://127.0.0.1:${stripe_mock_port}/v1/customers" &> /dev/null + eend ${?} "Port ${stripe_mock_port} unavailable" + if [[ ${?} -eq 0 ]]; then + einfo "stripe-mock running on port ${stripe_mock_port}" + break + fi + (( stripe_mock_port++ )) + done + if [[ ${stripe_mock_port} -gt ${stripe_mock_max_port} ]]; then + eerror "Unable to start stripe-mock for tests" + die "Please see the logfile located at: ${stripe_mock_logfile}" + fi + + local -x STRIPE_MOCK_PORT=${stripe_mock_port} + distutils-r1_src_test + + # Tear down stripe-mock + kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock" +} diff --git a/dev-python/trio-websocket/Manifest b/dev-python/trio-websocket/Manifest index 687f3c0ab8d0..d513a693e69a 100644 --- a/dev-python/trio-websocket/Manifest +++ b/dev-python/trio-websocket/Manifest @@ -1,3 +1,3 @@ DIST trio-websocket-0.11.1.gh.tar.gz 45682 BLAKE2B 0f926421828476c9e23cf962df7a17a2cf4470e0898dddbc4690497521205ea11973a188ca460685739d08c34be237682b0bbbbe2c279d35e5c2fdce9b3ce020 SHA512 4b0eb6f0c012cefedb69b97e9452ba979336fbe9f154799c4c68871b8013e728374e4872a2343ab4d27fa6e25e40c3063e681e80470123d37f13f531be4f6644 -DIST trio-websocket-0.12.0.gh.tar.gz 52237 BLAKE2B 1577162f36fe7e22fe7618f5895876dff0af4ed84bc7cb34975aa291390be48df322ab79cce1c04aa9a67f1b1c8578a1988ba7b49a8208a11fde68ec0cc678a8 SHA512 f1c166a075f9b5b63ea36216b2f138fb9fbb4b60f8d23bf3dc85899d02a9f6e59439c2c7a18194fc05837b4f986206b9140f1b59cfc5061ed5667c1dad32455b DIST trio-websocket-0.12.1.gh.tar.gz 52699 BLAKE2B 01823d61a633339a89ed5295d2a82c842ff6e46ebf27cc3e99e7136e3d12458f22d2ce088f6389b10609528a3bc7685b1de440c6f188e23eec53fa40ee13226b SHA512 5b7b3f696f241e341e8a0217ddd3395c281a7e4ddc6dfcf3106333df50777af12fe63e55035e29bdfce306b16af680d0f648058d86ea7bf53d5f9adefc0beb0c +DIST trio-websocket-0.12.2.gh.tar.gz 52738 BLAKE2B d20f159c5596d6a784d08f5010fc0d08aab254005abb15d8f6829923750b53327aabf77a072b428edfdac27647d6a170e595660ebeadce1d62dd5f6bd5ff5739 SHA512 220ecac499de12c77f4004c739154380ad8dd05570e43512549d9205515f7d9dd7aa085248b1373fae0c690bd1ce7df757332abb5fe6edfbe2ee74c33834ef49 diff --git a/dev-python/trio-websocket/trio-websocket-0.12.0.ebuild b/dev-python/trio-websocket/trio-websocket-0.12.2.ebuild index 4586c359be27..4586c359be27 100644 --- a/dev-python/trio-websocket/trio-websocket-0.12.0.ebuild +++ b/dev-python/trio-websocket/trio-websocket-0.12.2.ebuild diff --git a/dev-python/types-setuptools/Manifest b/dev-python/types-setuptools/Manifest index 6ebc40fb96aa..c61627f6cb01 100644 --- a/dev-python/types-setuptools/Manifest +++ b/dev-python/types-setuptools/Manifest @@ -1,2 +1,3 @@ DIST types_setuptools-75.8.0.20250110.tar.gz 48185 BLAKE2B d6db261fe44fe7bd05670c5cd6519d4ea4825e97af0d3663ebe0538496d2816af81dff9bab3e7f51641d07b4d185e75e87d5dbda77f244019488384d5db6d56a SHA512 fe9ce44c59b237f75af5f38f6efdb63fba142673cfd9f8b765f825d2d52154dda4c3d4fe8dd0bd7a22448192a4bbb90e02cb31619c473e1e7d9f0df39959c326 DIST types_setuptools-75.8.0.20250210.tar.gz 48240 BLAKE2B 5cf73044b6f813039c2590c0928fb38f8d4f721a3e1efadf09170130c412c0ec970761ebd01b513bc119b5dd99218f5a0d286c945c7c591fe5c9fadd875ad4b2 SHA512 46ab3d6155f0c21a51854c261a20ec2ded46f3b38aceda71b96f82f90be5d2847f9469ac4348158b16f45c99218237d7743fb9383560293121732d1d93a8c8b3 +DIST types_setuptools-75.8.0.20250225.tar.gz 48448 BLAKE2B dd7ea2540369df155f466c8d0b5f8b01070c1a6824ca21eff68f6a44506fb6bd2c98d4609eb9247dd0f42cbf831c2ed093f2d2aac3e81094626e734d6bbdaa9e SHA512 12d8b695c2cf4655c7cab771eac4a0e11253ed6b1d4b6c5dc57fa23c5eb6f6e365bb674ad84cdfde7d77b2128eca28c9f4f5f9f68c6d559e63e5c2d9e445949a diff --git a/dev-python/types-setuptools/types-setuptools-75.8.0.20250225.ebuild b/dev-python/types-setuptools/types-setuptools-75.8.0.20250225.ebuild new file mode 100644 index 000000000000..4d6bfa0439df --- /dev/null +++ b/dev-python/types-setuptools/types-setuptools-75.8.0.20250225.ebuild @@ -0,0 +1,16 @@ +# Copyright 2023-2025 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 setuptools" +HOMEPAGE="https://pypi.org/project/types-setuptools/" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index efeb3f40f25a..69e66b36d6c8 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -5,3 +5,5 @@ DIST uv-0.5.29-crates.tar.xz 47545324 BLAKE2B 880a4c51619031cabd6e375373e5a1a99f DIST uv-0.5.29.gh.tar.gz 3375616 BLAKE2B bce1af0353271f8c0ecf073286ed26303953920f68fdb3e24aa7f03926dbc0a9165e93ee2b92bc554ce5eeca3c2d40413e3eee5c83c85dc85da7f737a9af5cb3 SHA512 ebcc2f4d25e800fdd864b1aa64ed0c2f7e5ab2f9e4a80e43f7ecc27d4a0fedac1062644bd954e15b39055d562ec2366c089a934fd65bb103cb50e2b5414a6d97 DIST uv-0.6.2-crates.tar.xz 54121752 BLAKE2B b1ace1c08ae63fa662d73675eb30818b63d653e4eec3e358edd9346f4e1ee284fc43fa6a18342390f3e0a4bdd4202f99591938b8aa5f604453db51e0f699f241 SHA512 8347bccbf2ea7540388a4dd35b419662213bd0be2ddb2dfd9923be2ce31b79640f18e779938c8470a7c5d4c5f94c82a66813d3b5067f9e596d41ef916f0e83e7 DIST uv-0.6.2.gh.tar.gz 3720975 BLAKE2B 04e3e9d6cc3a808f5323e7e72584c74078ee74d8636533a42e0027e2abcf98fc73fb2fb8f94dd855773bf046d381a8d928dc3fb3688bcff25df1c848bc3a1496 SHA512 ac193c0de1cd6ae48fd40e05a1c47999bc2cee9ac553d69fe676a78e970e2763c2e9a6f3a84b123701db143534d8597ef4445e255ca74788fef88332e51f092e +DIST uv-0.6.3-crates.tar.xz 54109600 BLAKE2B d73c4b4794626abd044f5f5487f59e5890545b659c9df36956e3da8d28dc7be96119706dc7fcfa693a1d3a023691ea4997e9be6b993fdce64044995f20d9c4ef SHA512 5476c855b8a3c68b2572c837f1841e8563373b133d226117f1dad06599a237b2d34bbe95d0f27d027952ecde26977964027e7d4af25ff29ff28b8afe2bb3e522 +DIST uv-0.6.3.gh.tar.gz 3759959 BLAKE2B de5309ab9093193bf1e845089a96408dabfb1af26bc634ac6b5f00aca9a94a709d3a36577642cef8a99a6e38c7ed81df45cf9e803f2508cef9c3efda28e56ecd SHA512 a168528a5af666f2d69e2f8606b8d68e8009dee5b604af83bf9273192e9c07778078a0e8e79f14432e851b62a1af72759a06b85a891ed93f5369daffa01c4807 diff --git a/dev-python/uv/uv-0.6.3.ebuild b/dev-python/uv/uv-0.6.3.ebuild new file mode 100644 index 000000000000..ea31a134e1f8 --- /dev/null +++ b/dev-python/uv/uv-0.6.3.ebuild @@ -0,0 +1,170 @@ +# Copyright 2024-2025 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;b70cf707aa43f21b32f3a61b8a0889b15032d5c4;pubgrub-%commit%' + [tl]='https://github.com/astral-sh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%' + [version-ranges]='https://github.com/astral-sh/pubgrub;b70cf707aa43f21b32f3a61b8a0889b15032d5c4;pubgrub-%commit%/version-ranges' +) + +RUST_MIN_VER="1.83.0" + +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://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/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 +} |
