diff options
| author | Michał Górny <mgorny@gentoo.org> | 2020-09-10 10:12:14 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2020-09-10 10:48:52 +0200 |
| commit | 5b3dc74582c62bb747fdc67d147272a604a1c148 (patch) | |
| tree | 6bcf6ad7249a2695e1b76ecffac2e7e40a3e2250 /dev-python/executing/executing-0.5.2.ebuild | |
| parent | ff5315fb668a91445664f85c0cf9278b6ae0faec (diff) | |
| download | gentoo-5b3dc74582c62bb747fdc67d147272a604a1c148.tar.gz gentoo-5b3dc74582c62bb747fdc67d147272a604a1c148.tar.bz2 gentoo-5b3dc74582c62bb747fdc67d147272a604a1c148.zip | |
dev-python/executing: New package, test dep of sentry-sdk
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/executing/executing-0.5.2.ebuild')
| -rw-r--r-- | dev-python/executing/executing-0.5.2.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/executing/executing-0.5.2.ebuild b/dev-python/executing/executing-0.5.2.ebuild new file mode 100644 index 000000000000..0f05179cc812 --- /dev/null +++ b/dev-python/executing/executing-0.5.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) +inherit distutils-r1 + +DESCRIPTION="Get information about what a Python frame is currently doing" +HOMEPAGE=" + https://github.com/alexmojaki/executing/ + https://pypi.org/project/executing/" +SRC_URI=" + https://github.com/alexmojaki/executing/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# asttokens is optional runtime dep +BDEPEND=" + test? ( + dev-python/asttokens[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +python_test() { + # this test explodes when collected by pytest + "${EPYTHON}" tests/test_main.py || die "Tests failed with ${EPYTHON}" + pytest -vv tests/test_pytest.py || die "Tests failed with ${EPYTHON}" +} |
