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