From 12434f7c27764c955f21d9a570877be64ba54a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 23 Nov 2023 17:03:04 +0100 Subject: [PATCH] Move files into src folder --- .gitignore | 4 ++-- hanabi | 1 - main.py | 10 +++++----- src/__init__.py | 0 config.py => src/config.py | 0 constants.py => src/constants.py | 0 database.py => src/database.py | 0 fetch_games.py => src/fetch_games.py | 0 games_db_interface.py => src/games_db_interface.py | 0 src/hanabi | 1 + log_setup.py => src/log_setup.py | 0 ratings.py => src/ratings.py | 0 utils.py => src/utils.py | 0 13 files changed, 8 insertions(+), 8 deletions(-) delete mode 120000 hanabi create mode 100644 src/__init__.py rename config.py => src/config.py (100%) rename constants.py => src/constants.py (100%) rename database.py => src/database.py (100%) rename fetch_games.py => src/fetch_games.py (100%) rename games_db_interface.py => src/games_db_interface.py (100%) create mode 120000 src/hanabi rename log_setup.py => src/log_setup.py (100%) rename ratings.py => src/ratings.py (100%) rename utils.py => src/utils.py (100%) diff --git a/.gitignore b/.gitignore index 1012581..db00cc2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /venv/ -/__pycache__/ -/test.py +src/__pycache__/ +src/test.py diff --git a/hanabi b/hanabi deleted file mode 120000 index ecc6f4a..0000000 --- a/hanabi +++ /dev/null @@ -1 +0,0 @@ -deps/py-hanabi/src/hanabi \ No newline at end of file diff --git a/main.py b/main.py index 0c40c39..ec1382b 100644 --- a/main.py +++ b/main.py @@ -3,12 +3,12 @@ import datetime import verboselogs -import config -import constants -import database -import log_setup +import src.config as config +import src.constants as constants +import src.database as database +import src.log_setup as log_setup -from log_setup import logger +from src.log_setup import logger def subcommand_init(force: bool, fetch_variants: bool): diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/config.py b/src/config.py similarity index 100% rename from config.py rename to src/config.py diff --git a/constants.py b/src/constants.py similarity index 100% rename from constants.py rename to src/constants.py diff --git a/database.py b/src/database.py similarity index 100% rename from database.py rename to src/database.py diff --git a/fetch_games.py b/src/fetch_games.py similarity index 100% rename from fetch_games.py rename to src/fetch_games.py diff --git a/games_db_interface.py b/src/games_db_interface.py similarity index 100% rename from games_db_interface.py rename to src/games_db_interface.py diff --git a/src/hanabi b/src/hanabi new file mode 120000 index 0000000..20c175c --- /dev/null +++ b/src/hanabi @@ -0,0 +1 @@ +../deps/py-hanabi/src/hanabi \ No newline at end of file diff --git a/log_setup.py b/src/log_setup.py similarity index 100% rename from log_setup.py rename to src/log_setup.py diff --git a/ratings.py b/src/ratings.py similarity index 100% rename from ratings.py rename to src/ratings.py diff --git a/utils.py b/src/utils.py similarity index 100% rename from utils.py rename to src/utils.py