From 4b3e955982a8673aeb042c7827b0ad14e7cd26bb Mon Sep 17 00:00:00 2001 From: muhammadali175302 Date: Sun, 30 Jan 2022 22:26:11 +0500 Subject: [PATCH] Updated To Auto Installers Mode .. --- README.md | 23 ++++++----------------- run.bat | 4 ++++ run.sh | 6 ++++++ 3 files changed, 16 insertions(+), 17 deletions(-) create mode 100644 run.bat create mode 100644 run.sh diff --git a/README.md b/README.md index 6648cac..8d8e800 100644 --- a/README.md +++ b/README.md @@ -8,38 +8,27 @@ As Gateio seems to list many of these coins before Binance does, this exchange i It comes with a live and test mode so naturally, use at your own risk. # HOW TO RUN IT -## 1. Create venv (recommended to use python>=3.8, check with `python --version`) - - python3 -m venv env - -## 2 Activate venv +## Simply Run Linux: - source env/bin/activate + bash run.sh Windows: - env\Scripts\activate.bat - -## 3. Install program requirements - - python -m pip install -r requirements.txt - -This contains the requirements for the program itself. You may now run the script using python main.py. -No additional steps needed for simply running the tool, you may stop here. + ./run.bat -## 4. Install dev requirements +## Install dev requirements python -m pip install -r dev_requirements.txt This is necessary make verifying of the code easier and formats the code automatically to match the coding style. -## 5. Install pre-commit hooks +## Install pre-commit hooks pre-commit install This installs the pre-commit git hooks for the project and makes it possible to run the pre-commit script automatically when committing. -## 6. Run Tests and pre-commit scripts manually +## Run Tests and pre-commit scripts manually ### pre-commit checks To manually run the pre-commit script: diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..96c1005 --- /dev/null +++ b/run.bat @@ -0,0 +1,4 @@ +py -m venv env +call env\Scripts\activate.bat +py -m pip install -r requirements.txt +py main.py \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..e525802 --- /dev/null +++ b/run.sh @@ -0,0 +1,6 @@ +apt update +apt install python3 python3-pip +python3 -m venv env +source env/bin/activate +pip install -r requirements.txt +python3 main.py \ No newline at end of file