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, 22 Aug 2019 06:49:37
Message-Id: 1566456564.9ce17829cc0a0caf820ed88c477f5564afad4af8.mgorny@gentoo
1 commit: 9ce17829cc0a0caf820ed88c477f5564afad4af8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 22 05:23:07 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 22 06:49:24 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ce17829
7
8 dev-python/setuptools: Bump to 41.2.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/setuptools/Manifest | 1 +
13 dev-python/setuptools/setuptools-41.2.0.ebuild | 73 ++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest
17 index 1ee9932b727..fbfc3b9d504 100644
18 --- a/dev-python/setuptools/Manifest
19 +++ b/dev-python/setuptools/Manifest
20 @@ -6,3 +6,4 @@ DIST setuptools-40.9.0.zip 847572 BLAKE2B 1ef3f05d747a67395f705ad46bf066f400c9a5
21 DIST setuptools-41.0.0.zip 848208 BLAKE2B 8d92cfb25f4ac1d0fd209b524693d66eca8fbc43b0ae4bf81343dd97820fd3b0572c8994c6ed1ee8c18e86a7eb4a6154dba53d81da081c950fa1ae1b61e023cf SHA512 e0f310368c50d954c8b0499ca2ea0e969e82515d0526b854c47d74cf6bb5af505cc522d926a346ab636163af6a85d1b40658c1701e759fbdf36f817af79ba7b1
22 DIST setuptools-41.0.1.zip 849016 BLAKE2B e07d3eb864c96fc797f1ef2f93b2adcdc310a817339b51af1fc1b3b262fe86ad1bf35741fa3485f94d267bcaa55fded92f62754b3bb4544a27e21b507465c269 SHA512 022ac63b27da157ddab5eef34d4452f30b3798c3555779255686ecedcb98d6d60a9ac0b1a077b28426e3306d4ed5e89f1eea2894f9da6def57376596c01595b9
23 DIST setuptools-41.1.0.zip 851100 BLAKE2B 1a2dcb1d3f1a34d9a5dab5156b76cddb03da0f3745e57ebdd363cdd23512df0de8f0d3131c930e2b67ae34fc15f75a9c06802826f97508bfb937a9e45ff287f4 SHA512 07e3381fffc7b75051640c07e334794cb008682e05ab8bbd5bb1e9757fd36305997a2974c424fd474411941f5ff014a53ec1edc276543593b238fe1e97d7d106
24 +DIST setuptools-41.2.0.zip 851251 BLAKE2B 1c4896c429c670832a46f951dc4c4958f808f1a7c0ad88670705fe265bee23c1d2b6a348b13298b0a60b6c821d504567d4d35b33f388949028391219cd45191e SHA512 6ac0da9f2e452b2b2334c03eb1667d88ebffeb68da18a69fe14f9f0763ac391986dcc663f123015b63eb0c3f905e5a8be7408499ddb1ac20367109275cb66ac9
25
26 diff --git a/dev-python/setuptools/setuptools-41.2.0.ebuild b/dev-python/setuptools/setuptools-41.2.0.ebuild
27 new file mode 100644
28 index 00000000000..913d8b00ffb
29 --- /dev/null
30 +++ b/dev-python/setuptools/setuptools-41.2.0.ebuild
31 @@ -0,0 +1,73 @@
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_{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 ~riscv ~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 +RESTRICT="!test? ( test )"
56 +
57 +RDEPEND="
58 +"
59 +DEPEND="${RDEPEND}
60 + app-arch/unzip
61 + test? (
62 + dev-python/mock[${PYTHON_USEDEP}]
63 + dev-python/pip[${PYTHON_USEDEP}]
64 + >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}]
65 + <dev-python/pytest-4
66 + dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
67 + dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
68 + dev-python/wheel[${PYTHON_USEDEP}]
69 + virtual/python-futures[${PYTHON_USEDEP}]
70 + )
71 +"
72 +PDEPEND="
73 + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]"
74 +
75 +# Force in-source build because build system modifies sources.
76 +DISTUTILS_IN_SOURCE_BUILD=1
77 +
78 +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
79 +
80 +python_prepare_all() {
81 + if [[ ${PV} == "9999" ]]; then
82 + python_setup
83 + ${EPYTHON} bootstrap.py || die
84 + fi
85 +
86 + # disable tests requiring a network connection
87 + rm setuptools/tests/test_packageindex.py || die
88 +
89 + # don't run integration tests
90 + rm setuptools/tests/test_integration.py || die
91 +
92 + distutils-r1_python_prepare_all
93 +}
94 +
95 +python_test() {
96 + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
97 + # It tries to sandbox the test in a tempdir
98 + HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}"
99 +}
100 +
101 +python_install() {
102 + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
103 + distutils-r1_python_install
104 +}