forked from dkriegner/xrayutilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
47 lines (42 loc) · 836 Bytes
/
pyproject.toml
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
40
41
42
43
44
45
46
47
[build-system]
requires = ["setuptools", "wheel", "numpy"]
build-backend = "setuptools.build_meta"
[tool.coverage.paths]
source = [
"lib",
"*/site-packages"
]
[tool.coverage.run]
branch = true
parallel = true
source = [
"xrayutilities"
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{36,37,38,39,310},coverage
distshare = {toxinidir}/dist
[testenv]
wheel = true
allowlist_externals =
mv
deps =
h5py
lmfit
matplotlib
numpy
scipy
pytest
pytest-cov
coverage[toml]
commands =
pytest --cov --cov-config pyproject.toml --junitxml=.tox/junit.{envname}.xml --cov-report=xml:.tox/coverage.xml
mv .coverage .tox/.coverage.{envname}
[testenv:coverage]
commands =
coverage combine .tox/
coverage xml -i -o .tox/coverage.xml
coverage report -i
mv .coverage .tox/
"""