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, 14 May 2020 06:04:47
Message-Id: 1589436278.fd93fb7ed26a9d7e61039f809ea339318053e582.mgorny@gentoo
1 commit: fd93fb7ed26a9d7e61039f809ea339318053e582
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 14 05:54:17 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 14 06:04:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd93fb7e
7
8 dev-python/setuptools: Bump to 46.3.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-46.3.0.ebuild | 67 ++++++++++++++++++++++++++
14 2 files changed, 68 insertions(+)
15
16 diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest
17 index 86718e07171..7aa256c2f62 100644
18 --- a/dev-python/setuptools/Manifest
19 +++ b/dev-python/setuptools/Manifest
20 @@ -2,3 +2,4 @@ DIST setuptools-44.0.0.zip 858893 BLAKE2B 02ba2a838487ba9e80d9ca3b8598cecbec4d28
21 DIST setuptools-44.1.0.zip 858569 BLAKE2B f59f154e121502a731e51294ccd293d60ffccadacf51e23b53bf7ceba38858948b86783238061136c827ac3373ea7ea8e6253d4bb53f3f1dd69284568ec65a68 SHA512 4dfb0f42d334b835758e865a26ecd1e725711fa2b9c38ddc273b8b3849fba04527bc97436d11ba1e98f1a42922aa0f0b9032e32998273c705fac6e10735eacbf
22 DIST setuptools-46.1.3.zip 862431 BLAKE2B 89d65360e15b22f535312627723ad61df84dce3ee9d5850dd0c60dace0f8c04a502ac6246afe1add1e4fbd0e0dc9530afc8bfd2a4cf058f93cde2ff4184e21f2 SHA512 7f8f99313ce2af2cbfa86ff9a3135bc3445804e9323a375b498d20dad7f8fc819481da0c2a057160397e98b6178c1eb453a093652cfdfe7896c9d31732f7ad8c
23 DIST setuptools-46.2.0.zip 865117 BLAKE2B 490387146003e07a5391afa798d1e45a76e9afc81c3e0c484005b3b0bff15f172db2016907199fe2216a4e17379987a53d58149d285be6dcfe7c37a64ce7c359 SHA512 d8d89a99c6a3be0a343d6a0e17117ba00393188d69c8995a5dbe9a7772c002fc301a53963288231e3f8053ffda4cafd5406edb2f4650f2036c665f8e3eb5822e
24 +DIST setuptools-46.3.0.zip 864654 BLAKE2B ce916b8f84f777a4baf6dd7458d5a74d7afbc0ede3a60238ce1e6ddf8b4c9837cd88508d4af4577be446d811fc9b997e9361775abaf9308bc9af6f66ca173bfb SHA512 57bc3e1a585a99d9434ed55af037a71665ee7e76ac9dbf19c87260b3d4331183f9eb3c7389c3455407f379ba28a74e90e27346afc614003ae259ab92e3dc16ec
25
26 diff --git a/dev-python/setuptools/setuptools-46.3.0.ebuild b/dev-python/setuptools/setuptools-46.3.0.ebuild
27 new file mode 100644
28 index 00000000000..8562f41ff11
29 --- /dev/null
30 +++ b/dev-python/setuptools/setuptools-46.3.0.ebuild
31 @@ -0,0 +1,67 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +DISTUTILS_USE_SETUPTOOLS=no
37 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
38 +PYTHON_REQ_USE="xml(+)"
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Collection of extensions to Distutils"
43 +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
49 +IUSE="test"
50 +RESTRICT="!test? ( test )"
51 +
52 +BDEPEND="
53 + app-arch/unzip
54 + test? (
55 + dev-python/mock[${PYTHON_USEDEP}]
56 + dev-python/pip[${PYTHON_USEDEP}]
57 + >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}]
58 + dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
59 + dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
60 + dev-python/wheel[${PYTHON_USEDEP}]
61 + )
62 +"
63 +PDEPEND="
64 + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]"
65 +
66 +# Force in-source build because build system modifies sources.
67 +DISTUTILS_IN_SOURCE_BUILD=1
68 +
69 +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
70 +
71 +python_prepare_all() {
72 + # disable tests requiring a network connection
73 + rm setuptools/tests/test_packageindex.py || die
74 +
75 + # don't run integration tests
76 + rm setuptools/tests/test_integration.py || die
77 +
78 + # xpass-es for me on py3
79 + sed -e '/xfail.*710/s:(:(six.PY2, :' \
80 + -i setuptools/tests/test_archive_util.py || die
81 +
82 + # avoid pointless dep on flake8
83 + sed -i -e 's:--flake8::' pytest.ini || die
84 +
85 + distutils-r1_python_prepare_all
86 +}
87 +
88 +python_test() {
89 + distutils_install_for_testing
90 + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
91 + # It tries to sandbox the test in a tempdir
92 + HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}"
93 +}
94 +
95 +python_install() {
96 + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
97 + distutils-r1_python_install
98 +}