The bot for Almaren
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. .POSIX:
  2. PIP=pip3
  3. VENV=python3 -m virtualenv
  4. venv_dir=venv
  5. test:
  6. . $(venv_dir)/bin/activate; \
  7. cd almaren_bot; python3 -m pytest $(TEST_ARGS) ../; \
  8. deactivate;
  9. create_dev:
  10. $(VENV) -p python3 $(venv_dir); \
  11. . $(venv_dir)/bin/activate; \
  12. $(PIP) install `cat *.txt`; \
  13. deactivate;
  14. create_prod:
  15. $(VENV) -p python3 $(venv_dir); \
  16. . $(venv_dir)/bin/activate; \
  17. $(PIP) install `cat requirements.txt`; \
  18. deactivate;
  19. cleanup_env:
  20. . $(venv_dir)/bin/activate;\
  21. $(PIP) uninstall `cat *.txt`;\
  22. deactivate; \
  23. rm -rf $(venv_dir);