1 |
commit: 945bd340a7dd04fa294cc98b16984348283a532b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 2 04:50:00 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 2 05:41:59 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=945bd340 |
7 |
|
8 |
dev-python/setuptools: Bump to 67.1.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-67.1.0.ebuild | 126 +++++++++++++++++++++++++ |
14 |
2 files changed, 127 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest |
17 |
index d78b5c61ef73..64af317376fd 100644 |
18 |
--- a/dev-python/setuptools/Manifest |
19 |
+++ b/dev-python/setuptools/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST setuptools-65.7.0.tar.gz 2618315 BLAKE2B a0989c3fd0ab476d69885d022eccf1a89dc670a17d0b3e73bbe4ffb530e26a838fcd1cfffc4c2720ddd19cb8ba45d42bc31441f1e3bbc32fa71850d208f37cc8 SHA512 0eb2d9de9ef2565cf012db7d68ee18359a1432dd42ecd3fb7d490f73d57b0e7ba2a67e0401f66051127e913f29c2e221e88c0cbf523b0ac9abe7f00b6ab1ded8 |
22 |
DIST setuptools-67.0.0.tar.gz 2474556 BLAKE2B 470ddb7ba0cba6a8ea677a101a4639701bee7ace860df2616e097e9bb479275877e8904ec4f62c33fcd6c05b3aaac48bb7bf2360cc839eccde4231c9befc6fed SHA512 d006f417920f2bceae0f1d4ecfabbcec5d20866b0de92c002a8fdc0366b9206e3d59fd2b30886b4f71e437dc86b411a9653f7c809dcc2cfb12869571840ff9bf |
23 |
+DIST setuptools-67.1.0.tar.gz 2475095 BLAKE2B 4b803efc140f2f80c512a7cc5758822b64130a9acd4c7c6e2d56cc2793b973e9fbe083041f8c18103edb67097fdfcf579a856b279f29103073416907be901c76 SHA512 bc867c5f49b4fe72b37f1a8e8281603403ce36679be7aae2ac3e0429cda9852735d38ee5624e440d58991a1df773bdfaaaaf2f603f9aecf52d1f573a3975d279 |
24 |
|
25 |
diff --git a/dev-python/setuptools/setuptools-67.1.0.ebuild b/dev-python/setuptools/setuptools-67.1.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..1bb399f8c175 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/setuptools/setuptools-67.1.0.ebuild |
30 |
@@ -0,0 +1,126 @@ |
31 |
+# Copyright 1999-2023 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_{9..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/jaraco-text-3.7.0-r1[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/more-itertools-8.12.0-r1[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/nspektr-0.3.0[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/ordered-set-4.0.2-r1[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/packaging-23[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/platformdirs-2.6.2-r1[${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.9) |
72 |
+" |
73 |
+BDEPEND=" |
74 |
+ ${RDEPEND} |
75 |
+ >=dev-python/wheel-0.37.1-r1[${PYTHON_USEDEP}] |
76 |
+ test? ( |
77 |
+ $(python_gen_cond_dep ' |
78 |
+ dev-python/build[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/ini2toml-0.9[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/filelock-3.4.0[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/jaraco-envs-2.2[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}] |
83 |
+ dev-python/pip[${PYTHON_USEDEP}] |
84 |
+ dev-python/pip-run[${PYTHON_USEDEP}] |
85 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
86 |
+ dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
87 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
88 |
+ dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
89 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
92 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
93 |
+ ' "${PYTHON_TESTED[@]}") |
94 |
+ ) |
95 |
+" |
96 |
+PDEPEND=" |
97 |
+ >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] |
98 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
99 |
+" |
100 |
+ |
101 |
+DOCS=( {CHANGES,README}.rst ) |
102 |
+ |
103 |
+src_prepare() { |
104 |
+ local PATCHES=( |
105 |
+ # TODO: remove this when we're 100% PEP517 mode |
106 |
+ "${FILESDIR}"/setuptools-62.4.0-py-compile.patch |
107 |
+ ) |
108 |
+ |
109 |
+ distutils-r1_src_prepare |
110 |
+ |
111 |
+ # remove bundled dependencies, setuptools will switch to system deps |
112 |
+ # automatically |
113 |
+ rm -r */_vendor || die |
114 |
+ |
115 |
+ # remove the ugly */extern hack that breaks on unvendored deps |
116 |
+ rm -r */extern || die |
117 |
+ find -name '*.py' -exec sed \ |
118 |
+ -e 's:from \w*[.]\+extern ::' -e 's:\w*[.]\+extern[.]::' \ |
119 |
+ -i {} + || die |
120 |
+ |
121 |
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
122 |
+} |
123 |
+ |
124 |
+python_test() { |
125 |
+ local -x SETUPTOOLS_USE_DISTUTILS=stdlib |
126 |
+ |
127 |
+ if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then |
128 |
+ return |
129 |
+ fi |
130 |
+ |
131 |
+ local EPYTEST_DESELECT=( |
132 |
+ # network |
133 |
+ # TODO: see if PRE_BUILT_SETUPTOOLS_* helps |
134 |
+ setuptools/tests/config/test_apply_pyprojecttoml.py::test_apply_pyproject_equivalent_to_setupcfg |
135 |
+ setuptools/tests/integration/test_pip_install_sdist.py::test_install_sdist |
136 |
+ setuptools/tests/test_build_meta.py::test_legacy_editable_install |
137 |
+ setuptools/tests/test_distutils_adoption.py |
138 |
+ setuptools/tests/test_editable_install.py |
139 |
+ setuptools/tests/test_setuptools.py::test_its_own_wheel_does_not_contain_tests |
140 |
+ setuptools/tests/test_virtualenv.py::test_clean_env_install |
141 |
+ setuptools/tests/test_virtualenv.py::test_no_missing_dependencies |
142 |
+ setuptools/tests/test_virtualenv.py::test_test_command_install_requirements |
143 |
+ # TODO |
144 |
+ setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_basic |
145 |
+ setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_ignore_errors |
146 |
+ setuptools/tests/test_extern.py::test_distribution_picklable |
147 |
+ # expects bundled deps in virtualenv |
148 |
+ setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_in_sdist |
149 |
+ setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_not_in_wheel |
150 |
+ setuptools/tests/test_editable_install.py::test_editable_with_pyproject |
151 |
+ # fails if python-xlib is installed |
152 |
+ setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts |
153 |
+ ) |
154 |
+ |
155 |
+ epytest -n "$(makeopts_jobs)" setuptools |
156 |
+} |