diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-04 18:07:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-04 18:07:08 +0000 |
commit | d46d0aa37cf8b6304aea3c3f2a1be8cca389e989 (patch) | |
tree | dbfd9db95941a47b8ecb038ae6792beba39799af /dev-python/coverage | |
parent | 4551b41523452c0d743a71cca34e4dca2ca7538c (diff) |
gentoo auto-resync : 04:01:2023 - 18:07:08
Diffstat (limited to 'dev-python/coverage')
-rw-r--r-- | dev-python/coverage/Manifest | 2 | ||||
-rw-r--r-- | dev-python/coverage/coverage-7.0.3.ebuild | 78 |
2 files changed, 80 insertions, 0 deletions
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index e4994b25a69e..1b7524b73855 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -2,8 +2,10 @@ DIST coverage-6.5.0.tar.gz 775224 BLAKE2B 1ff7db1c72856553717d07d5a13443c210a3d8 DIST coverage-7.0.0.tar.gz 780514 BLAKE2B 2d7e0190bacd5ef6db35e3c6ab5114571ce394a9d6dd5e7d3497e4eff9dc3abee1aa11babc057e6b276133e5e19dd7b2e1d4149f5fb73cdaf8d2a6a7df005d7b SHA512 258c1c2dd8af1e7b64fcce2042594230a245046c73e3e67b0b0b1e82180e200a37983b766bd72fdc23a6e5ff12416541e69a26beec845598c25b293c4ee1cece DIST coverage-7.0.1.tar.gz 781226 BLAKE2B 52da1dd6f3eae7d235a597d3dd24d4042ee1ee4c082d5700d04065b8328af01ef006121a3588f04e79235c559e6dc6d2f5168b5079037e19a41e1b8e869825a0 SHA512 63ec6a21d4af73720a2b79309cb1d0e61bbe67e04835bd907f19e482c1479cbb69d353cd42be0d4d9e75cb4082debb464ec5e9acf270c86042e7db58de1d024d DIST coverage-7.0.2.tar.gz 789237 BLAKE2B 6a83b6736374679e855eefc99488eea8f4fa8b785bbff6455c6087a03b3d074d200b219fb7f9eaaa08824b9b37363861d02f0ca0cd157adf285b1e2e7bec92a2 SHA512 d2981951517ac1efe08df4f19931dd581fc1877d7095003ae1b0c63e10b388238bc793823471c5ac3243f6b46e9284057f3e569a14dc972dcaf342768da9d73e +DIST coverage-7.0.3.tar.gz 790351 BLAKE2B 0e0e2e0dfd6773bf78318b63400c6ba15b8218590d9d2c99666a2d6bb41745aa7d00b7c32879eabf9c0f6a2e3831637970fd8ea308a50befd526f2e0aafb6867 SHA512 6a298aa7fdf460277e85174fe930bf4dcdabfa57b753adda2d4b8381cd61c2e22700d287fefa16f098de318e6d79849c4db85a6d9f6e069f0acd5ce6ac93f154 EBUILD coverage-6.5.0-r1.ebuild 1879 BLAKE2B b6988614ec609ed02c0adb8faca1c2c77ec581a9fa514ea848cc615d2a771e90031d83168fdccf2b02cd156f9031bf990ea867127bc54817a442977c0a916930 SHA512 9ea2255d4ab0b45832c694adfc456342adec446d13056e095434eed08efadeaa6708e6cc5af53eb231dbf126b7a98f13143ea086b90501aedafb3f675479ea30 EBUILD coverage-7.0.0.ebuild 1887 BLAKE2B c42061e654f62985d632de8e02fb39b1e67b8610fc005e0772bfd2e650f104695fc8dd59a4f66e37df3e5a63167cd90c6ae2cf7cfd657cf791be063b399a0636 SHA512 363d29518513828e3b07c72dafe1c89341e9b772b1505875b9e2534c1af12d1a41818b870c5e1f43dc39259942c2a9a519a51769c08493f2e451202a63be5d02 EBUILD coverage-7.0.1.ebuild 1887 BLAKE2B c42061e654f62985d632de8e02fb39b1e67b8610fc005e0772bfd2e650f104695fc8dd59a4f66e37df3e5a63167cd90c6ae2cf7cfd657cf791be063b399a0636 SHA512 363d29518513828e3b07c72dafe1c89341e9b772b1505875b9e2534c1af12d1a41818b870c5e1f43dc39259942c2a9a519a51769c08493f2e451202a63be5d02 EBUILD coverage-7.0.2.ebuild 1887 BLAKE2B 8381f36a22fc97974d666999fd24f9f2219168e50dd151b465e52dccecd0d9cc889504a60efa79d8b725c7814f22267965d1c7a78d198b7056604511f989fd2e SHA512 c02d06d4662ec76904fe88f103080e8d34e7f088914cfad0882091111b24661d8d9504f7c168c7388a9a086ccc2deea8eea7ac64889ad581e551855fd3052f0b +EBUILD coverage-7.0.3.ebuild 1887 BLAKE2B 8381f36a22fc97974d666999fd24f9f2219168e50dd151b465e52dccecd0d9cc889504a60efa79d8b725c7814f22267965d1c7a78d198b7056604511f989fd2e SHA512 c02d06d4662ec76904fe88f103080e8d34e7f088914cfad0882091111b24661d8d9504f7c168c7388a9a086ccc2deea8eea7ac64889ad581e551855fd3052f0b MISC metadata.xml 771 BLAKE2B 38e9680d0851f70050aad987714a9dd2f95178b0bc3d794dc08726c0618d1ea98be32a413ac397f4b222e8a5d8fdc747b7f1677bcfe842bac4080537e85a03a9 SHA512 8c44c40348fe5d416d8b4016fe22cc9ae0b94fbaf181deb79aa737f87271992521b710c1208d0eeb7ef92d96fc8a7daac1ec6feb1ae081a80f13327b5b094064 diff --git a/dev-python/coverage/coverage-7.0.3.ebuild b/dev-python/coverage/coverage-7.0.3.ebuild new file mode 100644 index 000000000000..ed343a56f333 --- /dev/null +++ b/dev-python/coverage/coverage-7.0.3.ebuild @@ -0,0 +1,78 @@ +# 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_{8..11} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite(+)" + +inherit distutils-r1 + +DESCRIPTION="Code coverage measurement for Python" +HOMEPAGE=" + https://coverage.readthedocs.io/en/latest/ + https://github.com/nedbat/coveragepy/ + https://pypi.org/project/coverage/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +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.{8..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::' setup.cfg || 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_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 +} |