Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools_trial/
Date: Sat, 09 May 2020 00:51:20
Message-Id: 1588985451.36e7816647baad8aa939399db250786a8d9c8787.dolsen@gentoo
1 commit: 36e7816647baad8aa939399db250786a8d9c8787
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 29 00:21:13 2020 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Sat May 9 00:50:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36e78166
7
8 dev-python/setuptools_trial: Revision bump, adds python 3.7, 3.8
9
10 Bump eapi, also duplicate the pkg tests inside our build environment.
11 metadata.xml take maintainership
12
13 Package-Manager: Portage-2.3.99, Repoman-2.3.22
14 Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>
15
16 dev-python/setuptools_trial/metadata.xml | 5 ++-
17 .../setuptools_trial-0.6.0-r1.ebuild | 42 ++++++++++++++++++++++
18 .../setuptools_trial/setuptools_trial-0.6.0.ebuild | 25 -------------
19 3 files changed, 46 insertions(+), 26 deletions(-)
20
21 diff --git a/dev-python/setuptools_trial/metadata.xml b/dev-python/setuptools_trial/metadata.xml
22 index 2d9727db0f6..492255f2cfc 100644
23 --- a/dev-python/setuptools_trial/metadata.xml
24 +++ b/dev-python/setuptools_trial/metadata.xml
25 @@ -1,7 +1,10 @@
26 <?xml version="1.0" encoding="UTF-8"?>
27 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 <pkgmetadata>
29 - <!-- maintainer-needed -->
30 + <maintainer type="person">
31 + <email>dolsen@g.o</email>
32 + <name>Brian Dolbec</name>
33 + </maintainer>
34 <upstream>
35 <maintainer>
36 <email>vladimir@××××××.org</email>
37
38 diff --git a/dev-python/setuptools_trial/setuptools_trial-0.6.0-r1.ebuild b/dev-python/setuptools_trial/setuptools_trial-0.6.0-r1.ebuild
39 new file mode 100644
40 index 00000000000..4bc6f905bbc
41 --- /dev/null
42 +++ b/dev-python/setuptools_trial/setuptools_trial-0.6.0-r1.ebuild
43 @@ -0,0 +1,42 @@
44 +# Copyright 1999-2020 Gentoo Authors
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=7
48 +PYTHON_COMPAT=( python3_{6,7,8} )
49 +
50 +DISTUTILS_USE_SETUPTOOLS="rdepend"
51 +inherit distutils-r1
52 +
53 +DESCRIPTION="Setuptools plugin that makes unit tests execute with trial instead of pyunit"
54 +HOMEPAGE="https://github.com/rutsky/setuptools-trial https://pypi.org/project/setuptools_trial/"
55 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
56 +
57 +LICENSE="BSD"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~x86"
60 +IUSE="test"
61 +RESTRICT="!test? ( test )"
62 +
63 +RDEPEND="
64 + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
65 +"
66 +
67 +BDEPEND="${RDEPEND}"
68 +
69 +python_test() {
70 + distutils_install_for_testing
71 +
72 + # The pkg test suite creates a virtualenv to install to for testing
73 + # The distutils-r1 eclass already does the equivalent for us.
74 + # So just run the same commands they do directly...
75 + pushd "${S}"/tests/dummy_project > /dev/null || die
76 + "${EPYTHON}" -m setup.py trial || \
77 + die "trial tests failed with ${EPYTHON}"
78 + "${EPYTHON}" -m setup.py trial --reporter=text || \
79 + die "trial --reporter tests failed with ${EPYTHON}"
80 + popd > /dev/null || die
81 + pushd "${S}"/tests/alias_project > /dev/null || die
82 + "${EPYTHON}" -m setup.py test || \
83 + die "alias_project tests failed with ${EPYTHON}"
84 + popd > /dev/null || die
85 +}
86
87 diff --git a/dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild b/dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild
88 deleted file mode 100644
89 index f8e7fe22122..00000000000
90 --- a/dev-python/setuptools_trial/setuptools_trial-0.6.0.ebuild
91 +++ /dev/null
92 @@ -1,25 +0,0 @@
93 -# Copyright 1999-2020 Gentoo Authors
94 -# Distributed under the terms of the GNU General Public License v2
95 -
96 -EAPI=6
97 -PYTHON_COMPAT=( python3_6 )
98 -
99 -inherit distutils-r1
100 -
101 -DESCRIPTION="Setuptools plugin that makes unit tests execute with trial instead of pyunit"
102 -HOMEPAGE="https://github.com/rutsky/setuptools-trial https://pypi.org/project/setuptools_trial/"
103 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
104 -
105 -LICENSE="BSD"
106 -SLOT="0"
107 -KEYWORDS="~amd64 ~x86"
108 -IUSE=""
109 -
110 -RDEPEND="
111 - dev-python/setuptools[${PYTHON_USEDEP}]
112 - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
113 -"
114 -
115 -DEPEND="
116 - ${RDEPEND}
117 -"