Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools/
Date: Fri, 28 Aug 2015 06:40:09
Message-Id: 1440744002.46b101934847d8cdc017fe4eec48983ed7b88799.jlec@gentoo
1 commit: 46b101934847d8cdc017fe4eec48983ed7b88799
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 28 06:39:55 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 06:40:02 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46b10193
7
8 dev-python/setuptools: Unbundle packaging again
9
10 Package-Manager: portage-2.2.20.1
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/setuptools/setuptools-18.2-r3.ebuild | 53 +++++++++++++++++++++++++
14 1 file changed, 53 insertions(+)
15
16 diff --git a/dev-python/setuptools/setuptools-18.2-r3.ebuild b/dev-python/setuptools/setuptools-18.2-r3.ebuild
17 new file mode 100644
18 index 0000000..8843a3f
19 --- /dev/null
20 +++ b/dev-python/setuptools/setuptools-18.2-r3.ebuild
21 @@ -0,0 +1,53 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI="5"
27 +
28 +PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3 )
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="Collection of extensions to Distutils"
33 +HOMEPAGE="https://pypi.python.org/pypi/setuptools"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="PSF-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
39 +IUSE="test"
40 +
41 +RDEPEND=">=dev-python/packaging-15.3-r1[${PYTHON_USEDEP}]"
42 +DEPEND="${RDEPEND}
43 + test? (
44 + dev-python/pytest[${PYTHON_USEDEP}]
45 + dev-python/mock[${PYTHON_USEDEP}]
46 + )
47 +"
48 +
49 +# Force in-source build because build system modifies sources.
50 +DISTUTILS_IN_SOURCE_BUILD=1
51 +
52 +DOCS=( README.txt docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
53 +
54 +python_prepare_all() {
55 + rm -r ./pkg_resources/_vendor || die
56 + # disable tests requiring a network connection
57 + rm setuptools/tests/test_packageindex.py || die
58 +
59 + # don't run integration tests
60 + rm setuptools/tests/test_integration.py || die
61 +
62 + distutils-r1_python_prepare_all
63 +}
64 +
65 +python_test() {
66 + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
67 + # It tries to sandbox the test in a tempdir
68 + HOME="${PWD}" py.test ${PN} || die "Tests failed under ${EPYTHON}"
69 +}
70 +
71 +python_install() {
72 + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
73 + distutils-r1_python_install
74 +}