Merge master #5

Merged
bom merged 2 commits from master into main 2024-02-16 09:04:52 +00:00
Showing only changes of commit 33b38081d2 - Show all commits

View file

@ -15,6 +15,7 @@ fun Prov.provisionPython(venvHome: String? = "~/.venv/meissa") = task {
installJupyterlab(venvHome) installJupyterlab(venvHome)
installLinters(venvHome) installLinters(venvHome)
installAsciinema(venvHome) installAsciinema(venvHome)
installPyTest(venvHome)
} }
fun Prov.installPython3(): ProvResult = task { fun Prov.installPython3(): ProvResult = task {
@ -50,6 +51,10 @@ fun Prov.installAsciinema(venvHome: String? = null): ProvResult = task {
pipInstall("asciinema", venvHome) pipInstall("asciinema", venvHome)
} }
fun Prov.installPyTest(venvHome: String? = null): ProvResult = task {
pipInstall("pytest", venvHome)
}
private fun Prov.pipInstall(pkg: String, venvHome: String? = null) { private fun Prov.pipInstall(pkg: String, venvHome: String? = null) {
cmd(activateVenvCommandPrefix(venvHome) + "pip3 install $pkg") cmd(activateVenvCommandPrefix(venvHome) + "pip3 install $pkg")
} }