1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-12 21:40:41 +00:00
AdvLabDB/advlabdb/scripts/maintain/user_update.py

24 lines
489 B
Python
Raw Normal View History

2022-05-08 19:26:25 +00:00
from ..setup.shared import LOCAL_BIN, install_latest_pipx, poetry_update
from ..terminal_utils import box, run
from .shared import show_update_datetime
2022-05-08 15:29:45 +00:00
def main():
show_update_datetime()
box("Upgrade pipx")
install_latest_pipx()
box("Upgrade pipx packages")
pipx_bin = LOCAL_BIN / "pipx"
run(f"{pipx_bin} upgrade-all --include-injected")
# TODO: Backup
box("Install latest Poetry packages")
poetry_update()
if __name__ == "__main__":
main()