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: Thu, 07 Feb 2019 14:20:25
Message-Id: 1549549209.bb00c06ef5372e8db6d44115057a7e73c6105c3e.mgorny@gentoo
1 commit: bb00c06ef5372e8db6d44115057a7e73c6105c3e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 4 13:33:57 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 7 14:20:09 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb00c06e
7
8 dev-python/setuptools: Bump to 40.7.3
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.7.3.ebuild | 71 ++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest
17 index ba40294f063..e77d604b71c 100644
18 --- a/dev-python/setuptools/Manifest
19 +++ b/dev-python/setuptools/Manifest
20 @@ -2,3 +2,4 @@ DIST setuptools-36.7.2.zip 726758 BLAKE2B 8821d3142f2149fbdea4d231052c3990fa7a14
21 DIST setuptools-40.6.3.zip 839328 BLAKE2B ddc87213439ce2ad96ba54218bd5b3e41a7c31d670bddb9e4ea058b8ee7dffbe6fcb0e5fd24baf3fb38f5e824fde36aa8dc1e09d7ac37f9375ee351406389cd6 SHA512 6c628b8fc67645bca96ddcd016ec9a685e91690bf98dff077e842cfbd0d8d24de76ac51b3ff238d31551a48819d8f694fee6e9bb422ca954e54c22b4bda0038c
22 DIST setuptools-40.7.1.zip 842768 BLAKE2B 1065487540517c1cac6332c0c089b572e04b22dff5308676be2e97a949ff2a85251ecf862284d09718dc69ad611cf1cca6b70c425f210f870a5d1ec1c583fe75 SHA512 384d38afa56409f828cf26443271514feaf82b1d9d99a4a0bb4a9004f9b7a262a0d5ae48905e808381074e948988417e3f7e81a84dcd09359f9185a2305f8cac
23 DIST setuptools-40.7.2.zip 842780 BLAKE2B 40cec9b402393768dc5406021a23066ea9632dd744d4d7ac9048c5ea29df3bc69748779dc0d29fc1ef78b79a7106bfe7207fda536dfb9fd0fb4dccac27e61b52 SHA512 f3e2fd9c3712297ac07a93043334854d3c5d8bee6e5685dc0a2d2dbf1a44831a0b818e5a72e5b5c35b8a25db6886cd3cc3430836a5f444c6fbc9aad4a6b5e5f3
24 +DIST setuptools-40.7.3.zip 842920 BLAKE2B 53b5845f157d088fa0848384770f185b2daf8f1bc0304e8d5ab3eb5cae44a42133e7cf2f655e95be351733760ed401d55e3717c4a1257c77644796c08cbe67f6 SHA512 fb61e4d7ae620684b128bd60112938a4a9721a82ed3aa4daa774837a2db60e989d608ce2ba7f51393f412b78244d6f4c8f1025416b137d8ce01a2c0375ffec65
25
26 diff --git a/dev-python/setuptools/setuptools-40.7.3.ebuild b/dev-python/setuptools/setuptools-40.7.3.ebuild
27 new file mode 100644
28 index 00000000000..d67bd927712
29 --- /dev/null
30 +++ b/dev-python/setuptools/setuptools-40.7.3.ebuild
31 @@ -0,0 +1,71 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
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 ~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"
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/mock[${PYTHON_USEDEP}]
62 + dev-python/pip[${PYTHON_USEDEP}]
63 + >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}]
64 + <dev-python/pytest-4
65 + dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
66 + dev-python/wheel[${PYTHON_USEDEP}]
67 + virtual/python-futures[${PYTHON_USEDEP}]
68 + )
69 +"
70 +PDEPEND="
71 + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]"
72 +
73 +# Force in-source build because build system modifies sources.
74 +DISTUTILS_IN_SOURCE_BUILD=1
75 +
76 +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
77 +
78 +python_prepare_all() {
79 + if [[ ${PV} == "9999" ]]; then
80 + python_setup
81 + ${EPYTHON} bootstrap.py || die
82 + fi
83 +
84 + # disable tests requiring a network connection
85 + rm setuptools/tests/test_packageindex.py || die
86 +
87 + # don't run integration tests
88 + rm setuptools/tests/test_integration.py || die
89 +
90 + distutils-r1_python_prepare_all
91 +}
92 +
93 +python_test() {
94 + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
95 + # It tries to sandbox the test in a tempdir
96 + HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}"
97 +}
98 +
99 +python_install() {
100 + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
101 + distutils-r1_python_install
102 +}