diff options
Diffstat (limited to 'dev-python')
53 files changed, 1029 insertions, 87 deletions
diff --git a/dev-python/aws-sam-translator/Manifest b/dev-python/aws-sam-translator/Manifest index 8b7241b11a47..eed4497fb734 100644 --- a/dev-python/aws-sam-translator/Manifest +++ b/dev-python/aws-sam-translator/Manifest @@ -1 +1,2 @@ DIST serverless-application-model-1.89.0.gh.tar.gz 5659213 BLAKE2B 1b8128c904ee1db34e722e0e4d5e7a0b16685dfbc589c390e34679b75481afad963a30f40d18bedb29010f62a338d1818da957ce6b58b7ee63d83444dccfc8ac SHA512 899fe08f3a16669de86ad3861d1072017af5fb3d2254583e502970c77e280d0ccb39b6a8f7e647acb94fb0cc6305aba35a98663427114764300d69f9c3b5e2fe +DIST serverless-application-model-1.90.0.gh.tar.gz 5707682 BLAKE2B c587baee9e3a17a98eef7098d24f2f5d5ba0bf1e965a3ee9ad3d93f855134f99b46bbe7e0e065270e3e227f526f7e09e73894672a3e639e6a6a76a881a7e782d SHA512 b99d6ac8cbebca191cf1a46041c4a599ba6bf26f0c373243760bd5034dcb9e09e1754e5c9aa0132abb364111aa209ad784987bc533a9644de332ce91ff881f46 diff --git a/dev-python/aws-sam-translator/aws-sam-translator-1.90.0.ebuild b/dev-python/aws-sam-translator/aws-sam-translator-1.90.0.ebuild new file mode 100644 index 000000000000..f01bb1ccf394 --- /dev/null +++ b/dev-python/aws-sam-translator/aws-sam-translator-1.90.0.ebuild @@ -0,0 +1,62 @@ +# 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_{8,9,10,11,12} ) + +inherit distutils-r1 multiprocessing + +MY_P=serverless-application-model-${PV} +DESCRIPTION="A library that transform SAM templates into AWS CloudFormation templates" +HOMEPAGE=" + https://github.com/aws/serverless-application-model/ + https://pypi.org/project/aws-sam-translator/ +" +SRC_URI=" + https://github.com/aws/serverless-application-model/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <dev-python/boto3-2[${PYTHON_USEDEP}] + >=dev-python/boto3-1.19.5[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.2[${PYTHON_USEDEP}] + <dev-python/pydantic-3[${PYTHON_USEDEP}] + >=dev-python/pydantic-1.8[${PYTHON_USEDEP}] + <dev-python/typing-extensions-5[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.4[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # so much noise... + sed -i -e '/log_cli/d' pytest.ini || die + + # deps are installed by ebuild, don't try to reinstall them via pip + truncate --size=0 requirements/*.txt || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x AWS_DEFAULT_REGION=us-east-1 + epytest -o addopts= -o filterwarnings= \ + -p xdist -n "$(makeopts_jobs)" --dist=worksteal +} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 4dda3aff738a..d94117719dbc 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -3,3 +3,4 @@ DIST boto3-1.34.153.gh.tar.gz 847038 BLAKE2B f29aec887fd57d2bc4b6be125787384438e DIST boto3-1.34.158.gh.tar.gz 848930 BLAKE2B 5db04b9eee08f5418a595e736f075fbe22b92adada9219e8a8cf2299c723d09e2edf88e5ebb3d09c1613a01e5d0d5c837e9545c6ee3110c430c521da10fa2bde SHA512 03f532e78a1a2b8ec01396f0b7f7bae7059165e35440eda47f4393e99d2a8ded229470cf3269a71c746b8a66dccd8626444f1e429e561df1dc1ec0f6b8653272 DIST boto3-1.34.159.gh.tar.gz 849599 BLAKE2B e21979dd33413d63dfb905cdde8351a89fb3a431ee0873ffc3cbb8e9681c207842c5d2c288622736c0ac7516ef0d607d6ee5caea9877c1b7f177c0cae7125f9c SHA512 6fe6528240b0f1ed78e1b4ccba104c238075d8daff3b2224f03912a48f9278d1d92d8caf13951128e25e19d49e895492e463dc8aaa3d903982ebbacbbf727b21 DIST boto3-1.34.160.gh.tar.gz 850214 BLAKE2B 74e8bfecc23086301750ec55e265c57d9085ca292ed9155948e46deb2531860b01336ab341371421333b041f6ba4f4a9114926969d39620b2ba508541ee0fc90 SHA512 ad443616bb4a04fc9e3cceee462d4f06c17c5096853b69e4ccaf1c319bb48fd0bd0131cb3de496b7d05f194818e36c8a165578c5afc3304a7d628936ddc478c9 +DIST boto3-1.34.161.gh.tar.gz 850347 BLAKE2B 22e07b72898be28df3547b4a32b4340d9b8267c65d876daaea5b0c1f31a38516964eae11a16fc074d1b9b476fde970976784fed1965a8deef1db74b387699ee4 SHA512 90ffe03ced6546cd271d36cf38a5ebe7fbadcd46c1036a74be238b8006ce29795964e10861ec56920f2ceb5a83b8001029c1b0ea1a75a536d3e025ebc84315a3 diff --git a/dev-python/boto3/boto3-1.34.161.ebuild b/dev-python/boto3/boto3-1.34.161.ebuild new file mode 100644 index 000000000000..509842b2699d --- /dev/null +++ b/dev-python/boto3/boto3-1.34.161.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_{8,9,10,11,12} ) + +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 81e057547871..c5a986fdec8e 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -3,3 +3,4 @@ DIST botocore-1.34.153.gh.tar.gz 13269606 BLAKE2B 1b2ec1af3b699c18c5761fe72b8488 DIST botocore-1.34.158.gh.tar.gz 13282704 BLAKE2B c244a36093cdaf57ac82dc11a3e9d4268d7cce36b8119674530228825f6ec4053abbc909dd664a1ea10ec48e0c418b90803275aabc89a41a99eaba6e138a5a17 SHA512 b60c743bfd1a1f3806c6ae71158a998587b8e87f43bdbe88c960cee19bcef41a4b3fd2fe5f50408abc97b22200a689990f79cbb6e952347c747e4bc8c21ae368 DIST botocore-1.34.159.gh.tar.gz 13286596 BLAKE2B 76548a1a0dacbaeadb4cc95cdbb50f22bc8b61e8b9645caf1d36cde94fed824d0bcc7349626e33792593bcf715e4dd3978f2dc4d4dfeaf8a1bfcb428f99ee8a1 SHA512 1687ab7897dbe68189e812193c9c2134753c0bdd72af109516a2a3bcdda53c16edbb0e76b8f6cd7df0fd29e16de33f78135a3c560444b6d9c5291b3e558c2a03 DIST botocore-1.34.160.gh.tar.gz 13290395 BLAKE2B 609ade4e363b1c65409457e187c09e8eea633ab7d482bae5be3580093ca404ae82363e9785d07b65dee3504c63e5c4dc6521717a6698c97f7a404f58103c8e8f SHA512 655348a9e7f88ad0abaab3d0b4bb380ca16c705a1035eedecf44e8b546583720f0f6d01136b0d333e5828069c4d45c7f27530ba4b7f8c3ee684bd4cd0e233ce4 +DIST botocore-1.34.161.gh.tar.gz 13290428 BLAKE2B 9a12df5e533560039d69225ef04345765cdefa11546210a2ad791d38532a54536a0c8705c29c1293b31fec7589f0512fa6f01570342d6f1fbba9a3278c06700f SHA512 8c59cadaa2cedefaeb11057f344c1488c879629199f6e5038c49668cbc814ac1ab68031893c401a5f8baecaea333929822997e81e4f644ebfb09a3af85b7a189 diff --git a/dev-python/botocore/botocore-1.34.161.ebuild b/dev-python/botocore/botocore-1.34.161.ebuild new file mode 100644 index 000000000000..64a61a30c80b --- /dev/null +++ b/dev-python/botocore/botocore-1.34.161.ebuild @@ -0,0 +1,76 @@ +# 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_{8,9,10,11,12} ) + +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 + ) + + case ${EPYTHON} in + python3.13) + EPYTEST_DESELECT+=( + # memory use tests, probably fragile + tests/functional/leak/test_resource_leaks.py::TestDoesNotLeakMemory + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/btrfsutil/Manifest b/dev-python/btrfsutil/Manifest index e81c9c007988..e35d2c597415 100644 --- a/dev-python/btrfsutil/Manifest +++ b/dev-python/btrfsutil/Manifest @@ -1,3 +1,5 @@ +DIST btrfs-progs-v6.10.1.tar.sign 566 BLAKE2B dc18c0048716e422475c6630c26c74e09b3595fb8c5c1a1826464eb837d16edfe7d5fa1f418631ae4d380b24bc3fb91fa79ba1e9b1d42a2534838558362ddc18 SHA512 a8a1805ab22feda9f0535841d44120200e48d6d3762ae98f3323be09c9bd7905ff69f21066a8de1fe5cb34a3113879b73ae030a74ccc74737f06dafb32093375 +DIST btrfs-progs-v6.10.1.tar.xz 2670604 BLAKE2B 7a2631b8462bb02be0936861a42b868907bd4f4e365293f9c95744b963e769b81248ba0a290fca517d689ff9f93d8709cc37e217264b2dac1469a47349f97e8c SHA512 cd10747d1f5f9377abfdf209b517791d3eb13b417c0be65fd5c0c044b01063125b4176c178345387bb3deda7a3a379953f31d46d7834854455a5dbfbf967aa97 DIST btrfs-progs-v6.8.1.tar.sign 566 BLAKE2B 843eada2b00a2370522edc95d79bcfed88bd24233e647946d4807322550593e4d5f5bb5efa6652c754dd0965dc3e389bc97698a0bd8fc5d0e850bea94de98e72 SHA512 84ebaa6ec27aa5bc87a323f5c6cc82a860fada7311ab8319127de3592294c1076d25959e412f8387d54bad3b8ff838ce39c4db4b04a658b2de2eaa7c976e2b09 DIST btrfs-progs-v6.8.1.tar.xz 2652968 BLAKE2B 34406dedc6d97bd94a498c3bbb424d34a59b8251b37f9a40a87740f96db77780a4cd76c88055b4d9e4f673b4a3621503a6bedb67ceaf20870fb26c10f49b74e0 SHA512 b5f0694e56eecf1956313b3406610c2e22658ace51a636d79efe996780bb0b03fed95e68a8c9a11dd8649958c0e7dbc7417bb479859365d47b52e478f6830d46 DIST btrfs-progs-v6.9.2.tar.sign 566 BLAKE2B 4cd95496d355444c7d3e582a7e6c05fbb55683008b1585a26f38aef6cceb1afd5e80c9611518d6bd92dc1167798d4012c4bcab2f9bda752c459d94cfa6f3c477 SHA512 3fb04e1894e231abde388a39d2f0c90f43c1a1494622c2158fab9b94bb340e064404bcf96e24d913c60aaf5e06ade42fbb91a479949109b329682bb089f66bf2 diff --git a/dev-python/btrfsutil/btrfsutil-6.10.1.ebuild b/dev-python/btrfsutil/btrfsutil-6.10.1.ebuild new file mode 100644 index 000000000000..1ef95d7a0f9b --- /dev/null +++ b/dev-python/btrfsutil/btrfsutil-6.10.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/dsterba.asc + +inherit distutils-r1 verify-sig + +DESCRIPTION="Library for managing Btrfs filesystems" +HOMEPAGE="https://github.com/kdave/btrfs-progs" + +MY_PN="btrfs-progs" +MY_PV="v${PV/_/-}" +MY_P="${MY_PN}-${MY_PV}" +SRC_URI=" + https://mirrors.edge.kernel.org/pub/linux/kernel/people/kdave/${MY_PN}/${MY_P}.tar.xz + verify-sig? ( https://mirrors.edge.kernel.org/pub/linux/kernel/people/kdave/${MY_PN}/${MY_P}.tar.sign ) +" +S="${WORKDIR}/${MY_P}/libbtrfsutil/python" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +DEPEND="~sys-fs/btrfs-progs-${PV}" +RDEPEND="${DEPEND}" + +distutils_enable_tests unittest + +RDEPEND+=" !sys-fs/btrfs-progs[python(-)]" + +src_unpack() { + # Upstream sign the decompressed .tar + if use verify-sig; then + einfo "Unpacking ${MY_P}.tar.xz ..." + verify-sig_verify_detached - "${DISTDIR}"/${MY_P}.tar.sign \ + < <(xz -cd "${DISTDIR}"/${MY_P}.tar.xz | tee >(tar -x)) + assert "Unpack failed" + else + default + fi +} diff --git a/dev-python/click-didyoumean/click-didyoumean-0.3.1.ebuild b/dev-python/click-didyoumean/click-didyoumean-0.3.1.ebuild index 5e8857f2c007..832bf01f1d0b 100644 --- a/dev-python/click-didyoumean/click-didyoumean-0.3.1.ebuild +++ b/dev-python/click-didyoumean/click-didyoumean-0.3.1.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +KEYWORDS="amd64 ~arm64 ~riscv ~x86" RDEPEND=" >=dev-python/click-7[${PYTHON_USEDEP}] diff --git a/dev-python/cypari2/Manifest b/dev-python/cypari2/Manifest index 0718113751e4..379839a9eefc 100644 --- a/dev-python/cypari2/Manifest +++ b/dev-python/cypari2/Manifest @@ -1 +1,2 @@ DIST cypari2-2.1.4.gh.tar.gz 127038 BLAKE2B 0d4998841a9a630ea062d7096845771a9a250ed66b68f99988ded6442724559089e8dbbce13ef5c6ad467705c65b2ac9fc5889fa9c40b9665083af558280b81a SHA512 b5926281037aebb899c1a433a0ca106cdfafcb8cb7abb863268ff8151dbc52ee21dbe1d09dde632de1640a4cc4d37f59bebb0e379d61ac2fbdf9fffcf3ba4775 +DIST cypari2-2.2.0.tar.gz 127530 BLAKE2B 0ce2e3f157d63c20a257b3b7eaf9a06bf241893193bd561c8980ecb38e698b2ca6679a74958a2398944753e6445c1ab5b063b14e408ef0395a9eaf9e0d7cc8db SHA512 5ba237feb1910bd7182a3c3e8e1409209d4f6e68c9f8966c3bd0ad2f6e66193b4dc3006f26fcb507cac7e6d1ee32ec6d5dda612290d8bd3b3350c8243dd89616 diff --git a/dev-python/cypari2/cypari2-2.2.0.ebuild b/dev-python/cypari2/cypari2-2.2.0.ebuild new file mode 100644 index 000000000000..203af7db1dac --- /dev/null +++ b/dev-python/cypari2/cypari2-2.2.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +DISTUTILS_USE_PEP517=standalone +DISTUTILS_EXT=1 + +inherit distutils-r1 pypi + +DESCRIPTION="Cython interface to PARI" +HOMEPAGE="https://github.com/sagemath/cypari2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="sci-mathematics/pari[gmp,doc] + dev-python/cysignals[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" +BDEPEND=">=dev-python/cython-3[${PYTHON_USEDEP}]" + +PATCHES=( "${FILESDIR}/${P}-regen-bindings-for-each-python.patch" ) + +python_test(){ + cd "${S}"/tests || die + "${EPYTHON}" rundoctest.py || die +} + +python_install() { + distutils-r1_python_install + python_optimize +} diff --git a/dev-python/cypari2/files/cypari2-2.2.0-regen-bindings-for-each-python.patch b/dev-python/cypari2/files/cypari2-2.2.0-regen-bindings-for-each-python.patch new file mode 100644 index 000000000000..9e69c6e43121 --- /dev/null +++ b/dev-python/cypari2/files/cypari2-2.2.0-regen-bindings-for-each-python.patch @@ -0,0 +1,25 @@ +diff --git a/setup.py b/setup.py +index c1775b5..5051c6b 100755 +--- a/setup.py ++++ b/setup.py +@@ -12,6 +12,10 @@ from autogen.paths import include_dirs, library_dirs + + ext_kwds = dict(include_dirs=include_dirs(), library_dirs=library_dirs()) + ++# Generate auto-generated sources from pari.desc ++# This needs to be done before build/build_ext so the generated pxd is moved ++# to the build directory and installed with newer setuptools. ++rebuild() + + if "READTHEDOCS" in os.environ: + # When building with readthedocs, disable optimizations to decrease +@@ -28,9 +32,6 @@ if "READTHEDOCS" in os.environ: + # Adapted from Cython's new_build_ext + class build_ext(_build_ext): + def finalize_options(self): +- # Generate auto-generated sources from pari.desc +- rebuild() +- + self.directives = { + "autotestdict.cdef": True, + "binding": True, diff --git a/dev-python/django-allauth/Manifest b/dev-python/django-allauth/Manifest index 11c0a049f9e2..06e2cf51f773 100644 --- a/dev-python/django-allauth/Manifest +++ b/dev-python/django-allauth/Manifest @@ -1,3 +1,2 @@ -DIST django-allauth-0.61.1.tar.gz 951524 BLAKE2B 3a29689f6b8032d96afbfb8081c8f07367395892c3daa9224074799608911bf517ece04a047e859f97d80d11adaff7fa0dbf25102121f5354d8e17cbbcdddd4d SHA512 c9ad0b206a4967d542a67d97e8973d4d83fe030fa71d8fad1f43b81fb388895a7d9c339f49d536cccfad5b3f606ea02dd31bc5e41328579d092b00e7e0a1b936 -DIST django-allauth-0.63.6.gh.tar.gz 1090004 BLAKE2B 07a3ba7546de6b5a7ebf731dd7fb11ba814042ffc81022d9211b685c5cfa3318a8966697fbbf2519be28272d8fa1f69ec1f141dba10b31886f8c98204c18ee78 SHA512 4ca285cc8acf57575d7d7bba4a2dfbfc0076279d0dd7aa424d409cc70917494d847214907d83b89d9d10dd440b05c9e343ac091eb5d3ad5f81e85c2d602947d1 DIST django-allauth-64.0.0.gh.tar.gz 1163823 BLAKE2B 8ba2f24c737e41a0c0476632bf31785783b7bd2afb07e297cf79c8f2a5cf3800ee0997df49fbdf21e843acb96503472c065ae9b1c6e28b90b1c764936302e314 SHA512 d644ecf95114bee86e647dc7219c5056cc9b093799c947a8d53295992ecad22725bb61a6bb2020c70d0266739d0b7bd2b50467dd161d81497f9c5db517d1e678 +DIST django-allauth-64.1.0.gh.tar.gz 1166793 BLAKE2B 759f146b8e18934c426922a1fab396c709a0c945cae5e7c88841b00e35e0a547b547fef8da39a838c9cea8ce619df1d2722803e8fb860f00a0e4bb6817c44919 SHA512 f5c9d19dbaad6b8d52fcc433f9b81248ebe6b3f7244f1ce91938c477578a92335c7403fc7015cfa4b36ee9c14b98c781beea52886c5e290de0f91df762d3c9a2 diff --git a/dev-python/django-allauth/django-allauth-0.61.1.ebuild b/dev-python/django-allauth/django-allauth-0.61.1.ebuild deleted file mode 100644 index f76f0976d412..000000000000 --- a/dev-python/django-allauth/django-allauth-0.61.1.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# 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_{8,9,10,11,12} ) -PYPI_NO_NORMALIZE=1 - -inherit distutils-r1 optfeature pypi - -DESCRIPTION="Django 3rd party (social) account authentication" -HOMEPAGE=" - https://www.intenct.nl/projects/django-allauth/ - https://github.com/pennersr/django-allauth/ - https://pypi.org/project/django-allauth/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-python/django-3.2[${PYTHON_USEDEP}] - >=dev-python/python3-openid-3.0.8[${PYTHON_USEDEP}] - >=dev-python/pyjwt-1.7[${PYTHON_USEDEP}] - >=dev-python/requests-oauthlib-0.3.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] -" -# cryptography via pyjwt[crypto] -RDEPEND+=" - dev-python/cryptography[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-python/pillow-9.0[${PYTHON_USEDEP}] - >=dev-python/pytest-django-4.5.2[${PYTHON_USEDEP}] - >=dev-python/qrcode-7.0.0[${PYTHON_USEDEP}] - >=dev-python/python3-saml-1.15.0[${PYTHON_USEDEP}] - <dev-python/python3-saml-2.0.0[${PYTHON_USEDEP}] - ) -" - -DOCS=( README.rst AUTHORS ChangeLog.rst ) - -distutils_enable_sphinx docs \ - dev-python/sphinx-rtd-theme - -src_test() { - # Require internet access - rm allauth/socialaccount/providers/openid/tests.py || die - distutils-r1_src_test -} - -python_test() { - local -x DJANGO_SETTINGS_MODULE=test_settings - local -x PYTHONPATH=. - django-admin test -v 2 || die "Tests failed with ${EPYTHON}" -} - -pkg_postinst() { - optfeature "SAML authentication" dev-python/python3-saml - optfeature "MFA (Multi-factor authentication)" dev-python/qrcode -} diff --git a/dev-python/django-allauth/django-allauth-0.63.6.ebuild b/dev-python/django-allauth/django-allauth-64.1.0.ebuild index a88ef467b293..437f6d70bcd8 100644 --- a/dev-python/django-allauth/django-allauth-0.63.6.ebuild +++ b/dev-python/django-allauth/django-allauth-64.1.0.ebuild @@ -13,7 +13,7 @@ HOMEPAGE=" https://github.com/pennersr/django-allauth/ https://pypi.org/project/django-allauth/ " -SRC_URI="https://github.com/pennersr/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" +SRC_URI="https://github.com/pennersr/django-allauth/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="MIT" SLOT="0" diff --git a/dev-python/dparse/dparse-0.6.4_beta0.ebuild b/dev-python/dparse/dparse-0.6.4_beta0.ebuild index a99c3ca0f677..7084c74c0904 100644 --- a/dev-python/dparse/dparse-0.6.4_beta0.ebuild +++ b/dev-python/dparse/dparse-0.6.4_beta0.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" +KEYWORDS="amd64 ~arm64 ~riscv" # Break circular dependency PDEPEND=" diff --git a/dev-python/google-api-python-client/Manifest b/dev-python/google-api-python-client/Manifest index 7adf1b254fac..31506f1b0f6e 100644 --- a/dev-python/google-api-python-client/Manifest +++ b/dev-python/google-api-python-client/Manifest @@ -1,3 +1,4 @@ DIST google_api_python_client-2.138.0.tar.gz 11595036 BLAKE2B 554abf4e58264d60a5a09174b7199f31ac6cf31bd024add66ff73a71992e9da077c8046abfd8d9400d1b17fa0ccd27ca484ae62dca8b6900bbad42e2a26af9ee SHA512 f9e7501a289e96aebe8db78e32dc30771a860af34808d1bc6d6192c4511ecbbf871cbbf8cdf50daeeb865908a86236400d651e159d913b415b1f2fdf8eb045ab DIST google_api_python_client-2.139.0.tar.gz 11606939 BLAKE2B 9ad0cd36a913235e8c7b5afe2f4334399deb662d2d6287a64d98b02d890368839b345dba5e64aad3c852d655e99a04f8eb6902498664c4efa3a693ae2a2c6aeb SHA512 b6235f866a402ebde20fc8cfce41ad5bd0b8034311ab5b4f1b4cc88cea03f52021ee23264a32e9577ee1fa5bcbbb07af1c4e6d5e3f85bc53c0e6760654543b34 DIST google_api_python_client-2.140.0.tar.gz 11618875 BLAKE2B 0d156fa072b302c0410f8e70681556ee146d8d8951576b1890e429b40363661d263554ad61157256feebee9a45afdf3dcdbb287b7c1dc367a6b6940ec488a645 SHA512 168e75ea734edbf0182078fad27d30f8dd56b07a8c7056973c7df99fb7faff83034901b6742aab8e03c833b73a5fd31a92455105ccc6f0f5b741fadb66715f30 +DIST google_api_python_client-2.141.0.tar.gz 11652283 BLAKE2B 23209b950bb0712890f5c6b2dd0f238b8397a3084a9d61d6423b6d7275faa719d788551868037ab3c4a8ec8d0e37cff96859a1b933e395ef5feadae711c79be9 SHA512 c8d0f879ce9466e3c93e36f263ad9185bc844dae229ed1791068025dd200f21d67d0c87a5ee8ca8b6b0d71c7aad10b6a97dcfc7e7fed20017f992f5bdc7ea225 diff --git a/dev-python/google-api-python-client/google-api-python-client-2.141.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.141.0.ebuild new file mode 100644 index 000000000000..10fa88d021bb --- /dev/null +++ b/dev-python/google-api-python-client/google-api-python-client-2.141.0.ebuild @@ -0,0 +1,50 @@ +# 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_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Google API Client for Python" +HOMEPAGE=" + https://github.com/googleapis/google-api-python-client/ + https://pypi.org/project/google-api-python-client/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/httplib2-0.15[${PYTHON_USEDEP}] + <dev-python/httplib2-1[${PYTHON_USEDEP}] + >=dev-python/google-api-core-2.3.1[${PYTHON_USEDEP}] + >=dev-python/google-auth-1.35.0[${PYTHON_USEDEP}] + >=dev-python/google-auth-httplib2-0.1.0[${PYTHON_USEDEP}] + >=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}] + <dev-python/uritemplate-5[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # require Internet access (and credentials) + tests/test_discovery.py::DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive + tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_mapping_object + tests/test_discovery.py::Universe::test_client_options_universe_configured_with_mtls + tests/test_discovery.py::Universe::test_universe_env_var_configured_with_mtls + ) + + epytest tests +} diff --git a/dev-python/griffe/Manifest b/dev-python/griffe/Manifest index c65ab5dc412c..b1abc34180ce 100644 --- a/dev-python/griffe/Manifest +++ b/dev-python/griffe/Manifest @@ -1,2 +1,3 @@ DIST griffe-0.47.0.gh.tar.gz 233418 BLAKE2B cb31882f9ddd7210ac36eb400d182395b0da3cd37e38458f23582117aae4c83e9cd62a3dfb16067ec518a42ed6b4f6d9d77d6927be2ca462297c6420bcd25cd8 SHA512 d1d0603a81a8c859c67791ceeaf3c03a134ae221d7554b2a1133ed60a3ca85d157980b26c6930c282c50d9d46a02f26a44dffcfe0c1bd844a3f0ba58f2a1c52c DIST griffe-0.48.0.gh.tar.gz 370711 BLAKE2B 197da160c0e20d9669a5347fbf256db58c5a3e5e33094ddd104ae02ac9112d2daa17778ba64bc6611117a7d20af42b1b3e4101b3ec56ef8cc0dc2297d6d38a3a SHA512 3b999fbd05b206c973fe5dc7c89500f2fbfe9376529d0b5cc1714dee30f2a17985e4ed6903e638e0b96600e546747f105cab11620190185c133c53dd1df9a364 +DIST griffe-0.49.0.gh.tar.gz 377617 BLAKE2B 3c30ff5a0b222d462d4b74ab1f4b1545dce04a10f3cef460a752edc33743d638a4fc7aa5b2db39c611b1908035f9bf4c283dec00bf4bc513ca951df261c657e2 SHA512 6f1e3634bb2bff730e1ea38f90d161c7d8882f234d4ad0e36c18357575a31575b87bfac80867ec695cf668b31da9995e41a64b97d970fc2f4ab499974c43d00e diff --git a/dev-python/griffe/griffe-0.49.0.ebuild b/dev-python/griffe/griffe-0.49.0.ebuild new file mode 100644 index 000000000000..f1b76e5d2f42 --- /dev/null +++ b/dev-python/griffe/griffe-0.49.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=pdm-backend +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +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 ~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/imageio/imageio-2.35.0.ebuild b/dev-python/imageio/imageio-2.35.0-r1.ebuild index a913a352ba88..6ce33273ee3f 100644 --- a/dev-python/imageio/imageio-2.35.0.ebuild +++ b/dev-python/imageio/imageio-2.35.0-r1.ebuild @@ -64,6 +64,9 @@ src_prepare() { fi distutils-r1_src_prepare + + # unpin numpy + sed -i -e '/numpy/s:<2.0.0::' setup.py || die } python_test() { diff --git a/dev-python/importlib-resources/Manifest b/dev-python/importlib-resources/Manifest index 27040acd0be1..327eb10c340b 100644 --- a/dev-python/importlib-resources/Manifest +++ b/dev-python/importlib-resources/Manifest @@ -1 +1,2 @@ DIST importlib_resources-6.4.0.tar.gz 42040 BLAKE2B 55b52a42051c6900af7b5b70783476a48398ae02539871a3f508df08fd5b4ec03bbe40980de8cd49a60cc022905a4ffdfd95b55d70e0cfb5d64497b02cc9b88f SHA512 c600e7ba96431f15a929e5acda89a262ceef33a3f44ae361fad4201dde8033dd8f0f2bcb856619fd5e21209a5d17cf9ae3610e65c3e6ecd0e36545437d0064b9 +DIST importlib_resources-6.4.2.tar.gz 41629 BLAKE2B 21bfb0af9421f49acce3209ec93016b69626a179d65f48066abea8792292506b739460675cc9c0ce552d11db261af409d5aa2bab2b7b16c3daab133873d3a353 SHA512 e3bb0e1ccf35fe36f805a97ff71cd82d9e55547baf1c6083bec07c2528cb1f11497926f76917cfba3924c04d6fd5753ccfbb912fdf08174c5b63f5f1a198acf5 diff --git a/dev-python/importlib-resources/importlib-resources-6.4.2.ebuild b/dev-python/importlib-resources/importlib-resources-6.4.2.ebuild new file mode 100644 index 000000000000..dfccedc77446 --- /dev/null +++ b/dev-python/importlib-resources/importlib-resources-6.4.2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +# backport from py3.12 +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Read resources from Python packages" +HOMEPAGE=" + https://github.com/python/importlib_resources/ + https://pypi.org/project/importlib-resources/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/jaraco-test-5.4[${PYTHON_USEDEP}] + >=dev-python/zipp-3.17[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/mkdocstrings-python/Manifest b/dev-python/mkdocstrings-python/Manifest index 6c465af4171e..a6d07345b488 100644 --- a/dev-python/mkdocstrings-python/Manifest +++ b/dev-python/mkdocstrings-python/Manifest @@ -1,2 +1,3 @@ DIST mkdocstrings-python-1.10.5.gh.tar.gz 157091 BLAKE2B 1f0685fc8b04ea4e5f33e3e4ca9637d590bd45b5be85d856ea0f6693d3be2a7d215751b68f811ca73afec078ffa5cc1acf88ab1907bd9842c6e390eb14fd71c0 SHA512 0bc3b103a99add6d38621243d2a21339efd837fb3476feb13bc55afabcee481d45ea7b410f8d16312583f308ee9f36f387762cdd1ef1e9758ecdb5b1be9dcb9e DIST mkdocstrings_python-1.10.7.tar.gz 161638 BLAKE2B f62bd6b8f04223ba3ae479b04928888770cad02f5a060fcd39e5f20ddf80d88ff267f9826644cf80704a10f2f98320d1a5784c5bada43e845c07ab9c8a2d0d05 SHA512 1df467957e138f7fa474c2799b1cf254994b11b75217d90ff9c8a1f2d4c72817ecab80724c9da84721dbbde52c7074833534cde0ce8f50de6aae09b6edb25e03 +DIST mkdocstrings_python-1.10.8.tar.gz 161724 BLAKE2B 1720bd166c8b924f3d024ffbdaa46383a68ddbb4db1aff6d588049272f8e34046ac7ae62a6d9739dca029794e42afa0415179c978874b6012ace4842978184de SHA512 da179fc31af4bc6dba62b050c26736b313859dac6b8c29c877126081d6bb228255be626af09a61ae2a5b449dd0a1a19d41b1313dc9d1fd10e001e16a423c485c diff --git a/dev-python/mkdocstrings-python/mkdocstrings-python-1.10.8.ebuild b/dev-python/mkdocstrings-python/mkdocstrings-python-1.10.8.ebuild new file mode 100644 index 000000000000..61a74ad45675 --- /dev/null +++ b/dev-python/mkdocstrings-python/mkdocstrings-python-1.10.8.ebuild @@ -0,0 +1,34 @@ +# 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_{8,9,10,11,12} ) + +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 ~riscv" + +RDEPEND=" + >=dev-python/griffe-0.49[${PYTHON_USEDEP}] + >=dev-python/mkdocstrings-0.25.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mkdocs-material[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +export PDM_BUILD_SCM_VERSION=${PV} diff --git a/dev-python/numpy/numpy-2.1.0_rc1.ebuild b/dev-python/numpy/numpy-2.1.0_rc1.ebuild index 1d06e3af61d1..5667c579dbd0 100644 --- a/dev-python/numpy/numpy-2.1.0_rc1.ebuild +++ b/dev-python/numpy/numpy-2.1.0_rc1.ebuild @@ -20,7 +20,6 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0/2" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" # +lapack because the internal fallbacks are pretty slow. Building without blas # is barely supported anyway, see bug #914358. IUSE="+lapack" diff --git a/dev-python/openapi-core/Manifest b/dev-python/openapi-core/Manifest index a6f20fc95c06..740322ea03e6 100644 --- a/dev-python/openapi-core/Manifest +++ b/dev-python/openapi-core/Manifest @@ -1 +1,2 @@ DIST openapi_core-0.19.2.tar.gz 108121 BLAKE2B 0873ba33c0270babb3c3e626e942fd22fc066f8ef408c6f1cadab8140fdb6284d21a1cb5ed767c7f0f370112a1bb263ac50b340cccfe1cba6da1a0f15a73bbde SHA512 cab2343c61bbb8de048b5e3a53c2d753468f6707f3b4b40ddfee7c3ea6eb0f3beff0aebcad632200a5a4b08e93c620aceda659297756d4f587d11039ede0eefa +DIST openapi_core-0.19.3.tar.gz 109026 BLAKE2B e7725fd14069599a3f4f0d976452fca9b12acd39c2a0fb7b448ee862d9fa973c520b1e428e017a7f246c7110b56d58c299aa35c8f387cf43af6e9a53da2f1418 SHA512 87db8e0a1c5998fb4dbe3bfaf5c33b526e291ad96bb4a679fcb68ce21b003a66b40db14c4784f80104d4462c1e958a1b7776fb3d952e68eb4a7308999896c08b diff --git a/dev-python/openapi-core/openapi-core-0.19.3.ebuild b/dev-python/openapi-core/openapi-core-0.19.3.ebuild new file mode 100644 index 000000000000..59c15dd0f57e --- /dev/null +++ b/dev-python/openapi-core/openapi-core-0.19.3.ebuild @@ -0,0 +1,71 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Client-side and server-side support for the OpenAPI Specification v3" +HOMEPAGE=" + https://github.com/python-openapi/openapi-core/ + https://pypi.org/project/openapi-core/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" + +RDEPEND=" + <dev-python/asgiref-4[${PYTHON_USEDEP}] + >=dev-python/asgiref-3.6.0[${PYTHON_USEDEP}] + dev-python/isodate[${PYTHON_USEDEP}] + <dev-python/jsonschema-5[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4.17.3[${PYTHON_USEDEP}] + <dev-python/jsonschema-path-0.4[${PYTHON_USEDEP}] + >=dev-python/jsonschema-path-0.3.1[${PYTHON_USEDEP}] + dev-python/more-itertools[${PYTHON_USEDEP}] + dev-python/parse[${PYTHON_USEDEP}] + <dev-python/openapi-schema-validator-0.7[${PYTHON_USEDEP}] + >=dev-python/openapi-schema-validator-0.6.0[${PYTHON_USEDEP}] + <dev-python/openapi-spec-validator-0.8[${PYTHON_USEDEP}] + >=dev-python/openapi-spec-validator-0.7.1[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + >=dev-python/aiohttp-3.8.4[${PYTHON_USEDEP}] + >=dev-python/aioitertools-0.11.0[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + >=dev-python/httpx-0.24.0[${PYTHON_USEDEP}] + >=dev-python/pytest-aiohttp-1.0.4[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + >=dev-python/starlette-0.26.1[${PYTHON_USEDEP}] + dev-python/strict-rfc3339[${PYTHON_USEDEP}] + dev-python/webob[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + # missing dependendencies + tests/integration/contrib/falcon + tests/integration/contrib/fastapi + + # TODO: these tests fail to collect + tests/integration/validation/test_security_override.py + tests/integration/validation/test_read_only_write_only.py + + # unhappy about modern django + tests/integration/contrib/django/test_django_project.py + tests/unit/contrib/django/test_django.py +) + +src_prepare() { + sed -i -e '/--cov/d' pyproject.toml || die + distutils-r1_src_prepare +} diff --git a/dev-python/pipdeptree/files/pipdeptree-2.18.1-fix-pypy-7.3.14.patch b/dev-python/pipdeptree/files/pipdeptree-2.18.1-fix-pypy-7.3.14.patch index 6179d823a021..32d039fed519 100644 --- a/dev-python/pipdeptree/files/pipdeptree-2.18.1-fix-pypy-7.3.14.patch +++ b/dev-python/pipdeptree/files/pipdeptree-2.18.1-fix-pypy-7.3.14.patch @@ -1,6 +1,15 @@ ---- a/tests/test_non_host.py 2024-06-12 21:33:13.696206671 +0200 -+++ b/tests/test_non_host.py 2024-06-12 21:46:40.146193582 +0200 -@@ -32,10 +32,10 @@ +diff --git a/tests/test_non_host.py b/tests/test_non_host.py +index 2849375..ed7b7b3 100644 +--- a/tests/test_non_host.py ++++ b/tests/test_non_host.py +@@ -1,5 +1,6 @@ + from __future__ import annotations + ++import json + import sys + from platform import python_implementation + from typing import TYPE_CHECKING +@@ -31,10 +32,10 @@ def test_custom_interpreter( result = virtualenv.cli_run([str(tmp_path / "venv"), "--activators", ""]) py = str(result.creator.exe.relative_to(tmp_path)) cmd = ["", f"--python={result.creator.exe}"] if args_joined else ["", "--python", py] @@ -13,4 +22,3 @@ implementation = python_implementation() if implementation == "CPython": expected = {"pip", "setuptools", "wheel"} - diff --git a/dev-python/pipdeptree/pipdeptree-2.18.1.ebuild b/dev-python/pipdeptree/pipdeptree-2.18.1-r1.ebuild index ed7ddcc77d6e..d43362c0dfc3 100644 --- a/dev-python/pipdeptree/pipdeptree-2.18.1.ebuild +++ b/dev-python/pipdeptree/pipdeptree-2.18.1-r1.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" +KEYWORDS="amd64 ~arm64 ~riscv" RDEPEND=" >=dev-python/packaging-23.1[${PYTHON_USEDEP}] @@ -26,6 +26,7 @@ BDEPEND=" dev-python/hatch-vcs[${PYTHON_USEDEP}] test? ( dev-python/graphviz[${PYTHON_USEDEP}] + >=dev-python/pytest-console-scripts-1.4.1[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] dev-python/virtualenv[${PYTHON_USEDEP}] ) @@ -39,9 +40,16 @@ PATCHES=( distutils_enable_tests pytest +src_prepare() { + distutils-r1_src_prepare + + find -name '*.py' -exec \ + sed -i -e 's:pip[.]_vendor[.]::' {} + || die +} + python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p pytest_mock + epytest -p pytest_mock -p console-scripts } pkg_postinst() { diff --git a/dev-python/pipenv/pipenv-2024.0.1.ebuild b/dev-python/pipenv/pipenv-2024.0.1.ebuild index 9490804ba4de..4ae14184fbc7 100644 --- a/dev-python/pipenv/pipenv-2024.0.1.ebuild +++ b/dev-python/pipenv/pipenv-2024.0.1.ebuild @@ -16,7 +16,7 @@ S="${WORKDIR}"/${PN}-${MY_PV} LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" +KEYWORDS="amd64 ~arm64 ~riscv" PATCHES=( "${FILESDIR}/pipenv-2023.9.8-inject-system-packages.patch" diff --git a/dev-python/pkgcraft/Manifest b/dev-python/pkgcraft/Manifest index 5fe3431bf1c8..839ccd4b0d02 100644 --- a/dev-python/pkgcraft/Manifest +++ b/dev-python/pkgcraft/Manifest @@ -1,2 +1,3 @@ DIST pkgcraft-0.0.10.tar.gz 452861 BLAKE2B f7f52e8c7c917701b08540cc8da8ee1f1ff7157b02e61d5cfa1b4ca6850ae8aac171dfdefe6ac611ce4971aff27d63614d4914178bf86c8a389e437d5fb43ba9 SHA512 1c3878256bfbeae05ceb9e7445e100a8e6601649aae634b02bdd00494075056fad014b724e2cfd76325dd06c664c1c90343f49f186c0b61bfe2d92bbed14abe4 +DIST pkgcraft-0.0.11.tar.gz 460263 BLAKE2B 5a05390f51dc0cfac2a333601c4296a5e7236262a82afcad74470cd8466933ae0abcc78b5422bd218ca86bcb35176f9d715b4449a8e76315a3dde91fe46cce19 SHA512 a6883db42e7572e1d0cf102372ad72e7276f3add492c14c11ff1654339c1504e96d9b3cf057762f1a35dd17d96f3f63140ebfc0d59d46538b97a2d99167ed146 DIST pkgcraft-0.0.9.tar.gz 431872 BLAKE2B 6c6ed1677c891c0e5579c7e28342876c2d7cbe03f2fcf3f8ad9f994302570d1d2398d2b4a55ec1a2fd82bbea518a4d2f76e9cabe760f0d9779b8d55170c1d940 SHA512 13988ff6822a5f9b715f3a9e8593a21d6ac530a91ca98790bd8a1c3e5958c97e440ce0610d25ed518f6d485837c9aded2ba145facf98e217325802777a33b3a7 diff --git a/dev-python/pkgcraft/pkgcraft-0.0.11.ebuild b/dev-python/pkgcraft/pkgcraft-0.0.11.ebuild new file mode 100644 index 000000000000..2770128d9946 --- /dev/null +++ b/dev-python/pkgcraft/pkgcraft-0.0.11.ebuild @@ -0,0 +1,81 @@ +# 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_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for pkgcraft" +HOMEPAGE=" + https://pypi.org/project/pkgcraft/ + https://github.com/pkgcraft/pkgcraft-python/ +" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft-python.git" + inherit git-r3 + + PKGCRAFT_VERSION_MAX="99999" # extra 9 here or 9999 isn't mergable per DEPEND below + PKGCRAFT_VERSION_MIN="9999" +else + SRC_URI="https://github.com/pkgcraft/pkgcraft-python/releases/download/v${PV}/${P/-python}.tar.gz" + S="${WORKDIR}"/${P/-python} + + KEYWORDS="~amd64 ~arm64" + + PKGCRAFT_VERSION_MAX="9999" + PKGCRAFT_VERSION_MIN="0.0.16" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+examples" + +DEPEND=" + <sys-libs/pkgcraft-${PKGCRAFT_VERSION_MAX} + >=sys-libs/pkgcraft-${PKGCRAFT_VERSION_MIN}:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + >=dev-python/cython-3[${PYTHON_USEDEP}] + dev-python/setuptools-scm[${PYTHON_USEDEP}] + virtual/pkgconfig +" + +distutils_enable_tests pytest + +python_prepare_all() { + if [[ ${PV} != 9999 ]] ; then + local actual_pkgcraft_min=$(sed -En '/^MIN_VERSION =/{s/[^0-9.]//gp}' setup.py || die) + if [[ ${actual_pkgcraft_min} != ${PKGCRAFT_VERSION_MIN} ]] ; then + eerror "Expected minimum pkgcraft-c version: ${PKGCRAFT_VERSION_MIN}" + eerror "Actual minimum pkgcraft-c version: ${actual_pkgcraft_min}" + die "Mismatch between setup.py's MIN_VERSION and ebuild!" + fi + fi + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +python_install() { + # Conditional because these aren't installed officially right now + # and the naming is just for convenience. + if use examples ; then + while IFS= read -r -d '' file ; do + python_newexe "${S}"/examples/${file##*/} pkgcraft-${file##*/} + done < <(find "${S}"/examples -type f -executable -print0 || die) + fi + + distutils-r1_python_install +} diff --git a/dev-python/pkgcraft/pkgcraft-9999.ebuild b/dev-python/pkgcraft/pkgcraft-9999.ebuild index aa7220a40bea..2770128d9946 100644 --- a/dev-python/pkgcraft/pkgcraft-9999.ebuild +++ b/dev-python/pkgcraft/pkgcraft-9999.ebuild @@ -28,7 +28,7 @@ else KEYWORDS="~amd64 ~arm64" PKGCRAFT_VERSION_MAX="9999" - PKGCRAFT_VERSION_MIN="0.0.15" + PKGCRAFT_VERSION_MIN="0.0.16" fi LICENSE="MIT" diff --git a/dev-python/plette/plette-0.4.4.ebuild b/dev-python/plette/plette-0.4.4.ebuild index 86fb823637a0..e47ab5323252 100644 --- a/dev-python/plette/plette-0.4.4.ebuild +++ b/dev-python/plette/plette-0.4.4.ebuild @@ -21,7 +21,7 @@ SRC_URI=" LICENSE="ISC" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" +KEYWORDS="amd64 ~arm64 ~riscv" RDEPEND=" dev-python/cerberus[${PYTHON_USEDEP}] diff --git a/dev-python/pythonfinder/pythonfinder-2.1.0.ebuild b/dev-python/pythonfinder/pythonfinder-2.1.0.ebuild index 774560547584..ac0d432fa6d4 100644 --- a/dev-python/pythonfinder/pythonfinder-2.1.0.ebuild +++ b/dev-python/pythonfinder/pythonfinder-2.1.0.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" +KEYWORDS="amd64 ~arm64 ~riscv" BDEPEND=" test? ( diff --git a/dev-python/shellingham/shellingham-1.5.4.ebuild b/dev-python/shellingham/shellingham-1.5.4.ebuild index 6b27877ddfab..4d54c56e57ac 100644 --- a/dev-python/shellingham/shellingham-1.5.4.ebuild +++ b/dev-python/shellingham/shellingham-1.5.4.ebuild @@ -21,7 +21,7 @@ SRC_URI=" LICENSE="ISC" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv" +KEYWORDS="amd64 ~arm64 ~riscv" DEPEND=" test? ( diff --git a/dev-python/simplejson/Manifest b/dev-python/simplejson/Manifest index 070b48b4c162..f13407d7470d 100644 --- a/dev-python/simplejson/Manifest +++ b/dev-python/simplejson/Manifest @@ -1 +1,2 @@ DIST simplejson-3.19.2.tar.gz 85311 BLAKE2B eecbe77c9612468a0ce52b165be9b4fc4b3d8bcca99621a2723c50fc0c89cdce981421ba71b85535f1c66b48b7178da37f117f9dec8a66cb6f3fe83e3d2d033e SHA512 d92bf617e27b66d93a5d176d38c0c6ae2777728d1e43fdb8054cc9c2b50e3f340079c82dd3ec1af36c8d6380833d16e8eecdc8dd950bba953c195256b44b46c5 +DIST simplejson-3.19.3.tar.gz 85237 BLAKE2B e3c233201c390a1c864670d9a7a81a6aef5334632afbbc303b31dab06709d8a383451e3c7500be3166282b322b93f4fedc2633a1519cb2e2eaef7c4472e903a6 SHA512 257c10c4c84201f1d9c4d77e823c4ef393bf7214c8947e4c95bcfe7c09140ff1b974cc5b00a6e659961263380673d3c4b67a1b37f878888ed049f1db0b663c92 diff --git a/dev-python/simplejson/simplejson-3.19.3.ebuild b/dev-python/simplejson/simplejson-3.19.3.ebuild new file mode 100644 index 000000000000..e8aa3ad51314 --- /dev/null +++ b/dev-python/simplejson/simplejson-3.19.3.ebuild @@ -0,0 +1,37 @@ +# 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_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Simple, fast, extensible JSON encoder/decoder for Python" +HOMEPAGE=" + https://github.com/simplejson/simplejson/ + https://pypi.org/project/simplejson/ +" + +LICENSE="|| ( MIT AFL-2.1 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="+native-extensions" + +DOCS=( README.rst CHANGES.txt ) + +distutils_enable_tests unittest + +src_configure() { + # native-extensions are always disabled on PyPy + # https://github.com/simplejson/simplejson/blob/master/setup.py#L121 + export DISABLE_SPEEDUPS=$(usex native-extensions 0 1) + use native-extensions && export REQUIRE_SPEEDUPS=1 +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + eunittest +} diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index 80a260e6cd53..0c600e53feed 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -19,8 +19,8 @@ DIST quote-1.0.33.crate 28090 BLAKE2B 77c4b166f1200e1ee2ab94a5014acd334c1fe4b7d7 DIST redox_syscall-0.4.1.crate 24858 BLAKE2B c3301137a0b84e03b09d28dfa377ab3bea74d574a08cee21d35713b278d8b5b30ca2a1d73a0981baeb4644cbb88c86c8eb15ab3bb2692e38b93e6b35fab4e0da SHA512 073ed9d96090cf46eab9877742277a013c62d8da86d9caf2310b4fa868af306511936553579e01309f27067d344226cc8dc5e3aef01d9b900da2febd33848f8d DIST scopeguard-1.2.0.crate 11619 BLAKE2B 8b7e9ed6cefef9ee55407fb9690d57a2a98bb93e5105aeebdb475a52485e9e185255249e1dce8f83cd80534e7402d485aac3efa7e8493b13135de27550cd4bc4 SHA512 6247719a15fe1e4e2d179127b9a934bd2f99367724f41175ed9522f58824b6bc69b35002eae66b35880375ff61d77ac43ddaa78cbde7160a35183a1da32d3fbb DIST smallvec-1.11.2.crate 34801 BLAKE2B 58645e99db8f02db64d02c75860c7ea41836c427c03ee3b0b23365e73a406e4fd6ac312bf13fc5faef8bb6111c10fcfd5f839d5b3686e9b34d1626f8469fc327 SHA512 5cfb427c3b99b0dbd71f6154ed899abcde9d7d2992977ac7b2ef3a4c3ff51e4efafd133071a69609b4ed6cb269bdc26b79eb72e1988f10dfcaef8185d950cd1d -DIST sqlglot-25.10.0.tar.gz 19114093 BLAKE2B ba6f5baa520453925bcd9d191e0ebdab995940b958bbbf89fddfe289bd0c902db76a9db4a64010b153ace62abc2765b6d544b55c047ea9f02f3c47bcbf7622df SHA512 7a6135584da998c5258f872ab0c19aad8d9e8018186f85971934d34e06bd76af8209a92f04489df5da6bf17e6a4e6fd7a1325883ffbfa8703788a0682b96c4c5 DIST sqlglot-25.11.2.tar.gz 19157603 BLAKE2B 98fb96a6682692d3e06884eb07e09c32d7237db655246530fc2ae2be4432daf258f7eca559a7058b2910efee7cbd3feca3f6c117bc253783c0ce2f358bdb2c97 SHA512 0704f1587a5c866a8782a166f250a5a7e5d9a2da16d4b6308cc4027f3be57d9d2b3dbf3a8df6a28ec9244439520358012c99c4b07a08da8ab8039635c08ee56f +DIST sqlglot-25.11.3.tar.gz 19156538 BLAKE2B 7d10a128424af6d4bf90234fc388106aaf3d5bef9c50041772fd68d230b25a0b8aae232616af6b478bbffa3cb30ef2ff686f2a67c0d82b58d74bfb45255df94a SHA512 cff9ad865b8eb8d566304e912da95f1d45dec36478cf40da6f09179e749ee19d07d0c4467afe2c089c9ccd4fef4debf579a47f6abf9cfbe23f0ee096272e7e75 DIST syn-2.0.41.crate 246016 BLAKE2B 9d389f2e2a0acb4c84c309456e8ffcc88c5d4d541535ed136832d7a6054dde45a598bb68e8a6f3062ca2a96e1ceae947d54b3aec9bad65b0c51d6733aa6c80db SHA512 6bbaf69ca783025dfb81ac3612ac60bfbed31b2d87792909b35c12892dadebdaff2ddf9463105e536b671dce5870610ab90fe29471284bbd3014dca8d6993f1a DIST target-lexicon-0.12.12.crate 25156 BLAKE2B f3803596c75f6c89438592a1176c3748fc2c0524d7d50a20056de1cd26d40c572b05bafcdf6dd702752864bea37c8b4f28f96dadc12a5b3bb1d279b25e489f85 SHA512 6147295c43ba1b7b087a3c5ab51534b2985e4e77e5e15687978cfb9d07e21c4fd9bc7191576d6cabd268d08a44dc733c4a957e59dba8b948c2055d8bb433aeca DIST unicode-ident-1.0.12.crate 42168 BLAKE2B 4cede03c08758ccd6bf53a0d0057d7542dfdd0c93d342e89f3b90460be85518a9fd24958d8b1da2b5a09b5ddbee8a4263982194158e171c2bba3e394d88d6dac SHA512 bc1824e1e4452a40732fc69874d7e1a66f7803717a314790dcf48867eba34bc9441331ef031e386912e52c385645c25b6ed39d4f149973b5b97371b1b96b1920 diff --git a/dev-python/sqlglot/sqlglot-25.10.0.ebuild b/dev-python/sqlglot/sqlglot-25.11.3.ebuild index c040bab3734b..c040bab3734b 100644 --- a/dev-python/sqlglot/sqlglot-25.10.0.ebuild +++ b/dev-python/sqlglot/sqlglot-25.11.3.ebuild diff --git a/dev-python/tables/Manifest b/dev-python/tables/Manifest index 9498bdb0d829..9783a85cf9d5 100644 --- a/dev-python/tables/Manifest +++ b/dev-python/tables/Manifest @@ -1 +1,2 @@ +DIST tables-3.10.0.tar.gz 4762618 BLAKE2B 351ec7e1bb9f0e4a43686b51911793aac32260d88418e1dac0b4fb815fd0f48543e139d1b7ea5607c1368578db4c6513a36d6379f4038cc53fbead4a436ce50d SHA512 10b4d2d1df5c692b72ad599cebc81fc2ef56f432a8d8059c2cede25a201076d12aff3e8874dafb8ef1d41dcc6c9151523f7e4fae3971443f79d051c6f8fcbc88 DIST tables-3.9.2.tar.gz 4683437 BLAKE2B 7044aede85d9eca67260a309d19b5c80944b80b2107f665296ad7ae6a3c3f9a8717a41ae7298a5ae45e5b9de7ae0a6678a83d4bd914bd8709512333e783367bc SHA512 9b416222304b7798585a20d4d7d61934023f151d4262a58a4f0ee969aa365264270c12a734461a194d2c857a13a8e09fb7a1386042267113f601560c041cecd9 diff --git a/dev-python/tables/files/tables-3.10.0-pypy.patch b/dev-python/tables/files/tables-3.10.0-pypy.patch new file mode 100644 index 000000000000..f27c99eadfb8 --- /dev/null +++ b/dev-python/tables/files/tables-3.10.0-pypy.patch @@ -0,0 +1,42 @@ +From c04a456a3e3f7c55722b8c77144991c657fc3af6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 14 Aug 2024 13:34:22 +0200 +Subject: [PATCH] FIX: Pass `refcheck=False` to `np.ndarray.resize()` for PyPy + compat + +Pass `refcheck=False` when resizing an `np.ndarray` in place, in order +to fix a test failure on PyPy3: + +``` +Traceback (most recent call last): + File "/tmp/PyTables/tables/tests/test_direct_chunk.py", line 266, in test_write_chunk_missing1 + return self._test_write_chunk_missing(shrink_after=False) + File "/tmp/PyTables/tables/tests/test_direct_chunk.py", line 255, in _test_write_chunk_missing + new_obj.resize(self.array.shape) +ValueError: cannot resize an array with refcheck=True on PyPy. +Use the np.resize function or refcheck=False +``` + +Since the object is created immediately above the `.resize()` call, +adding `refcheck=False` should be entirely safe. Furthermore, +unlike `np.resize()` this preserves the current behavior when new shape +is larger than the original. + +Fixes #1202 +--- + tables/tests/test_direct_chunk.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tables/tests/test_direct_chunk.py b/tables/tests/test_direct_chunk.py +index ccc82516d..ed290d7e6 100644 +--- a/tables/tests/test_direct_chunk.py ++++ b/tables/tests/test_direct_chunk.py +@@ -252,7 +252,7 @@ def _test_write_chunk_missing(self, shrink_after): + self.array.truncate(self.shape[0] - 1) + + new_obj = self.obj.copy() +- new_obj.resize(self.array.shape) ++ new_obj.resize(self.array.shape, refcheck=False) + obj_slice = tuple(slice(s, s + cs) for (s, cs) + in zip(chunk_start, self.chunkshape)) + if not shrink_after: diff --git a/dev-python/tables/tables-3.10.0.ebuild b/dev-python/tables/tables-3.10.0.ebuild new file mode 100644 index 000000000000..d3dbcedb4740 --- /dev/null +++ b/dev-python/tables/tables-3.10.0.ebuild @@ -0,0 +1,80 @@ +# 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_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 prefix pypi + +DESCRIPTION="Hierarchical datasets for Python" +HOMEPAGE=" + https://www.pytables.org/ + https://github.com/PyTables/PyTables/ + https://pypi.org/project/tables/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="+cpudetection examples test" +RESTRICT="!test? ( test )" + +DEPEND=" + app-arch/bzip2:0= + app-arch/lz4:0= + >=app-arch/zstd-1.0.0:= + >=dev-libs/c-blosc-1.11.1:0= + >=dev-libs/c-blosc2-2.11.0:= + dev-libs/lzo:2= + >=dev-python/numpy-1.19.0:=[${PYTHON_USEDEP}] + >=sci-libs/hdf5-1.8.4:= +" +RDEPEND=" + ${DEPEND} + >=dev-python/numexpr-2.6.2[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + cpudetection? ( dev-python/py-cpuinfo[${PYTHON_USEDEP}] ) +" +BDEPEND=" + >=dev-python/cython-0.21[${PYTHON_USEDEP}] + virtual/pkgconfig + cpudetection? ( dev-python/py-cpuinfo[${PYTHON_USEDEP}] ) + test? ( + ${RDEPEND} + ) +" + +python_prepare_all() { + local PATCHES=( + # https://github.com/PyTables/PyTables/pull/1205 + "${FILESDIR}/${P}-pypy.patch" + ) + + rm -r c-blosc/{blosc,internal-complibs} || die + + distutils-r1_python_prepare_all + + sed -i -e '/blosc2/d' -e '/numpy/s:, <2::' pyproject.toml || die + hprefixify -w '/prefixes =/' setup.py + + export PYTABLES_NO_EMBEDDED_LIBS=1 + export USE_PKGCONFIG=TRUE +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + "${EPYTHON}" tables/tests/test_all.py -v || die +} + +python_install_all() { + distutils-r1_python_install_all + + if use examples; then + dodoc -r contrib examples + docompress -x /usr/share/doc/${PF}/{contrib,examples} + fi +} diff --git a/dev-python/tomlkit/Manifest b/dev-python/tomlkit/Manifest index 4aa0a70c607c..5c0dbabf5fe2 100644 --- a/dev-python/tomlkit/Manifest +++ b/dev-python/tomlkit/Manifest @@ -1,2 +1,3 @@ DIST tomlkit-0.13.0.tar.gz 191792 BLAKE2B f5f865b49f9850281d01de2c2ba9c2d8685a10a5cd0f17c475d120978472485a5bd607dc4b283221eab69fc6e214259feafdbe85c8237fe9c80b49007523bb69 SHA512 46c5a771ff401e0b300dbd13708d78b63415653b87eb649898bf0bd58cedeb110622ff2f0ade0ad1cd517610229ba0f59b4d520cf2fa1eea6522ea0bc042317e DIST tomlkit-0.13.1.tar.gz 192625 BLAKE2B 1f1ebc96819eb742429d7d8a71b8f3aecdd964f0700052bb2f71ede866c5f97b25745bf95898d7b1005c881d3fdbb36c4cb872126a3be8192cb9c859eb153fbe SHA512 32023020de48d0eacd0ce886870b9a53defdb403b396eb03d0c026c221460eeede1f018586ae141d690722485446be0215582182809c590d1af9825e840b58ad +DIST tomlkit-0.13.2.tar.gz 192885 BLAKE2B c95d24e0ec61cb90dfdd3fe7a07f8187fdfdee1b60d6d3e5a1af08e6d319e24c2447107cd3e49455a3f1cd29a50bde2e09f3a57708ce7349d1e9bd6957e46c9d SHA512 65b45468de25a6b9f22c3fe3468301902e1e439de580e74f15f5a24985546a4bfe47642b6014a25590eb176fedbe468828d7bc84c9c3b65ab418c071f0902957 diff --git a/dev-python/tomlkit/tomlkit-0.13.2.ebuild b/dev-python/tomlkit/tomlkit-0.13.2.ebuild new file mode 100644 index 000000000000..e7c9efb49be5 --- /dev/null +++ b/dev-python/tomlkit/tomlkit-0.13.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Style preserving TOML library" +HOMEPAGE=" + https://github.com/python-poetry/tomlkit/ + https://pypi.org/project/tomlkit/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_configure() { + grep -q 'build-backend = "poetry' pyproject.toml || + die "Upstream changed build-backend, recheck" + # write a custom pyproject.toml to ease setuptools bootstrap + cat > pyproject.toml <<-EOF || die + [build-system] + requires = ["flit_core >=3.2,<4"] + build-backend = "flit_core.buildapi" + + [project] + name = "tomlkit" + version = "${PV}" + description = "Style preserving TOML library" + EOF +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/twine/twine-5.1.1.ebuild b/dev-python/twine/twine-5.1.1-r1.ebuild index fc59221ba869..c25f20e281b8 100644 --- a/dev-python/twine/twine-5.1.1.ebuild +++ b/dev-python/twine/twine-5.1.1-r1.ebuild @@ -51,12 +51,15 @@ BDEPEND=" distutils_enable_tests pytest python_prepare_all() { + distutils-r1_python_prepare_all + # pytest-socket dep relevant only to test_integration, and upstream # disables it anyway sed -i -e '/--disable-socket/d' pytest.ini || die sed -i -e '/--cov/d' pytest.ini || die + # unnecessary pin + sed -i -e '/pkginfo </d' pyproject.toml || die - distutils-r1_python_prepare_all export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} } diff --git a/dev-python/unearth/Manifest b/dev-python/unearth/Manifest index efc3277ebef4..938d632930c7 100644 --- a/dev-python/unearth/Manifest +++ b/dev-python/unearth/Manifest @@ -1,3 +1,4 @@ DIST unearth-0.15.5.tar.gz 283787 BLAKE2B 2910be23141eb0a683766e83eae1cd35a074b98aaba7c25f49f06a321c261583a65bcb2cbd56c129efc1551e2f421e29dde784d3689c0dfc45d420c870a9b112 SHA512 84851788cd6bf6743307bb5a49fff1b6eeadd3f73605f4b2f7ffe1720d50713971d7cf020e17f34bbe755f523400a6149ace9add1c680bb955f6b46e8e092cba DIST unearth-0.16.0.tar.gz 283848 BLAKE2B e94989b643450b0e1a12c4bcd65339c1e52acd04a447616779f085297fa13bc09e25527b858383ef2b8d645304ea42f43c41415c930064e0515569a5836cd1fb SHA512 b129c546bdd8b1f364404ad4db8e43d471a1f9e3a2cbc99775a6c3aa5bce99ed127d1cbd859c69f8c2bae7f7c8b907426c2597d27323c6b6f408df047de2410e DIST unearth-0.16.1.tar.gz 283913 BLAKE2B 91f599fd21e6100be7e3f3d422d595e4402a652057b327ec2f6baa45f30301ea7571473e17d202017d7d7a92f7b11acdc42d1c655865499b9eeb8bfb1f7c00a3 SHA512 2819c4da65d0bb9492546531012699fa4554d309930de4b9cc8a5319edc19c1863993badaa53c8f646b152abf133043b2d3d3816f2adb9827ed7f25541e5d603 +DIST unearth-0.17.0.tar.gz 284068 BLAKE2B b37c1e9e626f3d6409fb0a22baebedc210df2c76afcb41f12730a5c9ff714bcf94cf7e78b97851676d45a73feec40d630ab5993cad44fabedcec5a771cb78c9f SHA512 2b9ba4d4262baac448b4507547a5887d5a50254e02f050576e68efeb952a57e2e38f93b440a753263abeca4ae062c07d9b702f10d29ff9252af13cfc16978c3d diff --git a/dev-python/unearth/unearth-0.17.0.ebuild b/dev-python/unearth/unearth-0.17.0.ebuild new file mode 100644 index 000000000000..b84ab6eae8ca --- /dev/null +++ b/dev-python/unearth/unearth-0.17.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=pdm-backend +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A utility to fetch and download python packages" +HOMEPAGE=" + https://pypi.org/project/unearth/ + https://github.com/frostming/unearth/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + <dev-python/httpx-1[${PYTHON_USEDEP}] + >=dev-python/httpx-0.27.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/flask[${PYTHON_USEDEP}] + dev-python/pytest-httpserver[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/requests-wsgi-adapter[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_httpserver -p pytest_mock +} diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index c84334d80d0c..d4735f1b0d1f 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -1,6 +1,10 @@ +DIST pubgrub-2fac39371a47e7cb821e510aaa4de25405413d29.gh.tar.gz 86987 BLAKE2B cbb08901aca46816279ca748a2d96e841b7a570cd674e4d96ef907a968050f5919a2d41fef240bb715050cf8df7dd6755e3d7f74fc79085bfc1ac2daf0665b09 SHA512 eda3539933dab8961120f1989365f8d5b5900aac5dc22606169e3f5d726bea54d3e8179377884d581941baf6bc57c2d41590477d9d3051923504d3b67824a17f DIST pubgrub-3f0ba760951ab0deeac874b98bb18fc90103fcf7.gh.tar.gz 87050 BLAKE2B d76bc40a71ead4c535eff493901247f2ee2f0a213d12db17bf96c89008be482829ff9b0d47196bb04ffc8c20842f15a2c7a4aa663d4c3f6c3eb82461250853ce SHA512 cd55d4512590eb86628d933598bd3f276a09018dce8dd720496f4314872afe1ad8d0b79d16f1b358e4a77a8613c1d06c742117d3a2a9c39e4f34d0ccd86eb536 DIST reqwest-middleware-21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe.gh.tar.gz 39176 BLAKE2B 00b2d0f51e4bbe29649fea50a8cc41c7b4d534f87440dd0bf487e8f7104077ad2cde824673b6624ff71924512b8a6b33ed4ac548f64bfbf78a5e0fb1366a446f SHA512 29f80816d054838af330a0ccfb8509ab22469aaecdb369d4a63c03eb3ed2aea3cc113458dd29c649e5bf7c33dbf5ef8b1e5d5a89e1cca72f9eab212f000c594f +DIST rs-async-zip-011b24604fa7bc223daaad7712c0694bac8f0a87.gh.tar.gz 51706 BLAKE2B 354eb52c95ea355521e1e6a7c841102424c47c156fdb0efb62e3cac666ecf289806aeefab8a0273a7c3283429ac81502283bdb5424d5f925621e5c2b1430fd4d SHA512 6650eef354e84daf41a8572b98b29f2873b7f071dd1d6983292c70b2f580fdc50cd26762d2228a70c2b200eae2f40476e6604702aa62cc97558301195bf19eb8 DIST rs-async-zip-1dcb40cfe1bf5325a6fd4bfcf9894db40241f585.gh.tar.gz 96766 BLAKE2B f9efab73c65394e33e090a6292875ebf35e6669b15c356f102eb109784a4503606ae39106cd0ebe3d7d479cb0b30806d7baaaebf22d826836a24f7ed49100934 SHA512 3b845b05d97c5ab5cea286a7c11846838b40bb1fac98a51782600849a53231be8fa205094c6bdd00f6e193c807b10b28f947698696382be99cae0a8d681dabdc DIST uv-0.2.29-crates.tar.xz 48592012 BLAKE2B 57492ede8b970171fc00c4f07ff3e9cb39dcd8bbf52433ed966963838bb9af14bfc9fc52ef5ec7e7a01af74598f066bfb5461d683a69390256fab3b69f08360a SHA512 aef3ee357dfc66a2b04967cd4526a5f07ce09e6ea949641ef1934fb774133b93b106c8e5f255bba92fd375b3f1996b7b016682e9e8f1c9afa871781af163e095 DIST uv-0.2.29.gh.tar.gz 1468793 BLAKE2B b69397a9fa0fb855a876d5c0322c53c01c400f023bae681e9347a5dde13e5d844da06b9016af5aab7ccc1e3482f2a2004f5efcad4887291ee28c455f6198ac31 SHA512 83b34496868cdd903122140ed28d8cf4e503f7be1848ce711aa98e9019a62ce82607b9a7eba189194024f21e376f61805e42d6b8c4544ff7d1a14212e99f5bc1 DIST uv-0.2.30.gh.tar.gz 1475670 BLAKE2B f497c59a79d50d3a189621139923914dc83a230ae519c93ea5084ed0e01a1caefaa1052d0609f8583deb2192a4f5220d4df72755e7ea95ffbbe96601d56edd14 SHA512 67871699365e38c17dc7a2b10973f5e07a214c48f38187d6cf28541ca650d5107da1049aa1c9eea01ee7ba4acafb3493e175ed3246abb6b5b21838699669e5f2 +DIST uv-0.2.36-crates.tar.xz 49805804 BLAKE2B d9f71866b180e45ddad94432c5e1aad51d3ab82101899a32cb2c571882a7497cca8135f14bc6e5b6e7fc508774e81b525015a445fbda0f880f194e0cd49a4e87 SHA512 34860fc8cc17a959d9d556e25cf134f18a1e9f00f2db604a7225c1f22b6e5051e4dadb502582b3fa03b3ae1be6e4a70ebdd94c08f4a1f18baef8c44b32932123 +DIST uv-0.2.36.gh.tar.gz 2301352 BLAKE2B 93476b89a0896efa87ebf9f49e6c225750ec9cc900dde253edb6f6070cc9ac3f71c7c1f9fd81e09ebe7bb6287a5881e78a63a87c0eeb469bdf3d75f3b77f96a0 SHA512 84de22e464b8e467588ceebdda23089233d42e3080090b2fc0fd7aec2f4b76eee1788f8b23b6e7b9c4e99182ca3ea175b76fb5dedf87767fe3ec534b3264c9b6 diff --git a/dev-python/uv/uv-0.2.36.ebuild b/dev-python/uv/uv-0.2.36.ebuild new file mode 100644 index 000000000000..742fb33a526d --- /dev/null +++ b/dev-python/uv/uv-0.2.36.ebuild @@ -0,0 +1,109 @@ +# 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;011b24604fa7bc223daaad7712c0694bac8f0a87;rs-async-zip-%commit%' + [pubgrub]='https://github.com/astral-sh/pubgrub;2fac39371a47e7cb821e510aaa4de25405413d29;pubgrub-%commit%' + [reqwest-middleware]='https://github.com/astral-sh/reqwest-middleware;21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe;reqwest-middleware-%commit%/reqwest-middleware' + [reqwest-retry]='https://github.com/astral-sh/reqwest-middleware;21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe;reqwest-middleware-%commit%/reqwest-retry' +) + +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-DFS-2016 +" +# ring crate +LICENSE+=" openssl" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="test" +PROPERTIES="test_network" + +BDEPEND=" + >=virtual/rust-1.80 + 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 + ) +" + +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 +} + +src_prepare() { + default + + # remove patch.* that breaks GIT_CRATES + sed -i -e "/^\[patch/,\$s@^\(reqwest-middleware = \).*@\1 { path = \"${WORKDIR}/reqwest-middleware-21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe/reqwest-middleware\" }@" Cargo.toml || die + + # https://github.com/vorot93/tokio-tar/pull/23 + # (fortunately uv already depends on portable-atomic, so we don't + # have to fight Cargo.lock) + cd "${ECARGO_VENDOR}/tokio-tar-0.3.1" || die + eapply "${FILESDIR}/tokio-tar-0.3.1-ppc.patch" +} + +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 + + cd crates/uv || die + cargo_src_test --no-fail-fast +} + +src_install() { + cd crates/uv || die + cargo_src_install +} diff --git a/dev-python/webob/Manifest b/dev-python/webob/Manifest index 782186a59389..761a1b0c9060 100644 --- a/dev-python/webob/Manifest +++ b/dev-python/webob/Manifest @@ -1 +1 @@ -DIST WebOb-1.8.7.tar.gz 278544 BLAKE2B 20d8b00f181f2966b918f106080907746dac33b64e75c31749bd774709ed8aa51024258240b89abddacb041073705410845993f93ecfa4b98a7a0fcb8a14e505 SHA512 ff6a1ce796a59d9c078dc908a0d6307a080230a5c806be2278eebcbb78016bed43067e78e3e4a6d72a5f51184c137e8267ac75cbb92b057db008b51a792ff489 +DIST webob-1.8.8.tar.gz 279035 BLAKE2B 61bbcc71763feccbd7a39b2649024c8d7a49ab5602fd638b4a895900395cd54bb6b0885e0bdeccd6504f5cc3162f7e198e94016b98836dbed4ed608605251052 SHA512 13093e77591a3bdb36e8f30a5d40922120d949faf24e3322b0116f1a14483180772b22c82237b0db4a17a914c2c99509847a9f2a717de09b4bffa55fa5269838 diff --git a/dev-python/webob/webob-1.8.7-r1.ebuild b/dev-python/webob/webob-1.8.8.ebuild index 4b80db8c9c3e..a13e7a1f56bd 100644 --- a/dev-python/webob/webob-1.8.7-r1.ebuild +++ b/dev-python/webob/webob-1.8.8.ebuild @@ -4,7 +4,6 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 PYPI_PN="WebOb" PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) |
