tox: Bump our Python versions.

This commit is contained in:
Damir Jelić 2020-12-02 12:43:20 +01:00
parent 726e96944d
commit 5b1e220f5e
3 changed files with 13 additions and 13 deletions

View File

@ -16,14 +16,14 @@ before_install:
matrix: matrix:
include: include:
- python: 3.6 - python: 3.8
env: TOXENV=py36 env: TOXENV=py38
- python: 3.7 - python: 3.9
env: TOXENV=py37 env: TOXENV=py39
- python: 3.7 - python: 3.9
env: TOXENV=coverage env: TOXENV=coverage
install: pip install tox-travis PyGObject dbus-python aioresponses install: pip install tox-travis aioresponses
script: tox script: tox
after_success: after_success:

View File

@ -27,14 +27,14 @@ setup(
"peewee >= 3.13.1", "peewee >= 3.13.1",
"janus >= 0.5", "janus >= 0.5",
"cachetools >= 3.0.0", "cachetools >= 3.0.0",
"prompt_toolkit>2<4", "prompt_toolkit > 2, < 4",
"typing;python_version<'3.5'", "typing;python_version<'3.5'",
"matrix-nio[e2e] >= 0.14, < 0.16" "matrix-nio[e2e] >= 0.14, < 0.16"
], ],
extras_require={ extras_require={
"ui": [ "ui": [
"dbus-python >= 1.2, < 1.3", "dbus-python >= 1.2, < 1.3",
"PyGObject >= 3.36, < 3.37", "PyGObject >= 3.36, < 3.39",
"pydbus >= 0.6, < 0.7", "pydbus >= 0.6, < 0.7",
"notify2 >= 0.3, < 0.4", "notify2 >= 0.3, < 0.4",
] ]

10
tox.ini
View File

@ -1,11 +1,11 @@
# content of: tox.ini , put in same dir as setup.py # content of: tox.ini , put in same dir as setup.py
[tox] [tox]
envlist = py36,py37,coverage envlist = py38,py39,coverage
[testenv] [testenv]
basepython = basepython =
py36: python3.6 py38: python3.8
py37: python3.7 py39: python3.9
py3: python3.7 py3: python3.9
deps = -rtest-requirements.txt deps = -rtest-requirements.txt
install_command = pip install {opts} {packages} install_command = pip install {opts} {packages}
@ -15,7 +15,7 @@ commands = pytest
usedevelop = True usedevelop = True
[testenv:coverage] [testenv:coverage]
basepython = python3.7 basepython = python3.9
commands = commands =
pytest --cov=pantalaimon --cov-report term-missing pytest --cov=pantalaimon --cov-report term-missing
coverage xml coverage xml