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, 03 Feb 2022 10:58:25
Message-Id: 1643885897.ae7e2cb8830e41e6f4c743b660e315c8720bf1ea.mgorny@gentoo
1 commit: ae7e2cb8830e41e6f4c743b660e315c8720bf1ea
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 3 10:51:04 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 3 10:58:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae7e2cb8
7
8 dev-python/setuptools: Bump to 60.7.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-60.7.1.ebuild | 107 +++++++++++++++++++++++++
14 2 files changed, 108 insertions(+)
15
16 diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest
17 index e9243a199451..02afd997b152 100644
18 --- a/dev-python/setuptools/Manifest
19 +++ b/dev-python/setuptools/Manifest
20 @@ -5,3 +5,4 @@ DIST setuptools-60.3.0.tar.gz 2283824 BLAKE2B c0e1ffb6c19fd4c85aed2878a95e233721
21 DIST setuptools-60.3.1.tar.gz 2284193 BLAKE2B 0138acaf830d7f29db95c759e60d77986113385b13e96446974b63abf3621db2d2fd033f0f45bf380b6cfb2066ed66ff008446ca595f741c3f5446107f2a554b SHA512 7a2434d857b2914136d5ec0a7b9fbd89352a5dd3452bf2e3f7c0e2ef7317b45a3cfe6d3921b7f61a1f0a99a7c06f73428f9871dac0d7ae481fa1a1a0b97042cb
22 DIST setuptools-60.5.0.tar.gz 2292478 BLAKE2B e41b2717b34d454b3959ee5b6f4fdc70dfec13d97fe6962bd1c1ea2296be8ee2d27bb14ed2cc5e6fb9a757661a0415984b3cf7cf1665347c62a50965f651f9d4 SHA512 b2cf7d99e60d0c862a7a4fd8e806019db52502de48ff77556df26ce39a8620f476de767e2e8be8aa260366f54d1429db8a42d538345ec2cd2cfd5286e62e770d
23 DIST setuptools-60.6.0.tar.gz 2292575 BLAKE2B 410f4eee4e83c14dd1ebc3ab103f9e12bc5092e2e82dece8e71e7be57abc3d41c50763560e94343fe5089c7b903fa223fdab9c9c4648f423fcbd525551c501ef SHA512 9c0bed3d5f3e051fc996c26c2bc8d7ba0193c119a98678c7ef38ee1fdf8b42e569995598e64b527b5c6f1b4c77de655d1d7bdcd526a6d90288fd34efca92ff03
24 +DIST setuptools-60.7.1.tar.gz 2358541 BLAKE2B b48443b95cbd3891ec93d743eb4177302df6742624ea97a97779dd3f101c089ed38ba41d2ff65d35d7e3646d50e62111ecbdd23da9a45cab956006c38d1a42d0 SHA512 cf04353ffc2b1ca30fb219f00265eb6f89330f5489e57997d6975725a19b1e037ab02b9b74a8fcdc84a6234349cfc64855ae57535e0faa46ce4b280a364bb862
25
26 diff --git a/dev-python/setuptools/setuptools-60.7.1.ebuild b/dev-python/setuptools/setuptools-60.7.1.ebuild
27 new file mode 100644
28 index 000000000000..5946fd27ed0c
29 --- /dev/null
30 +++ b/dev-python/setuptools/setuptools-60.7.1.ebuild
31 @@ -0,0 +1,107 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
36 +EAPI=7
37 +
38 +DISTUTILS_USE_PEP517=standalone
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.0_p1"
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/~floppym/python/${CPY_PATCHSET}.tar.xz"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE="test"
54 +RESTRICT="!test? ( test )"
55 +
56 +RDEPEND="
57 + dev-python/appdirs[${PYTHON_USEDEP}]
58 + dev-python/jaraco-text[${PYTHON_USEDEP}]
59 + dev-python/more-itertools[${PYTHON_USEDEP}]
60 + dev-python/ordered-set[${PYTHON_USEDEP}]
61 + dev-python/packaging[${PYTHON_USEDEP}]
62 +"
63 +BDEPEND="
64 + ${RDEPEND}
65 + dev-python/wheel[${PYTHON_USEDEP}]
66 + test? (
67 + $(python_gen_cond_dep '
68 + dev-python/build[${PYTHON_USEDEP}]
69 + >=dev-python/filelock-3.4.0[${PYTHON_USEDEP}]
70 + >=dev-python/jaraco-envs-2.2[${PYTHON_USEDEP}]
71 + >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}]
72 + dev-python/mock[${PYTHON_USEDEP}]
73 + dev-python/pip[${PYTHON_USEDEP}]
74 + dev-python/pip-run[${PYTHON_USEDEP}]
75 + dev-python/sphinx[${PYTHON_USEDEP}]
76 + dev-python/pytest[${PYTHON_USEDEP}]
77 + dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
78 + dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
79 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
80 + dev-python/tomli[${PYTHON_USEDEP}]
81 + >=dev-python/virtualenv-20[${PYTHON_USEDEP}]
82 + dev-python/wheel[${PYTHON_USEDEP}]
83 + ' python3_{8..10} pypy3)
84 + )
85 +"
86 +PDEPEND="
87 + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]
88 + dev-python/setuptools_scm[${PYTHON_USEDEP}]"
89 +
90 +DOCS=( {CHANGES,README}.rst )
91 +
92 +src_prepare() {
93 + # remove bundled dependencies, setuptools will switch to system deps
94 + # automatically
95 + rm -r */_vendor || die
96 +
97 + # remove the ugly */extern hack that breaks on unvendored deps
98 + rm -r */extern || die
99 + find -name '*.py' -exec sed \
100 + -e 's:from \w*[.]extern ::' -e 's:\w*[.]extern[.]::' \
101 + -i {} + || die
102 +
103 + # apply distutils patches to the bundled distutils
104 + pushd setuptools/_distutils >/dev/null || die
105 + # TODO: distutils C++ patch?
106 + eapply -p3 "${WORKDIR}/${CPY_PATCHSET}/0006-distutils-make-OO-enable-both-opt-1-and-opt-2-optimi.patch"
107 + popd >/dev/null || die
108 +
109 + distutils-r1_src_prepare
110 +}
111 +
112 +python_test() {
113 + local -x SETUPTOOLS_USE_DISTUTILS=stdlib
114 +
115 + # keep in sync with python_gen_cond_dep above!
116 + has "${EPYTHON}" python3.{8..10} pypy3 || continue
117 +
118 + local EPYTEST_DESELECT=(
119 + # network
120 + setuptools/tests/integration/test_pip_install_sdist.py::test_install_sdist
121 + setuptools/tests/test_distutils_adoption.py
122 + setuptools/tests/test_virtualenv.py::test_clean_env_install
123 + setuptools/tests/test_virtualenv.py::test_no_missing_dependencies
124 + 'setuptools/tests/test_virtualenv.py::test_pip_upgrade_from_source[None]'
125 + setuptools/tests/test_virtualenv.py::test_test_command_install_requirements
126 + setuptools/tests/test_setuptools.py::test_its_own_wheel_does_not_contain_tests
127 + # unhappy with pytest-xdist?
128 + setuptools/tests/test_easy_install.py::TestUserInstallTest::test_local_index
129 + # TODO
130 + setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts
131 + setuptools/tests/test_test.py::test_tests_are_run_once
132 + )
133 +
134 + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
135 + # It tries to sandbox the test in a tempdir
136 + HOME="${PWD}" epytest \
137 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" setuptools
138 +}