mirror of
https://gitlab.com/vylion/velascobot.git
synced 2025-04-19 13:36:36 +02:00
Add requirements for easier setup and tox.ini
Signed-off-by: Pablo Iranzo Gómez <Pablo.Iranzo@gmail.com>
This commit is contained in:
parent
950bbfbabd
commit
82e06a1be6
3 changed files with 25 additions and 0 deletions
2
requirements.txt
Normal file
2
requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
python-telegram-bot
|
||||||
|
coloredlogs
|
19
tox.ini
Normal file
19
tox.ini
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
[tox]
|
||||||
|
minversion = 2.0
|
||||||
|
envlist = py3, flake8
|
||||||
|
skipsdist = True
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
basepython = python3
|
||||||
|
passenv = CI TRAVIS TRAVIS_*
|
||||||
|
usedevelop = False
|
||||||
|
deps = -r{toxinidir}/requirements.txt
|
||||||
|
setenv = LANGUAGE=en
|
||||||
|
whitelist_externals = sh
|
||||||
|
commands =
|
||||||
|
/usr/bin/find . -type f -name "*.pyc" -delete
|
||||||
|
ostestr {posargs}
|
||||||
|
|
||||||
|
[testenv:velasco]
|
||||||
|
commands = ./velasco.sh
|
||||||
|
|
4
velasco.sh
Executable file
4
velasco.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
[ -f .token] && . .token || echo "Configure token in .token as 'export TOKEN=...'" && exit 1
|
||||||
|
[ -f .uid ] && . .uid || echo "Configure UID in .uid as 'export UID=...'" && exit 1
|
||||||
|
python velasco.py ${TOKEN} ${UID} | tee -a velasco.log
|
Loading…
Reference in a new issue