Compare commits
No commits in common. "8e58d45e10a331231860cd502c3951c82c58f0aa" and "b3f4cffbca88c4430c5a780577a6b936f5c3c9e2" have entirely different histories.
8e58d45e10
...
b3f4cffbca
9 changed files with 1250 additions and 1268 deletions
3
.editorconfig
Normal file
3
.editorconfig
Normal file
|
@ -0,0 +1,3 @@
|
|||
[*.sh]
|
||||
indent_size = 4
|
||||
indent_style = space
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
__pycache__
|
||||
/dist
|
||||
/.venv
|
||||
|
|
|
@ -291,4 +291,3 @@ Handle project workflows in a unified way:
|
|||
* tex
|
||||
* translate to french
|
||||
* try to support nix
|
||||
* uv
|
||||
|
|
54
spcd.sh
54
spcd.sh
|
@ -1,30 +1,30 @@
|
|||
#! /usr/bin/env sh
|
||||
|
||||
gource \
|
||||
--auto-skip-seconds 0.25 \
|
||||
--date-format "%Y / %m / %d ⋅ %H : %M : %S" \
|
||||
--disable-input \
|
||||
--font-scale 2.5 \
|
||||
--frameless \
|
||||
--hide mouse,usernames \
|
||||
--highlight-dirs \
|
||||
--key \
|
||||
--multi-sampling \
|
||||
--output-framerate 60 \
|
||||
--output-ppm-stream - \
|
||||
--seconds-per-day 0.6 \
|
||||
--stop-at-end \
|
||||
--viewport "1920x1080" |
|
||||
ffmpeg \
|
||||
-codec:v ppm \
|
||||
-format image2pipe \
|
||||
-framerate 120 \
|
||||
-i - \
|
||||
-codec:v libx264 \
|
||||
-preset veryslow \
|
||||
-qp 28 \
|
||||
-movflags \
|
||||
+faststart \
|
||||
-pix_fmt yuv420p \
|
||||
-y \
|
||||
spcd.mp4
|
||||
--auto-skip-seconds 0.25 \
|
||||
--date-format "%Y / %m / %d ⋅ %H : %M : %S" \
|
||||
--disable-input \
|
||||
--font-scale 2.5 \
|
||||
--frameless \
|
||||
--hide mouse,usernames \
|
||||
--highlight-dirs \
|
||||
--key \
|
||||
--multi-sampling \
|
||||
--output-framerate 60 \
|
||||
--output-ppm-stream - \
|
||||
--seconds-per-day 0.6 \
|
||||
--stop-at-end \
|
||||
--viewport "1920x1080" |
|
||||
ffmpeg \
|
||||
-codec:v ppm \
|
||||
-format image2pipe \
|
||||
-framerate 120 \
|
||||
-i - \
|
||||
-codec:v libx264 \
|
||||
-preset veryslow \
|
||||
-qp 28 \
|
||||
-movflags \
|
||||
+faststart \
|
||||
-pix_fmt yuv420p \
|
||||
-y \
|
||||
spcd.mp4
|
||||
|
|
|
@ -44,12 +44,8 @@ def clone_project_branch() -> None:
|
|||
)
|
||||
|
||||
|
||||
def install_commands(path: Path) -> None:
|
||||
"""Make commands callable in the operating system.
|
||||
|
||||
:param path: entry point that commands will call
|
||||
:type path: Path
|
||||
"""
|
||||
def install_commands(path: str) -> None:
|
||||
"""Make commands callable in the operating system."""
|
||||
step("Install commands")
|
||||
user = Path("/usr/local/bin")
|
||||
for command in [
|
||||
|
@ -76,12 +72,10 @@ def install_python_packages() -> None:
|
|||
"pydoclint",
|
||||
"pylint",
|
||||
"pytest",
|
||||
"PyYAML",
|
||||
"ruff",
|
||||
"Sphinx",
|
||||
"sphinx",
|
||||
"sphinx-rtd-theme",
|
||||
"twine",
|
||||
"types-PyYAML",
|
||||
]
|
||||
for package in packages:
|
||||
log.info(package)
|
||||
|
@ -98,12 +92,8 @@ def list_environment_variables() -> None:
|
|||
log.info("%s", variable)
|
||||
|
||||
|
||||
def main(main_file: Path) -> None:
|
||||
"""Entry point to initialize environment or run a specific command.
|
||||
|
||||
:param main_file: entry point file calling this function
|
||||
:type main_file: Path
|
||||
"""
|
||||
def main(main_file: str) -> None:
|
||||
"""Entry point to initialize environment or run a specific command."""
|
||||
paths = environ["PATH"].split(pathsep)
|
||||
if env.SPCD_PYTHON_VENV_BINARIES not in paths:
|
||||
environ["PATH"] = pathsep.join([env.SPCD_PYTHON_VENV_BINARIES, *paths])
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
import importlib
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
if __name__ == "__main__":
|
||||
env = importlib.import_module("env")
|
||||
|
@ -12,4 +11,4 @@ if __name__ == "__main__":
|
|||
sys.path.insert(0, env.SPCD_PYTHON_VENV_PACKAGES)
|
||||
from spcd import main
|
||||
|
||||
main(Path(__file__))
|
||||
main(__file__)
|
||||
|
|
2422
spcd/bootstrap.sh
2422
spcd/bootstrap.sh
File diff suppressed because it is too large
Load diff
|
@ -32,13 +32,7 @@ def spcd_check_project() -> None:
|
|||
def spcd_synchronize(
|
||||
target: str | None = None, source: str | None = None
|
||||
) -> None:
|
||||
"""Synchronize output towards a target.
|
||||
|
||||
:param target: where to deploy to
|
||||
:type target: str | None
|
||||
:param source: where to deploy from
|
||||
:type source: str | None
|
||||
"""
|
||||
"""Synchronize output towards a target."""
|
||||
if not target:
|
||||
user = "cd"
|
||||
host = env.SPCD_PROJECT_PATH
|
||||
|
|
|
@ -28,11 +28,7 @@ class Project:
|
|||
"""Current project."""
|
||||
|
||||
def __init__(self, projects: Projects) -> None:
|
||||
"""Set projects, branch, name, root & url.
|
||||
|
||||
:param projects: parent class with environment
|
||||
:type projects: Projects
|
||||
"""
|
||||
"""Set projects, branch, name, root & url."""
|
||||
self.projects = projects
|
||||
# branch
|
||||
for variable in BRANCH:
|
||||
|
|
Loading…
Reference in a new issue