hatch: generate and bundle completions
This commit is contained in:
parent
7c40407192
commit
b0111e4cc1
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'hatch'
|
# Template file for 'hatch'
|
||||||
pkgname=hatch
|
pkgname=hatch
|
||||||
version=1.5.0
|
version=1.5.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
# ignore backend tests, because updating hatchling when there is no new hatch
|
# ignore backend tests, because updating hatchling when there is no new hatch
|
||||||
# version yet breaks these in hatch.
|
# version yet breaks these in hatch.
|
||||||
@ -9,12 +9,13 @@ make_check_args="--deselect tests/cli/test_root.py::TestFreshInstallation::test_
|
|||||||
--deselect tests/cli/run/test_run.py::test_scripts_no_environment
|
--deselect tests/cli/run/test_run.py::test_scripts_no_environment
|
||||||
--ignore tests/backend
|
--ignore tests/backend
|
||||||
--ignore backend/tests"
|
--ignore backend/tests"
|
||||||
hostmakedepends="hatchling"
|
_deps="python3-click hatchling python3-httpx python3-hyperlink python3-keyring
|
||||||
depends="python3-atomicwrites python3-click hatchling python3-httpx
|
python3-pexpect python3-platformdirs python3-pyperclip python3-rich
|
||||||
python3-keyring python3-pexpect python3-platformdirs python3-pyperclip
|
python3-shellingham python3-tomli-w python3-tomlkit python3-userpath
|
||||||
python3-rich python3-tomli-w python3-tomlkit python3-userpath
|
python3-virtualenv"
|
||||||
python3-virtualenv python3-hyperlink"
|
hostmakedepends="hatchling ${_deps}"
|
||||||
checkdepends="${depends} python3-pytest python3-pytest-mock
|
depends="${_deps}"
|
||||||
|
checkdepends="${_deps} python3-pytest python3-pytest-mock
|
||||||
python3-pytest-xdist git python3-pip"
|
python3-pytest-xdist git python3-pip"
|
||||||
short_desc="Modern, extensible Python project management "
|
short_desc="Modern, extensible Python project management "
|
||||||
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
|
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
|
||||||
@ -27,4 +28,10 @@ make_check_pre="env PYTHONPATH=./src"
|
|||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE.txt
|
vlicense LICENSE.txt
|
||||||
|
|
||||||
|
for shell in zsh bash fish; do
|
||||||
|
PYTHONPATH="${DESTDIR}/${py3_sitelib}" PATH="${DESTDIR}/usr/bin:${PATH}" \
|
||||||
|
_HATCH_COMPLETE="${shell}_source" hatch > "hatch.${shell}"
|
||||||
|
vcompletion "hatch.${shell}" "${shell}"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user