Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools/
Date: Sun, 27 Jan 2019 19:00:47
Message-Id: 1548615607.aa1d23476375ca12f3afc702c2aaa20e2fe73952.vdupras@gentoo
1 commit: aa1d23476375ca12f3afc702c2aaa20e2fe73952
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 27 18:46:25 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 27 19:00:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa1d2347
7
8 dev-python/setuptools: bump to 40.7.0
9
10 Had to drop ~arm64 due to pending pytest 3.10 re-keywording.
11
12 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
13 Package-Manager: Portage-2.3.51, Repoman-2.3.11
14
15 dev-python/setuptools/Manifest | 1 +
16 dev-python/setuptools/setuptools-40.7.0.ebuild | 71 ++++++++++++++++++++++++++
17 2 files changed, 72 insertions(+)
18
19 diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest
20 index 0c159302e3b..566c3b9f164 100644
21 --- a/dev-python/setuptools/Manifest
22 +++ b/dev-python/setuptools/Manifest
23 @@ -1,3 +1,4 @@
24 DIST setuptools-36.7.2.zip 726758 BLAKE2B 8821d3142f2149fbdea4d231052c3990fa7a14c57c421309683c6a65102ce4911850acd5d492087aa0f14a0026da732e47eb9bf971030443fc1b57f9f909aaaa SHA512 746dce135dbacb65565787a20a2611388605e2371c94f0f8803e7712e515e69c270751d16a21f381bf6e8ddc0a1b39494db7d0c67bb32e6230a90c5d517e78f9
25 DIST setuptools-40.6.2.zip 839184 BLAKE2B bc17aeaf7710742b70735f4bd0df2f4d8546eebaae000270b21ce605c83966998a2f51658d243838286f3101d7497c761535a9ffed003ae5e00c81bca8b70ad9 SHA512 3f1aa20e905deb22dda366f479f87cd772238d07e869fdc4f65a7926373414a77b7ddbfd78fd9825154409b3c01d787830354d206a45cdfca879bf35d3b83e03
26 DIST setuptools-40.6.3.zip 839328 BLAKE2B ddc87213439ce2ad96ba54218bd5b3e41a7c31d670bddb9e4ea058b8ee7dffbe6fcb0e5fd24baf3fb38f5e824fde36aa8dc1e09d7ac37f9375ee351406389cd6 SHA512 6c628b8fc67645bca96ddcd016ec9a685e91690bf98dff077e842cfbd0d8d24de76ac51b3ff238d31551a48819d8f694fee6e9bb422ca954e54c22b4bda0038c
27 +DIST setuptools-40.7.0.zip 841969 BLAKE2B 45129918f20b440f84969db0e94fc183d91cbf3c80aed220e00fa4c5d57fdfbcc4c83ec0ee52533df98d9a318d0936c1e0a4ffd5a47c5977c3ae5ed8f4b1fb96 SHA512 a360461f70222f1de859a8920d8f8e1257eb47f25a481c0d4a3435f74dc5aef4fd2e2fab5285173777483b1b23e7e203617073d753461373ad1c4768e5ce8aba
28
29 diff --git a/dev-python/setuptools/setuptools-40.7.0.ebuild b/dev-python/setuptools/setuptools-40.7.0.ebuild
30 new file mode 100644
31 index 00000000000..d67bd927712
32 --- /dev/null
33 +++ b/dev-python/setuptools/setuptools-40.7.0.ebuild
34 @@ -0,0 +1,71 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
40 +PYTHON_REQ_USE="xml(+)"
41 +
42 +inherit distutils-r1
43 +
44 +if [[ ${PV} == "9999" ]]; then
45 + EGIT_REPO_URI="https://github.com/pypa/setuptools.git"
46 + inherit git-r3
47 +else
48 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
49 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
50 +fi
51 +
52 +DESCRIPTION="Collection of extensions to Distutils"
53 +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/"
54 +
55 +LICENSE="MIT"
56 +SLOT="0"
57 +IUSE="test"
58 +
59 +RDEPEND="
60 +"
61 +DEPEND="${RDEPEND}
62 + app-arch/unzip
63 + test? (
64 + dev-python/mock[${PYTHON_USEDEP}]
65 + dev-python/pip[${PYTHON_USEDEP}]
66 + >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}]
67 + <dev-python/pytest-4
68 + dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
69 + dev-python/wheel[${PYTHON_USEDEP}]
70 + virtual/python-futures[${PYTHON_USEDEP}]
71 + )
72 +"
73 +PDEPEND="
74 + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]"
75 +
76 +# Force in-source build because build system modifies sources.
77 +DISTUTILS_IN_SOURCE_BUILD=1
78 +
79 +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
80 +
81 +python_prepare_all() {
82 + if [[ ${PV} == "9999" ]]; then
83 + python_setup
84 + ${EPYTHON} bootstrap.py || die
85 + fi
86 +
87 + # disable tests requiring a network connection
88 + rm setuptools/tests/test_packageindex.py || die
89 +
90 + # don't run integration tests
91 + rm setuptools/tests/test_integration.py || die
92 +
93 + distutils-r1_python_prepare_all
94 +}
95 +
96 +python_test() {
97 + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
98 + # It tries to sandbox the test in a tempdir
99 + HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}"
100 +}
101 +
102 +python_install() {
103 + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
104 + distutils-r1_python_install
105 +}