From 4ab46ee2fca060438fe6d8f1271bc4e802431055 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Sun, 6 Oct 2024 21:50:00 -0400 Subject: [PATCH] Restructure project layout and update references --- .gitignore | 3 +++ pyproject.toml | 4 ++++ tarch => tarc.sh | 2 +- tarc/__init__.py | 0 main.py => tarc/main.py | 2 +- 5 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 pyproject.toml rename tarch => tarc.sh (94%) create mode 100644 tarc/__init__.py rename main.py => tarc/main.py (99%) diff --git a/.gitignore b/.gitignore index 43f6a3c..13ac348 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ config.ini *.db +dist/ +*.egg-info/ +*/__pycache__/* venv diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..68dceb1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,4 @@ +[project] +name = "tarc" +version = "0.0.1dev2" +description = "Manage BT archives" diff --git a/tarch b/tarc.sh similarity index 94% rename from tarch rename to tarc.sh index 3229f04..7a9e6e3 100755 --- a/tarch +++ b/tarc.sh @@ -14,7 +14,7 @@ fi source venv/bin/activate # Run the Python script -python main.py "$@" +python tarc/main.py "$@" # Deactivate the virtual environment deactivate diff --git a/tarc/__init__.py b/tarc/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/tarc/main.py similarity index 99% rename from main.py rename to tarc/main.py index 6fa0a84..a24e381 100644 --- a/main.py +++ b/tarc/main.py @@ -154,7 +154,7 @@ def list_clients(conn): return rows -parser = argparse.ArgumentParser(description="Manage BitTorrent datasets", prog="tarch") +parser = argparse.ArgumentParser(description="Manage BT archives", prog="tarc") subparsers = parser.add_subparsers( dest="command", required=True, help="Available commands" )