File: tox.ini

package info (click to toggle)
python-trezor 0.13.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,596 kB
  • sloc: python: 14,947; xml: 33; sh: 16; makefile: 3
file content (39 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# NOTE: for running the tests locally in `nix-shell`, it is necessary
# to spawn the `nix-shell` with `fullDeps` argument, so the command is:
# `nix-shell --arg fullDeps true`
# This will make sure all the python versions are installed.
# (it could be beneficial to comment out `bitcoind` in `shell.nix` locally before running it,
# as building that from source takes a very long time)

[tox]
envlist =
    py{38,39,310,311}-{minimal,default,full}
    py{38,39,310,311}-click{7,80}
    py{38,39,310,311}-click81

[testenv]
deps =
    -rrequirements.txt
    !minimal: pytest>=3.6
    !minimal: pytest-random-order
    !minimal: importlib-metadata!=0.21
    full: -rrequirements-optional.txt
commands =
    # Generate local files
    python setup.py build
    # Working in the local directory, try to compile all bytecode
    python -m compileall src tests
    # Smoke-test trezorctl
    trezorctl --help
    # Run test suite
    !minimal: pytest --random-order tests

[testenv:py{38,39,310,311}-click{7,80,81}]
deps =
    -rrequirements.txt
    click7: click>=7,<8
    click80: click>=8.0,<8.1
    click81: click>=8.1,<8.2
commands =
    # Smoke-test trezorctl
    trezorctl --version