| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.16.0 | 8 | ~amd64 | 0 |
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 multiprocessing shell-completion
DESCRIPTION="Save your dotfiles once, deploy them everywhere"
HOMEPAGE="
https://github.com/deadc0de6/dotdrop
https://pypi.org/project/dotdrop/
"
SRC_URI="https://github.com/deadc0de6/dotdrop/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/distro[${PYTHON_USEDEP}]
dev-python/docopt-ng[${PYTHON_USEDEP}]
dev-python/jinja2[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/python-magic[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/tomli-w[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
app-editors/vim-core
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
EPYTEST_XDIST=1
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}"/dotdrop-1.15.0-output-logs-on-error.patch
"${FILESDIR}"/dotdrop-1.15.0-toml-order.patch
)
src_prepare() {
default
# Lets remove the eye candy spinner, we disable it eitherway
sed -i '/from halo/d' tests-ng/tests_launcher.py || die
# directories getting removed on failure doesnt help with debugging.
sed -i '/clear_on_exit/d' tests-ng/*.sh || die
## tests that are too much effort to fix
# long file paths are not expected.
rm tests-ng/import-to-no-profile.sh || die
}
src_install() {
distutils-r1_src_install
doman manpage/dotdrop.1
newbashcomp completion/dotdrop-completion.bash dotdrop
dofishcomp completion/dotdrop.fish
newzshcomp completion/_dotdrop-completion.zsh _dotdrop-completion
}
python_test() {
epytest
# trailing / WILL cause a test failure
local -x DOTDROP_WORKDIR="${T}/dotdrop_workdir" # hardcoded tmp dir outside sandbox otherwise
local -x USER="portage" # tests-ng/actions-args-template.sh: line 56: USER: unbound variable
${EPYTHON} tests-ng/tests_launcher.py -n -p "$(get_makeopts_jobs)" || die
}
dev-python/distro[${PYTHON_USEDEP}]
dev-python/docopt-ng[${PYTHON_USEDEP}]
dev-python/jinja2[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/python-magic[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/tomli-w[${PYTHON_USEDEP}]
test? (
app-editors/vim-core
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | dotdrop-1.16.0.gh.tar.gz | 199578 bytes | https://github.com/deadc0de6/dotdrop/archive/refs/tags/v1.16.0.tar.gz |