Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-cython/
Date: Mon, 14 Jun 2021 02:27:38
Message-Id: 1623637650.675478ed31d2e248c06fb54789973d373b14ca58.Alessandro-Barbieri@gentoo
1 commit: 675478ed31d2e248c06fb54789973d373b14ca58
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Mon Jun 14 00:47:44 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Mon Jun 14 02:27:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=675478ed
7
8 dev-python/pytest-cython: add 0.1.1
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-python/pytest-cython/Manifest | 1 +
13 .../pytest-cython/pytest-cython-0.1.1.ebuild | 39 ++++++++++++++++++++++
14 2 files changed, 40 insertions(+)
15
16 diff --git a/dev-python/pytest-cython/Manifest b/dev-python/pytest-cython/Manifest
17 index e28b85e2d..38d733099 100644
18 --- a/dev-python/pytest-cython/Manifest
19 +++ b/dev-python/pytest-cython/Manifest
20 @@ -1 +1,2 @@
21 DIST pytest-cython-0.1.0.tar.gz 19109 BLAKE2B 75895992402f36010385e0851cce4532825d374cc9d5af1b45d4dc938070da1f9e8c9901601ac10e3fa9a76fd4f0affd3f0dac6d8857eea88c73cbc1686ce613 SHA512 65d8d25f95f2419ae76902cad8f0f4c9b810dbbba80621d301f53d2128dfeb11c4d74e2ac4f1e39f63aadfc1404e9000c0668efbab4793d307f0b90345023771
22 +DIST pytest-cython-0.1.1.tar.gz 817776 BLAKE2B d9b812cefc45153a1ce7abb0b1be2e7fc329b88d89ed48529f62a38c402d74bb164ed6b928f291586f0064820dc52156eacdf161da3a0d65d10f5a15681a17e4 SHA512 353a6c3b67df0608b24f24e04ba5d3fa48065d3960834e32bf44f2dfcd6248cb4c86de528c15dbfd20e36811bfb0ae04670f6441afb74bcb7bd1d7af71060463
23
24 diff --git a/dev-python/pytest-cython/pytest-cython-0.1.1.ebuild b/dev-python/pytest-cython/pytest-cython-0.1.1.ebuild
25 new file mode 100644
26 index 000000000..1d8fc289c
27 --- /dev/null
28 +++ b/dev-python/pytest-cython/pytest-cython-0.1.1.ebuild
29 @@ -0,0 +1,39 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="7"
34 +
35 +PYTHON_COMPAT=( pypy3 python3_{8,9} )
36 +DISTUTILS_USE_SETUPTOOLS=rdepend
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Plugin for testing Cython extension modules"
41 +HOMEPAGE="https://github.com/lgpage/pytest-cython"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +SLOT="0"
44 +LICENSE="MIT"
45 +KEYWORDS="~amd64"
46 +
47 +RDEPEND="
48 + dev-python/cython[${PYTHON_USEDEP}]
49 + dev-python/pytest[${PYTHON_USEDEP}]
50 +"
51 +DEPEND="${RDEPEND}"
52 +
53 +distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
54 +distutils_enable_tests pytest
55 +
56 +src_prepare() {
57 + sed -i 's|\[pytest\]|\[tool:pytest\]|' setup.cfg || die
58 + default
59 +}
60 +
61 +python_test() {
62 + epytest -vv \
63 + --deselect tests/test_pytest_cython.py::test_wrap_c_ext_module \
64 + --deselect tests/test_pytest_cython.py::test_cython_ext_module \
65 + --deselect tests/test_pytest_cython.py::test_wrap_cpp_ext_module \
66 + --deselect tests/test_pytest_cython.py::test_pure_py_module \
67 + || die
68 +}