Compare commits
6 commits
88f75d8830
...
1e4ad2125e
Author | SHA1 | Date | |
---|---|---|---|
1e4ad2125e | |||
6aeec40503 | |||
bc5bca4ede | |||
fc5b997288 | |||
f990897cad | |||
3f121920fc |
3 changed files with 740 additions and 720 deletions
3
.editorconfig
Normal file
3
.editorconfig
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[*.sh]
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
|
@ -53,6 +53,25 @@ def install_commands(path: str) -> None:
|
||||||
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
|
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
|
||||||
|
|
||||||
|
|
||||||
|
def install_python_packages() -> None:
|
||||||
|
step("Install Python packages")
|
||||||
|
log.info("pip")
|
||||||
|
run("pip", "install", "--upgrade", "pip")
|
||||||
|
split()
|
||||||
|
packages = [
|
||||||
|
"mypy",
|
||||||
|
"pelican",
|
||||||
|
"pytest",
|
||||||
|
"ruff",
|
||||||
|
"sphinx",
|
||||||
|
"sphinx-rtd-theme",
|
||||||
|
"twine",
|
||||||
|
]
|
||||||
|
for package in packages:
|
||||||
|
log.info(package)
|
||||||
|
run("pip", "install", *packages)
|
||||||
|
|
||||||
|
|
||||||
def list_environment_variables() -> None:
|
def list_environment_variables() -> None:
|
||||||
step("List environment variables")
|
step("List environment variables")
|
||||||
for variable, value in sorted(projects.environment.items()):
|
for variable, value in sorted(projects.environment.items()):
|
||||||
|
@ -73,6 +92,7 @@ def main(main: str) -> None:
|
||||||
clone_project_branch()
|
clone_project_branch()
|
||||||
set_ssh()
|
set_ssh()
|
||||||
install_commands(main)
|
install_commands(main)
|
||||||
|
install_python_packages()
|
||||||
else:
|
else:
|
||||||
function = getattr(cmd, name.replace("-", "_"))
|
function = getattr(cmd, name.replace("-", "_"))
|
||||||
function(*arguments)
|
function(*arguments)
|
||||||
|
|
Loading…
Reference in a new issue