Compare commits

..

No commits in common. "37e6767612930c6bf93b4b8aadaabae69bcf42a5" and "cd1a7810a490aeea32a86eb2dcebf7bdb0ea9f9b" have entirely different histories.

2 changed files with 28 additions and 30 deletions

View file

@ -69,45 +69,44 @@ from various contexts of CA, CI and OCI / OS.
### Latest ### Latest
| os | https | updt-ca | python | graphviz | plantuml | shellcheck | shunit | shfmt | | os | https | updt-ca | python | graphviz | plantuml | shellcheck | shfmt | shunit |
|:----------------|---|---|------------:|------:|-----------:|------:|------:|-----:| |:----------------|---|---|------------:|------:|-----------:|------:|-----:|------:|
| Arch 20240818 | ☑ | ☑ | 3.12 | 12.0 | 1.2023.13 | 0.10 | 2.1.8 | 3.8 | | Arch 20240818 | ☑ | ☑ | 3.12 | 12.0 | 1.2023.13 | 0.10 | 3.8 | 2.1.8 |
| Alpine 3.20 | ☑ | ☐ | 3.12 | 9.0 | 1.2024.4 | 0.10 | 2.1.8 | 3.8 | | Alpine 3.20 | ☑ | ☐ | 3.12 | 9.0 | 1.2024.4 | 0.10 | 3.8 | 2.1.8 |
| Fedora 40 | ☑ | ☑ | 3.12 → 3.13 | 9.0 | 1.2024.6 | 0.9 | 2.1.6 | 3.7 | | Fedora 40 | ☑ | ☑ | 3.12 → 3.13 | 9.0 | 1.2024.6 | 0.9 | 3.7 | 2.1.6 |
| Debian Bookworm | ☐ | ☐ | 3.11 | 2.42 | 1.2020.2 | 0.9 | 2.1.8 | 3.6 | | Debian Bookworm | ☐ | ☐ | 3.11 | 2.42 | 1.2020.2 | 0.9 | 3.6 | 2.1.8 |
| OpenSUSE 15.6 | ☐ | ☑ | 3.6 → 3.12 | 2.48 | 1.2020.9 | 0.8 | 2.1.6 | 3.5 | | OpenSUSE 15.6 | ☐ | ☑ | 3.6 → 3.12 | 2.48 | 1.2020.9 | 0.8 | 3.5 | 2.1.6 |
| Ubuntu Noble | ☐ | ☐ | 3.12 | u2.42 | u1.2020.2 | u0.9 | 2.1.8 | u3.8 | | Ubuntu Noble | ☐ | ☐ | 3.12 | u2.42 | u1.2020.2 | u0.9 | u3.8 | 2.1.8 |
| Alma / Rocky 9 | ☑ | ☑ | 3.9 → 3.12 | 2.44 | e1.2024.6 | e0.8 | git | | | Alma / Rocky 9 | ☑ | ☑ | 3.9 → 3.12 | 2.44 | e1.2024.6 | e0.8 | | |
### Previous ### Previous
| os | https | updt-ca | python | graphviz | plantuml | shellcheck | shunit | shfmt | | os | https | updt-ca | python | graphviz | plantuml | shellcheck | shfmt | shunit |
|:----------------|---|---|------------:|------:|-----------:|------:|------:|-----:| |:----------------|---|---|------------:|------:|-----------:|------:|-----:|------:|
| Alpine 3.19 | ☑ | ☐ | 3.11 | 9.0 | 1.2023.12 | 0.9 | 2.1.8 | 3.7 | | Alpine 3.19 | ☑ | ☐ | 3.11 | 9.0 | 1.2023.12 | 0.9 | 3.7 | 2.1.8 |
| Fedora 39 | ☑ | ☑ | 3.12 → 3.13 | 8.1 | 1.2024.6 | 0.9 | 2.1.6 | 3.5 | | Fedora 39 | ☑ | ☑ | 3.12 → 3.13 | 8.1 | 1.2024.6 | 0.9 | 3.5 | 2.1.6 |
| OpenSUSE 15.5 | ☐ | ☑ | 3.6 → 3.11 | 2.48 | 1.2020.9 | 0.8 | 2.1.6 | 3.5 | | OpenSUSE 15.5 | ☐ | ☑ | 3.6 → 3.11 | 2.48 | 1.2020.9 | 0.8 | 3.5 | 2.1.6 |
| Alma / Rocky 8 | ☑ | ☑ | 3.6 → 3.12 | 2.40 | e1.2024.6 | e0.6 | git | | | Alma / Rocky 8 | ☑ | ☑ | 3.6 → 3.12 | 2.40 | e1.2024.6 | e0.6 | | |
### Older Python ### Older Python
| os | https | updt-ca | python | graphviz | plantuml | shellcheck | shunit | shfmt | | os | https | updt-ca | python | graphviz | plantuml | shellcheck | shfmt | shunit |
|:----------------|---|---|------------:|------:|-----------:|------:|------:|-----:| |:----------------|---|---|------------:|------:|-----------:|------:|-----:|------:|
| Ubuntu Jammy | ☐ | ☐ | 3.10 | u2.42 | u1.2020.2 | u0.8 | 2.1.6 | u3.4 | | Ubuntu Jammy | ☐ | ☐ | 3.10 | u2.42 | u1.2020.2 | u0.8 | u3.4 | 2.1.6 |
| Debian Bullseye | ☐ | ☐ | 3.9 | 2.42 | 1.2020.2 | 0.7 | 2.1.6 | | | Debian Bullseye | ☐ | ☐ | 3.9 | 2.42 | 1.2020.2 | 0.7 | | 2.1.6 |
## Tasks ## Tasks
* try git repo url variable first for shunit * try git repo url variable first for shunit
* turn readme into documentation
### sh ### sh
* fit banner to text * implement substeps
* review repositories handling for systems * review repositories handling for systems
* opensuse * opensuse
* codecs repository * codecs repository
* disable & enable https * disable & enable https
* write unit tests * write tests
### sh → py ### sh → py
@ -116,11 +115,11 @@ from various contexts of CA, CI and OCI / OS.
* epel * epel
* plantuml * plantuml
* shellcheck * shellcheck
* shunit | bats
* graphviz * graphviz
* openssh * openssh
* rsync * rsync
* shfmt * shfmt
* shunit
* python virtual environment * python virtual environment
* install system package * install system package
* configure pip * configure pip
@ -136,10 +135,9 @@ from various contexts of CA, CI and OCI / OS.
* .sh * .sh
* maximum line length * maximum line length
* detect ssh private key type * detect ssh private key type
* fit banner to text
* implement substeps * implement substeps
* list sys.path * list sys.path
* set workflow templates * set workflow templates
* actions * actions
* includes * includes
* write unit tests * write tests

