1 |
commit: 2f584659277a1e31ab84f31e62651cbb7aa44399 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 4 15:10:01 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 4 20:25:14 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f584659 |
7 |
|
8 |
dev-python/setuptools: Bump to 40.9.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-40.9.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 bacd94767ea..2753b15de41 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.3.zip 842920 BLAKE2B 53b5845f157d088fa0848384770f185b2daf8f1bc0304e8d5ab3eb5cae44a42133e7cf2f655e95be351733760ed401d55e3717c4a1257c77644796c08cbe67f6 SHA512 fb61e4d7ae620684b128bd60112938a4a9721a82ed3aa4daa774837a2db60e989d608ce2ba7f51393f412b78244d6f4c8f1025416b137d8ce01a2c0375ffec65 |
23 |
DIST setuptools-40.8.0.zip 845071 BLAKE2B a76b92a7e3a5cd87d74f3ff5f49fe4c6b2a1f0c5cc3b04219f6f773585be479ec5d092185129ada1fe5c5ef62714687beb3a316a6d50b559e9224aed468aef24 SHA512 f14976a76bff74b7494d44fcfffa511de0d142b4d308fcbf87b34c31c51491102e152acc11a383c5f6b693d1b18eb119c5186ca23deb12b2bbf186794b062868 |
24 |
+DIST setuptools-40.9.0.zip 847572 BLAKE2B 1ef3f05d747a67395f705ad46bf066f400c9a5ad97efe73175e72eb9091c929cb61a526da1206f431a4e054939e0fd2b2a841a892c6cc76a6116cf781112b472 SHA512 2d278ef162139dfb1dd3640154ae3db755ff5c2285810c85b0452d12e3f3cb199e3f1a1ec7cc43a377d42cd4f86e97e2c773d9f0a3bef8dc1acbf31e6f61033f |
25 |
|
26 |
diff --git a/dev-python/setuptools/setuptools-40.9.0.ebuild b/dev-python/setuptools/setuptools-40.9.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..12cde2b702c |
29 |
--- /dev/null |
30 |
+++ b/dev-python/setuptools/setuptools-40.9.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_{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 |
+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 |
+} |