1 |
commit: aaef2a6e64b4335a930c942c8382fec2094b67f4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 14 07:05:50 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 14 07:51:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaef2a6e |
7 |
|
8 |
dev-python/setuptools: Bump to 58.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-58.2.0.ebuild | 86 ++++++++++++++++++++++++++ |
14 |
2 files changed, 87 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest |
17 |
index c73a892ce34..9f8a6e5ad43 100644 |
18 |
--- a/dev-python/setuptools/Manifest |
19 |
+++ b/dev-python/setuptools/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST python-gentoo-patches-3.10.0rc1.tar.xz 8112 BLAKE2B d6f9b44c5a231f447ffe3533afbcaffe0f3b8bdd5a6690f1854bd7e1199d036d11a4cf4abfae345a88c42740ccbd4b72e53cbe28aea1a5db39dda1e5bfd47229 SHA512 bba7045f56369ca0354a539f8478a1afed77dc89a9faf548a0cf8959d644360b0afc4f84b95151ebfc2a6553078322c7445073f7a4104e9cd639ccc86ad0f792 |
22 |
DIST setuptools-57.5.0.tar.gz 2141727 BLAKE2B 54c065e0bdcb0c3a0a76026d78ab26615e07ee013e684ef18c3731757a38efe38d21d4c99b687595873679d77ab8381cccc483847467c98eb7086d9cac5bd8ec SHA512 9dae7cbddcca0859d128f528232c2ab6baca2b4447bba129a7bbc014c98a8ecc866cc71c7e93900bb93ea4bbbe5e398c1c3b4a4867afb2caf2c38a2d5a46d67c |
23 |
+DIST setuptools-58.2.0.tar.gz 2268140 BLAKE2B 13281c3b2ed664fdcec77117cded285fb5b608036c19715c7c786734bb04cc02bc0f300a28e7c49967f695a6b706f9413baa33d99ac4f1f957522136ee5857e0 SHA512 028c9d9533f5493ff89c80c705ea002661a70e0e43afecb0c7546029990ae599e16fad7248ffc29573c18c6aeb33f1bba1fde09f25fe04b74717ad9308ce9cfc |
24 |
|
25 |
diff --git a/dev-python/setuptools/setuptools-58.2.0.ebuild b/dev-python/setuptools/setuptools-58.2.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..13e77de865d |
28 |
--- /dev/null |
29 |
+++ b/dev-python/setuptools/setuptools-58.2.0.ebuild |
30 |
@@ -0,0 +1,86 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
35 |
+EAPI=7 |
36 |
+ |
37 |
+# Set to 'manual' to avoid triggering install QA check |
38 |
+DISTUTILS_USE_SETUPTOOLS=manual |
39 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
40 |
+PYTHON_REQ_USE="xml(+)" |
41 |
+ |
42 |
+inherit distutils-r1 multiprocessing |
43 |
+ |
44 |
+CPY_PATCHSET="python-gentoo-patches-3.10.0rc1" |
45 |
+DESCRIPTION="Collection of extensions to Distutils" |
46 |
+HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
47 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
48 |
+ https://dev.gentoo.org/~mgorny/dist/python/${CPY_PATCHSET}.tar.xz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
53 |
+IUSE="test" |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+BDEPEND=" |
57 |
+ test? ( |
58 |
+ $(python_gen_cond_dep ' |
59 |
+ dev-python/jaraco-envs[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}] |
61 |
+ dev-python/mock[${PYTHON_USEDEP}] |
62 |
+ dev-python/pip[${PYTHON_USEDEP}] |
63 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
64 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
65 |
+ dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
66 |
+ dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
67 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
69 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
70 |
+ ' python3_{8..10} pypy3) |
71 |
+ ) |
72 |
+" |
73 |
+PDEPEND=" |
74 |
+ >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] |
75 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]" |
76 |
+ |
77 |
+# Force in-source build because build system modifies sources. |
78 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
79 |
+ |
80 |
+DOCS=( {CHANGES,README}.rst ) |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ # apply distutils patches to the bundled distutils |
84 |
+ pushd setuptools/_distutils >/dev/null || die |
85 |
+ # TODO: distutils C++ patch? |
86 |
+ eapply -p3 "${WORKDIR}/${CPY_PATCHSET}/0006-distutils-make-OO-enable-both-opt-1-and-opt-2-optimi.patch" |
87 |
+ popd >/dev/null || die |
88 |
+ |
89 |
+ distutils-r1_src_prepare |
90 |
+} |
91 |
+ |
92 |
+python_test() { |
93 |
+ # keep in sync with python_gen_cond_dep above! |
94 |
+ has "${EPYTHON}" python3.{8..10} pypy3 || continue |
95 |
+ |
96 |
+ distutils_install_for_testing |
97 |
+ local EPYTEST_DESELECT=( |
98 |
+ # network |
99 |
+ setuptools/tests/test_distutils_adoption.py |
100 |
+ 'setuptools/tests/test_virtualenv.py::test_pip_upgrade_from_source[None]' |
101 |
+ # unhappy with pytest-xdist? |
102 |
+ setuptools/tests/test_easy_install.py::TestUserInstallTest::test_local_index |
103 |
+ # TODO |
104 |
+ setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts |
105 |
+ ) |
106 |
+ |
107 |
+ # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
108 |
+ # It tries to sandbox the test in a tempdir |
109 |
+ HOME="${PWD}" epytest \ |
110 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" setuptools |
111 |
+} |
112 |
+ |
113 |
+python_install() { |
114 |
+ export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
115 |
+ distutils-r1_python_install |
116 |
+} |