From 14938d8fb5a6a304c75bc9727a56dd87a2305318 Mon Sep 17 00:00:00 2001 From: krateng Date: Tue, 21 Dec 2021 21:33:03 +0100 Subject: [PATCH] Added simpler way to run server for development --- DEVELOPMENT.md | 7 +++++-- maloja/__main__.py | 2 ++ maloja/proccontrol/__main__.py | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 maloja/__main__.py create mode 100644 maloja/proccontrol/__main__.py diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 0ac22fd..d00e038 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -1,13 +1,16 @@ # Basic Development Instructions +> To avoid cluttering your system, you might want to use a [virtual environment](https://docs.python.org/3/tutorial/venv.html). + After you've cloned the repository, traverse into the `maloja` folder with `cd maloja`. Make sure all dependencies are installed. -Your system needs a few packages, on Alpine Linux these should all be installed with `sh install_alpine.sh`. +Your system needs a few packages, on Alpine Linux these can all be installed with `sh install_alpine.sh`. +For other distros, try to find the equivalents of the packages listed there or simply check your error output. Python dependencies can be installed with `pip install -r requirements.txt` ## Running the server -You can quickly run the server with all your local changes with `python3 -m maloja.proccontrol.control run`. +You can quickly run the server with all your local changes with `python3 -m maloja run`. You can also build the package with `pip install .`. diff --git a/maloja/__main__.py b/maloja/__main__.py new file mode 100644 index 0000000..e948dcb --- /dev/null +++ b/maloja/__main__.py @@ -0,0 +1,2 @@ +from .proccontrol.control import main +main() diff --git a/maloja/proccontrol/__main__.py b/maloja/proccontrol/__main__.py new file mode 100644 index 0000000..7c2115d --- /dev/null +++ b/maloja/proccontrol/__main__.py @@ -0,0 +1,2 @@ +from .control import main +main()