From a602f6883a51b2e0f7f1a90e6ac9e199ff73cd30 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 13 May 2024 17:46:19 +0000 Subject: Adding metadata --- dev-python/PyQt6-sip/PyQt6-sip-13.6.0.ebuild | 2 +- dev-python/PySensors/Manifest | 1 - dev-python/PySensors/PySensors-0.0.4-r1.ebuild | 19 --- dev-python/PySensors/metadata.xml | 14 -- dev-python/aiohttp/Manifest | 2 - dev-python/aiohttp/aiohttp-3.9.3.ebuild | 117 ---------------- dev-python/aiohttp/aiohttp-3.9.4.ebuild | 111 --------------- dev-python/hypothesis/Manifest | 2 + dev-python/hypothesis/hypothesis-6.100.8.ebuild | 91 ++++++++++++ dev-python/hypothesis/hypothesis-6.101.0.ebuild | 91 ++++++++++++ .../immutables/files/immutables-0.20-opt-ext.patch | 28 ++++ dev-python/immutables/immutables-0.20.ebuild | 20 ++- dev-python/ini2toml/ini2toml-0.14.ebuild | 8 +- dev-python/lxml/Manifest | 1 + dev-python/lxml/lxml-5.2.2.ebuild | 119 ++++++++++++++++ dev-python/moto/Manifest | 1 + dev-python/moto/moto-5.0.7.ebuild | 155 +++++++++++++++++++++ .../pyproject-fmt-rust-1.0.4.ebuild | 2 +- .../pyproject-fmt/pyproject-fmt-2.0.3.ebuild | 2 +- dev-python/selenium/Manifest | 2 - dev-python/selenium/selenium-4.19.0.ebuild | 65 --------- dev-python/selenium/selenium-4.20.0.ebuild | 2 +- .../tomlkit/files/tomlkit-0.12.5-py313.patch | 71 ++++++++++ dev-python/tomlkit/tomlkit-0.12.5-r1.ebuild | 53 +++++++ dev-python/types-setuptools/Manifest | 1 + .../types-setuptools-69.5.0.20240513.ebuild | 17 +++ dev-python/xarray/Manifest | 1 + dev-python/xarray/xarray-2024.5.0.ebuild | 68 +++++++++ 28 files changed, 721 insertions(+), 345 deletions(-) delete mode 100644 dev-python/PySensors/Manifest delete mode 100644 dev-python/PySensors/PySensors-0.0.4-r1.ebuild delete mode 100644 dev-python/PySensors/metadata.xml delete mode 100644 dev-python/aiohttp/aiohttp-3.9.3.ebuild delete mode 100644 dev-python/aiohttp/aiohttp-3.9.4.ebuild create mode 100644 dev-python/hypothesis/hypothesis-6.100.8.ebuild create mode 100644 dev-python/hypothesis/hypothesis-6.101.0.ebuild create mode 100644 dev-python/immutables/files/immutables-0.20-opt-ext.patch create mode 100644 dev-python/lxml/lxml-5.2.2.ebuild create mode 100644 dev-python/moto/moto-5.0.7.ebuild delete mode 100644 dev-python/selenium/selenium-4.19.0.ebuild create mode 100644 dev-python/tomlkit/files/tomlkit-0.12.5-py313.patch create mode 100644 dev-python/tomlkit/tomlkit-0.12.5-r1.ebuild create mode 100644 dev-python/types-setuptools/types-setuptools-69.5.0.20240513.ebuild create mode 100644 dev-python/xarray/xarray-2024.5.0.ebuild (limited to 'dev-python') diff --git a/dev-python/PyQt6-sip/PyQt6-sip-13.6.0.ebuild b/dev-python/PyQt6-sip/PyQt6-sip-13.6.0.ebuild index e020318179e0..9dbee9cc8ccd 100644 --- a/dev-python/PyQt6-sip/PyQt6-sip-13.6.0.ebuild +++ b/dev-python/PyQt6-sip/PyQt6-sip-13.6.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/PySensors/Manifest b/dev-python/PySensors/Manifest deleted file mode 100644 index 60d55530bb28..000000000000 --- a/dev-python/PySensors/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST PySensors-0.0.4.tar.gz 10599 BLAKE2B be3a3692a846e5339758eff4f4396dd15bf96b3d20bc40df45436ce58381ac87503bca190fa215121506ecf9ce5175b254d93142ee881c4d5b8ef8e045854659 SHA512 8e6b2beee9bf282f073618c0b45e53330ce82c9fc9c6565a3c6b5f812231421c8c6e15ccc4fc92cda67ed08df5c482577d4a34720c920dbba7604f2b7c3ba21c diff --git a/dev-python/PySensors/PySensors-0.0.4-r1.ebuild b/dev-python/PySensors/PySensors-0.0.4-r1.ebuild deleted file mode 100644 index d31058a4a5f2..000000000000 --- a/dev-python/PySensors/PySensors-0.0.4-r1.ebuild +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Python bindings to libsensors (via ctypes)" -HOMEPAGE="https://pypi.org/project/PySensors/" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=">=sys-apps/lm-sensors-3" diff --git a/dev-python/PySensors/metadata.xml b/dev-python/PySensors/metadata.xml deleted file mode 100644 index 7bd66547916f..000000000000 --- a/dev-python/PySensors/metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - grobian@gentoo.org - Fabian Groffen - - - python@gentoo.org - Python - - - gentoo-staging - \ No newline at end of file diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index 2921e94e6163..687f3cba9168 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1,3 +1 @@ -DIST aiohttp-3.9.3.tar.gz 7499669 BLAKE2B 0712df73af60cc9cbf12f0a4e063b6aa6da1b19b0668effe16672a4b7ca3f24cc831218ec8d4672cd86acd4335a75e16f94133dbb1bf783baf8ed96e471f3eec SHA512 6236f27b6def0c3bba1b5fc59f4af74f8076aa369cf5c1b9bd9ff9dee1c71ee49387ded812875da9450130e92d2091fd01f0608b25b03ff37e99162b89120fd7 -DIST aiohttp-3.9.4.tar.gz 7500720 BLAKE2B 1f41e481590425c16ef9e797ecc78e08d00fda65b40c38e34226ada969f3114cae3f6953980d23b0e96e284f6e49fd0a84aa93c6b7a666d60690e9a9fd9c41b2 SHA512 e26e7148602d72c77fe46e0596614b448f38a9014834a72c4131d8b315dbbd401ce4e1a403ef35ea7a9ba7fafaddc42031d38b93b45464accdedf26ba99fc960 DIST aiohttp-3.9.5.tar.gz 7504841 BLAKE2B f051ee88d45952219f72d542f1c6d0cc33c699c6c5fb5dbe3bc054ee4d0e03121b219c8c8524fd1236a8b878329b0997b8afe07d6c66074102d4a2052a8738ff SHA512 da11468a2f131275593395b052700a99cf79055a32d48327dca0f58547ad30add8cd0a375dbd831e2f06fe7a739183251e4ad69c16f3d141799bbed45a8a5dc4 diff --git a/dev-python/aiohttp/aiohttp-3.9.3.ebuild b/dev-python/aiohttp/aiohttp-3.9.3.ebuild deleted file mode 100644 index c8f1dc4239e8..000000000000 --- a/dev-python/aiohttp/aiohttp-3.9.3.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# 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="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 ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="test-rust" - -RDEPEND=" - >=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/yarl-1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - =dev-python/async-timeout-4.0[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - dev-python/freezegun[${PYTHON_USEDEP}] - www-servers/gunicorn[${PYTHON_USEDEP}] - dev-python/pytest-forked[${PYTHON_USEDEP}] - dev-python/pytest-mock[${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 '/xfail_strict/d' setup.cfg || die - sed -i -e 's:-Werror::' Makefile || die - - distutils-r1_src_prepare -} - -python_configure_all() { - # 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 -} - -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 - ) - - 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 - # TODO - tests/test_client_session.py::test_request_tracing_url_params - # fragile timing test - tests/test_imports.py::test_import_time - # crash in time-machine - # https://github.com/aio-libs/aiohttp/issues/7851 - # https://github.com/adamchainz/time-machine/issues/403 - tests/test_cookiejar.py::TestCookieJarSafe::test_max_age - ) - - case ${EPYTHON} in - pypy3) - # upstream unconditionally blocks building C extensions - # on PyPy3 but the test suite needs an explicit switch, - # sigh - local -x AIOHTTP_NO_EXTENSIONS=1 - ;; - esac - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin,pytest_forked - rm -rf aiohttp || die - epytest --forked -} diff --git a/dev-python/aiohttp/aiohttp-3.9.4.ebuild b/dev-python/aiohttp/aiohttp-3.9.4.ebuild deleted file mode 100644 index 2110a43f4c09..000000000000 --- a/dev-python/aiohttp/aiohttp-3.9.4.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# 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="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 ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="test-rust" - -RDEPEND=" - >=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/yarl-1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - =dev-python/async-timeout-4.0[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - dev-python/freezegun[${PYTHON_USEDEP}] - www-servers/gunicorn[${PYTHON_USEDEP}] - dev-python/pytest-forked[${PYTHON_USEDEP}] - dev-python/pytest-mock[${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 '/xfail_strict/d' setup.cfg || die - sed -i -e 's:-Werror::' Makefile || die - - distutils-r1_src_prepare -} - -python_configure_all() { - # 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 -} - -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 - ) - - 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 - # TODO - tests/test_client_session.py::test_request_tracing_url_params - ) - - case ${EPYTHON} in - pypy3) - # upstream unconditionally blocks building C extensions - # on PyPy3 but the test suite needs an explicit switch, - # sigh - local -x AIOHTTP_NO_EXTENSIONS=1 - ;; - esac - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin,pytest_forked - rm -rf aiohttp || die - epytest --forked -m "not internal and not dev_mode" -} diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index b891112171e3..e877a65c2999 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -4,3 +4,5 @@ DIST hypothesis-6.100.4.gh.tar.gz 9453201 BLAKE2B 0df377ae666646748fd15f70e296ed DIST hypothesis-6.100.5.gh.tar.gz 9453477 BLAKE2B 8b0ea09b30002a07f91ad8ac59c71b3aece27739c1c3d7a1cf4806dbd7d0cb280277937e0c4f88f64dfc97991753e6c7185ffa5c414c4ba061b87d68a3ca5bd2 SHA512 183aa4ef3425b2bbc632ad77c2ce4b7b7137a81b8344607082e5993593fbc820c68944c1a30c826c655d55145251dc5d53193eb444ce28fce930404ce33621c6 DIST hypothesis-6.100.6.gh.tar.gz 9456232 BLAKE2B 348f1ccbd4947ac6811eefd7ba997c25e19db79a19ab042ce913490f96a0edc063297ffcb91edffac7788cf5889a1b3360d59f31bf3bc8a8ef9f974a0cbb8793 SHA512 1f09f8ec1095b00317ec390c5755c2e0f469a5dc712d1f52053a384dc913172adda8fd1f424353aa9b0de5cec537f5822f2e29031db0bc83fd19ba74df44ec3c DIST hypothesis-6.100.7.gh.tar.gz 9456557 BLAKE2B b05da95267cb4920aac221a3f2d6ade7917d038358a6233e84fea58b0a6e478fc156ff771219fce80c99eb1c6eba5eb01b6c0bc5351ba26aafcedf3689afb414 SHA512 ba8453951cbfc52c1a6f3d17a1f723f73db105d4184daa1a4d9034f667f9de774b819e707fd04197ed69fc61380667df0c1915f7ed3d9a6d18a1543c261311b5 +DIST hypothesis-6.100.8.gh.tar.gz 9458567 BLAKE2B 3deb2c90cbc283451633272954e5ca317d6615d80e37545a583fb2cbdd9e7761ecb158c13cde99daddaf4a0310ed9c616d85be488942a227c505aa2de796c2b0 SHA512 449d1f319405c2e9d65d34926c5d26c1ceebfb8ae61474ed487d459efc7c2640a6f119f1f3c367ef3098629d787a82e3d8ec50970b603358ded34e8dfb73474f +DIST hypothesis-6.101.0.gh.tar.gz 9458712 BLAKE2B b5a920e835fdf3bec6a1c8d21cc35833ec15192a512352a8630b5d7a7428d345b78061f5ee1571aff543ddc65586825de35933b3dc6de479880ddbd8509e352d SHA512 7e73074af127de0987d7b09fa71e0cfae47bbf195e621be3fd811474893bfba04d5b885e3bd7a46f707faeb2420abf93921c2c36c15c25672e400320974c7f7c diff --git a/dev-python/hypothesis/hypothesis-6.100.8.ebuild b/dev-python/hypothesis/hypothesis-6.100.8.ebuild new file mode 100644 index 000000000000..29919aa8ec05 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.100.8.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +CLI_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 multiprocessing 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 ~ia64 ~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}] + !! +Date: Mon, 13 May 2024 15:51:04 +0200 +Subject: [PATCH] Support disabling C extensions via IMMUTABLES_EXT=0 + +Support using IMMUTABLES_EXT environment variable to control whether +the C extension is built explicitly. When set to a value other than 1, +the extension built is disabled. This is helpful e.g. for future Python +versions where the extension does not work (this is affecting 3.13 right +now, but having an explicit option is more future-proof). +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 8cfc9c97..870de2d1 100644 +--- a/setup.py ++++ b/setup.py +@@ -27,7 +27,8 @@ + 'unable to read the version from immutables/_version.py') + + +-if platform.python_implementation() == 'CPython': ++if (platform.python_implementation() == 'CPython' and ++ os.environ.get('IMMUTABLES_EXT', '1') == '1'): + if os.environ.get("DEBUG_IMMUTABLES") == '1': + define_macros = [] + undef_macros = ['NDEBUG'] diff --git a/dev-python/immutables/immutables-0.20.ebuild b/dev-python/immutables/immutables-0.20.ebuild index 8361416d8af3..f563f7130685 100644 --- a/dev-python/immutables/immutables-0.20.ebuild +++ b/dev-python/immutables/immutables-0.20.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019-2023 Gentoo Authors +# Copyright 2019-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -27,17 +27,26 @@ IUSE="+native-extensions" distutils_enable_tests pytest src_prepare() { + local PATCHES=( + # https://github.com/MagicStack/immutables/pull/117 + "${FILESDIR}/${P}-opt-ext.patch" + ) + sed -i -e '/mypy/d' tests/conftest.py || die - # NB: upstream never builds extensions on PyPy - if ! use native-extensions; then - sed -i -e '/ext_modules=/d' setup.py || die - fi distutils-r1_src_prepare } python_compile() { # upstream controls NDEBUG explicitly use debug && local -x DEBUG_IMMUTABLES=1 + local -x IMMUTABLES_EXT=$(usex native-extensions 1 0) + case ${EPYTHON} in + python3.13) + # https://github.com/MagicStack/immutables/issues/116 + IMMUTABLES_EXT=0 + ;; + esac + distutils-r1_python_compile } @@ -47,5 +56,6 @@ python_test() { ) rm -rf immutables || die + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest } diff --git a/dev-python/ini2toml/ini2toml-0.14.ebuild b/dev-python/ini2toml/ini2toml-0.14.ebuild index 1d11c0bd77be..d8b22dbba344 100644 --- a/dev-python/ini2toml/ini2toml-0.14.ebuild +++ b/dev-python/ini2toml/ini2toml-0.14.ebuild @@ -17,7 +17,6 @@ HOMEPAGE=" LICENSE="MPL-2.0" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="test-rust" RDEPEND=" >=dev-python/packaging-20.7[${PYTHON_USEDEP}] @@ -30,9 +29,6 @@ BDEPEND=" dev-python/configupdater[${PYTHON_USEDEP}] dev-python/tomli[${PYTHON_USEDEP}] dev-python/tomlkit[${PYTHON_USEDEP}] - test-rust? ( - >=dev-python/pyproject-fmt-0.4.0[${PYTHON_USEDEP}] - ) ) " @@ -50,7 +46,9 @@ python_test() { ) local EPYTEST_DESELECT=() - if ! has_version ">=dev-python/pyproject-fmt-0.4.0[${PYTHON_USEDEP}]"; then + # Incompatible with pyproject-fmt-2 API: + # https://github.com/abravalheri/ini2toml/issues/103 + if ! has_version " date: + return date.__new__(cls, year, month, day) + + def __init__( +- self, year: int, month: int, day: int, trivia: Trivia, raw: str ++ self, ++ year: int, ++ month: int, ++ day: int, ++ trivia: Trivia | None = None, ++ raw: str = "", + ) -> None: +- super().__init__(trivia) ++ super().__init__(trivia or Trivia()) + + self._raw = raw + +@@ -1033,10 +1038,10 @@ def __init__( + second: int, + microsecond: int, + tzinfo: tzinfo | None, +- trivia: Trivia, +- raw: str, ++ trivia: Trivia | None = None, ++ raw: str = "", + ) -> None: +- super().__init__(trivia) ++ super().__init__(trivia or Trivia()) + + self._raw = raw + diff --git a/dev-python/tomlkit/tomlkit-0.12.5-r1.ebuild b/dev-python/tomlkit/tomlkit-0.12.5-r1.ebuild new file mode 100644 index 000000000000..cb3e37ec1bd4 --- /dev/null +++ b/dev-python/tomlkit/tomlkit-0.12.5-r1.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=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 + +PATCHES=( + # https://github.com/python-poetry/tomlkit/pull/349 + "${FILESDIR}/${P}-py313.patch" +) + +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/types-setuptools/Manifest b/dev-python/types-setuptools/Manifest index a8b4087284fa..58604bd38a0a 100644 --- a/dev-python/types-setuptools/Manifest +++ b/dev-python/types-setuptools/Manifest @@ -1 +1,2 @@ DIST types-setuptools-69.5.0.20240423.tar.gz 37608 BLAKE2B 8a5b9ece3318ac9646c5a8e5961e6fbc05fddb4a5e96cc2d0d96f11b317b2ec1da1f4fb8624348e0cc307cc7781895f9d016eac3f07f37351a3211f77a2de1a0 SHA512 2134c4c31bddd6c8f5722f171054dda21abdb13d743fb94fc280fc185b521b24e889be9f61c21e83a5d881c9ca40ffb7b60d49a3abb63f30c51793ed2b32b56f +DIST types-setuptools-69.5.0.20240513.tar.gz 37766 BLAKE2B 8c573de3c40af243061f04c21266815fc13f6f5244919b98ecd2345bc790a40471ea21939163a08727b505b5cf295e44889ace93faf51ac9baf9f51195fecb6b SHA512 fcd7262fc2f54f22480ddc09f9edfa1202dfc0e5f2d0dec3accc6bfb32666bd3f49a6e455e0e834e2166d38ea8782c172dd85c4adb30329b0d7c9bae66f74d7b diff --git a/dev-python/types-setuptools/types-setuptools-69.5.0.20240513.ebuild b/dev-python/types-setuptools/types-setuptools-69.5.0.20240513.ebuild new file mode 100644 index 000000000000..c755b6e96b17 --- /dev/null +++ b/dev-python/types-setuptools/types-setuptools-69.5.0.20240513.ebuild @@ -0,0 +1,17 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Typing stubs for setuptools" +HOMEPAGE="https://pypi.org/project/types-setuptools/" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" diff --git a/dev-python/xarray/Manifest b/dev-python/xarray/Manifest index 341efb534101..ae5a3981cb32 100644 --- a/dev-python/xarray/Manifest +++ b/dev-python/xarray/Manifest @@ -1,3 +1,4 @@ DIST xarray-2024.03.0.gh.tar.gz 3722922 BLAKE2B 52025d8ba196500ac989fc8ff85ae7578cae3602ede77b663350acf0e132d2d9358f3170c697aa2f158c2f3f3520607c23f9060356fec0942ebddb9ca3e039da SHA512 5d62c102a3fdf6dfc16182d3822386dc9edb75204dff9a9b8e3aa7bbe5b223c477f2a73f0a0e35de3454d9e738da6205da0c308bc778f8ffc9af80c20a49d6af DIST xarray-2024.1.1.tar.gz 3614037 BLAKE2B cc50fbfa19a2c9229b85b8c7d5d0e7e7f6d3e5a484955fcc81aa0b37839a0b992d2c2f928e4097ca05c7b8294ed1061fbd0c1b7e7c65c9087a940dab97c520ce SHA512 b6447ca2c80b3a3091ac2baba648fef4faa79ffff272360e9726b318b517ede9d2717d1b6f77f03fdacf55527233f1a37c0d114901fe1a265d3e435cf293a487 DIST xarray-2024.2.0.tar.gz 3634288 BLAKE2B 8d1165360300da5af6d670947e5280052a3d8915768e02448b86ab38283d6d45258a2c4eb91982ba732ccedb3a7afc5f274116c9ee0072d35cdc5631b8a2ca50 SHA512 dcfe6d1f0edab8659664c5399b96d622d2e3df2f85bb7672d9afab6f74294a6449772efde080aaa7323f733c09cbd0f6f037e547be0afa79f39450eead777828 +DIST xarray-2024.5.0.tar.gz 3710689 BLAKE2B 04d2d9c70c90bccd0f269dde91be8a3f213b2dfe2d380b041abe946d118e80d0816ef09ed7e225b7bb164902c1943c1be335f1cac815d12c4aace6a0217379bb SHA512 d3aa6ef73afd2fd8a5c5551631ca5385d14221474bdab4c404cee1405b370c2f998c895bfd3506e6ccc1b2f511996b0eebefb331768df047d5e8b398ad2f9199 diff --git a/dev-python/xarray/xarray-2024.5.0.ebuild b/dev-python/xarray/xarray-2024.5.0.ebuild new file mode 100644 index 000000000000..5853d2c29235 --- /dev/null +++ b/dev-python/xarray/xarray-2024.5.0.ebuild @@ -0,0 +1,68 @@ +# 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="N-D labeled arrays and datasets in Python" +HOMEPAGE=" + https://xarray.pydata.org/ + https://github.com/pydata/xarray/ + https://pypi.org/project/xarray/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~s390 ~x86" +IUSE="big-endian" + +RDEPEND=" + =dev-python/numpy-1.23[${PYTHON_USEDEP}] + >=dev-python/pandas-2.0[${PYTHON_USEDEP}] + >=dev-python/packaging-23.1[${PYTHON_USEDEP}] +" +# note: most of the test dependencies are optional +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/bottleneck[${PYTHON_USEDEP}] + dev-python/cftime[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/toolz[${PYTHON_USEDEP}] + !hppa? ( >=dev-python/scipy-1.4[${PYTHON_USEDEP}] ) + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + if ! has_version ">=dev-python/scipy-1.4[${PYTHON_USEDEP}]" ; then + EPYTEST_DESELECT+=( + 'xarray/tests/test_missing.py::test_interpolate_na_2d[coords1]' + ) + fi + + if use big-endian ; then + EPYTEST_DESELECT+=( + # Appears to be a numpy issue in display? See bug #916460. + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145224193-ns-int64-20-True]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1970-09-21T00:12:44.145224808-ns-float64-1e+30-True]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145225216-ns-float64--9.223372036854776e+18-True]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145224193-ns-int64-None-False]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145225-us-int64-None-False]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1970-01-01T00:00:01.000001-us-int64-None-False]' + 'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:21:52.901038080-ns-float32-20.0-True]' + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} -- cgit v1.3