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: profiles/, dev-python/setuptools/
Date: Fri, 29 May 2020 07:25:09
Message-Id: 1590737100.7689f519802618a750c1129ea85dfcfeedca493b.mgorny@gentoo
1 commit: 7689f519802618a750c1129ea85dfcfeedca493b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 29 07:23:06 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 29 07:25:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7689f519
7
8 dev-python/setuptools: Bump to 47.1.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/setuptools/Manifest | 1 +
13 dev-python/setuptools/setuptools-47.1.1.ebuild | 67 ++++++++++++++++++++++++++
14 profiles/package.mask | 1 +
15 3 files changed, 69 insertions(+)
16
17 diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest
18 index b559fac4d6a..79bb5b30b4c 100644
19 --- a/dev-python/setuptools/Manifest
20 +++ b/dev-python/setuptools/Manifest
21 @@ -1,3 +1,4 @@
22 DIST setuptools-44.0.0.zip 858893 BLAKE2B 02ba2a838487ba9e80d9ca3b8598cecbec4d286f2734be439d2b73f3f7f0ca80e80ea71a0c2322093deb548503c82d6eb32b1585992979b053f14f49baa00baa SHA512 bb48e7763d258e654472bc416d16ec8708eefa95d1eb03cb6e81b623fd636cefc51a0bd67887084ab0214e256e2030a8f655184c3b59ad6937abab6a6178f3a1
23 DIST setuptools-44.1.0.zip 858569 BLAKE2B f59f154e121502a731e51294ccd293d60ffccadacf51e23b53bf7ceba38858948b86783238061136c827ac3373ea7ea8e6253d4bb53f3f1dd69284568ec65a68 SHA512 4dfb0f42d334b835758e865a26ecd1e725711fa2b9c38ddc273b8b3849fba04527bc97436d11ba1e98f1a42922aa0f0b9032e32998273c705fac6e10735eacbf
24 DIST setuptools-46.4.0.zip 865912 BLAKE2B 452d36132f5648c79c7e1616a93ff6a39ab2f64b2864ee397b4f57e7f72c47d418ff274f5decd35b0591b09800ad2a7cbd71c283550bd0e60a4d85744a57d4ec SHA512 31e58fd1d682089a45d23aa07c3c2c4c952ca016fa4c3416b2cba979d8b57369f80baef98ce857912e506e87d6cb456497a1ce1c75a0cdf1ee25d4e753b58726
25 +DIST setuptools-47.1.1.zip 870277 BLAKE2B 0ba55f2b51011d4f98a554a959227dba83a79e7369a3cd54450a1d18cb378bf7cfaffc1aa25b0ee11760e917d6f74891f0a63e43478893ca4327e0f5135267dc SHA512 053ffd4c26bf0cf1894754b1ed922be03c6fa2cb54a41e3d28a7d8f7a2fdf2ccebbca4e0bafa16eed476923ef70cf4294ed36df6e77603b2fae0a09b684132c4
26
27 diff --git a/dev-python/setuptools/setuptools-47.1.1.ebuild b/dev-python/setuptools/setuptools-47.1.1.ebuild
28 new file mode 100644
29 index 00000000000..69172f4815f
30 --- /dev/null
31 +++ b/dev-python/setuptools/setuptools-47.1.1.ebuild
32 @@ -0,0 +1,67 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +DISTUTILS_USE_SETUPTOOLS=no
38 +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
39 +PYTHON_REQ_USE="xml(+)"
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Collection of extensions to Distutils"
44 +HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +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"
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +
53 +BDEPEND="
54 + app-arch/unzip
55 + test? (
56 + dev-python/mock[${PYTHON_USEDEP}]
57 + dev-python/pip[${PYTHON_USEDEP}]
58 + >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}]
59 + dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
60 + dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
61 + dev-python/wheel[${PYTHON_USEDEP}]
62 + )
63 +"
64 +PDEPEND="
65 + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]"
66 +
67 +# Force in-source build because build system modifies sources.
68 +DISTUTILS_IN_SOURCE_BUILD=1
69 +
70 +DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
71 +
72 +python_prepare_all() {
73 + # disable tests requiring a network connection
74 + rm setuptools/tests/test_packageindex.py || die
75 +
76 + # don't run integration tests
77 + rm setuptools/tests/test_integration.py || die
78 +
79 + # xpass-es for me on py3
80 + #sed -e '/xfail.*710/s:(:(six.PY2, :' \
81 + # -i setuptools/tests/test_archive_util.py || die
82 +
83 + # avoid pointless dep on flake8
84 + sed -i -e 's:--flake8::' pytest.ini || die
85 +
86 + distutils-r1_python_prepare_all
87 +}
88 +
89 +python_test() {
90 + distutils_install_for_testing
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}" pytest -vv ${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 +}
100
101 diff --git a/profiles/package.mask b/profiles/package.mask
102 index 9563311a1f1..a165a68f8e9 100644
103 --- a/profiles/package.mask
104 +++ b/profiles/package.mask
105 @@ -589,6 +589,7 @@ www-plugins/passff
106 # changes. Let's mask it to reduce the noise, and hopefully try to get
107 # python2_7 out of default PYTHON_TARGETS first.
108 ~dev-python/setuptools-46.1.3
109 +>=dev-python/setuptools-47
110
111 # Ulrich Müller <ulm@g.o> (2020-01-06)
112 # Snapshots from Git and pretest versions, masked for testing.