File: tox.ini

package info (click to toggle)
compreffor 0.4.6.post1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 412 kB
  • sloc: python: 1,857; cpp: 1,065; makefile: 34; sh: 13
file content (21 lines) | stat: -rw-r--r-- 706 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[tox]
envlist = py{27,36,37}
indexserver =
    ANACONDA = https://pypi.anaconda.org/carlkl/simple/

[testenv]
setenv =
    # this is the same as passing `--compiler=mingw32` to setup.py build
    mingw32: DISTUTILS_COMPILER=mingw32
passenv =
    # for %COMSPEC%, cf. https://bitbucket.org/hpk42/tox/issues/359/runtimeerror-cannot-locate-a-comspec
    mingw32: COMSPEC DISTUTILS_COMPILER
deps =
    pytest
    -rrequirements.txt
    mingw32: :ANACONDA:mingwpy
commands =
    # run the test suite against installed package; pass extra args to pytest
    py.test --pyargs compreffor {posargs}
    # if toxenv contains 'wheels' tag, also build the wheel packages
    wheels: pip wheel -w {distdir} --no-deps .