-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update config and requirements - remove unused functions in bash utils - remove unused files
- Loading branch information
1 parent
e865470
commit 7008a89
Showing
12 changed files
with
82 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
default: help | ||
|
||
all : help install_venv clean_venv test start_main start_dev_mode_main | ||
.PHONY : all | ||
|
||
help: # show help for each of the makefile recipes | ||
@grep -E '^[a-zA-Z0-9 -_]+:.*#' Makefile | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done | ||
|
||
install_venv: # install python virtual environment and requirements in it | ||
test -d venv || python3 -m venv venv | ||
. venv/bin/activate; pip install -Ur requirements.txt | ||
|
||
clean_venv: # clean python virtual environment and requirements in it | ||
rm -rf venv | ||
|
||
test: # test cyberdBot | ||
. venv/bin/activate; python3 -m pytest -s -v *.py src/*.py | ||
|
||
start_main: # start main bot | ||
. venv/bin/activate; python3 main.py | ||
|
||
start_dev_mode_main: export VALIDATOR_QUERY=cat\ .\/tests\/validators_query_test | ||
start_dev_mode_main: # start main bot in development mode for easy bot stop | ||
. venv/bin/activate; python3 main.py --dev_mode | ||
|
||
start_scheduler: # start scheduler | ||
. venv/bin/activate; python3 monitoring_scheduler.py | ||
|
||
start_dev_mode_scheduler: export VALIDATOR_QUERY=cat\ .\/tests\/validators_query_test | ||
start_dev_mode_scheduler: # start scheduler in development mode for easy bot stop | ||
. venv/bin/activate; python3 monitoring_scheduler.py --dev_mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
pytelegrambotapi | ||
cyberpy~=1.0.5 | ||
pandas~=1.1.4 | ||
pysqlite3 | ||
requests~=2.25.1 | ||
pytelegrambotapi~=4.14.0 | ||
cyberpy~=1.0.9 | ||
cyberutils~=0.0.5 | ||
pandas~=1.3.5 | ||
pysqlite3~=0.4.8 | ||
requests~=2.28.2 | ||
gql[all]~=3.0.0a5 | ||
python-dotenv~=0.17.1 | ||
cachetools~=4.2.1 | ||
numpy~=1.19.4 | ||
python-dotenv~=0.21.1 | ||
cachetools~=4.2.4 | ||
numpy~=1.22.4 | ||
pytest~=7.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.