refactor: remove support scripts, use pipx instead
Some checks failed
/ sast (push) Failing after 4s

This commit is contained in:
Marc 2024-07-26 20:27:29 -04:00
parent 932ddff4e2
commit d08590645b
Signed by: marc
GPG key ID: 048E042F22B5DC79
6 changed files with 8 additions and 62 deletions

View file

@ -4,8 +4,7 @@ _Utilities to manage the machine Spadinastan runs on._
## Setup ## Setup
Python dependencies associated with the scripts can be installed via `./bootstrap.sh`, which provides a venv to run the Scripts present in this repository are meant to be run via `pipx`.
scripts in.
## Usage ## Usage

View file

@ -7,6 +7,13 @@ S3 and to a local path.
Usage: python <path>/backup-podman-volumes.py <config-path> Usage: python <path>/backup-podman-volumes.py <config-path>
""" """
# /// script
# dependencies = [
# "pydantic",
# "boto3"
# ]
# ///
import subprocess import subprocess
import json import json
import sys import sys

View file

@ -1,15 +0,0 @@
#!/bin/bash
python -m venv scripts.venv
. scripts.venv/bin/activate
python -m pip install pip~=24.0 pip-tools~=7.4
if [[ ! -f requirements.txt ]]; then
touch requirements.txt
fi
pip-sync requirements.txt
pip install -e .

View file

@ -1,3 +0,0 @@
#!/bin/bash
pip-compile -o requirements.txt pyproject.toml

View file

@ -1,8 +0,0 @@
[project]
name = "scripts"
version = "0"
dependencies = [
"boto3",
"pydantic",
]
requires-python = "~= 3.12"

View file

@ -1,34 +0,0 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --output-file=requirements.txt pyproject.toml
#
annotated-types==0.7.0
# via pydantic
boto3==1.34.140
# via scripts (pyproject.toml)
botocore==1.34.140
# via
# boto3
# s3transfer
jmespath==1.0.1
# via
# boto3
# botocore
pydantic==2.8.2
# via scripts (pyproject.toml)
pydantic-core==2.20.1
# via pydantic
python-dateutil==2.9.0.post0
# via botocore
s3transfer==0.10.2
# via boto3
six==1.16.0
# via python-dateutil
typing-extensions==4.12.2
# via
# pydantic
# pydantic-core
urllib3==2.2.2
# via botocore