1 |
commit: 7fb0e6f22a02d8d43361982c73927d7983bab2ff |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 31 15:13:54 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 15:42:28 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fb0e6f2 |
7 |
|
8 |
dev-python/subunit: Bump to 1.4.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/subunit/Manifest | 1 + |
13 |
dev-python/subunit/subunit-1.4.0.ebuild | 94 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 95 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/subunit/Manifest b/dev-python/subunit/Manifest |
17 |
index b425058986c..60d5b945c2b 100644 |
18 |
--- a/dev-python/subunit/Manifest |
19 |
+++ b/dev-python/subunit/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST subunit-1.2.0.tar.gz 460532 BLAKE2B 7f8a459afc576efed8fbf271a9d2e175ae9de9dda68acb26322f222ac46f12fee5dece4cb2679fca608ba307a3692aa84b13d0e093606bd89a53c69b2081cd44 SHA512 f6559fd771ad0732985230d11a9a8326ef35c817b62d1f50dc332f0032f7b08559a46d2534983b7d3964e45682ac49b3e348581ee0983861390abcd4ec20459c |
22 |
+DIST subunit-1.4.0.tar.gz 488022 BLAKE2B 4c3a714d02eeed9420074c4e032778a69b716a5cad0079193533e9bc8c0f4576d70b165eb413203ce8a916ac28466e9f5a113d4a7746019d7d09409df9860bae SHA512 5d2e3cb96c09067ef4595c86648f13330c810b19e39c0b35bc9546c57bee957ddcf5cad7b8e3f92bda9b54dcdbf175863e2f6ba94020f880230459be7afdbbcf |
23 |
|
24 |
diff --git a/dev-python/subunit/subunit-1.4.0.ebuild b/dev-python/subunit/subunit-1.4.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..73b540892da |
27 |
--- /dev/null |
28 |
+++ b/dev-python/subunit/subunit-1.4.0.ebuild |
29 |
@@ -0,0 +1,94 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{6..9} pypy3 ) |
36 |
+ |
37 |
+inherit distutils-r1 multilib-minimal |
38 |
+ |
39 |
+DESCRIPTION="A streaming protocol for test results" |
40 |
+HOMEPAGE="https://launchpad.net/subunit https://pypi.org/project/python-subunit/" |
41 |
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="Apache-2.0 BSD" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
46 |
+IUSE="static-libs test" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] |
51 |
+ dev-python/extras[${PYTHON_USEDEP}] |
52 |
+ dev-lang/perl:=" |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ ${RDEPEND} |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
57 |
+ >=dev-libs/check-0.9.11[${MULTILIB_USEDEP}] |
58 |
+ >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}] |
59 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
60 |
+ test? ( |
61 |
+ dev-python/fixtures[${PYTHON_USEDEP}] |
62 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
63 |
+ dev-python/testscenarios[${PYTHON_USEDEP}] |
64 |
+ )" |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ sed -i -e 's/os.chdir(os.path.dirname(__file__))//' setup.py || die |
68 |
+ |
69 |
+ # Install perl modules in vendor_perl, bug 534654. |
70 |
+ export INSTALLDIRS=vendor |
71 |
+ |
72 |
+ # fails on py3.6 |
73 |
+ sed -i -e 's:test_add_tag:_&:' \ |
74 |
+ python/subunit/tests/test_subunit_tags.py || die |
75 |
+ |
76 |
+ distutils-r1_src_prepare |
77 |
+ multilib_copy_sources |
78 |
+} |
79 |
+ |
80 |
+multilib_src_configure() { |
81 |
+ ECONF_SOURCE=${S} \ |
82 |
+ econf \ |
83 |
+ --enable-shared \ |
84 |
+ $(use_enable static-libs static) |
85 |
+} |
86 |
+ |
87 |
+multilib_src_compile() { |
88 |
+ default |
89 |
+ multilib_is_native_abi && distutils-r1_src_compile |
90 |
+} |
91 |
+ |
92 |
+python_test() { |
93 |
+ local -x PATH="${PWD}/shell/share:${PATH}" |
94 |
+ local -x PYTHONPATH=python |
95 |
+ # Following tests are known to fail in py2.7 & pypy. They pass under py3. |
96 |
+ # DO NOT re-file |
97 |
+ # test_add_error test_add_error_details test_add_expected_failure |
98 |
+ # test_add_expected_failure_details test_add_failure test_add_failure |
99 |
+ # https://bugs.launchpad.net/subunit/+bug/1436686 |
100 |
+ |
101 |
+ "${PYTHON}" -m testtools.run all_tests.test_suite || die "Testing failed with ${EPYTHON}" |
102 |
+} |
103 |
+ |
104 |
+multilib_src_test() { |
105 |
+ multilib_is_native_abi && distutils-r1_src_test |
106 |
+} |
107 |
+ |
108 |
+multilib_src_install() { |
109 |
+ local targets=( |
110 |
+ install-include_subunitHEADERS |
111 |
+ install-pcdataDATA |
112 |
+ install-exec-local |
113 |
+ install-libLTLIBRARIES |
114 |
+ ) |
115 |
+ emake DESTDIR="${D}" "${targets[@]}" |
116 |
+ |
117 |
+ multilib_is_native_abi && distutils-r1_src_install |
118 |
+} |
119 |
+ |
120 |
+multilib_src_install_all() { |
121 |
+ einstalldocs |
122 |
+ find "${D}" -name '*.la' -delete || die |
123 |
+} |