1 |
commit: 3a2c38b475d0297754daa703fb4924cb79c92239 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 29 06:38:07 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 07:13:02 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a2c38b4 |
7 |
|
8 |
dev-python/setuptools: Bump to 67.0.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.0.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 2c9763442864..36277830e5cb 100644 |
18 |
--- a/dev-python/setuptools/Manifest |
19 |
+++ b/dev-python/setuptools/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST setuptools-65.6.3.tar.gz 2617699 BLAKE2B 0b64efcb5280f18e9d5660a10bca34d986 |
21 |
DIST setuptools-65.7.0.tar.gz 2618315 BLAKE2B a0989c3fd0ab476d69885d022eccf1a89dc670a17d0b3e73bbe4ffb530e26a838fcd1cfffc4c2720ddd19cb8ba45d42bc31441f1e3bbc32fa71850d208f37cc8 SHA512 0eb2d9de9ef2565cf012db7d68ee18359a1432dd42ecd3fb7d490f73d57b0e7ba2a67e0401f66051127e913f29c2e221e88c0cbf523b0ac9abe7f00b6ab1ded8 |
22 |
DIST setuptools-66.0.0.tar.gz 2642508 BLAKE2B 3d8dc8d365a4dd41334ed203dd18fe44eb024b560fa82f522c98058d60020a33eec4d1c7767289f0368dc77d5533898b34479e4792b388bab73180bffe8034ed SHA512 107717c61a47299dbb5baffe5948875abc26e6900121726aef7a6042b7156dd13031bbc69c5b930c0d3d2ee99c64741451383826e1d6fb65c12b026620a72ce1 |
23 |
DIST setuptools-66.1.1.tar.gz 2644145 BLAKE2B 96198ae1832ab1b42f01178df7d17031bb8bb7f0c72f6f0f5f48f09735157b738e6914a088bfd00540f29cc684172cf2e1a85f803371a9bc2fbf3772d340dfc4 SHA512 b36da1623e2034dae9561ebcb3189b335fa65e844def584d172632a1af4aef4061567bbc801ec9125423030f03cf84a6d578a0283084866b8c21de3237feb650 |
24 |
+DIST setuptools-67.0.0.tar.gz 2474556 BLAKE2B 470ddb7ba0cba6a8ea677a101a4639701bee7ace860df2616e097e9bb479275877e8904ec4f62c33fcd6c05b3aaac48bb7bf2360cc839eccde4231c9befc6fed SHA512 d006f417920f2bceae0f1d4ecfabbcec5d20866b0de92c002a8fdc0366b9206e3d59fd2b30886b4f71e437dc86b411a9653f7c809dcc2cfb12869571840ff9bf |
25 |
|
26 |
diff --git a/dev-python/setuptools/setuptools-67.0.0.ebuild b/dev-python/setuptools/setuptools-67.0.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..1bb399f8c175 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/setuptools/setuptools-67.0.0.ebuild |
31 |
@@ -0,0 +1,126 @@ |
32 |
+# Copyright 1999-2023 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 |
+# please bump dev-python/ensurepip-setuptools along with this package! |
39 |
+ |
40 |
+DISTUTILS_USE_PEP517=standalone |
41 |
+PYTHON_TESTED=( python3_{9..11} pypy3 ) |
42 |
+PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) |
43 |
+PYTHON_REQ_USE="xml(+)" |
44 |
+ |
45 |
+inherit distutils-r1 multiprocessing |
46 |
+ |
47 |
+DESCRIPTION="Collection of extensions to Distutils" |
48 |
+HOMEPAGE=" |
49 |
+ https://github.com/pypa/setuptools/ |
50 |
+ https://pypi.org/project/setuptools/ |
51 |
+" |
52 |
+SRC_URI=" |
53 |
+ mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
54 |
+" |
55 |
+ |
56 |
+LICENSE="MIT" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" |
59 |
+IUSE="test" |
60 |
+RESTRICT="!test? ( test )" |
61 |
+ |
62 |
+RDEPEND=" |
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-23[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/platformdirs-2.6.2-r1[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] |
70 |
+ $(python_gen_cond_dep ' |
71 |
+ >=dev-python/importlib_metadata-4.11.1[${PYTHON_USEDEP}] |
72 |
+ ' 3.9) |
73 |
+" |
74 |
+BDEPEND=" |
75 |
+ ${RDEPEND} |
76 |
+ >=dev-python/wheel-0.37.1-r1[${PYTHON_USEDEP}] |
77 |
+ test? ( |
78 |
+ $(python_gen_cond_dep ' |
79 |
+ dev-python/build[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/ini2toml-0.9[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/filelock-3.4.0[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/jaraco-envs-2.2[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}] |
84 |
+ dev-python/pip[${PYTHON_USEDEP}] |
85 |
+ dev-python/pip-run[${PYTHON_USEDEP}] |
86 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
87 |
+ dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
88 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
89 |
+ dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
90 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
93 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
94 |
+ ' "${PYTHON_TESTED[@]}") |
95 |
+ ) |
96 |
+" |
97 |
+PDEPEND=" |
98 |
+ >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] |
99 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
100 |
+" |
101 |
+ |
102 |
+DOCS=( {CHANGES,README}.rst ) |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ local PATCHES=( |
106 |
+ # TODO: remove this when we're 100% PEP517 mode |
107 |
+ "${FILESDIR}"/setuptools-62.4.0-py-compile.patch |
108 |
+ ) |
109 |
+ |
110 |
+ distutils-r1_src_prepare |
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 |
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
123 |
+} |
124 |
+ |
125 |
+python_test() { |
126 |
+ local -x SETUPTOOLS_USE_DISTUTILS=stdlib |
127 |
+ |
128 |
+ if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then |
129 |
+ return |
130 |
+ fi |
131 |
+ |
132 |
+ local EPYTEST_DESELECT=( |
133 |
+ # network |
134 |
+ # TODO: see if PRE_BUILT_SETUPTOOLS_* helps |
135 |
+ setuptools/tests/config/test_apply_pyprojecttoml.py::test_apply_pyproject_equivalent_to_setupcfg |
136 |
+ setuptools/tests/integration/test_pip_install_sdist.py::test_install_sdist |
137 |
+ setuptools/tests/test_build_meta.py::test_legacy_editable_install |
138 |
+ setuptools/tests/test_distutils_adoption.py |
139 |
+ setuptools/tests/test_editable_install.py |
140 |
+ setuptools/tests/test_setuptools.py::test_its_own_wheel_does_not_contain_tests |
141 |
+ setuptools/tests/test_virtualenv.py::test_clean_env_install |
142 |
+ setuptools/tests/test_virtualenv.py::test_no_missing_dependencies |
143 |
+ setuptools/tests/test_virtualenv.py::test_test_command_install_requirements |
144 |
+ # TODO |
145 |
+ setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_basic |
146 |
+ setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_ignore_errors |
147 |
+ setuptools/tests/test_extern.py::test_distribution_picklable |
148 |
+ # expects bundled deps in virtualenv |
149 |
+ setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_in_sdist |
150 |
+ setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_not_in_wheel |
151 |
+ setuptools/tests/test_editable_install.py::test_editable_with_pyproject |
152 |
+ # fails if python-xlib is installed |
153 |
+ setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts |
154 |
+ ) |
155 |
+ |
156 |
+ epytest -n "$(makeopts_jobs)" setuptools |
157 |
+} |