10
spcd.sh
View file

@ -669,24 +669,24 @@ spcd_install_git() {
spcd_install_python() { spcd_install_python() {
spcd_step "Install Python" spcd_step "Install Python"
spcd_install_package "${SPCD_PYTHON_PACKAGE}" spcd_install_package "${SPCD_PYTHON_PACKAGE}"
spcd_substep "Link alias to command" spcd_split
spcd_ln_python "${SPCD_PYTHON_COMMAND}" spcd_ln_python "${SPCD_PYTHON_COMMAND}"
# venv # venv
spcd_substep "Install virtual environment" spcd_step "Install Python virtual environment"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}") "${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
spcd_install_package "python3-venv" spcd_install_package "python3-venv"
;; ;;
*) ;; *) ;;
esac esac
spcd_substep "Configure PIP" spcd_split
spcd_write "/etc/pip.conf" "\ spcd_write "/etc/pip.conf" "\
[global] [global]
index-url = ${SPCD_URL_PYTHON} index-url = ${SPCD_URL_PYTHON}
" "
spcd_substep "Create virtual environment" spcd_split
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}" "${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}"
spcd_substep "Activate virtual environment" spcd_split
export PATH="${SPCD_PYTHON_VENV_BINARIES}:${PATH}" export PATH="${SPCD_PYTHON_VENV_BINARIES}:${PATH}"
export VIRTUAL_ENV="${SPCD_PYTHON_VENV}" export VIRTUAL_ENV="${SPCD_PYTHON_VENV}"
} }