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: Sat, 01 Oct 2022 15:53:39
Message-Id: 1664639607.037a81d21b1feb7c0fffb52dc7244d946558dd15.mgorny@gentoo
1 commit: 037a81d21b1feb7c0fffb52dc7244d946558dd15
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 14:55:54 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 15:53:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=037a81d2
7
8 dev-python/setuptools: Bump to 65.4.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-65.4.1.ebuild | 127 +++++++++++++++++++++++++
14 2 files changed, 128 insertions(+)
15
16 diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest
17 index 81c901b4556c..69bf689d8a93 100644
18 --- a/dev-python/setuptools/Manifest
19 +++ b/dev-python/setuptools/Manifest
20 @@ -1,2 +1,3 @@
21 DIST setuptools-65.3.0.tar.gz 2615722 BLAKE2B 1344fe17c1c2a4ec60dbf37b3e1cbad56bb5299bed9f8e30a21015f2457e1e90d6782369dfc2d804973e7348d22a356ec0ef75d1aeabba7d77e20e5ddf36e576 SHA512 3c173b1e1a8dbbed0bf3bf600df1256aeabf1b9dec34d5f5d0b1429b0fe16f2aa61fa6c4f400a5b6da24b9d679954866b76e019130bcf2246b138fe017025de9
22 DIST setuptools-65.4.0.tar.gz 2615629 BLAKE2B 778b0acf1a447fbc72043113da757d73ca5dc0df8e6be8dceff7e35d64a920793dca6098d8747bd66bfe1159236570bffb6f2545a0f89a2a7916f94f849b89a7 SHA512 4c8c6348fc5e9e2cc2d7b143b050103e7ed4252dd58ca5aae8d50ee9ec522789ecfbe61dd87513d47bfd1d4afc290a7abc07fd0a6e8d27155c6732111702032d
23 +DIST setuptools-65.4.1.tar.gz 2615710 BLAKE2B 12e644412c7f910a8bf6fb470e0c7e78bcd11a9403d7d0821eecad156d0a4ed03751de6bd6c51ebc2ce1c0925386120971c0da129ebd7e1b8376feee1f8edc7e SHA512 d13253bb556380b1b45d4b51dc7922b0cffa390ba92d97ccbc43c314aceccdcf51ee8b5c751cf6f36c6c8955836bc248214d55fe7419ff0332719862772f0f95
24
25 diff --git a/dev-python/setuptools/setuptools-65.4.1.ebuild b/dev-python/setuptools/setuptools-65.4.1.ebuild
26 new file mode 100644
27 index 000000000000..c11a0923e907
28 --- /dev/null
29 +++ b/dev-python/setuptools/setuptools-65.4.1.ebuild
30 @@ -0,0 +1,127 @@
31 +# Copyright 1999-2022 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 +# please bump dev-python/ensurepip-setuptools along with this package!
38 +
39 +DISTUTILS_USE_PEP517=standalone
40 +PYTHON_TESTED=( python3_{8..11} pypy3 )
41 +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
42 +PYTHON_REQ_USE="xml(+)"
43 +
44 +inherit distutils-r1 multiprocessing
45 +
46 +DESCRIPTION="Collection of extensions to Distutils"
47 +HOMEPAGE="
48 + https://github.com/pypa/setuptools/
49 + https://pypi.org/project/setuptools/
50 +"
51 +SRC_URI="
52 + mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
53 +"
54 +
55 +LICENSE="MIT"
56 +SLOT="0"
57 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
58 +IUSE="test"
59 +RESTRICT="!test? ( test )"
60 +
61 +RDEPEND="
62 + >=dev-python/appdirs-1.4.4-r2[${PYTHON_USEDEP}]
63 + >=dev-python/jaraco-text-3.7.0-r1[${PYTHON_USEDEP}]
64 + >=dev-python/more-itertools-8.12.0-r1[${PYTHON_USEDEP}]
65 + >=dev-python/nspektr-0.3.0[${PYTHON_USEDEP}]
66 + >=dev-python/ordered-set-4.0.2-r1[${PYTHON_USEDEP}]
67 + >=dev-python/packaging-21.3-r2[${PYTHON_USEDEP}]
68 + >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}]
69 + $(python_gen_cond_dep '
70 + >=dev-python/importlib_metadata-4.11.1[${PYTHON_USEDEP}]
71 + ' 3.8 3.9)
72 + $(python_gen_cond_dep '
73 + >=dev-python/importlib_resources-5.4.0-r3[${PYTHON_USEDEP}]
74 + ' 3.8)
75 +"
76 +BDEPEND="
77 + ${RDEPEND}
78 + >=dev-python/wheel-0.37.1-r1[${PYTHON_USEDEP}]
79 + test? (
80 + $(python_gen_cond_dep '
81 + dev-python/build[${PYTHON_USEDEP}]
82 + >=dev-python/ini2toml-0.9[${PYTHON_USEDEP}]
83 + >=dev-python/filelock-3.4.0[${PYTHON_USEDEP}]
84 + >=dev-python/jaraco-envs-2.2[${PYTHON_USEDEP}]
85 + >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}]
86 + dev-python/mock[${PYTHON_USEDEP}]
87 + dev-python/pip[${PYTHON_USEDEP}]
88 + dev-python/pip-run[${PYTHON_USEDEP}]
89 + dev-python/pytest[${PYTHON_USEDEP}]
90 + dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
91 + dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
92 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
93 + >=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}]
94 + >=dev-python/virtualenv-20[${PYTHON_USEDEP}]
95 + dev-python/wheel[${PYTHON_USEDEP}]
96 + ' "${PYTHON_TESTED[@]}")
97 + )
98 +"
99 +PDEPEND="
100 + >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]
101 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
102 +"
103 +
104 +DOCS=( {CHANGES,README}.rst )
105 +
106 +src_prepare() {
107 + local PATCHES=(
108 + # TODO: remove this when we're 100% PEP517 mode
109 + "${FILESDIR}"/setuptools-62.4.0-py-compile.patch
110 + )
111 +
112 + # remove bundled dependencies, setuptools will switch to system deps
113 + # automatically
114 + rm -r */_vendor || die
115 +
116 + # remove the ugly */extern hack that breaks on unvendored deps
117 + rm -r */extern || die
118 + find -name '*.py' -exec sed \
119 + -e 's:from \w*[.]\+extern ::' -e 's:\w*[.]\+extern[.]::' \
120 + -i {} + || die
121 +
122 + distutils-r1_src_prepare
123 +
124 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
125 +}
126 +
127 +python_test() {
128 + local -x SETUPTOOLS_USE_DISTUTILS=stdlib
129 +
130 + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
131 + return
132 + fi
133 +
134 + local EPYTEST_DESELECT=(
135 + # network
136 + # TODO: see if PRE_BUILT_SETUPTOOLS_* helps
137 + setuptools/tests/config/test_apply_pyprojecttoml.py::test_apply_pyproject_equivalent_to_setupcfg
138 + setuptools/tests/integration/test_pip_install_sdist.py::test_install_sdist
139 + setuptools/tests/test_build_meta.py::test_legacy_editable_install
140 + setuptools/tests/test_distutils_adoption.py
141 + setuptools/tests/test_editable_install.py
142 + setuptools/tests/test_setuptools.py::test_its_own_wheel_does_not_contain_tests
143 + setuptools/tests/test_virtualenv.py::test_clean_env_install
144 + setuptools/tests/test_virtualenv.py::test_no_missing_dependencies
145 + setuptools/tests/test_virtualenv.py::test_test_command_install_requirements
146 + # TODO
147 + setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_basic
148 + setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_ignore_errors
149 + setuptools/tests/test_extern.py::test_distribution_picklable
150 + # expects bundled deps in virtualenv
151 + setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_in_sdist
152 + setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_not_in_wheel
153 + setuptools/tests/test_editable_install.py::test_editable_with_pyproject
154 + )
155 +
156 + epytest -n "$(makeopts_jobs)" setuptools
157 +}