Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools/
Date: Mon, 13 Nov 2017 20:10:19
Message-Id: 1510603714.7a0c4df308407e5dfffcb2be11c2bd73c290f978.radhermit@gentoo
1 commit: 7a0c4df308407e5dfffcb2be11c2bd73c290f978
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 12 18:07:07 2017 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 13 20:08:34 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a0c4df3
7
8 dev-python/setuptools: version bump to 36.7.2
9
10 dev-python/setuptools/Manifest | 1 +
11 dev-python/setuptools/setuptools-36.7.2.ebuild | 70 ++++++++++++++++++++++++++
12 2 files changed, 71 insertions(+)
13
14 diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest
15 index b1079488ba3..8ca9c3eef50 100644
16 --- a/dev-python/setuptools/Manifest
17 +++ b/dev-python/setuptools/Manifest
18 @@ -5,3 +5,4 @@ DIST setuptools-35.0.2.zip 624829 SHA256 1e55496ca8058db68ae12ac29a985d1ee2c2483
19 DIST setuptools-36.0.1.zip 711296 SHA256 e17c4687fddd6d70a6604ac0ad25e33324cec71b5137267dd5c45e103c4b288a SHA512 cbcd2591d0d8a7591c5d9a1d4173814afa0b984af29f2e34d26a37c357474b043f371978ac224cea12f50834d91babd9f14b137488c4edcd62594e91aff903d8 WHIRLPOOL 9818d419a11ab6493027fcf27a48b087c80a10fe2bf3b0539893bd57b33be23ed5b90572682f0a27850044482f03d299905e04cc890f724d3cf719d34bf36464
20 DIST setuptools-36.5.0.zip 721505 SHA256 ce2007c1cea3359870b80657d634253a0765b0c7dc5a988d77ba803fc86f2c64 SHA512 e61c2f9ee640bf5dd8ab7c7a7c29667d91aa2498a7b027e387493ad7bcc9b56927e6fa63cdb4e083333c57eb355a670ba3df861ed5f8447b216fef0bc77c8b43 WHIRLPOOL a18b45eb750bc92579d0179d0d5797d4cf949c20ab4e6cbf0b4ae154d351285983505829a1f0f0ee71b5b4aa3793bd3306ab3a9c44ea42b8306cb80cf3d273ec
21 DIST setuptools-36.6.0.zip 725173 SHA256 62074589522a798da243f47348f38020d55b6c945652e2f2c09d3a96299812b7 SHA512 b1b7fbff45db72e24ffb0aef41509a8f49c3911f20e6dfa7335aace22d0b2c533615edd1626c6b58602960644d1a3ad7b2e6899efeec4138aa58a187d063c319 WHIRLPOOL 62e0e32eddd56b758dcd4da415a422e78f51acc58f83dc887d6ca67d7836cfe28dc1bdf4acb423b5e1f694c79ab4a392dbdc5f8ccb669e641f70f8c6f37f62b7
22 +DIST setuptools-36.7.2.zip 726758 SHA256 ad86fd8dd09c285c33b4c5b82bbc21d21883637faef78b0ab58fa9984847220d SHA512 746dce135dbacb65565787a20a2611388605e2371c94f0f8803e7712e515e69c270751d16a21f381bf6e8ddc0a1b39494db7d0c67bb32e6230a90c5d517e78f9 WHIRLPOOL 4000d4657f39ccc63dbaa98a3ee695d63dabfca361b574bf552393e633be4ce31b67489a3eea5b780b55e7385da220d2b3339fbacacc776eba379a13732724aa
23
24 diff --git a/dev-python/setuptools/setuptools-36.7.2.ebuild b/dev-python/setuptools/setuptools-36.7.2.ebuild
25 new file mode 100644
26 index 00000000000..b9335a39d95
27 --- /dev/null
28 +++ b/dev-python/setuptools/setuptools-36.7.2.ebuild
29 @@ -0,0 +1,70 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
35 +PYTHON_REQ_USE="xml(+)"
36 +
37 +inherit distutils-r1
38 +
39 +if [[ ${PV} == "9999" ]]; then
40 + EGIT_REPO_URI="https://github.com/pypa/setuptools.git"
41 + inherit git-r3
42 +else
43 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
44 + KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
45 +fi
46 +
47 +DESCRIPTION="Collection of extensions to Distutils"
48 +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.python.org/pypi/setuptools"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +IUSE="test"
53 +
54 +RDEPEND="
55 +"
56 +DEPEND="${RDEPEND}
57 + app-arch/unzip
58 + test? (
59 + dev-python/pip[${PYTHON_USEDEP}]
60 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
61 + dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
62 + dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
63 + >=dev-python/backports-unittest-mock-1.2[${PYTHON_USEDEP}]
64 + dev-python/wheel[${PYTHON_USEDEP}]
65 + )
66 +"
67 +PDEPEND="
68 + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]"
69 +
70 +# Force in-source build because build system modifies sources.
71 +DISTUTILS_IN_SOURCE_BUILD=1
72 +
73 +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
74 +
75 +python_prepare_all() {
76 + if [[ ${PV} == "9999" ]]; then
77 + python_setup
78 + ${EPYTHON} bootstrap.py || die
79 + fi
80 +
81 + # disable tests requiring a network connection
82 + rm setuptools/tests/test_packageindex.py || die
83 +
84 + # don't run integration tests
85 + rm setuptools/tests/test_integration.py || die
86 +
87 + distutils-r1_python_prepare_all
88 +}
89 +
90 +python_test() {
91 + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
92 + # It tries to sandbox the test in a tempdir
93 + HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}"
94 +}
95 +
96 +python_install() {
97 + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
98 + distutils-r1_python_install
99 +}