]> xn--ix-yja.es Git - alex.git/commitdiff
Clean up
authoralex <alex@pdp7.net>
Sun, 7 Sep 2025 15:11:56 +0000 (17:11 +0200)
committeralexpdp7 <alex@corcoles.net>
Sun, 7 Sep 2025 15:12:46 +0000 (17:12 +0200)
* Remove now-unused distrobox
* Make homogenous use of setup-*

scripts/p7s/distrobox.py [deleted file]
scripts/pyproject.toml

diff --git a/scripts/p7s/distrobox.py b/scripts/p7s/distrobox.py
deleted file mode 100644 (file)
index 787f05e..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-import os
-import subprocess
-
-
-IMAGE="quay.io/alexpdp7/workstation:latest"
-NAME="workstation-latest"
-
-
-def create():
-    subprocess.run(["distrobox", "create", "-i", IMAGE], check=True)
-
-
-def enter():
-    os.execvp("distrobox", ["distrobox", "enter", NAME])
-
-
-def update():
-    print("If this fails on ws, systemctl --user stop soju bitlbee // systemctl --user start soju bitlbee")
-    subprocess.run(["distrobox", "rm", "-f", NAME], check=True)
-    subprocess.run(["podman", "rmi", IMAGE], check=True)
-    subprocess.run(["podman", "pull", IMAGE], check=True)
-    subprocess.run(["distrobox", "create", "-i", IMAGE], check=True)
index 0ebf657376af048e0ac4a807f55d379c151818a7..7a45f4e67f0987f8f8eba3fe9f3e5f5d9e90e6d0 100644 (file)
@@ -13,20 +13,16 @@ httpx = "^0.28.1"
 requires = ["poetry-core"]
 build-backend = "poetry.core.masonry.api"
 
-
 [tool.poetry.scripts]
 ruscreen = 'p7s.ruscreen:main'
-mbsync_config = 'p7s.mail:generate_config'
-db-create = 'p7s.distrobox:create'
-db-enter = 'p7s.distrobox:enter'
-db-update = 'p7s.distrobox:update'
-nextcloud_setup = 'p7s.nextcloud:setup_nextcloud'
-soju_setup = 'p7s.soju:setup_soju'
-bitlbee_setup = 'p7s.bitlbee:setup_bitlbee'
-setup_bash = 'p7s.bash:setup_bash'
-setup_emacs = 'p7s.emacs:setup_emacs'
-setup_ubpkg = 'p7s.ubpkg:setup_ubpkg'
-setup_paperwm = 'p7s.paperwm:setup_paperwm'
-setup_x12 = 'p7s.x12:setup_x12'
+setup-bash = 'p7s.bash:setup_bash'
+setup-bitlbee = 'p7s.bitlbee:setup_bitlbee'
+setup-emacs = 'p7s.emacs:setup_emacs'
+setup-mbsync = 'p7s.mail:setup_mbsync'
+setup-nextcloud = 'p7s.nextcloud:setup_nextcloud'
+setup-paperwm = 'p7s.paperwm:setup_paperwm'
+setup-soju = 'p7s.soju:setup_soju'
+setup-ubpkg = 'p7s.ubpkg:setup_ubpkg'
+setup-x12 = 'p7s.x12:setup_x12'
 senpai = 'p7s.senpai:main'
 ledger = 'p7s.ledger:main'