Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/transitions/
Date: Mon, 03 Aug 2020 18:59:15
Message-Id: 1596480952.5968bc7d12ea06a5a92982ddc8eb091f46bd3b84.conikost@gentoo
1 commit: 5968bc7d12ea06a5a92982ddc8eb091f46bd3b84
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 3 18:52:53 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 3 18:55:52 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5968bc7d
7
8 dev-python/transitions: fix tests
9
10 Added missing deps and changed tests to use correctly pytest.
11
12 Bug: https://bugs.gentoo.org/733884
13 Bug: https://bugs.gentoo.org/732570
14 Package-Manager: Portage-3.0.1, Repoman-2.3.23
15 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
16
17 dev-python/transitions/transitions-0.7.1-r1.ebuild | 45 ++++++++++++++++++++++
18 dev-python/transitions/transitions-0.8.1-r1.ebuild | 45 ++++++++++++++++++++++
19 2 files changed, 90 insertions(+)
20
21 diff --git a/dev-python/transitions/transitions-0.7.1-r1.ebuild b/dev-python/transitions/transitions-0.7.1-r1.ebuild
22 new file mode 100644
23 index 00000000000..23b568a3c79
24 --- /dev/null
25 +++ b/dev-python/transitions/transitions-0.7.1-r1.ebuild
26 @@ -0,0 +1,45 @@
27 +# Copyright 1999-2020 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +PYTHON_COMPAT=( python3_{6..8} )
33 +
34 +inherit distutils-r1
35 +
36 +DESCRIPTION="A lightweight, object-oriented state machine implementation in Python"
37 +HOMEPAGE="https://github.com/pytransitions/transitions"
38 +SRC_URI="https://github.com/pytransitions/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
39 +
40 +LICENSE="MIT"
41 +SLOT="0"
42 +KEYWORDS="amd64 x86"
43 +IUSE="examples test"
44 +
45 +RESTRICT="!test? ( test )"
46 +
47 +RDEPEND="
48 + dev-python/graphviz[${PYTHON_USEDEP}]
49 + dev-python/six[${PYTHON_USEDEP}]
50 +"
51 +
52 +DEPEND="
53 + ${RDEPEND}
54 + test? (
55 + dev-python/dill[${PYTHON_USEDEP}]
56 + dev-python/mock[${PYTHON_USEDEP}]
57 + dev-python/nose[${PYTHON_USEDEP}]
58 + dev-python/pycodestyle[${PYTHON_USEDEP}]
59 + dev-python/pytest[${PYTHON_USEDEP}]
60 + )
61 +"
62 +
63 +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
64 +
65 +distutils_enable_tests pytest
66 +
67 +src_install() {
68 + distutils-r1_src_install
69 +
70 + use examples && dodoc examples/*.ipynb
71 +}
72
73 diff --git a/dev-python/transitions/transitions-0.8.1-r1.ebuild b/dev-python/transitions/transitions-0.8.1-r1.ebuild
74 new file mode 100644
75 index 00000000000..9256f6b345c
76 --- /dev/null
77 +++ b/dev-python/transitions/transitions-0.8.1-r1.ebuild
78 @@ -0,0 +1,45 @@
79 +# Copyright 1999-2020 Gentoo Authors
80 +# Distributed under the terms of the GNU General Public License v2
81 +
82 +EAPI=7
83 +
84 +PYTHON_COMPAT=( python3_{6..8} )
85 +
86 +inherit distutils-r1
87 +
88 +DESCRIPTION="A lightweight, object-oriented state machine implementation in Python"
89 +HOMEPAGE="https://github.com/pytransitions/transitions"
90 +SRC_URI="https://github.com/pytransitions/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
91 +
92 +LICENSE="MIT"
93 +SLOT="0"
94 +KEYWORDS="~amd64 ~x86"
95 +IUSE="examples test"
96 +
97 +RESTRICT="!test? ( test )"
98 +
99 +RDEPEND="
100 + dev-python/graphviz[${PYTHON_USEDEP}]
101 + dev-python/six[${PYTHON_USEDEP}]
102 +"
103 +
104 +DEPEND="
105 + ${RDEPEND}
106 + test? (
107 + dev-python/dill[${PYTHON_USEDEP}]
108 + dev-python/mock[${PYTHON_USEDEP}]
109 + dev-python/nose[${PYTHON_USEDEP}]
110 + dev-python/pycodestyle[${PYTHON_USEDEP}]
111 + dev-python/pytest[${PYTHON_USEDEP}]
112 + )
113 +"
114 +
115 +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
116 +
117 +distutils_enable_tests pytest
118 +
119 +src_install() {
120 + distutils-r1_src_install
121 +
122 + use examples && dodoc examples/*.ipynb
123 +}