diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-10-14 13:02:57 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-10-14 13:02:57 +0000 |
| commit | 61b6ef17e24c830bc291e361f9dd6abc03074f80 (patch) | |
| tree | 8380e8eaad8815eeed187bea20e16a45d9192aa5 /dev-python | |
| parent | c47f2fda56ca52560ec95d75c283ce5f300f6214 (diff) | |
| download | baldeagleos-repo-61b6ef17e24c830bc291e361f9dd6abc03074f80.tar.gz baldeagleos-repo-61b6ef17e24c830bc291e361f9dd6abc03074f80.tar.xz baldeagleos-repo-61b6ef17e24c830bc291e361f9dd6abc03074f80.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
33 files changed, 517 insertions, 178 deletions
diff --git a/dev-python/SaltTesting/Manifest b/dev-python/SaltTesting/Manifest deleted file mode 100644 index 7a2a295f735b..000000000000 --- a/dev-python/SaltTesting/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST SaltTesting-2018.9.21.tar.gz 459708 BLAKE2B c0c6d853ab335432464140b6db8939ae87b58f50c0ea63a547a09ab3e1899b52053e3f9ea90b183268b807db5d7f323f09f9b6d4186e1b4214d6984486f37139 SHA512 9ce79aaa0fd90fd75fa2a64112563751837d441518426cbdb5df93721fd186e9fe33609341a75bc173781cd9a97b477809a4c2e2d4fdd29a5331f0d096983db8 diff --git a/dev-python/SaltTesting/SaltTesting-2018.9.21.ebuild b/dev-python/SaltTesting/SaltTesting-2018.9.21.ebuild deleted file mode 100644 index f3c106e8ab2c..000000000000 --- a/dev-python/SaltTesting/SaltTesting-2018.9.21.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="Required testing tools needed in the several Salt Stack projects" -HOMEPAGE="https://saltstack.com/community/" - -if [[ ${PV} == *9999* ]]; then - EGIT_REPO_URI="https://github.com/saltstack/salt-testing.git" - EGIT_BRANCH="develop" - inherit git-r3 -else - SRC_URI="https://github.com/saltstack/salt-testing/archive/v${PV}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/salt-testing-${PV}" - KEYWORDS="amd64 ~arm ~arm64 x86" -fi - -LICENSE="Apache-2.0" -SLOT="0" - -RDEPEND=" - dev-python/psutil[${PYTHON_USEDEP}] - >=dev-python/requests-2.4.2[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] -" -PATCHES=( - "${FILESDIR}/SaltTesting-2018.9.21-python37.patch" -) diff --git a/dev-python/SaltTesting/files/SaltTesting-2018.9.21-python37.patch b/dev-python/SaltTesting/files/SaltTesting-2018.9.21-python37.patch deleted file mode 100644 index b12d4231bbd8..000000000000 --- a/dev-python/SaltTesting/files/SaltTesting-2018.9.21-python37.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/salttesting/case.py b/salttesting/case.py -index 4918915..19e47cc 100644 ---- a/salttesting/case.py -+++ b/salttesting/case.py -@@ -140,14 +140,14 @@ class ShellTestCase(TestCase, AdaptedConfigurationTestCaseMixIn): - ) - return self.run_script('salt-ssh', arg_str, with_retcode=with_retcode, catch_stderr=catch_stderr, raw=True) - -- def run_run(self, arg_str, with_retcode=False, catch_stderr=False, async=False, timeout=60, config_dir=None): -+ def run_run(self, arg_str, with_retcode=False, catch_stderr=False, async_flag=False, timeout=60, config_dir=None): - ''' - Execute salt-run - ''' - arg_str = '-c {0}{async_flag} -t {timeout} {1}'.format(config_dir or self.get_config_dir(), - arg_str, - timeout=timeout, -- async_flag=' --async' if async else '') -+ async_flag=' --async' if async_flag else '') - return self.run_script('salt-run', arg_str, with_retcode=with_retcode, catch_stderr=catch_stderr) - - def run_run_plus(self, fun, *arg, **kwargs): diff --git a/dev-python/SaltTesting/metadata.xml b/dev-python/SaltTesting/metadata.xml deleted file mode 100644 index 0f2e57ded13c..000000000000 --- a/dev-python/SaltTesting/metadata.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>chutzpah@gentoo.org</email> - <name>Patrick McLean</name> - </maintainer> - - <origin>gentoo-staging</origin> -</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/absl-py/Manifest b/dev-python/absl-py/Manifest index e595e70d41b3..53766f870f4e 100644 --- a/dev-python/absl-py/Manifest +++ b/dev-python/absl-py/Manifest @@ -1 +1,2 @@ DIST abseil-py-1.2.0.gh.tar.gz 219456 BLAKE2B ec7d878692dcf0cbe879cd7df51bc1b8ceeae945b053419b4a024a637e726064128af69fe077a26413f8562dd4a35830b340d000a6c9d520c7674b81a7e417ae SHA512 f363814ed65a68ae4bfd833dc095491349349e70327c0a87ad68ddc3b8429dacc78aaa16d2ff0d733487a12a2ab09094d4ccd1c1133981f65c12d3715cee410d +DIST abseil-py-1.3.0.gh.tar.gz 224655 BLAKE2B 7f5c329c159a3b8d3fd7fc37ab36649d7711120ab41a2c052deb383aeae115b8ffe22e0f9c933e6cfe83e19013a2733d037954411f0f6d4acde1a7ecb3131973 SHA512 5631368b1f86dbc73d5261dc07a2693c8effb2534745fe4f19db26f908c7afff9f440a1545f16d1356092ac9a9fda2fdde97fc8977100e162765d9c224d7a66d diff --git a/dev-python/absl-py/absl-py-1.3.0.ebuild b/dev-python/absl-py/absl-py-1.3.0.ebuild new file mode 100644 index 000000000000..1a00613d30b0 --- /dev/null +++ b/dev-python/absl-py/absl-py-1.3.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 + +MY_P=abseil-py-${PV} +DESCRIPTION="Abseil Python Common Libraries" +HOMEPAGE=" + https://github.com/abseil/abseil-py/ + https://pypi.org/project/absl-py/ +" +SRC_URI=" + https://github.com/abseil/abseil-py/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] +" + +src_prepare() { + # what a nightmare... well, we could have called bazel but that would + # even worse + local helpers=( + absl/flags/tests/argparse_flags_test_helper.py:absl/flags/tests/argparse_flags_test_helper + absl/logging/tests/logging_functional_test_helper.py:absl/logging/tests/logging_functional_test_helper + absl/testing/tests/absltest_fail_fast_test_helper.py:absl/testing/tests/absltest_fail_fast_test_helper + absl/testing/tests/absltest_filtering_test_helper.py:absl/testing/tests/absltest_filtering_test_helper + absl/testing/tests/absltest_randomization_testcase.py:absl/testing/tests/absltest_randomization_testcase + absl/testing/tests/absltest_sharding_test_helper.py:absl/testing/tests/absltest_sharding_test_helper + absl/testing/tests/absltest_test_helper.py:absl/testing/tests/absltest_test_helper + absl/testing/tests/xml_reporter_helper_test.py:absl/testing/tests/xml_reporter_helper_test + absl/tests/app_test_helper.py:absl/tests/app_test_helper_pure_python + ) + + local x + for x in "${helpers[@]}"; do + local script=${x%:*} + local sym=${x#*:} + sed -i -e "1i#!/usr/bin/env python" "${script}" || die + chmod +x "${script}" || die + ln -s "${script##*/}" "${sym}" || die + done + + # i don't wanna know how these pass for upstream with wrong helper names + sed -i -e 's:\(app_test_helper\)\.py:\1_pure_python:' \ + absl/tests/app_test.py || die + sed -i -e 's:\(logging_functional_test_helper\)\.py:\1:' \ + absl/logging/tests/logging_functional_test.py || die + + distutils-r1_src_prepare +} + +python_test() { + local -x PYTHONPATH=. + local fails=0 + while read -r -d '' x; do + ebegin "${x}" + "${EPYTHON}" "${x}" + eend ${?} || : "$(( fails += 1 ))" + done < <(find -name '*_test.py' -print0) + + [[ ${fails} -ne 0 ]] && die "${fails} tests failed on ${EPYTHON}" + + # we actually need to clean this up manually before running the test + # suite again... + chmod -R u+rwX "${T}"/absl_testing || die + rm -rf "${T}"/absl_testing || die +} diff --git a/dev-python/adblock/adblock-0.6.0.ebuild b/dev-python/adblock/adblock-0.6.0.ebuild index fe6c0eb39190..3c8e88d1d410 100644 --- a/dev-python/adblock/adblock-0.6.0.ebuild +++ b/dev-python/adblock/adblock-0.6.0.ebuild @@ -83,18 +83,22 @@ LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT MPL-2.0" SLOT="0" KEYWORDS="amd64 ~arm64 ~x86" -BDEPEND="test? ( dev-python/toml[${PYTHON_USEDEP}] )" - distutils_enable_tests pytest QA_FLAGS_IGNORED=".*/adblock.*.so" DOCS=( CHANGELOG.md README.md ) +EPYTEST_IGNORE=( + # not very meaningful here (e.g. validates changelog), + # and needs the deprecated dev-python/toml + tests/test_metadata.py +) + src_compile() { distutils-r1_src_compile - # tests try to find Cargo.toml + adblock/adblock.pyi in current - # directory but will fail if pytest finds init in ./adblock + # prevent pytest from using ./adblock that lack the built module + # but the keep directory given tests check ./adblock/adblock.pyi rm adblock/__init__.py || die } diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index a08bcc814579..40f082d353ad 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -1,3 +1,4 @@ DIST boto3-1.24.80.gh.tar.gz 539716 BLAKE2B ccbbfa84e4e2274eb0275b9b2dcc0a4a78b139007829c4e3f880909f71e404be22c4461b687596bf12675c1212c6cf5b59c4383a042f60cb7919a10581fdc612 SHA512 aa3340e4bb9ae80f02fc70cf2be49d245e3dcc941b0b682c2827c1b8bb51d02e72ab7bf561e7d39397af8ca7ead7e115766fd4fd2eca18db2c551f55afb3e3b6 DIST boto3-1.24.88.gh.tar.gz 543896 BLAKE2B 9dd2a18e3fb8d0a9f3a3a1fd7d0cceb491765690f99c7bd4200f37c66cbdb1e86dcdcdd09669d3175b97e762e6faabac3a2e5cba49136f42cba459e45f3ab67f SHA512 676528ca180c23834d1666b69292754e551a339914362da2708ff3f937c2eb04fe3b3dd1d4c6960eb8f5f7f58b1e0bcf13b1f52cc16a7c8d3bd025e9ea4ee109 DIST boto3-1.24.89.gh.tar.gz 544293 BLAKE2B 53854b91c1c4c677eee743776a67e552bd2e11947839c442d81c1983930d6ff16d6bc5483c29b9a14b99a7cef09f3b9cd74cea9edb1cb76ff5458be3c9743164 SHA512 ef3b503b1313b8b7d84f5e4afdbe4e3d9e95ce3fbba81d400191295c71d4237e764f87ab6ebf2b29536248a520ab1273bee43bedd746596224f7400ce04c2c02 +DIST boto3-1.24.90.gh.tar.gz 545802 BLAKE2B 04148b878266a9d541a6fe8a4b4e8088fa2af11fd88b0fd9bac064bf493a9e787958d61c721254c1cf72edea72d761cd3583370f587c925f70c099027e94f72c SHA512 92c9da4559fdef7a7ee68eda9f1e9f70d652ec383471b9d1fafcf260b1456e84b7cc86347c3a0c44990f38aa87632885b1df65aafdae3c7f5948c0223ffe6981 diff --git a/dev-python/boto3/boto3-1.24.90.ebuild b/dev-python/boto3/boto3-1.24.90.ebuild new file mode 100644 index 000000000000..e4a98e2e28f5 --- /dev/null +++ b/dev-python/boto3/boto3-1.24.90.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/boto3" + inherit git-r3 + BOTOCORE_PV=${PV} +else + SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + " + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + + # botocore is x.(y+3).z + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)" +fi + +RDEPEND=" + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +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() { + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 7e0c401c7243..997bf1a786db 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -1,3 +1,4 @@ DIST botocore-1.27.80.gh.tar.gz 9643079 BLAKE2B feec0b34c39b358eaff7f947fe83fc6dcd9926771b465c092e8071c334382d07d51a88fda775fc9fadae2544ac2f3e37c814bc9b8729730955b95d3efdf16b7b SHA512 f38ee5b252051a8208964387ff1550489c5900605d2aa5c69dc2d1229411015af1edaa51e9df4d56895c3fd2b4a56cca5179c1fd5aecbf5032ab80ce4c8f8b8e DIST botocore-1.27.88.gh.tar.gz 9703393 BLAKE2B b7152546ffd44fccc3607ce4fb0df586e192a68431d68f40063d6397d6005507118c49197e3bb0215ccc4ce6b075a2e95919dc0b2352da3562ba8b5675274ca4 SHA512 0cca62a8e357c8c345afa2ebfa8fa931aa75e323b93ecd63857db05fac7fcd83118012ee7f93921a31895721189995af3179f6ae62ee61cef68eda84edc88132 DIST botocore-1.27.89.gh.tar.gz 9704257 BLAKE2B f7c0f34d93940aea72337c1cfb229ba79b06c15c99c7c1b719fcad9c2131cc98e084a14f8988e77e0627fac994bd4bfe539bcbcedd318b9bc861311772a5e99b SHA512 ddebfa73a4fee423ee7ead3e7d28ff9e8160f8459ea7cc341b1194759894aee24b07cec25030dedc4570416146d96159f532b7ec2e22d5279e4390bef3330a13 +DIST botocore-1.27.90.gh.tar.gz 9712235 BLAKE2B 3140dd97ed33b368bf605ff77e15ada2b0ace21d8816f7ea0b614f822a4f6ab1fe7640c52c08087cc3d12a8a6a2e15cde0895eb65d643441398b743800ed8296 SHA512 4ba1d0cc82ee0f0d77da2613b8dae20aeeb49d0ce6c87c074800e4887fa341948292a4fb9eec605c5a3f9ed9ff7773e4c8b46ff286d8b2d9588b125f5d3fcac9 diff --git a/dev-python/botocore/botocore-1.27.90.ebuild b/dev-python/botocore/botocore-1.27.90.ebuild new file mode 100644 index 000000000000..ba4830d69cb3 --- /dev/null +++ b/dev-python/botocore/botocore-1.27.90.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/botocore" + inherit git-r3 +else + SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + " + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +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 + # fails on unrelated warnings + tests/unit/test_client.py::TestAutoGeneratedClient::test_BOTO_DISABLE_COMMONNAME + tests/unit/test_client.py::TestClientErrors::test_BOTO_DISABLE_COMMONNAME + ) + + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/hvac/hvac-1.0.2.ebuild b/dev-python/hvac/hvac-1.0.2.ebuild index 03b860603f65..749f42cd74f1 100644 --- a/dev-python/hvac/hvac-1.0.2.ebuild +++ b/dev-python/hvac/hvac-1.0.2.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/hvac/hvac/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~arm64" RDEPEND=" >=dev-python/pyhcl-0.4.4[${PYTHON_USEDEP}] diff --git a/dev-python/ipdb/files/ipdb-0.13.9-tomli.patch b/dev-python/ipdb/files/ipdb-0.13.9-tomli.patch new file mode 100644 index 000000000000..20eecdd8721c --- /dev/null +++ b/dev-python/ipdb/files/ipdb-0.13.9-tomli.patch @@ -0,0 +1,54 @@ +From bc06e22817f2644c6ecc838f60c93fbedb9e0016 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 12 Oct 2022 16:57:24 +0200 +Subject: [PATCH] Support tomllib/tomli in newer Python versions + +Support the built-in `tomllib` module from Python 3.11 and the modern +TOML processing library `tomli` in newer versions of Python 3. The old +`toml` package is unmaintained and does not implement TOML 1.0 +correctly. +--- + ipdb/__main__.py | 14 ++++++++++++-- + setup.py | 4 ++-- + 2 files changed, 14 insertions(+), 4 deletions(-) + +diff --git a/ipdb/__main__.py b/ipdb/__main__.py +index ea2ae88..2c3f675 100644 +--- a/ipdb/__main__.py ++++ b/ipdb/__main__.py +@@ -176,8 +176,18 @@ def get_config(): + read_func(f) + # To use on pyproject.toml, put [tool.ipdb] section + elif filepath.endswith('pyproject.toml'): +- import toml +- toml_file = toml.load(filepath) ++ try: ++ if sys.version_info >= (3, 11): ++ import tomllib ++ else: ++ import tomli as tomllib ++ ++ with open(filepath, "rb") as f: ++ toml_file = tomllib.load(f) ++ except ImportError: ++ import toml ++ toml_file = toml.load(filepath) ++ + if "tool" in toml_file and "ipdb" in toml_file["tool"]: + if not parser.has_section("ipdb"): + parser.add_section("ipdb") +diff --git a/setup.py b/setup.py +index 6ce51c0..04f594c 100644 +--- a/setup.py ++++ b/setup.py +@@ -64,8 +64,8 @@ + # FTR, `decorator` is also a dependency of Ipython. + ':python_version == "3.4"': ['ipython >= 6.0.0, < 7.0.0', 'toml >= 0.10.2', 'decorator < 5.0.0'], + ':python_version == "3.5"': ['ipython >= 7.0.0, < 7.10.0', 'toml >= 0.10.2', 'decorator'], +- ':python_version == "3.6"': ['ipython >= 7.10.0, < 7.17.0', 'toml >= 0.10.2', 'decorator'], +- ':python_version > "3.6"': ['ipython >= 7.17.0', 'toml >= 0.10.2', 'decorator'], ++ ':python_version == "3.6"': ['ipython >= 7.10.0, < 7.17.0', 'tomli', 'decorator'], ++ ':python_version > "3.6"': ['ipython >= 7.17.0', 'tomli', 'decorator'], + }, + tests_require=[ + 'mock; python_version<"3"' diff --git a/dev-python/ipdb/ipdb-0.13.9-r2.ebuild b/dev-python/ipdb/ipdb-0.13.9-r3.ebuild index 7bdb9d7b2f5e..5875ec65a807 100644 --- a/dev-python/ipdb/ipdb-0.13.9-r2.ebuild +++ b/dev-python/ipdb/ipdb-0.13.9-r3.ebuild @@ -5,23 +5,37 @@ EAPI=8 PYTHON_COMPAT=( python3_{7,8,9,10} ) DISTUTILS_USE_PEP517=setuptools + inherit distutils-r1 optfeature DESCRIPTION="IPython-enabled pdb" -HOMEPAGE="https://pypi.org/project/ipdb/ https://github.com/gotcha/ipdb" +HOMEPAGE=" + https://github.com/gotcha/ipdb/ + https://pypi.org/project/ipdb/ +" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~riscv ~sparc x86" -RDEPEND=">=dev-python/ipython-7.17[${PYTHON_USEDEP}]" -BDEPEND="test? ( dev-python/toml[${PYTHON_USEDEP}] )" +RDEPEND=" + >=dev-python/ipython-7.17[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/tomli[${PYTHON_USEDEP}] + ) +" DOCS=( AUTHORS HISTORY.txt README.rst ) +PATCHES=( + "${FILESDIR}"/${P}-tomli.patch +) + distutils_enable_tests unittest pkg_postinst() { - optfeature "pyproject.toml support" dev-python/toml + optfeature "pyproject.toml support" dev-python/tomli } diff --git a/dev-python/jaraco-test/jaraco-test-5.1.0.ebuild b/dev-python/jaraco-test/jaraco-test-5.1.0-r1.ebuild index 3e82ea3cfb71..2b66eef46a4d 100644 --- a/dev-python/jaraco-test/jaraco-test-5.1.0.ebuild +++ b/dev-python/jaraco-test/jaraco-test-5.1.0-r1.ebuild @@ -26,7 +26,12 @@ RDEPEND=" dev-python/jaraco-context[${PYTHON_USEDEP}] dev-python/jaraco-functools[${PYTHON_USEDEP}] dev-python/more-itertools[${PYTHON_USEDEP}] - dev-python/toml[${PYTHON_USEDEP}] " distutils_enable_tests pytest + +src_prepare() { + # stray dep + sed -i -e '/toml/d' setup.cfg || die + distutils-r1_src_prepare +} diff --git a/dev-python/pybtex/pybtex-0.24.0.ebuild b/dev-python/pybtex/pybtex-0.24.0.ebuild index 3dc623af1739..bfc315bec01b 100644 --- a/dev-python/pybtex/pybtex-0.24.0.ebuild +++ b/dev-python/pybtex/pybtex-0.24.0.ebuild @@ -8,7 +8,7 @@ inherit distutils-r1 DESCRIPTION="BibTeX-compatible bibliography processor" HOMEPAGE="https://pybtex.org https://pypi.org/project/pybtex/" -SRC_URI="https://files.pythonhosted.org/packages/source/p/${PN}/${P}.tar.gz" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" diff --git a/dev-python/pydocstyle/files/pydocstyle-6.1.1-tomli.patch b/dev-python/pydocstyle/files/pydocstyle-6.1.1-tomli.patch new file mode 100644 index 000000000000..8be2adca5ba1 --- /dev/null +++ b/dev-python/pydocstyle/files/pydocstyle-6.1.1-tomli.patch @@ -0,0 +1,90 @@ +From 4c9ed77d3629a69febdaa14d153d3db869b58e4f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 12 Oct 2022 16:37:40 +0200 +Subject: [PATCH] Use tomllib/tomli for reading .toml configs + +Use the built-in `tomllib` module in Python 3.11 and the modern `tomli` +package in older Python versions to read .toml configs instead of +the unmaintained and broken `toml` package. + +Fixes #599 +Fixes #600 +--- + docs/release_notes.rst | 1 + + requirements/runtime.txt | 2 +- + requirements/tests.txt | 1 - + setup.py | 2 +- + src/pydocstyle/config.py | 20 ++++++++++++-------- + 5 files changed, 15 insertions(+), 11 deletions(-) + +diff --git a/requirements/runtime.txt b/requirements/runtime.txt +index 80302751..b4e9ca76 100644 +--- a/requirements/runtime.txt ++++ b/requirements/runtime.txt +@@ -1,2 +1,2 @@ + snowballstemmer==1.2.1 +-toml==0.10.2 ++tomli==2.0.1; python_version < "3.11" +diff --git a/setup.py b/setup.py +index a9c5df1c..6c0671c7 100644 +--- a/setup.py ++++ b/setup.py +@@ -8,7 +8,7 @@ + 'snowballstemmer', + ] + extra_requirements = { +- 'toml': ['toml'], ++ 'toml': ['tomli; python_version < "3.11"'], + } + + +diff --git a/src/pydocstyle/config.py b/src/pydocstyle/config.py +index ed00c874..db7ed1b6 100644 +--- a/src/pydocstyle/config.py ++++ b/src/pydocstyle/config.py +@@ -4,6 +4,7 @@ + import itertools + import operator + import os ++import sys + from collections import namedtuple + from collections.abc import Set + from configparser import NoOptionError, NoSectionError, RawConfigParser +@@ -13,10 +14,13 @@ + from .utils import __version__, log + from .violations import ErrorRegistry, conventions + +-try: +- import toml +-except ImportError: # pragma: no cover +- toml = None # type: ignore ++if sys.version_info >= (3, 11): ++ import tomllib ++else: ++ try: ++ import tomli as tomllib ++ except ImportError: # pragma: no cover ++ tomllib = None # type: ignore + + + def check_initialized(method): +@@ -59,15 +63,15 @@ def read(self, filenames, encoding=None): + read_ok = [] + for filename in filenames: + try: +- with open(filename, encoding=encoding) as fp: +- if not toml: ++ with open(filename, "rb") as fp: ++ if not tomllib: + log.warning( + "The %s configuration file was ignored, " +- "because the `toml` package is not installed.", ++ "because the `tomli` package is not installed.", + filename, + ) + continue +- self._config.update(toml.load(fp)) ++ self._config.update(tomllib.load(fp)) + except OSError: + continue + if isinstance(filename, os.PathLike): diff --git a/dev-python/pydocstyle/pydocstyle-6.1.1-r1.ebuild b/dev-python/pydocstyle/pydocstyle-6.1.1-r2.ebuild index 674eed610e4a..18bf0f3ac73d 100644 --- a/dev-python/pydocstyle/pydocstyle-6.1.1-r1.ebuild +++ b/dev-python/pydocstyle/pydocstyle-6.1.1-r2.ebuild @@ -27,7 +27,9 @@ RDEPEND=" " BDEPEND=" test? ( - dev-python/toml[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) ) " @@ -37,4 +39,5 @@ distutils_enable_tests pytest PATCHES=( "${FILESDIR}"/pydocstyle-6.1.1-disarm-pip-install.patch + "${FILESDIR}"/${P}-tomli.patch ) diff --git a/dev-python/pyhcl/pyhcl-0.4.4.ebuild b/dev-python/pyhcl/pyhcl-0.4.4.ebuild index 0b1170669f50..4a0db2c0281f 100644 --- a/dev-python/pyhcl/pyhcl-0.4.4.ebuild +++ b/dev-python/pyhcl/pyhcl-0.4.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -17,7 +17,7 @@ if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://github.com/virtuald/pyhcl.git" else SRC_URI="https://github.com/virtuald/pyhcl/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~arm64" fi LICENSE="MPL-2.0" diff --git a/dev-python/pyotp/pyotp-2.7.0.ebuild b/dev-python/pyotp/pyotp-2.7.0.ebuild index 6debfb2a1594..46c04154d783 100644 --- a/dev-python/pyotp/pyotp-2.7.0.ebuild +++ b/dev-python/pyotp/pyotp-2.7.0.ebuild @@ -15,6 +15,6 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~arm64 ~x86" distutils_enable_tests unittest diff --git a/dev-python/pytest-httpserver/pytest-httpserver-1.0.6.ebuild b/dev-python/pytest-httpserver/pytest-httpserver-1.0.6.ebuild index 667447d08c23..e39b771a36ab 100644 --- a/dev-python/pytest-httpserver/pytest-httpserver-1.0.6.ebuild +++ b/dev-python/pytest-httpserver/pytest-httpserver-1.0.6.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~riscv ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" RDEPEND=" dev-python/werkzeug[${PYTHON_USEDEP}] diff --git a/dev-python/pytest-pylint/Manifest b/dev-python/pytest-pylint/Manifest deleted file mode 100644 index e3b72f5e712a..000000000000 --- a/dev-python/pytest-pylint/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pytest-pylint-0.18.0.tar.gz 12448 BLAKE2B 9d0cecb08fc87d7e2aade47af3f2677431776a425726c281e9abc5fdeebb84f38ab4a97e405ed407b1cd241eb97a8cd90e878af61f818b46cab5f9fba5ca3d5f SHA512 a0716104d288774d4c3ab596f30a33cf439df5031647912574c31eefc3a84e69e82fc362f77e73b437c7566a596d2ff8bf51a332626a7fa7468cea3b916e9ad9 diff --git a/dev-python/pytest-pylint/metadata.xml b/dev-python/pytest-pylint/metadata.xml deleted file mode 100644 index a60e3b7b72ed..000000000000 --- a/dev-python/pytest-pylint/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>python@gentoo.org</email> - <name>Python</name> - </maintainer> - <upstream> - <bugs-to>https://github.com/carsongee/pytest-pylint/issues</bugs-to> - </upstream> - <origin>gentoo-staging</origin> - <stabilize-allarches/> -</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pytest-pylint/pytest-pylint-0.18.0.ebuild b/dev-python/pytest-pylint/pytest-pylint-0.18.0.ebuild deleted file mode 100644 index 5534b506dd90..000000000000 --- a/dev-python/pytest-pylint/pytest-pylint-0.18.0.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="pytest plugin to check source code with pylint" -HOMEPAGE="https://github.com/carsongee/pytest-pylint" -SRC_URI="https://github.com/carsongee/pytest-pylint/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - >=dev-python/pylint-2.3.0[${PYTHON_USEDEP}] - >=dev-python/pytest-5.4[${PYTHON_USEDEP}] - >=dev-python/toml-0.7.1[${PYTHON_USEDEP}] -" - -distutils_enable_tests --install pytest - -python_prepare_all() { - # Disable flake8 and pep8 options - sed -i -e '/^addopts =/d' tox.ini || die - # Remove pytest-runner requirement - sed -i -e "s/'pytest-runner'//" setup.py || die - distutils-r1_python_prepare_all -} diff --git a/dev-python/pytest-twisted/pytest-twisted-1.13.4-r1.ebuild b/dev-python/pytest-twisted/pytest-twisted-1.13.4-r1.ebuild index 7b5018cd9527..37ccee35bc75 100644 --- a/dev-python/pytest-twisted/pytest-twisted-1.13.4-r1.ebuild +++ b/dev-python/pytest-twisted/pytest-twisted-1.13.4-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/pytest-dev/pytest-twisted/archive/v${PV}.tar.gz -> $ LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv x86" RDEPEND=" dev-python/decorator[${PYTHON_USEDEP}] diff --git a/dev-python/python-etcd/Manifest b/dev-python/python-etcd/Manifest deleted file mode 100644 index 50ae4ac4a574..000000000000 --- a/dev-python/python-etcd/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST python-etcd-0.4.5.tar.gz 37270 BLAKE2B cdeae8ef7d668c7737f48a8f1513b5e0177b074d25d7f9d522051585699f11beadc26e9588209561f37a20ac0b4c9793f675bff07634ccdadf9720443e318582 SHA512 c59d7a67492a2e4e72b1ae3ea73ac85a073b9d4516d1ebc48601ba67ac9609fbc45574d97e8dfae3ed4f511f090343ff980160043676252125ce2e2edc7bd154 diff --git a/dev-python/python-etcd/metadata.xml b/dev-python/python-etcd/metadata.xml deleted file mode 100644 index 9c538b43f2e8..000000000000 --- a/dev-python/python-etcd/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>zmedico@gentoo.org</email> - </maintainer> - <upstream> - <changelog>https://raw.githubusercontent.com/jplana/python-etcd/master/NEWS.txt</changelog> - <bugs-to>https://github.com/jplana/python-etcd/issues</bugs-to> - <doc>https://python-etcd.readthedocs.io/</doc> - </upstream> - <origin>gentoo-staging</origin> -</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/python-etcd/python-etcd-0.4.5-r1.ebuild b/dev-python/python-etcd/python-etcd-0.4.5-r1.ebuild deleted file mode 100644 index df089ef10f49..000000000000 --- a/dev-python/python-etcd/python-etcd-0.4.5-r1.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="A python client for etcd" -HOMEPAGE=" - https://github.com/jplana/python-etcd/ - https://pypi.org/project/python-etcd/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="test" - -RDEPEND="dev-python/dnspython[${PYTHON_USEDEP}] - >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}] - >=dev-python/urllib3-1.7.1[${PYTHON_USEDEP}]" - -DEPEND="${RDEPEND} - test? ( - dev-db/etcd - dev-python/mock[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - )" - -python_test() { - esetup.py test -} diff --git a/dev-python/responses/responses-0.22.0.ebuild b/dev-python/responses/responses-0.22.0.ebuild index 33e5d0de1e61..a74ff2c991e1 100644 --- a/dev-python/responses/responses-0.22.0.ebuild +++ b/dev-python/responses/responses-0.22.0.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~riscv ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" RDEPEND=" <dev-python/requests-3[${PYTHON_USEDEP}] diff --git a/dev-python/trimesh/Manifest b/dev-python/trimesh/Manifest index d55c43f297ee..b82344224ce5 100644 --- a/dev-python/trimesh/Manifest +++ b/dev-python/trimesh/Manifest @@ -2,3 +2,4 @@ DIST trimesh-3.14.1.gh.tar.gz 11961899 BLAKE2B eab37c94da03cfdefa2f4bff78a1a1cdd DIST trimesh-3.15.2.gh.tar.gz 11956076 BLAKE2B 4ec701056efd29eb24eaf4edc82d07af4b8e02713697f658ea86eaef6f94916d51c3b21873b3da720705f281054ab5564f4331dc3ee9614d37774bdc03dd1c77 SHA512 9ae3917f2485f5eba089fd04029187be356bbb032d8afa57801a5c19a897550a34bd6734848a47c937b42745fd4563a5a05352928f5e31a7146a3b002d6c765d DIST trimesh-3.15.3.gh.tar.gz 11955970 BLAKE2B 050a1330ff0d3d308f3f54bee9080907b839e8cfcc9bdc831d3c5033225a9868aefe2ceb39313949288c779a1af577911a7e43fe2745f50c4983c178dcf02742 SHA512 e01192496af519be7f4d04b6268f82227a0d00c2feebf294572cdd6cce151d10d271cb8b8558c48200338d2f6ea4137fe75d92d115ea8b42f0117ad135566d05 DIST trimesh-3.15.4.gh.tar.gz 11956349 BLAKE2B 5d67b4e7ce0183fb9031c4cf032caf56e366b0ff05713a22d83258d13283b5bca5b08174044aa29af1d02112717c21be668315d99ea3ce203f318416b9eff583 SHA512 98e2711d46f8299132f0fd32b347393a4fc300f08c93f81e6e82b662bac57044678c425455549899ef839467d9a0dc249a4a03c14c816f0377545b74e6523e00 +DIST trimesh-3.15.5.gh.tar.gz 11956403 BLAKE2B 5e36a7fd57689f5151ee710a707bf44ff4c9538c3f541cd3d29bb08722b4bfeead7f138dab02a58a80d18b4831044d1ac674e3defd0e378420540976c422fc22 SHA512 4433480ff96be561d32412870c71420699713c53d34b2f84eabb1fa1eaa9e70d74940674e62a547c31e22dd941bb036179785a35ff2c8d27288300033497d5ac diff --git a/dev-python/trimesh/trimesh-3.15.5.ebuild b/dev-python/trimesh/trimesh-3.15.5.ebuild new file mode 100644 index 000000000000..8a53861b3711 --- /dev/null +++ b/dev-python/trimesh/trimesh-3.15.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 multiprocessing optfeature + +DESCRIPTION="Python library for loading and using triangular meshes" +HOMEPAGE=" + https://trimsh.org/ + https://github.com/mikedh/trimesh/ + https://pypi.org/project/trimesh/ +" +SRC_URI=" + https://github.com/mikedh/${PN}/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/colorlog[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/msgpack[${PYTHON_USEDEP}] + dev-python/networkx[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pycollada[${PYTHON_USEDEP}] + dev-python/pyglet[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/shapely-1.8.2[${PYTHON_USEDEP}] + dev-python/svg-path[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + dev-python/xxhash[${PYTHON_USEDEP}] + sci-libs/rtree[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + epytest -n "$(makeopts_jobs)" +} + +pkg_postinst() { + optfeature_header "${PN} functionality can be extended by installing the following packages:" + optfeature "making GUI applications with 3D stuff" dev-python/glooey + optfeature "2D triangulations of polygons" dev-python/mapbox_earcut + optfeature "loading a number of additional mesh formats" dev-python/meshio + optfeature "figuring out how much memory we have" dev-python/psutil + optfeature "marching cubes and other nice stuff" sci-libs/scikit-image +} diff --git a/dev-python/xarray/Manifest b/dev-python/xarray/Manifest index 70e4169ebc2c..7b9ab8f0547b 100644 --- a/dev-python/xarray/Manifest +++ b/dev-python/xarray/Manifest @@ -1,2 +1,3 @@ +DIST xarray-2022.10.0.tar.gz 3035596 BLAKE2B f42df85bdfa66403826fc7d2fa811419898134723ee24afc6b77a320b23c9b5b95fcfd25520f74abf0a3b7bf009fdc33655eebf0ff9703753872072515deee58 SHA512 ecfc92c68ea7ba02b673c6c317e68daad23b6882b4ed316ad1dd733f179c643411d3ee5902954dbd62f2eb7ad591d8ba1a5f0c1b2c7f6873e733df2f22b6650c DIST xarray-2022.6.0.tar.gz 3013166 BLAKE2B 4f2c17595ec904508e5f9c1d6ffead45be527b7f2ab73383126d57c7894712e924b605a86f890b0fec4ff45d1a263ce27fa324febf83f703ad36079e68f69663 SHA512 415bd84246d6d2b8aebf316ac9ef82ca7afeacce718349b75479c0aa693e2866dfe236e6dcaf41cae68afd7a99408f5027c938e6b7f447f5323e076b804f5165 DIST xarray-2022.9.0.tar.gz 3030815 BLAKE2B 71bea98d49fa9ce2e8e881bdcba7872293e1cd9fa4bd23e6cdce40220d87550fade52a7b7c25ff5d0b11b8a729c57ed219031b1f13d1f375c5278ecc611dfbc5 SHA512 57383cfc809b26d743c06eb5a158d318c65aedfa374e62b0a5fdc99708632a364b2efb6275fbc728e441effb7c695635a443cf141d69fa742216a677f4168b3b diff --git a/dev-python/xarray/xarray-2022.10.0.ebuild b/dev-python/xarray/xarray-2022.10.0.ebuild new file mode 100644 index 000000000000..eac619b665fb --- /dev/null +++ b/dev-python/xarray/xarray-2022.10.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="N-D labeled arrays and datasets in Python" +HOMEPAGE="https://xarray.pydata.org/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/numpy-1.22[${PYTHON_USEDEP}] + >=dev-python/pandas-1.3[${PYTHON_USEDEP}] + >=dev-python/packaging-21.0[${PYTHON_USEDEP}] +" +# note: most of the test dependencies are optional +BDEPEND=" + test? ( + dev-python/bottleneck[${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}] ) + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # warning-targeted tests are fragile and not important to end users + xarray/tests/test_backends.py::test_no_warning_from_dask_effective_get +) |
