dev-python/conda: bump to 23.11.0, drop 4.14
This commit is contained in:
1 parent
aa449a9f49
commit
a6e153f2f7
7 files changed
+42
-61
No files matched your search
@@ -1 +1 @@
|
||||
DIST conda-23.1.0.tar.gz 21828188 BLAKE2B 7a16d616de5448112e6cc1a04df463762fdc630e432266edfb9c6890973380fd285ac577ecf95a2dc59bb03a671e827fbaa87653c3a0e8c90ed2df256a2a107a SHA512 43a9786efbee9d1de9f7b19b852a34d6bf120e3e93adf13ac67094b0f53b608fc52fd7d98c478af5e8d679d62bdd7acd339b07f0344b15507554c98eea86caff
|
||||
DIST conda-23.11.0.tar.gz 22044851 BLAKE2B 9928042a170d25341da4a6ece74ef23e0d8884377607431f013c4ded3f3c3419f607ae7afe76002e5ccc49f59a7694d58bb43058defc0a9e5e82f1a14bdd8b1a SHA512 3afdf42434d1314b15270330db54e52d2989861cd7e583e4aae9baaca51885f52b000cbbb28fd72519296a36c9bfc5588eec173ce0def7f843170fcf6ef4eca5
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -13,26 +14,37 @@ SRC_URI="https://github.com/conda/conda/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="dev-vcs/git
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/archspec[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pluggy[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
||||
dev-python/toolz[${PYTHON_USEDEP}]
|
||||
dev-python/tqdm[${PYTHON_USEDEP}]
|
||||
dev-python/truststore[${PYTHON_USEDEP}]
|
||||
dev-python/jsonpatch[${PYTHON_USEDEP}]
|
||||
dev-python/conda-package-handling[${PYTHON_USEDEP}]
|
||||
dev-python/conda-package-streaming[${PYTHON_USEDEP}]
|
||||
dev-python/pycosat[${PYTHON_USEDEP}]"
|
||||
pycosat? ( dev-python/pycosat[${PYTHON_USEDEP}] )')
|
||||
mamba? ( dev-python/conda-libmamba-solver[${PYTHON_SINGLE_USEDEP}] )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
IUSE="+user"
|
||||
IUSE="+user +mamba pycosat"
|
||||
REQUIRED_USE="|| ( mamba pycosat )"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/conda-23.11.0-remove-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
echo ${PV} > conda/.version || die
|
||||
sed -i "s/deprecated.topic(\"24.3\", \"24.9\")//g" conda/shell/bin/conda || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
@@ -46,9 +58,14 @@ python_install() {
|
||||
|
||||
python_install_all() {
|
||||
if use user ; then
|
||||
insinto /etc/conda
|
||||
doins "${FILESDIR}/condarc"
|
||||
echo "$(cat "${FILESDIR}/condarc.user")" >> "${T}/condarc" || die
|
||||
fi
|
||||
# conda use libmamba as default solver
|
||||
if ! use mamba; then
|
||||
echo "$(cat "${FILESDIR}/condarc.classic")" >> "${T}/condarc" || die
|
||||
fi
|
||||
insinto /etc/conda
|
||||
doins "${T}/condarc"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="OS-agnostic, system-level binary package manager and ecosystem"
|
||||
HOMEPAGE="https://conda.io/"
|
||||
SRC_URI="https://github.com/conda/conda/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
|
||||
DEPEND="dev-vcs/git
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
||||
dev-python/conda-package-handling[${PYTHON_USEDEP}]
|
||||
dev-python/pycosat[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
IUSE="+user"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
echo ${PV} > conda/.version || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
rm "${ED}/usr/bin/conda" || die
|
||||
cp "${S}/conda/shell/bin/conda" "${ED}/usr/bin/conda" || die
|
||||
# no need for Python Byte compiling and multi python slot, please do not use python_doscript
|
||||
# this ebuild just use one stable python target
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use user ; then
|
||||
insinto /etc/conda
|
||||
doins "${FILESDIR}/condarc"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Initialize conda for shell interaction, "
|
||||
elog "run 'conda init shells' "
|
||||
elog "Currently compatible shells are {bash, fish, powershell, tcsh, xonsh, zsh}"
|
||||
elog "base environment is managed by portage, do not use conda in base env!"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index 1c599e6..0f32757 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -67,6 +67,10 @@ include = ["conda", "conda_env"]
|
||||
[tool.hatch.build.hooks.vcs]
|
||||
version-file = "conda/__version__.py"
|
||||
|
||||
+[tool.hatch.build.targets.wheel]
|
||||
+packages = ["conda"]
|
||||
+exclude = ["conda/tests"]
|
||||
+
|
||||
[tool.coverage.run]
|
||||
# store relative paths in coverage information
|
||||
relative_files = true
|
||||
@@ -0,0 +1 @@
|
||||
solver: classic
|
||||
File renamed without changes.
@@ -10,5 +10,7 @@
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="user">use user's home directory as default pkgs and envs prefix</flag>
|
||||
<flag name="pycosat">enable pycosat resolver</flag>
|
||||
<flag name="mamba">enable libmamba resolver</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Reference in new issue
Block a user