diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-11-28 19:19:22 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-11-28 19:19:22 +0000 |
| commit | 080643952b44a6191b2c82580312eb2c5b886da6 (patch) | |
| tree | 49393d88bd7d2cee72372356be7816722d3cdf07 /dev-python | |
| parent | 7606a5827d7daf24efdab80c9c79f5beee92853a (diff) | |
| download | baldeagleos-repo-080643952b44a6191b2c82580312eb2c5b886da6.tar.gz baldeagleos-repo-080643952b44a6191b2c82580312eb2c5b886da6.tar.xz baldeagleos-repo-080643952b44a6191b2c82580312eb2c5b886da6.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
52 files changed, 1011 insertions, 325 deletions
diff --git a/dev-python/ahocorasick/ahocorasick-2.1.0.ebuild b/dev-python/ahocorasick/ahocorasick-2.1.0.ebuild index a9a46d9abaab..8a55075077d5 100644 --- a/dev-python/ahocorasick/ahocorasick-2.1.0.ebuild +++ b/dev-python/ahocorasick/ahocorasick-2.1.0.ebuild @@ -23,5 +23,7 @@ distutils_enable_tests pytest src_prepare() { default - sed -i '/typedef char bool/d' src/common.h || die + if tc-is-gcc && ver_test $(gcc-version) -ge 15 ; then + sed -i '/typedef char bool/d' src/common.h || die + fi } diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index 08db2810295b..d973b4bc2378 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -2,3 +2,4 @@ DIST aiohttp-3.10.10.tar.gz 7542993 BLAKE2B edc9808937892e2915b591a3d5b9e2be8401 DIST aiohttp-3.11.3.tar.gz 7665862 BLAKE2B a81b0b6fbc819e51d0a3bd0c7c96c403af8fe35530924ec47202ad350358ca037eebb8479bb4b6b29927c3cbea088021e4de971a392aea78dcafd2db49d24554 SHA512 4f65a4fd2191656c6e123a263557842bf91251cdb57be68e967bcee7e6678027bc1717c344e30f7c3dfe5f6fc1a75a8fccdf07056cab244fc98460ce5238d93a DIST aiohttp-3.11.6.tar.gz 7666498 BLAKE2B 9dd46776a8af8c00e38524cdf1879f6c5fb8678cd83f0f263e56333f087666d649f0bae9f9aa8869abec0b8e787e42e87ebec2ec9ad9b88baa450344caaf04e3 SHA512 0216a7335ecfe335d26d9fe1aa9021f3baf4ac1dbaab69a924524c0daa2f67b1eb1f4021cc3bdfde063a64b0e8221f0c2e7a90888f4b88f72d805bb0abc7d2df DIST aiohttp-3.11.7.tar.gz 7666482 BLAKE2B 4cf32057fdf7da1cb77be0329dccb5060e2841021943ea6a30948a54b9e02ac578b236ab390bdee1723256505e4bc7dccddad192c3f83e4e88ab9d03cab4c6b1 SHA512 886149feca3de14e9433b5f877c0a7a6628d4333383ca762900209949bdf8c354460d21a673b7e195a1998eb4f8459972f5d85fed4cbeea5c52d6f449daba040 +DIST aiohttp-3.11.8.tar.gz 7667904 BLAKE2B 19fa318aacd3d09c9d0a8c2fb48f796acba690f469e48f8b0e7b2bee47481f5df8ac8a5cc3b26e38969db771331bdb6c8006869c0638bc9c4965c57af47ded35 SHA512 71c07ec6d0e7aabcbe54fdfb827c3bcac96a8d569a9d14da46d6df30220b17249eb18008119784ec98d79d93bb16cdea79fc080e1683a74d370575faba99410b diff --git a/dev-python/aiohttp/aiohttp-3.11.8.ebuild b/dev-python/aiohttp/aiohttp-3.11.8.ebuild new file mode 100644 index 000000000000..b3d43607d7e8 --- /dev/null +++ b/dev-python/aiohttp/aiohttp-3.11.8.ebuild @@ -0,0 +1,134 @@ +# 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 ) + +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_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 5d1b416b8941..67e2307b67b7 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -3,3 +3,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.69.gh.tar.gz 901747 BLAKE2B d05189e0fc1e22e34931275c9df0512cd622997b4dc0615d0566cd00c87e3501f94df36b2355017a6c585c5e9aae7cd8896d2222f4102da64b2d012ab868c48c SHA512 f0aa6885b414ae6e26f70c7b3ec2d28975f926d6c3525ce02fb2e1e3246cfaa1c4ad03d98a9b1d65b98db536b7cc88b5bb845892c8125316416336b16df96b95 DIST boto3-1.35.70.gh.tar.gz 902264 BLAKE2B 530cb1e971c00021203e26aad14e05fee4ae81a5702a2cab7dc45bf7352e771d2aaccf05dbebae4a4d49afd7f88c6d3b9bd1e2953b5e968a2857f04354352b97 SHA512 09a8f4db6f411fc4efca2cb532696357742d67d19529027790ae5fdf18b5b52d082db1d020ad7147de94c1bc798dbd7dcc902fd1701283ec04408ceebe9e3b06 +DIST boto3-1.35.71.gh.tar.gz 903019 BLAKE2B 48bf56c54a8eaa52c1850078a92cef7e5acb06f2d9d551414d640c6f5c5f381f2edc4ae6f582d9c1578f68d78a272142033bd41caba95577af917a492e995edb SHA512 56df8d30c0d3efc71caa6d629354e1311d944c71b5568b4154fc93c315558d600e4411ccc80abca98cb4a3adf3a3ab4f4dbce22ca06184e11d720f36f33b58d2 diff --git a/dev-python/boto3/boto3-1.35.71.ebuild b/dev-python/boto3/boto3-1.35.71.ebuild new file mode 100644 index 000000000000..d91ce27598cf --- /dev/null +++ b/dev-python/boto3/boto3-1.35.71.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 d1399f3221ff..1d1daecc3301 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -3,3 +3,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.69.gh.tar.gz 13887079 BLAKE2B 0d1f6fbae8cad8e8c67839ef70940d8230f4cb52a6144eb2fbb8825eec51d3f94634b6af79a7943cf07c3bf7a3d239a43e2b2ba847688c74dc0a577084a6e620 SHA512 0501b403e587e3edc6a5805476a9e4bf3e7f95c0888b4c58c25b7bf46bcafc261c1a38b6b40b8fcb306dcc642fd8f00e6828daddca267e368e17abccb0723032 DIST botocore-1.35.70.gh.tar.gz 13895903 BLAKE2B bc39a2ed4666c4d83a9a3311723f3d12bbc32a150c9add47896324f696c7630c53f70e3381f1dd93bf019e746b49460983a6b758d59d821dd35ca5d905d10044 SHA512 91fceb027e9f5beb53540329a0e0008d516f4ce05a495148783e3de2ee49230f10f96b7189c8ec1b807508f2cf6876771e9c803486496325c13f3d5caddca759 +DIST botocore-1.35.71.gh.tar.gz 13908196 BLAKE2B beba990a19a2a6de3a10d9acd9f97c79872548a5c2bdb2e0944d69292efefd171a0f2e2c989da1551f07902f35b9530984cfe037ff6a9ac9168f9fc5dc5105d5 SHA512 e962cd711e8a9ee6df4e58b3bab22b5e9ded2d75d89fcabd50476789270af50513dcdd4eaeba9f7f778cb9055b4b0cadde0e436cdb1ef333b4322c9f128e910e diff --git a/dev-python/botocore/botocore-1.35.71.ebuild b/dev-python/botocore/botocore-1.35.71.ebuild new file mode 100644 index 000000000000..7816e9efeb52 --- /dev/null +++ b/dev-python/botocore/botocore-1.35.71.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/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/cloudflare/cloudflare-3.1.0-r1.ebuild b/dev-python/cloudflare/cloudflare-3.1.0-r2.ebuild index 5099706c7fc7..43c81b14a410 100644 --- a/dev-python/cloudflare/cloudflare-3.1.0-r1.ebuild +++ b/dev-python/cloudflare/cloudflare-3.1.0-r2.ebuild @@ -27,12 +27,11 @@ LICENSE="MIT test? ( ISC Apache-2.0 MIT BSD CC0-1.0 0BSD )" SLOT="3" RDEPEND=" ${DEPEND} >=dev-python/httpx-0.23.0[${PYTHON_USEDEP}] - >=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}] + =dev-python/pydantic-2.9*[${PYTHON_USEDEP}] >=dev-python/typing-extensions-4.7.0[${PYTHON_USEDEP}] >=dev-python/anyio-4.3.0[${PYTHON_USEDEP}] >=dev-python/distro-1.7.0[${PYTHON_USEDEP}] >=dev-python/sniffio-1.3.1[${PYTHON_USEDEP}] - <dev-python/pydantic-2.10.0[${PYTHON_USEDEP}] " BDEPEND="test? ( diff --git a/dev-python/faker/Manifest b/dev-python/faker/Manifest index 98d3401501f3..7b5bc17f99e2 100644 --- a/dev-python/faker/Manifest +++ b/dev-python/faker/Manifest @@ -1,2 +1,3 @@ DIST faker-30.8.2.tar.gz 1808329 BLAKE2B a9788fdf875bf57e76de33478cf6ebb81a6cc94b9261f5226ea9a797e2d8332a0c9035896b03e86f741b630312872c10678b34dee11d92eea00b9b37d719944f SHA512 4db0352155b724890986c5b1ae59783fed7cd6a0aca289f6df2065c028cd0b9e03560faee60f2b75455e51c212819bc85ddf10c13351e774424fce6f553636be DIST faker-33.0.0.tar.gz 1850076 BLAKE2B 3a1dc9fff3a45af023cc14c7cc89b8db93faba2de9e4f03a6d04b0bdc37d8271d1e0a7aa4347c5327c80ca95dc490f6fd86e1ab4c0ebee6644505e980d2c7f63 SHA512 8c74093f91121cf8beb63a6b59a99c783be21c58f2788fe83dfb670b16a334f358ca13e65aa734c0ea2c0e6fac863e37116c1ff456eb2b96fe079d4f53059150 +DIST faker-33.1.0.tar.gz 1850515 BLAKE2B 71ff6e379f195f220af96562daa1876cd0476f321bb881091929b82ce576b30aa6aa11444411eb5cad30d1922fcfc940012f8b3cd36d074defd3336eac5f8a4a SHA512 0a24af11d64588de2a6c22844efcac11eeacc74faf439e4c0e4bca2cd8d3723177d8fdf5e3b0c6286776e659e38397cea80024ffaaae09c17067ae9b13ea983d diff --git a/dev-python/faker/faker-33.1.0.ebuild b/dev-python/faker/faker-33.1.0.ebuild new file mode 100644 index 000000000000..da73871f7d48 --- /dev/null +++ b/dev-python/faker/faker-33.1.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022-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 package that generates fake data for you" +HOMEPAGE=" + https://github.com/joke2k/faker/ + https://pypi.org/project/Faker/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + !dev-ruby/faker +" +BDEPEND=" + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP},tiff] + dev-python/validators[${PYTHON_USEDEP}] + ) +" + +# note: tests are flaky with xdist +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=faker.contrib.pytest.plugin + epytest + epytest --exclusive-faker-session tests/pytest/session_overrides +} diff --git a/dev-python/fastjsonschema/Manifest b/dev-python/fastjsonschema/Manifest index cb5819766185..9f022e615d61 100644 --- a/dev-python/fastjsonschema/Manifest +++ b/dev-python/fastjsonschema/Manifest @@ -1 +1,2 @@ DIST fastjsonschema-2.20.0.tar.gz 373056 BLAKE2B 99e80a6aa05aef421c5d95149f5f40f0a732bd686888f32067295c19d9c1d7569bf628d06b59bbeb68ea302e06de700b05c27e7a44e018b213e0c1a7f4dc1304 SHA512 7881937a02c7487d1dfd7499dbe85e8f8e359b9686673f32491d93cef1d7a949df5309b0d4a5cc525a7d9c8269568bc34e9d072ec1a49e44d5becbf8718b250d +DIST fastjsonschema-2.21.0.tar.gz 373839 BLAKE2B 24e559d796ab38051921e797d7a6d72cea8fbaff47ff637ea481ded46aedd2ed2c5f4dc67c46b93f1100afecd8db6a80964a59a4c1f1b24ffad8f0058549cbbb SHA512 b68081f969b9f4bfabe62040e559d7c0e58a1e81f31c33d09d5c2f0eb04d8386e9cac6590cb509ac93ecaa465c399b095d3b362ecbb81bb3ea09ba27f5d8ceb5 diff --git a/dev-python/fastjsonschema/fastjsonschema-2.21.0.ebuild b/dev-python/fastjsonschema/fastjsonschema-2.21.0.ebuild new file mode 100644 index 000000000000..de1ed802c421 --- /dev/null +++ b/dev-python/fastjsonschema/fastjsonschema-2.21.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 2020-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="Fast JSON schema validator for Python" +HOMEPAGE=" + https://github.com/horejsek/python-fastjsonschema/ + https://pypi.org/project/fastjsonschema/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + tests/benchmarks +) diff --git a/dev-python/fido2/Manifest b/dev-python/fido2/Manifest index b0ea538f0381..c6d62a3f34c4 100644 --- a/dev-python/fido2/Manifest +++ b/dev-python/fido2/Manifest @@ -1,2 +1,3 @@ DIST fido2-0.9.3.tar.gz 217894 BLAKE2B ccc3a9b59045216037664b5bf4b969a79b86b300f67fc4253b563acbbee98912ea076996772f17b88141d2a36a933b4926de96f05c53e204d0bb4eaaa2daad6b SHA512 f105c347784cdfab88ab08852227d24f4bca623145f7f76bd066dadab6ada1eae751934fd4dc7436a5c5fb3a0ed2fc4d5c59bb2a93888d470028f0713ca7e09e DIST fido2-1.1.3.tar.gz 252813 BLAKE2B f88ddd1c201aefddbf8c0a91040a121a3ba446229f90c17df6114c6b7fd3c047a4089475601f2d7d38d06fcd5fd14dba25177fa2b22360226a7c90d66137e978 SHA512 9ee226ab5762afe263c917d24ddfded9f3da40b38f97383c25c5fbfc3adc6085d3d218dc5f12b288689bf2e5e89fe9cecb2e40e45e5441d2001f945b336c2d0b +DIST fido2-1.2.0.tar.gz 266369 BLAKE2B 6170fffe46c5d3baa79b061583ffa597690b7f636a6205bcafcc2d997d7a82d49388ce4f573511e4ade976e491bdabb24e16c8be23a6aba3cbb1a1e70437b218 SHA512 c9c7a47ed6608f2dcf06b38905708d64b85ca91ea2656b654474e3164a90b3feae36a0898cf984a4811f1f757e22d3c7ca3dad1ba909b6c8191e418b1a0f938c diff --git a/dev-python/fido2/fido2-1.1.3.ebuild b/dev-python/fido2/fido2-1.1.3-r1.ebuild index 7be2c6bfbf55..9792b9ccccfd 100644 --- a/dev-python/fido2/fido2-1.1.3.ebuild +++ b/dev-python/fido2/fido2-1.1.3-r1.ebuild @@ -23,7 +23,7 @@ KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86" IUSE="examples" RDEPEND=" - <dev-python/cryptography-44[${PYTHON_USEDEP}] + <dev-python/cryptography-45[${PYTHON_USEDEP}] <dev-python/pyscard-3[${PYTHON_USEDEP}] examples? ( dev-python/flask[${PYTHON_USEDEP}] diff --git a/dev-python/fido2/fido2-1.2.0.ebuild b/dev-python/fido2/fido2-1.2.0.ebuild new file mode 100644 index 000000000000..50eba8ff3b94 --- /dev/null +++ b/dev-python/fido2/fido2-1.2.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +DESCRIPTION="Python based FIDO 2.0 library" +HOMEPAGE=" + https://github.com/Yubico/python-fido2/ + https://pypi.org/project/fido2/ +" +SRC_URI=" + https://github.com/Yubico/python-fido2/releases/download/${PV}/${P}.tar.gz +" + +LICENSE="Apache-2.0 BSD-2 MIT MPL-2.0" +SLOT="0/1.0" # Bumped every time a backwards-incompatible version is released +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="examples" + +RDEPEND=" + <dev-python/cryptography-45[${PYTHON_USEDEP}] + <dev-python/pyscard-3[${PYTHON_USEDEP}] + examples? ( + dev-python/flask[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_install_all() { + distutils-r1_python_install_all + + if use examples; then + docinto examples + dodoc -r "${S}"/examples/. + docompress -x "/usr/share/doc/${PF}/examples" + fi +} diff --git a/dev-python/findimports/Manifest b/dev-python/findimports/Manifest index 8882f1921e29..2c4f0762bfb5 100644 --- a/dev-python/findimports/Manifest +++ b/dev-python/findimports/Manifest @@ -1,3 +1,2 @@ -DIST findimports-2.4.0.gh.tar.gz 26597 BLAKE2B 8dc176a551a07f38996ddbcf0df865ad7c7c1c7f86036be0939578a932155f30bdff17d2880063edd49ae1d169ebfb5bbade771a626859ad8306d54df743ee79 SHA512 90dfc39a5f73ea86a9d5c3ebec0f220f2f428f5768edc9688c47079f555b44abb80b4945b38550032289a3bff659f3857019a50882b1b2f2e83570f3e36530be -DIST findimports-2.5.0.gh.tar.gz 26899 BLAKE2B 0050f0f711c3deb449993f8a50f484076005d5956275ba62ea55150c40b04540c3a2d656188da3d02775de71fc2d29f24b0855e91f160d491e384880b0b39043 SHA512 f75c9312c888fb456fe73983a2790f6e6841fd76692f7bce6e6d2e7c85e7055ee9d982af1b7cc8490de47dd2957ba1f74234698a519c36982dcb92bea6894301 DIST findimports-2.5.1.gh.tar.gz 26884 BLAKE2B f7dd101947813a77607d5e175be6d01b72f6cb7601905b5ae105ab36ae43f1f918faf59f317ba2fee1461e375a62354d3a083be7d77c537e71a7ee96563eb977 SHA512 5c746f1ec79eb4804b07550963589963debf8d2b5bfb7cc479062da925fe142548040cd63aa1df4394ad3c6ebd6430152e0f937c917a205389aaf92b0d778f64 +DIST findimports-2.5.2.gh.tar.gz 27326 BLAKE2B 452d15cb96d3d04a7a4fba26e65a7b376e5551f9fbd4375f3105530a181a9445d3e83e39116366d4a2607ca61d57b642be395e09b3f179d3c990de0f4eb3ed84 SHA512 260513a56a86da5a811d539761408a39577c717c6cdfc2244aeb6d7ea07878ba4e0b77ca2c8af21d3535aff3ed579e17eaa173510f5e9b192f68dbf05789f27a diff --git a/dev-python/findimports/findimports-2.5.0.ebuild b/dev-python/findimports/findimports-2.5.0.ebuild deleted file mode 100644 index 9eb66f778f18..000000000000 --- a/dev-python/findimports/findimports-2.5.0.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2020-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="Python module import analysis tool" -HOMEPAGE=" - https://github.com/mgedmin/findimports/ - https://pypi.org/project/findimports/ -" -SRC_URI=" - https://github.com/mgedmin/findimports/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -python_test() { - "${EPYTHON}" testsuite.py -v || die -} diff --git a/dev-python/findimports/findimports-2.4.0.ebuild b/dev-python/findimports/findimports-2.5.2.ebuild index 9eb66f778f18..9eb66f778f18 100644 --- a/dev-python/findimports/findimports-2.4.0.ebuild +++ b/dev-python/findimports/findimports-2.5.2.ebuild diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 199b5112ed39..9160ad10012d 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -1,6 +1,4 @@ DIST hypothesis-6.116.0.gh.tar.gz 9480480 BLAKE2B 350abfd8bad65a33669345a71c3df9737e4defcfc12cd81a1d9ecb5603310372e039d1a148c2223a71f37f0ad485ca892ba322f9404e6d873016193b7f864f88 SHA512 5ae6848f16c21b9012d15eb71715df1fc9448b70264d18453d13e61fd71b84623150ce32c9b50ea4ce95494b0df21907368d0f6fabaa8cb8b26c71e474885703 DIST hypothesis-6.118.9.gh.tar.gz 9487943 BLAKE2B 3c8d17d2763877107c7342d9a9825cb733de91ce6c99c88ed7536ac0e82d728f54d762c9b26cb02d742c470afc05c2798fb20e1f3c6f52d3b9d0e2c9cea9e99a SHA512 ba4f32892088a3a4d1a3d9ca2d28b9828cd7e2f4c4878733943f34f431014d4ba4dfe07729878b4c87cc295b6d6f219094c1f774ac115acd3b375ecc3c58d580 -DIST hypothesis-6.119.1.gh.tar.gz 9491481 BLAKE2B e1485ac899f64fcc1a1d9d673e32b92e6311b90e9ed3d173b276b9fed0f34ee931d485f6b86250f426d947b511fc777304ae1d536cafb8524b609c3b4d1443e3 SHA512 479fb3b19278c94675dfb1a3e8962f1be8db1240350c59953fbaae67c382c58854a137b8df3e441c6e87f921b3ae781fe9d39c7eceb6d3087bc0bd8e34d797c4 -DIST hypothesis-6.119.2.gh.tar.gz 9490208 BLAKE2B 5c4531c96667046751b12e0d7aab7bc3a7cd57509194cdc727f5b57d23ff3749b791ce783f41760c759d760c8ac671479cd1283ae6c0b2011296c296eed79030 SHA512 8801fa47d2afdc3ed99021a93f0a29fedde4e448f8ba60a4585e7ee673fe5f78de3b269f20d89bcc36f42dc32207d87eb7834c5a5ddafac7ceea00370b37db53 -DIST hypothesis-6.119.3.gh.tar.gz 9490475 BLAKE2B e15af9c5dab27464ef0fd04c0b37fa098304acf539664b086fa4a9cf5d6e0bb759dba00a4ed1f51487b4373c7cb099db15ea1e8cf516f47bef4dc1235b2835f8 SHA512 9173ecea32edcf528964468a68c5655796fc43bb5c843b5957061bcb9f967b95cfac97e268726b2c21ab64a1acf5597988e390fbdd8efea031106be4dcc65232 DIST hypothesis-6.119.4.gh.tar.gz 9490666 BLAKE2B 99a45054b90026317bca165915b2ffe3b3abfa03a98efc6181bd64f6ca851f9a90e4ba1b41ba4f3b2181de02818a91367f1c29523b78bca303da4eea31db1284 SHA512 003b01fd3e1e4ae2ea68f72b80063928dd56a069fdf8b6ffc73f6ffb3db4b048523564bd616d604d04a3ea55b19c01940ad7ba60bf1e88c54e29359ca0e397db +DIST hypothesis-6.120.0.gh.tar.gz 9491124 BLAKE2B 56e2441f7f1daddfac37d4288513d6140c9af01764bd32e5a14b1ae91982c28038c077038cbe278a48db77029af188857561122c6b347b6ea1992f46ab77f2d0 SHA512 9bf39b114cc9fa4eda77651bc02433c49f1d6526827a65086ca911839e4d8a7bf245b4e47b07f71ae533904c3ba90498bc632a6e18d3b8ef8e632a5d1a31b0ec diff --git a/dev-python/hypothesis/hypothesis-6.119.1.ebuild b/dev-python/hypothesis/hypothesis-6.119.1.ebuild deleted file mode 100644 index 737f4174ad91..000000000000 --- a/dev-python/hypothesis/hypothesis-6.119.1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2024 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} ) -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-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 - ) - ;; - esac - - epytest -o filterwarnings= 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/hypothesis/hypothesis-6.119.3.ebuild b/dev-python/hypothesis/hypothesis-6.119.3.ebuild deleted file mode 100644 index 737f4174ad91..000000000000 --- a/dev-python/hypothesis/hypothesis-6.119.3.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2024 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} ) -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-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 - ) - ;; - esac - - epytest -o filterwarnings= 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/hypothesis/hypothesis-6.119.2.ebuild b/dev-python/hypothesis/hypothesis-6.120.0.ebuild index 737f4174ad91..7d8a0e518f7a 100644 --- a/dev-python/hypothesis/hypothesis-6.119.2.ebuild +++ b/dev-python/hypothesis/hypothesis-6.120.0.ebuild @@ -45,6 +45,7 @@ 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}] ) " @@ -70,7 +71,8 @@ python_test() { ;; esac - epytest -o filterwarnings= tests/cover tests/pytest tests/quality + epytest -o filterwarnings= -p rerunfailures --reruns=5 \ + tests/cover tests/pytest tests/quality } src_install() { diff --git a/dev-python/pebble/Manifest b/dev-python/pebble/Manifest index 88566b1c7056..19930cbd82cb 100644 --- a/dev-python/pebble/Manifest +++ b/dev-python/pebble/Manifest @@ -1 +1,2 @@ DIST Pebble-5.0.7.tar.gz 32054 BLAKE2B d9211facf566551702b0305202c5765ef24f341201cc7a1593525a38a1e3b9ae69f33a739ebbc37cb3f60239ea19289741137f23275e3cd8a7bb5e14024295ee SHA512 2602512208808ce15150e35fb9bbd383a6b98850e7641ed26c46e520fe7e62483dfcb67aa77a2412a0c643fc862035487283f8e760feef3852f3ab9236f29176 +DIST Pebble-5.1.0.tar.gz 35060 BLAKE2B 0209578de0170ac01a25676debdd6ae7c8045171d97430fb48b23ab4a1ad7fadf03a6bb8ec56d05bf77f3a821bcb1dcfe6bbd1028fbe7a5eeff99637ebe92c17 SHA512 804fe43c82c7f7604c258a5ce1d219fecd5674fcfb6ef6dfdf1fe1cfdea23e79659e7d3633055cb9367433d9e6143323e512e69d8cfbe5a4ebba6fcc1fbb812b diff --git a/dev-python/pebble/pebble-5.1.0.ebuild b/dev-python/pebble/pebble-5.1.0.ebuild new file mode 100644 index 000000000000..f95bd929bd04 --- /dev/null +++ b/dev-python/pebble/pebble-5.1.0.ebuild @@ -0,0 +1,24 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN^} +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Threading and multiprocessing eye-candy" +HOMEPAGE=" + https://pebble.readthedocs.io/ + https://github.com/noxdafox/pebble/ + https://pypi.org/project/Pebble/ +" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +distutils_enable_tests pytest diff --git a/dev-python/pyjwt/Manifest b/dev-python/pyjwt/Manifest index 1192827d1e2d..53f4ad8bb2bf 100644 --- a/dev-python/pyjwt/Manifest +++ b/dev-python/pyjwt/Manifest @@ -1,2 +1,3 @@ DIST pyjwt-2.10.0.tar.gz 87687 BLAKE2B c3595b24bab66db56d6140e791c5326200dccf65499e7fc11f0448ff9a0189d3b309b33afba96e52eb1147ccda317137530650ef70d765a7e75d3b453f1a71f8 SHA512 3390e4613718e6fffe0a589a2b9f35ac8d29a12a7059d15281496c9a45b8e52b2ca165e3e7ba66bc2683d5df8d1ae8ed726bcc6e3afc0421a17491afe263f2b7 +DIST pyjwt-2.10.1.tar.gz 87785 BLAKE2B 58a1220600179f043179e742ff8d5707bd89aff0ac7f240a2e834b256bcbeaec1e5831e80ccec126876047e5e2cc304efbad57839dbcef1fa1584a999d19b486 SHA512 2ae530750b59ef692ab31bf8bf3506e553b0199f346ddd06afed12304683f254cc924ff7190c5c911af72237dd794c345097de306e79e0fbcfb59958cb8cfbe5 DIST pyjwt-2.9.0.tar.gz 78825 BLAKE2B f8228502944e6fc50412533c0c3f6d03fe7538dae8e1c42dd01d6b4419ef165f98125712e48d5c5b7f0d7eced36b6a84a69b9da549fe5e57effcba652f78faec SHA512 10d0344e05a142b3edadc970dd5cebc5eada1f638a599ca0f566c00149d67626c7fa1bbe668a56bc93048669df3af266c581f4872bf5756a4cc526f4b831dfc1 diff --git a/dev-python/pyjwt/pyjwt-2.10.1.ebuild b/dev-python/pyjwt/pyjwt-2.10.1.ebuild new file mode 100644 index 000000000000..132aa710d061 --- /dev/null +++ b/dev-python/pyjwt/pyjwt-2.10.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_PN="PyJWT" +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="JSON Web Token implementation in Python" +HOMEPAGE=" + https://github.com/jpadilla/pyjwt/ + https://pypi.org/project/PyJWT/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + !dev-python/python-jwt +" +BDEPEND=" + test? ( + >=dev-python/cryptography-3.4.0[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internet + tests/test_jwks_client.py::TestPyJWKClient::test_get_jwt_set_sslcontext_default +) + +pkg_postinst() { + optfeature "cryptography" dev-python/cryptography +} diff --git a/dev-python/pypillowfight/Manifest b/dev-python/pypillowfight/Manifest index db1166f2ad8b..a833608a00a4 100644 --- a/dev-python/pypillowfight/Manifest +++ b/dev-python/pypillowfight/Manifest @@ -1 +1,2 @@ +DIST libpillowfight-0.3.1.tar.bz2 87826393 BLAKE2B 7e6b2c3b6069d0e8bf4eea964d6ce3f90759d6d36b31f73780d928180f613abbd639ec7925dafc90be34adb893dfa2764fa818b41a4da6a557d5f9af4c0fa615 SHA512 7d8893a1b5d55b9cbce877b794e23269f838c5a071a6abc3834ee8af00cd3be8a70cfc49cb06653cfda9d91a798b62970c755408c47749971eb5e085699d06b1 DIST libpillowfight-50d965879eb89fdef9be09d6e934329486ff585d.tar.bz2 87826271 BLAKE2B aa0a9c2800992b671940f0ed0c8d808c5ad870c724fbf0f4dad336d224e6d510b135052f2697a6a1d05bafb9f1969278962c625d5d0ffd997b2548e60b1dec2b SHA512 76b05d49e2ee9fc9dcc2c9342d312841c8d1520d8d2027bd12b6921f85bd92645f698a811ccf7bdeceba64f0b706d5fd2975f91c51db8ce87f1261793aee83cb diff --git a/dev-python/pypillowfight/pypillowfight-0.3.1.ebuild b/dev-python/pypillowfight/pypillowfight-0.3.1.ebuild new file mode 100644 index 000000000000..c2183b10ee22 --- /dev/null +++ b/dev-python/pypillowfight/pypillowfight-0.3.1.ebuild @@ -0,0 +1,43 @@ +# 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=libpillowfight-${PV} +DESCRIPTION="Small library containing various image processing algorithms" +HOMEPAGE=" + https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight/ + https://pypi.org/project/pypillowfight/ +" +SRC_URI=" + https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight/-/archive/${PV}/${MY_P}.tar.bz2 +" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/pillow[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_prepare_all() { + sed -e "/'nose>=1.0'/d" -i setup.py || die + cat > src/pillowfight/_version.h <<- EOF || die + #define INTERNAL_PILLOWFIGHT_VERSION "$(ver_cut 1-3)" + EOF + distutils-r1_python_prepare_all +} + +python_test() { + epytest tests -o addopts= +} diff --git a/dev-python/pytest-click/metadata.xml b/dev-python/pytest-click/metadata.xml index 9549648a49cc..a0d4c5913ba0 100644 --- a/dev-python/pytest-click/metadata.xml +++ b/dev-python/pytest-click/metadata.xml @@ -1,11 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - <upstream> - <maintainer> - <email>dadygalo@gmail.com</email> - <name>Dmitry Dygalo</name> - </maintainer> - </upstream> - <origin>gentoo-guru-overlay</origin> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + + <origin>gentoo-staging</origin> + <stabilize-allarches/> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pytest-click/pytest-click-1.1.0.ebuild b/dev-python/pytest-click/pytest-click-1.1.0.ebuild index 90b2a5cd15a5..775a66b908a4 100644 --- a/dev-python/pytest-click/pytest-click-1.1.0.ebuild +++ b/dev-python/pytest-click/pytest-click-1.1.0.ebuild @@ -5,23 +5,24 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + inherit distutils-r1 pypi DESCRIPTION="Pytest plugin for Click" HOMEPAGE=" https://pypi.org/project/pytest-click/ - https://github.com/Stranger6667/pytest-click + https://github.com/Stranger6667/pytest-click/ " LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~arm64 ~x86" RDEPEND=" dev-python/click[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] " -DOCS=( CHANGELOG.md README.rst ) - distutils_enable_tests pytest + +DOCS=( CHANGELOG.md README.rst ) diff --git a/dev-python/pytools/Manifest b/dev-python/pytools/Manifest index 99df115b4dc9..f0cffd3de22c 100644 --- a/dev-python/pytools/Manifest +++ b/dev-python/pytools/Manifest @@ -2,4 +2,5 @@ DIST pytools-2024.1.13.tar.gz 82559 BLAKE2B c9b2d43a9538eb4a0daaf623345961e839cd DIST pytools-2024.1.14.tar.gz 83715 BLAKE2B 7670a6876f908097b07322fcce1acbebce9d4cbb9a955425544fe9f456895606629b84df894eb156eced9990f2f033301b48ebd511ee7dcbc06d1558dba4847a SHA512 07a4b2066553e0f2db5227e7f55db749e38c77afd566dcb45c65665a444451e8209ef028b7fdd3f855447bbac712e290211f3908b72335099057ff11371efe4a DIST pytools-2024.1.15.tar.gz 77565 BLAKE2B 3f17e86ff07d52b7f749846a9da7ed176aed63402b22a8c2c7ad96f49a5a62f22463f2db111e2d01139212e2c489a22f2ea16d2e67840bd3d077a2d87fd75b88 SHA512 112832d9a826243c76600c80e6464aba9ad0ad11017befa04e8104ce84431f3da993c768cef441786c6458adee6c4bd067e235dc369918367c5acb9aebd903ec DIST pytools-2024.1.16.tar.gz 77921 BLAKE2B f0e2952d99944140c44600d4e3e0eb0d9b69cbc13b1e2bf75b7061299515811b3308e00909e782f4048fe03684766bfbc0cb63afb8bc1c2be8658286be3c5d3e SHA512 396f6eb5ba2cf6116cbcfb436eef8d78cd2061a8e888ebbd77d93703a8bb3ec41062264d84487d571f0ee871c33c215272e2dce1d7b3150aa772f0142a7711e0 +DIST pytools-2024.1.17.tar.gz 78163 BLAKE2B eac043f8f53fe82f76f21a3019e2fba4474345379ae9772023f40da5d284b2d146a7da2652c152d3d5990dab2ae1a6365713a325bdb469f54ef7bee2ed0cf69b SHA512 de15035ca129c5425a54c151d6be5fe8ec906e06c43cb40c09c86105441b328ff537b154f95d3bfb84289b4357fb67d2b0df027aeb80e1b9c8a9d197a37d8f11 DIST pytools-2024.1.6.tar.gz 81344 BLAKE2B ff68e2606170bf54e3f609ee7f4cfe58e063f43dcfb2706d5ed7659ea2fde863e6315d0d81dff2e62a3378f195413561a927b0c1e7bedc06388cf4893c07b873 SHA512 a9e934f1cbaf0ace32420f9b74224a06ce8421ee291b837292133969c6788c4cc8bea01446cd4d1505aca9fa81e8ae0d3eacf60d3285186e66d67d5abe10ce3e diff --git a/dev-python/pytools/pytools-2024.1.17.ebuild b/dev-python/pytools/pytools-2024.1.17.ebuild new file mode 100644 index 000000000000..1a8ec2950cfb --- /dev/null +++ b/dev-python/pytools/pytools-2024.1.17.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_REQ_USE='sqlite' + +inherit distutils-r1 pypi + +DESCRIPTION="Collection of tools missing from the Python standard library" +HOMEPAGE=" + https://mathema.tician.de/software/pytools/ + https://github.com/inducer/pytools/ + https://pypi.org/project/pytools/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" + +# NB: numpy & siphash24 are an "extra" (optional) deps +RDEPEND=" + >=dev-python/numpy-1.6[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.2[${PYTHON_USEDEP}] + >=dev-python/siphash24-1.6[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/setproctitle/setproctitle-1.3.4-r1.ebuild b/dev-python/setproctitle/setproctitle-1.3.4-r1.ebuild index 779aaeba32e2..378a572f0e1f 100644 --- a/dev-python/setproctitle/setproctitle-1.3.4-r1.ebuild +++ b/dev-python/setproctitle/setproctitle-1.3.4-r1.ebuild @@ -9,7 +9,7 @@ DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) -inherit distutils-r1 pypi +inherit distutils-r1 flag-o-matic pypi DESCRIPTION="Allow customization of the process title" HOMEPAGE=" @@ -29,3 +29,10 @@ src_prepare() { # remove the override that makes extension builds non-fatal sed -i -e '/cmdclass/d' setup.py || die } + +src_configure() { + # https://github.com/dvarrazzo/py-setproctitle/issues/145 + append-cflags -std=gnu17 + + distutils-r1_src_configure +} diff --git a/dev-python/sigstore/Manifest b/dev-python/sigstore/Manifest index bee36aeeda7f..f166a02a3213 100644 --- a/dev-python/sigstore/Manifest +++ b/dev-python/sigstore/Manifest @@ -1,2 +1 @@ -DIST sigstore-python-3.4.0.gh.tar.gz 200807 BLAKE2B ffb74589d6d740a5b16f4c7884966be8f34954bac9e746d5d210b2e9b23d06eb94b59f9e5f52358d7a934c23791c1a9616a449c320b87a17e3255c4351b0b556 SHA512 3624dd1611d1671988bec4518ffe6c135a3df3f7ce4171d8e93c7d848b2755688c1f349b77fb89643f7b2a9da530b1b1f52272abd2ddb3685d53fd6d5367a97c -DIST sigstore-python-3.5.1.gh.tar.gz 201350 BLAKE2B e7027c4dfdee056d84bec5646234887ece4aabc068cea2a1fe69c78ed01e6229f9ced686c19e08b1a2bbed82d00820de8431c2eabdd965b4f23b8c6bf036cd06 SHA512 1b2c9937ca7b0a417db4d7e20e97309dc7cfb44f0f435fe0b6d9e6bb37d2a9451644d965446bcffa9160b32fb34d53bc273a87874340865e8d4e8beaafec69c3 +DIST sigstore-python-3.5.3.gh.tar.gz 201724 BLAKE2B 7b73ecd51944bc461213044931b7cfd3986442e9dc380cad5093c5f8dba82142c4a556bf9e43d869373df3d4ec07d8f023dde907045b2a172cfa06fd874e5907 SHA512 53d9876470156f91eb21e4e32ef1f61101e4a4011b689ad0b808414e19296266f66fc2bde1d5ad8178c3bb71824e1b30213672d8f1a311fb80a9fb4623a8a1cc diff --git a/dev-python/sigstore/sigstore-3.5.1.ebuild b/dev-python/sigstore/sigstore-3.5.1.ebuild deleted file mode 100644 index edb74b786f7f..000000000000 --- a/dev-python/sigstore/sigstore-3.5.1.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 2024 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} ) - -inherit distutils-r1 - -MY_P=sigstore-python-${PV} -DESCRIPTION="A tool for signing Python package distributions" -HOMEPAGE=" - https://github.com/sigstore/sigstore-python/ - https://pypi.org/project/sigstore/ -" -# no tests in sdist, as of 3.3.0 -SRC_URI=" - https://github.com/sigstore/sigstore-python/archive/v${PV}.tar.gz - -> ${MY_P}.gh.tar.gz -" -S=${WORKDIR}/${MY_P} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - >=dev-python/cryptography-42[${PYTHON_USEDEP}] - >=dev-python/id-1.1.0[${PYTHON_USEDEP}] - >=dev-python/platformdirs-4.2[${PYTHON_USEDEP}] - >=dev-python/pyopenssl-23.0.0[${PYTHON_USEDEP}] - >=dev-python/pyasn1-0.6[${PYTHON_USEDEP}] - >=dev-python/pydantic-2[${PYTHON_USEDEP}] - >=dev-python/pyjwt-2.1[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - >=dev-python/rfc8785-0.1.2[${PYTHON_USEDEP}] - >=dev-python/rich-13.0[${PYTHON_USEDEP}] - ~dev-python/sigstore-protobuf-specs-0.3.2[${PYTHON_USEDEP}] - ~dev-python/sigstore-rekor-types-0.0.13[${PYTHON_USEDEP}] - >=dev-python/tuf-5.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/importlib-resources-5.7[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - test? ( - dev-python/pretend[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - distutils-r1_src_prepare - - # unpin deps - sed -i -e 's:~=:>=:' pyproject.toml || die -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest test/unit --skip-online -} diff --git a/dev-python/sigstore/sigstore-3.4.0.ebuild b/dev-python/sigstore/sigstore-3.5.3.ebuild index edb74b786f7f..1bdd5adccd3c 100644 --- a/dev-python/sigstore/sigstore-3.4.0.ebuild +++ b/dev-python/sigstore/sigstore-3.5.3.ebuild @@ -26,6 +26,7 @@ SLOT="0" KEYWORDS="~amd64" RDEPEND=" + <dev-python/cryptography-44[${PYTHON_USEDEP}] >=dev-python/cryptography-42[${PYTHON_USEDEP}] >=dev-python/id-1.1.0[${PYTHON_USEDEP}] >=dev-python/platformdirs-4.2[${PYTHON_USEDEP}] diff --git a/dev-python/simsimd/Manifest b/dev-python/simsimd/Manifest index 87f1590de360..f1a42baa1500 100644 --- a/dev-python/simsimd/Manifest +++ b/dev-python/simsimd/Manifest @@ -1,3 +1,3 @@ -DIST SimSIMD-6.0.7.gh.tar.gz 208361 BLAKE2B 682105bfc9dd4b730618ae18622666ac1cb8b1b542acaae78f0d3fac830a513ecb8491e7ba603e4a35a97608ee4b3d3a2f5e2eb4e5bd51f7a0625423641cbea2 SHA512 c65beb5df6db2f6b5fbbdd8fc5d043bafb29239a6ad459cc2a6a81314b88759dbb35ea848fb16c8c61f354f271dae08adb4c7fd92cd5b6817191897e96c476d9 DIST SimSIMD-6.1.1.gh.tar.gz 208900 BLAKE2B 3f2f450eff1494bb80734e571d7e90c1b3ffe4687260a9dd499e135e17354dbe1b46f65abf3ecd262d8e500cdfe6b6f0b37f2607f009b6d13be4bcb3ec846fe0 SHA512 338bd6c12647f0231bfa5f1f22538c3ebfa3a838abcbcc86bee21ed8713dd72701f62245e143e3546b6299fd324221b72abd9b2d7041fece5ea379a65ffd95cc DIST SimSIMD-6.2.0.gh.tar.gz 216042 BLAKE2B 67e9cf9eb7bfdc376b23204c348969899bb7209f1dcd693feffa0d401bcfea5a473510b44ac494ecba03cd6ef1844ad12e155fceca7a19b7d95911416ede5572 SHA512 99757a549b3171eedace9377fad801ba33f4c9ab0ad4c3debfd141dc33f253131a725de5a386fb0c9313b27af6e8010cd0bdc250fa40e965baafb92210c7fb5d +DIST SimSIMD-6.2.1.gh.tar.gz 216348 BLAKE2B 292d952c77dd35b4f0378661155d186102b7dd319d89040f1148bebee660be356e0a23492e3d9ce3646f17f65b1e9bd7ca436131f812eaf11cbcc0ac056bf4d0 SHA512 602aa84e5c16781dc414703d27234ec6dd28c89f708385422012e7afb729254fb1f4803049a7ca77d48eba34f621bff4c9dde1fa42ddbeeb67c843af72071bde diff --git a/dev-python/simsimd/simsimd-6.0.7.ebuild b/dev-python/simsimd/simsimd-6.2.1.ebuild index 61d7aca0a9fa..61d7aca0a9fa 100644 --- a/dev-python/simsimd/simsimd-6.0.7.ebuild +++ b/dev-python/simsimd/simsimd-6.2.1.ebuild diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index cefac20b0b10..acf280acc2ef 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -15,6 +15,7 @@ DIST pyo3-macros-backend-0.22.6.crate 66312 BLAKE2B ec0b11bee1ad2192e8d95cebab00 DIST quote-1.0.37.crate 28558 BLAKE2B a7d007a69e619f853af94333e1066bb767013312bd99f147b1b153611242bcfa9c76768b1ba47278589db309a9acd61a772c8ec3b567e48439bb9d831f9326d4 SHA512 c4ed21428c1f89cf22b85d80720a7869831a9c129d694617b0ce8c258278114ab98846f3f653abf736d1c86bc9224bbd695e9a7b06aa3adf292d02e1ef14cc05 DIST sqlglot-25.31.3.tar.gz 19677473 BLAKE2B 6e72b192a7782495ff344b7c018cde58f11bb071f470db9149f31a38174a15d3b1d64cef90733209dd08d791ffab2a0ae263c28b9ec4ba5941ce89ed5758dbb8 SHA512 47acee570affd5eb8ee62a67812a26977598a882b9b261a53a07b8af9b58d74e5b4b8261271d3084497aba660ffe541d56f3503fa946e55b309cefedd609a445 DIST sqlglot-25.32.0.tar.gz 19683499 BLAKE2B e53b99d0438c9c309c7ebb0de76fbdce09ae8b1ee8313825fa3fa471f3a609e50adb71ca367eeeb7955adb385a3c79b927a9937e6439d40b2ed543c4fe82a811 SHA512 bf02995d90a73115d32be1b1c9b55dcb1658d165c5f57ce1c7d59b9f5f3591a3ba337b0494277347bfae00eef89326bde7d48fe7631ee73c83e86b6260fa7eeb +DIST sqlglot-25.32.1.tar.gz 19754688 BLAKE2B 78c950ce80aa9bd4383e549994225161c6650ca882bb27ebafd11a2c3dd9635d957ec3ab0f286a848959479a0b03e68eb9b793ebe25a9fcb4e6761511c8564b0 SHA512 968a342b574a2756ddcfa4e00b3ff16ae20697d9e76f987faf55267dd0e65aa8c939991a55ce7c54ad2571511e8fb1432b01d327c5b7bd870f7fbf75e781011e DIST syn-2.0.87.crate 278076 BLAKE2B 93385f64103fdb482bec34c7912474ae7a5935948715e6eb9a54907e0db5c39f089f6cd393bab33c935c59a1bbb0f4099431f206343811c1a450554d96a35756 SHA512 bcfff545d6dfefd81e09f8f30a86bdd85759b3a7d4093ef3365ed02718e10dbd604c52b94c9d7fa955d339fdc5b6c079940c6f345b5a48c52b5c8607794ca6f2 DIST target-lexicon-0.12.16.crate 26488 BLAKE2B e7950e4a302059a1bfc9bc15618a3c1b971a17cffae117a6e8f5f63a0d82fd2bd02680301d15338612d5426d349dd24cfee30ee787a15a7d3187f2a6825e69ce SHA512 092639957c4a0391560b6442b31c47159c04d12e971010f730a6ec9cb5389e4be903ef3d7daa06db95e64dc78b6970731fb647179ebaad2b12e9ed5e9b24da27 DIST unicode-ident-1.0.12.crate 42168 BLAKE2B 4cede03c08758ccd6bf53a0d0057d7542dfdd0c93d342e89f3b90460be85518a9fd24958d8b1da2b5a09b5ddbee8a4263982194158e171c2bba3e394d88d6dac SHA512 bc1824e1e4452a40732fc69874d7e1a66f7803717a314790dcf48867eba34bc9441331ef031e386912e52c385645c25b6ed39d4f149973b5b97371b1b96b1920 diff --git a/dev-python/sqlglot/sqlglot-25.32.1.ebuild b/dev-python/sqlglot/sqlglot-25.32.1.ebuild new file mode 100644 index 000000000000..d48438a800cd --- /dev/null +++ b/dev-python/sqlglot/sqlglot-25.32.1.ebuild @@ -0,0 +1,113 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +CARGO_OPTIONAL=1 +CRATES=" + autocfg@1.1.0 + cfg-if@1.0.0 + heck@0.5.0 + indoc@2.0.4 + libc@0.2.150 + memoffset@0.9.0 + once_cell@1.19.0 + portable-atomic@1.9.0 + proc-macro2@1.0.89 + pyo3-build-config@0.22.6 + pyo3-ffi@0.22.6 + pyo3-macros-backend@0.22.6 + pyo3-macros@0.22.6 + pyo3@0.22.6 + quote@1.0.37 + syn@2.0.87 + target-lexicon@0.12.16 + unicode-ident@1.0.12 + unindent@0.2.3 +" + +inherit cargo distutils-r1 pypi optfeature + +DESCRIPTION="An easily customizable SQL parser and transpiler" +HOMEPAGE=" + https://sqlglot.com/ + https://github.com/tobymao/sqlglot/ + https://pypi.org/project/sqlglot/ +" +SRC_URI+=" + native-extensions? ( + ${CARGO_CRATE_URIS} + ) +" + +LICENSE="MIT" +LICENSE+=" native-extensions? (" +# Dependent crate licenses +LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016" +LICENSE+=" )" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+native-extensions" + +BDEPEND=" + native-extensions? ( + ${RUST_DEPEND} + dev-util/maturin[${PYTHON_USEDEP}] + ) + test? ( + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/sqlglotrs/sqlglotrs.*.so" + +pkg_setup() { + use native-extensions && rust_pkg_setup +} + +src_unpack() { + cargo_src_unpack +} + +python_compile() { + distutils-r1_python_compile + + if use native-extensions; then + local DISTUTILS_USE_PEP517=maturin + cd sqlglotrs || die + distutils-r1_python_compile + cd - >/dev/null || die + fi +} + +python_test() { + local EPYTEST_DESELECT=( + # timing, sigh + # https://github.com/tobymao/sqlglot/issues/3961 + tests/test_generator.py::TestGenerator::test_generate_nested_binary + ) + local EPYTEST_IGNORE=( + # Tests require pyspark or duckdb which aren't in the tree. + # Pandas would be a requirement normally, but it gets ignored by proxy. + "tests/dataframe/integration/test_dataframe.py" + "tests/dataframe/integration/test_grouped_data.py" + "tests/dataframe/integration/test_session.py" + "tests/test_executor.py" + "tests/test_optimizer.py" + ) + + # make sure not to use an earlier installed version + local -x SQLGLOTRS_TOKENIZER=$(usex native-extensions 1 0) + rm -rf sqlglotrs || die + epytest +} + +pkg_postinst() { + optfeature "simplifying timedelta expressions" dev-python/python-dateutil +} diff --git a/dev-python/tomli/Manifest b/dev-python/tomli/Manifest index 0bb09ebf4a55..4bf8421971e7 100644 --- a/dev-python/tomli/Manifest +++ b/dev-python/tomli/Manifest @@ -2,3 +2,5 @@ DIST tomli-2.0.2-py3-none-any.whl.zip 13237 BLAKE2B 642af1b59a2b2bceeee2480208f3 DIST tomli-2.0.2.gh.tar.gz 135227 BLAKE2B 1d61fd26793c4f814ed606a60b85edb388bf97d6fd17c830504971be725c84e9e6e67904170cff305fdb7be8196b56d0cc29dd36f8b202798788f4839ba8ddc6 SHA512 3eeea334d6d225590a9e074685c65d052e2f5d5286ca895ff7e9532d7289f0daa31ae67b5076d803e5adad4f20a9831058a0c4599715f049079904934d3d9c25 DIST tomli-2.1.0-py3-none-any.whl.zip 13750 BLAKE2B 8354ca389e2f45bf87749247fa2a6d84a6a60f6c3c42e89946ffef547f7fe9538bce228a2e2f9b3518c1b29ea2bd0c25989e690de2fd633d5df362dc798bc089 SHA512 cb16271d5321f4f6d4ec20884fbe81f5b1a387a0b751418ebee0652ea827bf54344115c1a9f7ce62be013cb2c623c2cfae7d135476cffeccf0a3768a53447219 DIST tomli-2.1.0.gh.tar.gz 136173 BLAKE2B b67adb38fcc75d2b8f20578446686fdec61359d35fb958ceb16a9618d5d1dcb7865409b7da3d1d36ab1d9c9b8e5b1612efd9e8280023469a0abccb591e28c5a1 SHA512 472aa86543514257808fc68d5015fa1503e5fd674bbab113de685a07cc5a61e0c74e5840f132da88482e62ae0aa4b27e4b0521100ceb6cebe4e3cb3230d318cb +DIST tomli-2.2.1-py3-none-any.whl.zip 14257 BLAKE2B 1806b29c4331a153c3fcadf3eb4ca40576210fdbd91ce2708bc36714949df3aba17a19eb3f8e899a984039ae77d75ab1a630ee4e30eae0605495c38b8bf86279 SHA512 00a2c52a4e580c28d9c54a1b1e73e0c26f3108ffaa538b0bc0011c3c85397f4217ecbd136e77b6571bfcb1e055b28d70ac79a25571e2367e227a9b24aff57a97 +DIST tomli-2.2.1.gh.tar.gz 137745 BLAKE2B 5660d11b8925fd39f3b9bc1957a06026e108cd3fee61988f0d25af2f9634d5fbafc7121ffa7dd1abc28013310c72253b58b7d4d267f4b1848ee6a9e3ff00698a SHA512 6bd2600b06b9d41f45ae34172380d3ec162d0e25a7602e8e77ee37bbe165674ff17afc39c4d1f87c9cec9bd1f02003ba5ebaa313a60efca64ef5124f77a2c887 diff --git a/dev-python/tomli/tomli-2.2.1.ebuild b/dev-python/tomli/tomli-2.2.1.ebuild new file mode 100644 index 000000000000..45b763292a93 --- /dev/null +++ b/dev-python/tomli/tomli-2.2.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 8 -- sys-apps/portage dep +EAPI=8 + +DISTUTILS_USE_PEP517=no +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A lil' TOML parser" +HOMEPAGE=" + https://pypi.org/project/tomli/ + https://github.com/hukkin/tomli/ +" +SRC_URI=" + https://github.com/hukkin/tomli/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + $(pypi_wheel_url --unpack) +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +BDEPEND=" + app-arch/unzip +" + +distutils_enable_tests unittest + +python_compile() { + python_domodule src/tomli "${WORKDIR}"/*.dist-info +} + +python_install() { + distutils-r1_python_install + python_optimize +} diff --git a/dev-python/trimesh/Manifest b/dev-python/trimesh/Manifest index 058532f245a2..3960945c1e5d 100644 --- a/dev-python/trimesh/Manifest +++ b/dev-python/trimesh/Manifest @@ -1 +1,2 @@ DIST trimesh-4.5.2.gh.tar.gz 13616030 BLAKE2B 1201b0d3f2780564c970d7c14331905e4fe808df3f0185dbdd1cdf383d4358d9dd50d3bdbedd6a3ada843657452a5aabb0ca3eaab6b56c65373ebc9a1ca91ad5 SHA512 13fedd9bac79e25d510b776166d9ea04cf60638f3702cdf3a8a7f14e4297fe26fa4b9eacffb9a22f1b175c01bf75d4452e57a073ca8eb4858b028abca99d2e5b +DIST trimesh-4.5.3.gh.tar.gz 13618342 BLAKE2B 1bb74c872a09d928b9ccd4b098377f584ef05e444c1f3eee50ec456e108485a14757b1bdcb2920118e8ea6f557d56c2708784d51979c18cee956d9b7aac6093a SHA512 4000ae55e8020bf1fd884a646d18db77f55abbb5de2ccc9f89ada4854b2001c0da377d53b834e48f7f43fa4ea1681fd0cf092697bb59e888c5416cf4a245a847 diff --git a/dev-python/trimesh/trimesh-4.5.3.ebuild b/dev-python/trimesh/trimesh-4.5.3.ebuild new file mode 100644 index 000000000000..d21e980779c5 --- /dev/null +++ b/dev-python/trimesh/trimesh-4.5.3.ebuild @@ -0,0 +1,78 @@ +# 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 optfeature + +DESCRIPTION="Python library for loading and using triangular meshes" +HOMEPAGE=" + https://trimesh.org/ + https://github.com/mikedh/trimesh/ + https://pypi.org/project/trimesh/ +" +SRC_URI=" + https://github.com/mikedh/${PN}/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/colorlog[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/networkx[${PYTHON_USEDEP}] + >=dev-python/numpy-1.20[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pycollada[${PYTHON_USEDEP}] + dev-python/pyglet[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/shapely-1.8.2[${PYTHON_USEDEP}] + dev-python/svg-path[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + dev-python/xxhash[${PYTHON_USEDEP}] + dev-python/rtree[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mapbox-earcut[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + ) +" + +EPYTEST_TIMEOUT=1800 +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # requires manifold3d + tests/test_boolean.py::test_multiple_difference + ) + local EPYTEST_IGNORE=( + # require pyinstrument + tests/test_sweep.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +pkg_postinst() { + optfeature_header "${PN} functionality can be extended by installing the following packages:" + optfeature "making GUI applications with 3D stuff" dev-python/glooey + optfeature "2D triangulations of polygons" dev-python/mapbox-earcut + optfeature "loading a number of additional mesh formats" dev-python/meshio + optfeature "figuring out how much memory we have" dev-python/psutil + optfeature "marching cubes and other nice stuff" dev-python/scikit-image +} diff --git a/dev-python/types-docutils/Manifest b/dev-python/types-docutils/Manifest index 1bc755326cba..da2e2ded8458 100644 --- a/dev-python/types-docutils/Manifest +++ b/dev-python/types-docutils/Manifest @@ -1,2 +1,2 @@ -DIST types-docutils-0.21.0.20240907.tar.gz 20273 BLAKE2B 8f90b7362a0b7a5d6b7e8d83b24e7fc03254425bb49e8f9bebc376ea85baf826f9da1ef0f03dfce0b54ef5de3d939e9209f3cbd7f947e1b5de3aa0b72cd417b4 SHA512 fa668508108411b00d46a5c4f781c42b0e245fc375ff4090a1441afad972f6b57147f04eae5b1713d0f51b74c1d8939cd064fa3a956a956cff9c3b06bc09eb1e DIST types-docutils-0.21.0.20241005.tar.gz 20701 BLAKE2B c1aa7debb6f5da6f9ca4fa365ea3de25d6cc2dbb8303affa9ea484c55ecd984baa46190277902c60de9e5f8f17e771a0ce09e8959bcb5508bfb3123e19fd28da SHA512 d95436ba63514792a6239c78322494fbd655d2f7b6c06ac6aac2dff0a10e941f020583c5bb4fa88eda39632686ccdd8bde77c242bbb520044082482484a45cb1 +DIST types_docutils-0.21.0.20241128.tar.gz 26739 BLAKE2B 43b6aedf346564a6258ed78ca046d858590a7b6088666347e8bf91660fc3c062b55ac2ac599c541b311c17c7436e62f7956ca23285c2b7c66429c1f4f5c5b77c SHA512 ee68d14f9b84dbf4f144c10e0a7a4559ec76c584ac392c139165a382907114e6fa97b41bbb3ecf27ea21d1ce2f9f927b4551687fec03e4aad917f890096629b5 diff --git a/dev-python/types-docutils/types-docutils-0.21.0.20240907.ebuild b/dev-python/types-docutils/types-docutils-0.21.0.20241128.ebuild index 3ebd6ed1a4e8..25d866da0305 100644 --- a/dev-python/types-docutils/types-docutils-0.21.0.20240907.ebuild +++ b/dev-python/types-docutils/types-docutils-0.21.0.20241128.ebuild @@ -4,7 +4,6 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{9,10,11,12,13} ) inherit distutils-r1 pypi diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index 7936cdfd84fa..66a5b821543c 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -1,5 +1,6 @@ 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 DIST reqwest-middleware-d95ec5a99fcc9a4339e1850d40378bbfe55ab121.gh.tar.gz 40815 BLAKE2B eb7edc4e4599635714b30e5a49b1ddf04e76a696618713320fbb06b240e5f77dafcba78e8532a7de3ada682773a65c88405a5bec2261a7da4310a7cc95b2554e SHA512 bc29f8e634cbfde9d89db3e7ac16a83b6545c15ecec1d0eb4eb2ea2c1647fb521712a9ebe98480cd0dff727fed0ecbceaaf3b23e0d85d97a0498f2e576cc9d7d DIST rs-async-zip-011b24604fa7bc223daaad7712c0694bac8f0a87.gh.tar.gz 51706 BLAKE2B 354eb52c95ea355521e1e6a7c841102424c47c156fdb0efb62e3cac666ecf289806aeefab8a0273a7c3283429ac81502283bdb5424d5f925621e5c2b1430fd4d SHA512 6650eef354e84daf41a8572b98b29f2873b7f071dd1d6983292c70b2f580fdc50cd26762d2228a70c2b200eae2f40476e6604702aa62cc97558301195bf19eb8 DIST rs-async-zip-c909fda63fcafe4af496a07bfda28a5aae97e58d.gh.tar.gz 51763 BLAKE2B 59d053bc6692014d884a9247dea1b57a8789469ba2abbcc92ec21bb0022cbd74874afc463082156ab697aa6c80635019857a5d7e2dc150274e8b04d720518c36 SHA512 3a309566f4925b02496fcf19bc2865968edf6fb65082ca4079d2cee79e6b0353a1910c079f2afe656da0d0f6ddde5102052a221ea35a7dabc6d690a11218b20a @@ -8,3 +9,5 @@ DIST uv-0.4.30-crates.tar.xz 45786704 BLAKE2B 72a5828c5c504859248312e0d796a6505e DIST uv-0.4.30.gh.tar.gz 2832043 BLAKE2B 11c0d090161b9aa6d6e84d0edb15701c8eaba8281579653d6b0ba84003933f82ec5b71c3c33689e5324e51de70b7af41e4799f35fb45f57ce6d58fafa371a615 SHA512 4930c863aae71ae6e6f5b7ba20ff30ffe4c044f6980f973110d0c8c3079cb4aacbe774fe4577eb8d9c16f5d41d2cd0974c0fe63cf0d10e065c6b8d4cf553b80b DIST uv-0.5.3-crates.tar.xz 46488584 BLAKE2B 896f56ca633f3bdfb167df1a93c12358613ff2c42aaddfd3ac42eaff6812e4b78a5bedbdd4f6ce14b871cf778836e1bb8fed81134309411551dd6f36d67d6313 SHA512 ecb51b4e8fbe5f73c3bcba9706a6976a9b7eeee31e161463ff8923bd97ba6f0374e471b89e71cc090806561c2ed2fe9b2ad987934d89d0d8d96b88534305aa3b 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 diff --git a/dev-python/uv/uv-0.5.5.ebuild b/dev-python/uv/uv-0.5.5.ebuild new file mode 100644 index 000000000000..74f61c6fb2e1 --- /dev/null +++ b/dev-python/uv/uv-0.5.5.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;9cd9049a64c7352de2ff3b525b9ae36421b0cc18;pubgrub-%commit%' + [tl]='https://github.com/astral-sh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%' + [version-ranges]='https://github.com/astral-sh/pubgrub;9cd9049a64c7352de2ff3b525b9ae36421b0cc18;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 +} diff --git a/dev-python/webtest/Manifest b/dev-python/webtest/Manifest index 716602b342d6..19004ac6c0d5 100644 --- a/dev-python/webtest/Manifest +++ b/dev-python/webtest/Manifest @@ -1 +1,2 @@ DIST webtest-3.0.1.tar.gz 79278 BLAKE2B 3466e0d291cc8b02f5f11c8174dcf99cf56696d394de195fce721bb4f01cb76140bf39a955a264f84daad091ad8c37b6302e39c351373b77c4ec0d8a40d74575 SHA512 58417f2d533bd8339258f756d16d1f1cf26f89d8bc387cc7a7ba8fa2b30346454c053b531f79238939112b318fe1972d960d681c605e178d223acc53a8784be4 +DIST webtest-3.0.2.tar.gz 79331 BLAKE2B 2fa124c25889e5d256861b9df6d2b7b3af18a8ea367197b7dcf38e6182c64e8c3fbba6855f1b95f69917caef6cc82bab3a24064f8ec496775fe1f972d838c63d SHA512 f94d78a09368575f772136f7263244d0dfacd344d94d819b15a7e7d5af2a4186cb88659249f1e7009754ac45fbb9f5a3ee0f9bb7f6eccf903f955b9072bb0433 diff --git a/dev-python/webtest/webtest-3.0.2.ebuild b/dev-python/webtest/webtest-3.0.2.ebuild new file mode 100644 index 000000000000..743b1bccb30e --- /dev/null +++ b/dev-python/webtest/webtest-3.0.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_PN="WebTest" +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Helper to test WSGI applications" +HOMEPAGE=" + https://docs.pylonsproject.org/projects/webtest/en/latest/ + https://github.com/Pylons/webtest/ + https://pypi.org/project/WebTest/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + dev-python/paste[${PYTHON_USEDEP}] + dev-python/pastedeploy[${PYTHON_USEDEP}] + >=dev-python/webob-1.2[${PYTHON_USEDEP}] + >=dev-python/waitress-3.0.2[${PYTHON_USEDEP}] + dev-python/beautifulsoup4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pyquery[${PYTHON_USEDEP}] + dev-python/wsgiproxy2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/legacy-cgi[${PYTHON_USEDEP}] + ' 3.13) + ) +" + +PATCHES=( + "${FILESDIR}/webtest-2.0.33-no-pylons-theme.patch" +) + +distutils_enable_sphinx docs +distutils_enable_tests pytest diff --git a/dev-python/x-wr-timezone/Manifest b/dev-python/x-wr-timezone/Manifest index e3df0f839d6f..1296194aada7 100644 --- a/dev-python/x-wr-timezone/Manifest +++ b/dev-python/x-wr-timezone/Manifest @@ -1,2 +1,2 @@ -DIST x-wr-timezone-0.0.7.gh.tar.gz 21988 BLAKE2B fa8ebf44de060b8e716dda0970dbf881f635d1fbaffb1f6fcfe1f847d4b3b765dbd89141a8aa96393cd205bdfd7e913f9405e22fdb22bbbe148ef0c0a75a291f SHA512 6d37de592741a8786855a1f6c8b61165b3267869dcd86e0b9fe56de31f326ee2f7206ab35c45c21713d4cc808d1b14934d6b5b9daac90791d13b0363af5b5cbf DIST x-wr-timezone-1.0.1.gh.tar.gz 22182 BLAKE2B 18ac9281b484de7eb1b4da9063743b98b63e259f7ad914c68194d49e27aa3528f0466e6e7c6c668e14e58ef1439f2c8db6bb8b8f94e51635a63f13af98db826b SHA512 4c388efc2b5710f5db24de218d72ef4ddfd951186fa67631a34f48d49ffcd391195f0232104c586eeae18fb414eab61b3bb1f52d39416c2123eb452a44f20ad6 +DIST x-wr-timezone-2.0.0.gh.tar.gz 23131 BLAKE2B 878615167c145a139892bbb651697b05707a8e05ff62e578118a40b773299f4eb356b04d3de34387ea20cfdb230179d8b9d48abc1a8e6a0e90d138d028669c7c SHA512 c42b71d9bf08e3395121ef32b4a015404824e74c0b9731d80f94c8cfa10efe9a1259413faa6bf3d33ac44f3aaf24e28a5bbc23259cb532e7ec44654951dc9081 diff --git a/dev-python/x-wr-timezone/x-wr-timezone-0.0.7.ebuild b/dev-python/x-wr-timezone/x-wr-timezone-2.0.0.ebuild index c45a9ae7e0b5..18cdfaf89c76 100644 --- a/dev-python/x-wr-timezone/x-wr-timezone-0.0.7.ebuild +++ b/dev-python/x-wr-timezone/x-wr-timezone-2.0.0.ebuild @@ -23,8 +23,15 @@ SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" RDEPEND=" - >=dev-python/icalendar-5.0.11[${PYTHON_USEDEP}] - dev-python/pytz[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + >=dev-python/icalendar-6.1.0[${PYTHON_USEDEP}] + dev-python/tzdata[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-click[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + ) " distutils_enable_tests pytest |
