diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-08-14 06:16:12 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-08-14 06:16:12 +0000 |
| commit | 2d5e0fb5c768a502d72ac4ee4e094733f0da65ef (patch) | |
| tree | e89a8e86714de9b147bd0a0dddd8ec6144afc26e /dev-python | |
| parent | 216d4e1f722fef2d6bc508cbd3373a130ba00f48 (diff) | |
| download | baldeagleos-repo-2d5e0fb5c768a502d72ac4ee4e094733f0da65ef.tar.gz baldeagleos-repo-2d5e0fb5c768a502d72ac4ee4e094733f0da65ef.tar.xz baldeagleos-repo-2d5e0fb5c768a502d72ac4ee4e094733f0da65ef.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
34 files changed, 518 insertions, 149 deletions
diff --git a/dev-python/APScheduler/APScheduler-3.10.2.ebuild b/dev-python/APScheduler/APScheduler-3.10.2.ebuild new file mode 100644 index 000000000000..61162ff17253 --- /dev/null +++ b/dev-python/APScheduler/APScheduler-3.10.2.ebuild @@ -0,0 +1,63 @@ +# 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_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="In-process task scheduler with Cron-like capabilities" +HOMEPAGE=" + https://github.com/agronholm/apscheduler/ + https://pypi.org/project/APScheduler/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/pytz[${PYTHON_USEDEP}] + >=dev-python/six-1.4.0[${PYTHON_USEDEP}] + >=dev-python/tzlocal-4[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/sqlalchemy-1.4[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-tornado[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + # disable test fixtures using external servers (mongodb, redis...) + # these fixtures are using markers in git master, so the patch + # should be no longer necessary with next major bump + "${FILESDIR}"/APScheduler-3.8.1-external-server-tests.patch +) + +EPYTEST_DESELECT=( + tests/test_jobstores.py::test_repr_mongodbjobstore + tests/test_jobstores.py::test_repr_redisjobstore + tests/test_jobstores.py::test_repr_zookeeperjobstore + tests/test_executors.py::test_broken_pool +) + +python_prepare_all() { + # suppress setuptools warning #797751 + sed -e 's|^upload-dir|upload_dir|' -i setup.cfg || die + sed -e '/addopts/d' -i setup.cfg || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p asyncio -p tornado +} diff --git a/dev-python/APScheduler/Manifest b/dev-python/APScheduler/Manifest index 97a332998728..eb39473acb40 100644 --- a/dev-python/APScheduler/Manifest +++ b/dev-python/APScheduler/Manifest @@ -1 +1,2 @@ DIST APScheduler-3.10.1.tar.gz 100376 BLAKE2B 6b5aed1197ec6cdcf2c82d73c2809d9fd304401ad5ac482cdd0dfc310356248b9ba5f0cf611f5484f4098c92d7b6f8b81f117fe5fd645b5d20ba0fbb7f1d6c97 SHA512 bba68c97d2e7cda6503a8471a61bf57c11b9c8b6dde4d1da65f7d134bf72f631b3f70815ac7db3f75313833c780ee6ded0b8d0e1c9a86e05e741788bcd041008 +DIST APScheduler-3.10.2.tar.gz 100853 BLAKE2B 540517028af71f8325c74d9fc87c44aeb20440be5a670aaa488069090acec5d19c950ab2df67e55e83b52140343e384a1214d7c7390ce50d3d5fca99bac492c8 SHA512 42a1c7df47ab41c06f87e9d0828950c78abe50e1f6648d5eda425db74edf1d07473129d1a1b9a4a82c32dfadacba9b3dca2e5b2772ba733007c502b31c34d43d diff --git a/dev-python/cattrs/Manifest b/dev-python/cattrs/Manifest index bae8e6c6c80a..62c587a736b2 100644 --- a/dev-python/cattrs/Manifest +++ b/dev-python/cattrs/Manifest @@ -1,3 +1 @@ -DIST cattrs-22.2.0.gh.tar.gz 117001 BLAKE2B 34601cf48c582da2d9aa8d741a08919b5f06043bc6ba6b072d8b0934e90e781349b1325ced478ca0b42b50db1f7fe2a6d3cd16ac29609efd72c9aa894debfe9e SHA512 d198864402f56d4e9403c61ee3d9d109c5eac3350908afa1e244dbe31e4bc986271fcb4c72bde9cdaa9ee865c6a8b81de68ec0d51490ed658b410714e1fc550c -DIST cattrs-23.1.1.gh.tar.gz 602294 BLAKE2B c0be7dc8979919c4d29f9bd51203d219b9d65bbaa271a38f4d1d6c705121a5c9747c3b8a29431de8ea6769baeae67323b8bd6f133f9fd6c80aa1f3bbf969b4d2 SHA512 8a048ce214ed1aa4b138164e3cd7e39fec84ee3d46f167dda402e3de0041fb0548b2e75051c63694a5baf59c78705823247e4204408f5d0b410a9aabdc68c7e3 DIST cattrs-23.1.2.gh.tar.gz 602336 BLAKE2B f39ff3c1525ea14789edd137d82343a9447de0a41f65a71ee85754a15f8fdc929137125043b23c6cd088c8b2d2e9da18577c3b6dbbb6e9a33bdf6789f117bc46 SHA512 d05c8a5d4c5dc0b69ccdf33164d44c35a37a871199a35d1c2c25f9fbd8ee53d48da8e9d9bec49cde2baf901b524d5e8ff1ade175928908ea81f94e8398224488 diff --git a/dev-python/cattrs/cattrs-22.2.0.ebuild b/dev-python/cattrs/cattrs-22.2.0.ebuild deleted file mode 100644 index e5cd3aa227da..000000000000 --- a/dev-python/cattrs/cattrs-22.2.0.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) - -inherit distutils-r1 - -DESCRIPTION="Composable complex class support for attrs and dataclasses" -HOMEPAGE=" - https://pypi.org/project/cattrs/ - https://github.com/python-attrs/cattrs/ -" -SRC_URI=" - https://github.com/python-attrs/cattrs/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 x86" - -RDEPEND=" - >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/exceptiongroup[${PYTHON_USEDEP}] - ' 3.8 3.9 3.10) -" -BDEPEND=" - test? ( - >=dev-python/hypothesis-6.54.5[${PYTHON_USEDEP}] - >=dev-python/immutables-0.18[${PYTHON_USEDEP}] - ) -" -# test_preconf: -# dev-python/bson[${PYTHON_USEDEP}] -# dev-python/msgpack[${PYTHON_USEDEP}] -# dev-python/orjson[${PYTHON_USEDEP}] -# dev-python/pyyaml[${PYTHON_USEDEP}] -# dev-python/tomlkit[${PYTHON_USEDEP}] -# dev-python/ujson[${PYTHON_USEDEP}] - -distutils_enable_tests pytest - -src_prepare() { - sed -e 's:--benchmark.*::' \ - -e '/addopts/d' \ - -i pyproject.toml || die - distutils-r1_src_prepare -} - -python_test() { - # unpackaged deps, see above - epytest tests --ignore tests/test_preconf.py -} diff --git a/dev-python/cattrs/cattrs-23.1.1.ebuild b/dev-python/cattrs/cattrs-23.1.1.ebuild deleted file mode 100644 index 9b1d598a0a96..000000000000 --- a/dev-python/cattrs/cattrs-23.1.1.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) - -inherit distutils-r1 - -DESCRIPTION="Composable complex class support for attrs and dataclasses" -HOMEPAGE=" - https://pypi.org/project/cattrs/ - https://github.com/python-attrs/cattrs/ -" -SRC_URI=" - https://github.com/python-attrs/cattrs/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/exceptiongroup[${PYTHON_USEDEP}] - ' 3.{9..10}) -" -BDEPEND=" - test? ( - >=dev-python/cbor2-5.4.6[${PYTHON_USEDEP}] - >=dev-python/hypothesis-6.54.5[${PYTHON_USEDEP}] - >=dev-python/immutables-0.18[${PYTHON_USEDEP}] - >=dev-python/msgpack-1.0.2[${PYTHON_USEDEP}] - >=dev-python/orjson-3.5.2[${PYTHON_USEDEP}] - >=dev-python/pymongo-4.2.0[${PYTHON_USEDEP}] - >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}] - >=dev-python/tomlkit-0.11.4[${PYTHON_USEDEP}] - >=dev-python/ujson-5.4.0[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - sed -e 's:--benchmark.*::' \ - -e '/addopts/d' \ - -i pyproject.toml || die - distutils-r1_src_prepare -} - -python_test() { - epytest tests -} diff --git a/dev-python/cattrs/cattrs-23.1.2.ebuild b/dev-python/cattrs/cattrs-23.1.2.ebuild index e225ec86608a..fd8a0899b645 100644 --- a/dev-python/cattrs/cattrs-23.1.2.ebuild +++ b/dev-python/cattrs/cattrs-23.1.2.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc x86" IUSE="test-rust" RDEPEND=" diff --git a/dev-python/cfgv/Manifest b/dev-python/cfgv/Manifest index ed01572398ef..ced7ab6de638 100644 --- a/dev-python/cfgv/Manifest +++ b/dev-python/cfgv/Manifest @@ -1 +1,2 @@ DIST cfgv-3.3.1.gh.tar.gz 10395 BLAKE2B 8727a9886334a1fe59aeb0554c4c53139ae7e1f66534102c67f005d66dc1f78cff5e5534468a10b85df645f7e8a2fc72ca6ca2e448d09cb7636d08e8b3843113 SHA512 59c358bab9f2b32a1ac6eb72bba67b76e8368e0cf78c32228a6add200a0205f698aa80d9bd1b1e8701fb699b9599c88a240f76e2c91a602a0c292a67693e6857 +DIST cfgv-3.4.0.gh.tar.gz 10334 BLAKE2B fa84c7307e32e9f19d2ec0c806afc0d54f4a5f7767d2f4f755d73bafa80425513717160e722752fb41cfbfcb8c1cb11bd363ac41e99265c19dd18166b24d6d64 SHA512 7d3939bb99bc446f30774cad8f0ddeb1ff867e63d19e4178e5c5281b8f4300c08375936170b8ab0278b040439f59d0276b0c8924f02cd410e73037fb4729af57 diff --git a/dev-python/cfgv/cfgv-3.4.0.ebuild b/dev-python/cfgv/cfgv-3.4.0.ebuild new file mode 100644 index 000000000000..794dd16a3f48 --- /dev/null +++ b/dev-python/cfgv/cfgv-3.4.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2023 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,11} ) + +inherit distutils-r1 + +DESCRIPTION="Validate configuration and produce human-readable error messages" +HOMEPAGE=" + https://github.com/asottile/cfgv/ + https://pypi.org/project/cfgv/ +" +SRC_URI=" + https://github.com/asottile/cfgv/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" + +distutils_enable_tests pytest diff --git a/dev-python/cleo/cleo-2.0.1-r1.ebuild b/dev-python/cleo/cleo-2.0.1-r1.ebuild index 4bd1e8f1293d..0687f2a21f20 100644 --- a/dev-python/cleo/cleo-2.0.1-r1.ebuild +++ b/dev-python/cleo/cleo-2.0.1-r1.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc x86" RDEPEND=" dev-python/crashtest[${PYTHON_USEDEP}] diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index f0f9573cb2a8..1e538d99fc21 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -1 +1,2 @@ DIST coverage-7.2.7.tar.gz 762575 BLAKE2B 20a800c3cd62095aacdfa4853613a3fd579abacd9051878ee2b308360db181ad45b68a0866236666826efc510d4a0328273d63c78c42fa4a7419ac98f85cf3f4 SHA512 01ed5ef8ddb600b8a7443200b568eb5d8aa7d652f408617f78a2e1251a5f091ee05188a7d383acd530f29b688b67a4bf2dc2e1241efffe8b9d0f70f44c646f33 +DIST coverage-7.3.0.tar.gz 763902 BLAKE2B dbd49200ef5ca167b9ae11b76bae1d8dd682289d14c657029227d0f2f1cc149ddde7c571add7165e10a150d2bd591d9bc988a7d306d01dd3eb34e8a5098d66cd SHA512 3b394c3c96ca8484641585ce26c27100153892a77369e14e3596fe604a98ac0f9b33189d679fffd9fa80a41ac4bfa6a64dfe97e586833b39707ecc7f5aa43c35 diff --git a/dev-python/coverage/coverage-7.3.0.ebuild b/dev-python/coverage/coverage-7.3.0.ebuild new file mode 100644 index 000000000000..ca42bf8ce570 --- /dev/null +++ b/dev-python/coverage/coverage-7.3.0.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 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_{7,8,9,10,11} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="Code coverage measurement for Python" +HOMEPAGE=" + https://coverage.readthedocs.io/en/latest/ + https://github.com/nedbat/coveragepy/ + https://pypi.org/project/coverage/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{9..10}) +" +BDEPEND=" + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/addopts/s:-q -n auto::' pyproject.toml || die + distutils-r1_src_prepare +} + +test_tracer() { + local -x COVERAGE_TEST_TRACER=${1} + einfo " Testing with the ${COVERAGE_TEST_TRACER} tracer ..." + epytest tests +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO: fails because of additional "Terminated" print on SIGTERM + tests/test_concurrency.py::SigtermTest::test_sigterm_threading_saves_data + ) + local EPYTEST_IGNORE=( + # pip these days insists on fetching build deps from Internet + tests/test_venv.py + ) + + "${EPYTHON}" igor.py zip_mods || die + + local -x COVERAGE_TESTING=True + # TODO: figure out why they can't be imported inside test env + local -x COVERAGE_NO_CONTRACTS=1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin + + local prev_opt=$(shopt -p nullglob) + shopt -s nullglob + local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so ) + ${prev_opt} + + if [[ -n ${c_ext} ]]; then + cp "${c_ext}" \ + coverage/ || die + test_tracer c + rm coverage/*.so || die + else + test_tracer py + fi +} diff --git a/dev-python/crashtest/crashtest-0.4.1.ebuild b/dev-python/crashtest/crashtest-0.4.1.ebuild index 6f29978a846e..b918ee1ac51b 100644 --- a/dev-python/crashtest/crashtest-0.4.1.ebuild +++ b/dev-python/crashtest/crashtest-0.4.1.ebuild @@ -20,6 +20,6 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc x86" distutils_enable_tests pytest diff --git a/dev-python/editables/editables-0.5.ebuild b/dev-python/editables/editables-0.5.ebuild index ce505ef4ed91..1497d8392d69 100644 --- a/dev-python/editables/editables-0.5.ebuild +++ b/dev-python/editables/editables-0.5.ebuild @@ -20,6 +20,6 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" distutils_enable_tests pytest diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 56313127bca2..846b6b6a5f1b 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -1,2 +1,3 @@ DIST hypothesis-6.81.2.gh.tar.gz 9378154 BLAKE2B d4654e8de621af93fa6ab013bf45ea1c2e8b273f38cf0dddbe00853d197487acf2a9457a33e59fd59b9c5c7dca08a84867a835cdfa8e4a63181df5105889c360 SHA512 41f5e6b8382c08dd0e4285836a3f1308f6666d86387e10899c5ef8839598e097d31a5360cf7d47f2d30c287ad575787ecb44c236ad83c52202cf8895046c56a0 DIST hypothesis-6.82.3.gh.tar.gz 9378981 BLAKE2B bb73131f9982e8df71e24a5f329a2f34b7e895ffa231d55724f84a3d692608e59a4494a820ea5ee449db4c40f2521548b2dece2f1bcfa9fbd4f0ddbc4dbb9756 SHA512 02b649116630dc6be3cbd659a00c9c55d68c85a9cbf029558fc1c065909a1cadd2fb120615fa3bf7fe4a11f51d26d264cf6730ac4d3165798668d38e62c5d955 +DIST hypothesis-6.82.4.gh.tar.gz 9379010 BLAKE2B 0da8b3ff53f6f2019019ade9a8b42ef62eb90993ca1835b89938d0a36387958e4b32bc6c7ac6345f465682c5fd4d549befa30d083d81fa4af611d16c3df07007 SHA512 22d186203b23409e315bf7341bd51e084785c833318cb32a88c81123cdefb1ae757c89bb025209d36adf720e2a407fe28fabf1d3fb2ae0d2e4363cf69adfe72e diff --git a/dev-python/hypothesis/hypothesis-6.82.4.ebuild b/dev-python/hypothesis/hypothesis-6.82.4.ebuild new file mode 100644 index 000000000000..45ac15b82e26 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.82.4.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 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_{7,8,9,10,11} 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-19.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/mock[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + !!<dev-python/requests-toolbelt-0.10.1 + ) +" + +distutils_enable_tests pytest + +python_test() { + # subtests are broken by warnings from random plugins + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin + local -x HYPOTHESIS_NO_PLUGINS=1 + + # NB: paths need to be relative to pytest.ini, + # i.e. start with hypothesis-python/ + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # failing due to warnings from numpy/cython + hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture + ) + ;; + esac + + epytest -o filterwarnings= -n "$(makeopts_jobs)" \ + tests/cover tests/pytest tests/quality +} + +python_install() { + distutils-r1_python_install + if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then + rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die + fi +} + +pkg_postinst() { + optfeature "datetime support" dev-python/pytz + optfeature "dateutil support" dev-python/python-dateutil + optfeature "numpy support" dev-python/numpy + optfeature "django support" dev-python/django dev-python/pytz + optfeature "pandas support" dev-python/pandas + optfeature "pytest support" dev-python/pytest +} diff --git a/dev-python/irc/Manifest b/dev-python/irc/Manifest index 1053f596b198..5a0dd20f66a9 100644 --- a/dev-python/irc/Manifest +++ b/dev-python/irc/Manifest @@ -1 +1,2 @@ DIST irc-20.1.0.tar.gz 89157 BLAKE2B 42498e63e1d62a5c2e545f1d0d581bdbc9f49228ec14e523f4add130b903be2a736072b8ad53775a7f16298a7c57761d8c06053570dc01a338491593564b3fd7 SHA512 83a988b5f75c1d55376a140519725749824dbc9f32e6b0e5d3684d9c58973a746ae517441594cfa745edb89a0fbd98ef847e937a620548fed4e344b66a97ad1c +DIST irc-20.3.0.tar.gz 90906 BLAKE2B d26c31f2bfa31d2eb49f658535eb636e8f7d264b7da9211b197e387e18ce5544a5af0ea19455d3611d1338ddec2bb93e928a31f22abeef154151691b37182ce5 SHA512 875f049e96b145ad26a6733aac7b1067fc17ef01023b94024079153dd1dd097eb421ac7d6b062216ce132bd475fe6f2f6adb2f7f2f27bbcbbe4de5c86efedc51 diff --git a/dev-python/irc/irc-20.3.0.ebuild b/dev-python/irc/irc-20.3.0.ebuild new file mode 100644 index 000000000000..6a831815931a --- /dev/null +++ b/dev-python/irc/irc-20.3.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 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,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="IRC client framework written in Python" +HOMEPAGE=" + https://github.com/jaraco/irc/ + https://pypi.org/project/irc/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="examples" + +RDEPEND=" + dev-python/jaraco-collections[${PYTHON_USEDEP}] + >=dev-python/jaraco-functools-1.20[${PYTHON_USEDEP}] + >=dev-python/jaraco-itertools-1.8[${PYTHON_USEDEP}] + dev-python/jaraco-logging[${PYTHON_USEDEP}] + dev-python/jaraco-stream[${PYTHON_USEDEP}] + dev-python/jaraco-text[${PYTHON_USEDEP}] + dev-python/more-itertools[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + >=dev-python/tempora-1.6[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools-scm-3.4.1[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/scripts" + dodoc -r scripts + fi + distutils-r1_python_install_all +} diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index e9da2ac43cac..a11d7c268c91 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1,3 +1 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db -EBUILD langdetect-1.0.9.ebuild 493 BLAKE2B 0df8bce19bc80f79f8e76bcef5a4c2caf333365fe0cb9a3c076b7858bceded5a3e58921474f866a2709dd657b7ed330c1ec4a7f9d7bab0fcf1bc92d77cabc32d SHA512 ea2a1adcb133ac5fc951ba1aa90ef1ce3dfcc424e59727591763d4875aa044a74188be2d15fd89c6b2e83ed6ea04ec3d9851ed584ae79d2c2c127bde7d994b48 -MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index 020e07f2a3dd..ddb5b0f1787e 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,11 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>marcin.deranek@slonko.net</email> - <name>Marcin Deranek</name> + <email>cyber+gentoo@sysrq.in</email> + <name>Anna</name> </maintainer> - <upstream> - <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> - </upstream> - <origin>slonko-overlay</origin> + + <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/littleutils/littleutils-0.2.2.ebuild b/dev-python/littleutils/littleutils-0.2.2.ebuild deleted file mode 100644 index 8a399e2a3ef5..000000000000 --- a/dev-python/littleutils/littleutils-0.2.2.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 - -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Small personal collection of Python utility functions" -HOMEPAGE="https://github.com/alexmojaki/littleutils" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" - -python_test() { - "${EPYTHON}" -m doctest -v ${PN}/__init__.py || die "Tests fail with ${EPYTHON}" -} diff --git a/dev-python/omemo-dr/Manifest b/dev-python/omemo-dr/Manifest new file mode 100644 index 000000000000..7e70ae370f27 --- /dev/null +++ b/dev-python/omemo-dr/Manifest @@ -0,0 +1 @@ +DIST omemo-dr-1.0.0.tar.gz 152784 BLAKE2B c239d22cda3aab247ad2d5c706f2f15d22529ff9348564e55aa0c780a1c93b169f1cd4c2f8d6ac0fcf69f3d5d8c190627870363d168432e3a2247b7091bc4d64 SHA512 ad1d43936f94d47a01b1f4f3a8e31bf81d16132714b29f6ef5aac84a907a8bec3fd1014330cdc0169cfa02e64f7815d11ff4ec8a2aa3aecd9141748d2ec469b1 diff --git a/dev-python/omemo-dr/metadata.xml b/dev-python/omemo-dr/metadata.xml new file mode 100644 index 000000000000..853174b8f2ab --- /dev/null +++ b/dev-python/omemo-dr/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + + <origin>gentoo-staging</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/omemo-dr/omemo-dr-1.0.0.ebuild b/dev-python/omemo-dr/omemo-dr-1.0.0.ebuild new file mode 100644 index 000000000000..1c68536f1c66 --- /dev/null +++ b/dev-python/omemo-dr/omemo-dr-1.0.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="OMEMO Crypto Library" +HOMEPAGE=" + https://pypi.org/project/omemo-dr/ + https://dev.gajim.org/gajim/omemo-dr +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/orjson/orjson-3.9.2.ebuild b/dev-python/orjson/orjson-3.9.2.ebuild index 23f089d832e4..1ce4d4d1dd1f 100644 --- a/dev-python/orjson/orjson-3.9.2.ebuild +++ b/dev-python/orjson/orjson-3.9.2.ebuild @@ -58,7 +58,7 @@ LICENSE="|| ( Apache-2.0 MIT )" # Dependent crate licenses LICENSE+=" Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT" SLOT="0" -KEYWORDS="amd64 ~arm64" +KEYWORDS="amd64 ~arm64 x86" BDEPEND=" test? ( diff --git a/dev-python/pendulum/pendulum-2.1.2-r2.ebuild b/dev-python/pendulum/pendulum-2.1.2-r2.ebuild index b1d1f8d5595e..f76c9e04c5ef 100644 --- a/dev-python/pendulum/pendulum-2.1.2-r2.ebuild +++ b/dev-python/pendulum/pendulum-2.1.2-r2.ebuild @@ -22,7 +22,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc x86" DEPEND=" dev-python/python-dateutil[${PYTHON_USEDEP}] diff --git a/dev-python/pytzdata/pytzdata-2020.1-r2.ebuild b/dev-python/pytzdata/pytzdata-2020.1-r2.ebuild index a530c3d60e5c..cdbf958f1d48 100644 --- a/dev-python/pytzdata/pytzdata-2020.1-r2.ebuild +++ b/dev-python/pytzdata/pytzdata-2020.1-r2.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~s390 ~sparc x86" RDEPEND=" dev-python/cleo[${PYTHON_USEDEP}] diff --git a/dev-python/tifffile/Manifest b/dev-python/tifffile/Manifest index f900cc59cff0..a2530f6d041c 100644 --- a/dev-python/tifffile/Manifest +++ b/dev-python/tifffile/Manifest @@ -1 +1,2 @@ DIST tifffile-2023.7.18.gh.tar.gz 336236 BLAKE2B ac4fef74c21aa2c32a21b5e34a716a4a859f41f33d07ced607a8634ca469bf09c264a4d3d170b82596bb61968ca4f480c1abf9d2a4584f2a2de44f44ea1c0acf SHA512 3c3f03b921723da91e07b153f69961c321fa6d3ba2006cd21debba16c4bd0041de457d2df0d6e1b30d089260a2620d7bd27b53fbcf9d88e675d271883b6a60b5 +DIST tifffile-2023.8.12.gh.tar.gz 336657 BLAKE2B 8dfc2403cfa451209f8892326012273b23584c1e50f4172fe7770b850bb591013ef89bdc249976ba0946b4a7065dc603c5817d3f9f201e837b32d8471c4acf16 SHA512 2c14bb5b6ab89f2973ef10b511a2d12568312e1963c227e2ea152197c4e27610eb7e4fc533d47932c45d1fc32bb0aa25d09d0608cd752fd7be8b8ec26ed13eef diff --git a/dev-python/tifffile/tifffile-2023.8.12.ebuild b/dev-python/tifffile/tifffile-2023.8.12.ebuild new file mode 100644 index 000000000000..cb26976c422f --- /dev/null +++ b/dev-python/tifffile/tifffile-2023.8.12.ebuild @@ -0,0 +1,63 @@ +# Copyright 2021-2023 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,11} ) + +inherit distutils-r1 + +DESCRIPTION="Read and write TIFF files" +HOMEPAGE=" + https://pypi.org/project/tifffile/ + https://github.com/cgohlke/tifffile/ + https://www.cgohlke.com/ +" +SRC_URI=" + https://github.com/cgohlke/tifffile/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/numpy-1.19.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/dask[${PYTHON_USEDEP}] + dev-python/defusedxml[${PYTHON_USEDEP}] + >=dev-python/fsspec-2021.5.0[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/xarray[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internet + tests/test_tifffile.py::test_class_omexml + tests/test_tifffile.py::test_class_omexml_fail + tests/test_tifffile.py::test_class_omexml_modulo + tests/test_tifffile.py::test_class_omexml_attributes + tests/test_tifffile.py::test_class_omexml_multiimage + tests/test_tifffile.py::test_write_ome + tests/test_tifffile.py::test_write_ome_manual + # requires tons of free space + tests/test_tifffile.py::test_write_3gb + tests/test_tifffile.py::test_write_5GB_bigtiff + tests/test_tifffile.py::test_write_5GB_fails + tests/test_tifffile.py::test_write_6gb + tests/test_tifffile.py::test_write_bigtiff + 'tests/test_tifffile.py::test_write_imagej_raw' + # TODO + tests/test_tifffile.py::test_issue_imagej_hyperstack_arg + tests/test_tifffile.py::test_issue_description_overwrite + # missing private marker + # https://github.com/cgohlke/tifffile/pull/195 + tests/test_tifffile.py::test_issue_invalid_predictor +) diff --git a/dev-python/types-docutils/Manifest b/dev-python/types-docutils/Manifest index e125159e0c22..5f94274a2869 100644 --- a/dev-python/types-docutils/Manifest +++ b/dev-python/types-docutils/Manifest @@ -1 +1,2 @@ DIST types-docutils-0.20.0.1.tar.gz 9796 BLAKE2B 0d7d6b3af0b7c6bf604f7f366f6dc18b0326140b24c86265470eb3f80ececb90b22ec326f621400ebaf53bcafac123f4eee94432e12325d5134a90339c3fa2f9 SHA512 7a6d56ad4222cb8361f8755fc1bb9793b2ffa9aa01996566ccb360eddc5a154104e5ce0bfee64f8ee4770f0cdf9d6209ee4286a067d99a5f05ba40d13b44c1c2 +DIST types-docutils-0.20.0.2.tar.gz 10168 BLAKE2B 444a915964b80dd3c92de3371e27639402ded89562ac633ebec0f580c7e4ead34aad3630b514c0ac0ea93beef3162e8c715b6e3b422981438dc35c552821e744 SHA512 172889c8f34ef8416aede3c7b401a6bfaf5a9e26570d5677c42faa43e04f3ec2a9e46b0cd8f98e92f366a1f6352bab0387cf0d566a7d654c8a38c5e3cdb2c8de diff --git a/dev-python/types-docutils/types-docutils-0.20.0.2.ebuild b/dev-python/types-docutils/types-docutils-0.20.0.2.ebuild new file mode 100644 index 000000000000..da179c373709 --- /dev/null +++ b/dev-python/types-docutils/types-docutils-0.20.0.2.ebuild @@ -0,0 +1,17 @@ +# Copyright 2022-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_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Typing stubs for docutils" +HOMEPAGE="https://pypi.org/project/types-docutils/" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" diff --git a/dev-python/types-gdb/Manifest b/dev-python/types-gdb/Manifest index 300eb1d46da3..e6fd38705baf 100644 --- a/dev-python/types-gdb/Manifest +++ b/dev-python/types-gdb/Manifest @@ -1 +1,2 @@ DIST types-gdb-12.1.4.4.tar.gz 10217 BLAKE2B c8724e3c1c5b0528d69da00e537d5f7f41f7eae056585be11e16437216315d7b0ab106b611a53dfd0434af9ace8dee4122d4829df3046a1b5549326571818c7a SHA512 28993238a2a8fad81269825dc88c838d87720f37c9bff01579b31416f3bf14eb047dcf932c1ac1b37403fd6872ed260c2efb615228e8c013f47ef8665e7574d3 +DIST types-gdb-12.1.4.5.tar.gz 10480 BLAKE2B 6f46156970d2ba75dc31101a5ede370a34ca87dd10e13cf13eea1afb4777bfeb651c98e7b01f3c7334525c27971941bae260b7fea3b3752280703e2849ca0618 SHA512 0fd8010d699558566faad5747dd5c868500882eb8c890f67c55f7341fa143aa85e3128749866c40268b77890705c5e1f2605e02906cd9b16a568944b95fb4966 diff --git a/dev-python/types-gdb/types-gdb-12.1.4.5.ebuild b/dev-python/types-gdb/types-gdb-12.1.4.5.ebuild new file mode 100644 index 000000000000..158d412775d2 --- /dev/null +++ b/dev-python/types-gdb/types-gdb-12.1.4.5.ebuild @@ -0,0 +1,17 @@ +# Copyright 2022-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_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Typing stubs for gdb" +HOMEPAGE="https://pypi.org/project/types-gdb/" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" diff --git a/dev-python/zeroconf/Manifest b/dev-python/zeroconf/Manifest index d3c0c203b52e..847c38c5c369 100644 --- a/dev-python/zeroconf/Manifest +++ b/dev-python/zeroconf/Manifest @@ -2,3 +2,4 @@ DIST zeroconf-0.71.4.tar.gz 144314 BLAKE2B a44062474ba00be0549068811f4c64f353cea DIST zeroconf-0.71.5.tar.gz 144647 BLAKE2B be89e804952c327720c546b4264a464ab2b0ca9ac378e59c45bc114f2ea74d66a136c7d3852bd61a2eea88de9733ab25cf9b8945e22d48bf674d9cd566f206d9 SHA512 12f397b10bfa909fe2dc60be4f01bfbbb0111eab00196cce8b8fda8ee2b0cdb1472186255bbfec7fe793f5d580f40bd2d07851e8d2bea3b4e0b11765d7b34365 DIST zeroconf-0.72.0.tar.gz 144786 BLAKE2B 7b0a53bf76a21c716e1d4762e1ccfd0df9b44f02e4709695c5b39ae4de5dc0b1332c65a8f71459df0fb9b161c5aeab9fb151d9ce45fd9c990b24609253f3d771 SHA512 0a77f60dfff76172a0dbe798717a59b6211f41b46468b34b809a4b35861eb10f4399e238c2976622da0856cd715ef39cf2bb43cd051056d56925546302f2fef7 DIST zeroconf-0.74.0.tar.gz 145447 BLAKE2B e76a88d87cb8577b776fe5afc08198ce5427da398cfcb7fea6fb778be5907b156c633fc695daccceb9988866cbcd56584a418006fa64fc162e7831886d5cdaa2 SHA512 8629befd78470206b9238810d083e91adcc575ec2ef89cc51c433de89fb18723cc43ef45550dbec184a63f1c191023cf818e1cf8eb8b49b0de68e174d4ac4def +DIST zeroconf-0.76.0.tar.gz 146204 BLAKE2B aaa6e6f3c9b1f8eeb837d03178b131a001fedbe80cc28c5b3d412301a43364121111d95abbed6281a9e5576f1473ecd444b0fcb5557bb71f1d1ac4e40da7d221 SHA512 aa57a4f0f72cd162c136e5c6442c5ab35586fc7d44473078e98420ce00da53586344f2f7578542ba417bd6635b982a41bdc96eab70e1b989aef22ad0c45f2dd8 diff --git a/dev-python/zeroconf/zeroconf-0.76.0.ebuild b/dev-python/zeroconf/zeroconf-0.76.0.ebuild new file mode 100644 index 000000000000..bd5e3f021823 --- /dev/null +++ b/dev-python/zeroconf/zeroconf-0.76.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)" +HOMEPAGE=" + https://github.com/python-zeroconf/python-zeroconf/ + https://pypi.org/project/zeroconf/ +" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/ifaddr-0.1.7[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/async-timeout-3.0.0[${PYTHON_USEDEP}] + ' 3.{9..10}) +" +# the build system uses custom build script that uses distutils to build +# C extensions, sigh +BDEPEND=" + >=dev-python/cython-0.29.32[${PYTHON_USEDEP}] + >=dev-python/setuptools-65.6.3[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +export REQUIRE_CYTHON=1 + +python_test() { + local -x SKIP_IPV6=1 + local EPYTEST_DESELECT=( + # network + tests/test_core.py::Framework::test_close_multiple_times + tests/test_core.py::Framework::test_launch_and_close + tests/test_core.py::Framework::test_launch_and_close_context_manager + + # fragile to timeouts (?) + tests/services/test_browser.py::test_service_browser_expire_callbacks + tests/utils/test_asyncio.py::test_run_coro_with_timeout + ) + + epytest -o addopts= +} |
