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: 1643712226.bca655894c8cfe74618a33fd50c021de5e2d8ff4.mgorny@gentoo
1 commit: bca655894c8cfe74618a33fd50c021de5e2d8ff4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 1 10:43:35 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 1 10:43:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bca65589
7
8 dev-python/setuptools: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/setuptools/setuptools-60.5.0-r1.ebuild | 98 -----------------------
13 1 file changed, 98 deletions(-)
14
15 diff --git a/dev-python/setuptools/setuptools-60.5.0-r1.ebuild b/dev-python/setuptools/setuptools-60.5.0-r1.ebuild
16 deleted file mode 100644
17 index 0dfea3421f86..000000000000
18 --- a/dev-python/setuptools/setuptools-60.5.0-r1.ebuild
19 +++ /dev/null
20 @@ -1,98 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
25 -EAPI=7
26 -
27 -DISTUTILS_USE_PEP517=standalone
28 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
29 -PYTHON_REQ_USE="xml(+)"
30 -
31 -inherit distutils-r1 multiprocessing
32 -
33 -CPY_PATCHSET="python-gentoo-patches-3.10.0_p1"
34 -DESCRIPTION="Collection of extensions to Distutils"
35 -HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/"
36 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
37 - https://dev.gentoo.org/~floppym/python/${CPY_PATCHSET}.tar.xz"
38 -
39 -LICENSE="MIT"
40 -SLOT="0"
41 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
42 -IUSE="test"
43 -RESTRICT="!test? ( test )"
44 -
45 -RDEPEND="
46 - dev-python/appdirs[${PYTHON_USEDEP}]
47 - dev-python/more-itertools[${PYTHON_USEDEP}]
48 - dev-python/ordered-set[${PYTHON_USEDEP}]
49 - dev-python/packaging[${PYTHON_USEDEP}]
50 -"
51 -BDEPEND="
52 - ${RDEPEND}
53 - dev-python/wheel[${PYTHON_USEDEP}]
54 - test? (
55 - $(python_gen_cond_dep '
56 - dev-python/build[${PYTHON_USEDEP}]
57 - >=dev-python/filelock-3.4.0[${PYTHON_USEDEP}]
58 - >=dev-python/jaraco-envs-2.2[${PYTHON_USEDEP}]
59 - >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}]
60 - dev-python/mock[${PYTHON_USEDEP}]
61 - dev-python/pip[${PYTHON_USEDEP}]
62 - dev-python/sphinx[${PYTHON_USEDEP}]
63 - dev-python/pytest[${PYTHON_USEDEP}]
64 - dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
65 - dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
66 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
67 - dev-python/tomli[${PYTHON_USEDEP}]
68 - >=dev-python/virtualenv-20[${PYTHON_USEDEP}]
69 - dev-python/wheel[${PYTHON_USEDEP}]
70 - ' python3_{8..10} pypy3)
71 - )
72 -"
73 -PDEPEND="
74 - >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]
75 - dev-python/setuptools_scm[${PYTHON_USEDEP}]"
76 -
77 -DOCS=( {CHANGES,README}.rst )
78 -
79 -src_prepare() {
80 - # remove bundled dependencies, setuptools will switch to system deps
81 - # automatically
82 - rm -r */_vendor || die
83 -
84 - # apply distutils patches to the bundled distutils
85 - pushd setuptools/_distutils >/dev/null || die
86 - # TODO: distutils C++ patch?
87 - eapply -p3 "${WORKDIR}/${CPY_PATCHSET}/0006-distutils-make-OO-enable-both-opt-1-and-opt-2-optimi.patch"
88 - popd >/dev/null || die
89 -
90 - distutils-r1_src_prepare
91 -}
92 -
93 -python_test() {
94 - local -x SETUPTOOLS_USE_DISTUTILS=stdlib
95 -
96 - # keep in sync with python_gen_cond_dep above!
97 - has "${EPYTHON}" python3.{8..10} pypy3 || continue
98 -
99 - local EPYTEST_DESELECT=(
100 - # network
101 - setuptools/tests/integration/test_pip_install_sdist.py::test_install_sdist
102 - setuptools/tests/test_distutils_adoption.py
103 - setuptools/tests/test_virtualenv.py::test_clean_env_install
104 - setuptools/tests/test_virtualenv.py::test_no_missing_dependencies
105 - 'setuptools/tests/test_virtualenv.py::test_pip_upgrade_from_source[None]'
106 - setuptools/tests/test_virtualenv.py::test_test_command_install_requirements
107 - # unhappy with pytest-xdist?
108 - setuptools/tests/test_easy_install.py::TestUserInstallTest::test_local_index
109 - # TODO
110 - setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts
111 - setuptools/tests/test_test.py::test_tests_are_run_once
112 - )
113 -
114 - # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
115 - # It tries to sandbox the test in a tempdir
116 - HOME="${PWD}" epytest \
117 - -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" setuptools
118 -}