Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools/
Date: Sun, 18 Nov 2018 17:56:31
Message-Id: 1542563780.b33e4209c7fdb41de9ddab2572d1b757a2d2b380.mgorny@gentoo
1 commit: b33e4209c7fdb41de9ddab2572d1b757a2d2b380
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 18 15:37:01 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 18 17:56:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b33e4209
7
8 dev-python/setuptools: Bump to 40.6.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/setuptools/Manifest | 1 +
13 dev-python/setuptools/setuptools-40.6.2.ebuild | 70 ++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest
17 index dfa1f198c7f..25b6e9ce4a4 100644
18 --- a/dev-python/setuptools/Manifest
19 +++ b/dev-python/setuptools/Manifest
20 @@ -4,3 +4,4 @@ DIST setuptools-36.7.2.zip 726758 BLAKE2B 8821d3142f2149fbdea4d231052c3990fa7a14
21 DIST setuptools-38.5.1.zip 737995 BLAKE2B 9772d39928c6633ca529292d646c1c8e96a5a77ed06545af950cc249922837c13722d97de702c1e104581d56e1f808ec3d077041212517f5a51b23aa2e95e734 SHA512 bd04186a6e73cf24440e82aee10fff09889cab53e2e2fbf178bdb1360accf4f787abf8d8421d5e0fcb41005254c091f62d714e8b317ecf68911e2eed87b9fcc4
22 DIST setuptools-38.6.1.zip 738985 BLAKE2B 73e5258b9fe2587b5662e80267e59bbc23484815d997a808c83e030e2dffa9a499fa1bed7e9e127cf3b92cb09451e70e590dd2e71135941124fe9d3383f7dc24 SHA512 38685b97a7c4cdfb67846f910afce5faf60ef1519ccb70acdfd2da83ddbfe1a56b5b03e0b8ce5dbc80dcec14847f716d7b23777e2be0ea7e6afd6da3b645b3ef
23 DIST setuptools-40.0.0.zip 849857 BLAKE2B 6ce687904e0c6ef6cd55557ce848583e1645b6c5cfa80b005b25c20e52fc6985be673f2a77a9f79a3a5effc8e581492429bbf73074525827f539a411c6751373 SHA512 c90d136831af822a7f42bbd7eca4c1f4dd73d14f87182aa1251e70610db877b26bcda8fd0a10f5db0fcd84f9098a35b79a130b3142ade9d0081a538778ae53b7
24 +DIST setuptools-40.6.2.zip 839184 BLAKE2B bc17aeaf7710742b70735f4bd0df2f4d8546eebaae000270b21ce605c83966998a2f51658d243838286f3101d7497c761535a9ffed003ae5e00c81bca8b70ad9 SHA512 3f1aa20e905deb22dda366f479f87cd772238d07e869fdc4f65a7926373414a77b7ddbfd78fd9825154409b3c01d787830354d206a45cdfca879bf35d3b83e03
25
26 diff --git a/dev-python/setuptools/setuptools-40.6.2.ebuild b/dev-python/setuptools/setuptools-40.6.2.ebuild
27 new file mode 100644
28 index 00000000000..25ed8958758
29 --- /dev/null
30 +++ b/dev-python/setuptools/setuptools-40.6.2.ebuild
31 @@ -0,0 +1,70 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
37 +PYTHON_REQ_USE="xml(+)"
38 +
39 +inherit distutils-r1
40 +
41 +if [[ ${PV} == "9999" ]]; then
42 + EGIT_REPO_URI="https://github.com/pypa/setuptools.git"
43 + inherit git-r3
44 +else
45 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
46 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
47 +fi
48 +
49 +DESCRIPTION="Collection of extensions to Distutils"
50 +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/"
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +IUSE="test"
55 +
56 +RDEPEND="
57 +"
58 +DEPEND="${RDEPEND}
59 + app-arch/unzip
60 + test? (
61 + dev-python/pip[${PYTHON_USEDEP}]
62 + >=dev-python/pytest-3.1.0[${PYTHON_USEDEP}]
63 + dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
64 + dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
65 + >=dev-python/backports-unittest-mock-1.2[${PYTHON_USEDEP}]
66 + dev-python/wheel[${PYTHON_USEDEP}]
67 + )
68 +"
69 +PDEPEND="
70 + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]"
71 +
72 +# Force in-source build because build system modifies sources.
73 +DISTUTILS_IN_SOURCE_BUILD=1
74 +
75 +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
76 +
77 +python_prepare_all() {
78 + if [[ ${PV} == "9999" ]]; then
79 + python_setup
80 + ${EPYTHON} bootstrap.py || die
81 + fi
82 +
83 + # disable tests requiring a network connection
84 + rm setuptools/tests/test_packageindex.py || die
85 +
86 + # don't run integration tests
87 + rm setuptools/tests/test_integration.py || die
88 +
89 + distutils-r1_python_prepare_all
90 +}
91 +
92 +python_test() {
93 + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
94 + # It tries to sandbox the test in a tempdir
95 + HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}"
96 +}
97 +
98 +python_install() {
99 + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
100 + distutils-r1_python_install
101 +}