-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
79 lines (67 loc) · 1.39 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[build-system]
requires = ['setuptools>=44.0.0', 'wheel', 'setuptools_scm[toml]>=5.0.2']
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
local_scheme = "no-local-version"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = flake8,py{27,35,36,37,38,39,310,311}-{oldest,latest}
isolated_build = True
[testenv]
extras =
dev
commands =
pytest
[testenv:py27-oldest]
deps =
pytest==3.5.0
importlib_metadata==2.0.0
[testenv:py35-oldest]
deps =
pytest==3.5.0
importlib_metadata==2.0.0
[testenv:py36-oldest]
deps =
pytest==3.5.0
importlib_metadata==2.0.0
[testenv:py37-oldest]
deps =
pytest==3.5.0
importlib_metadata==2.0.0
[testenv:py{38,39}-oldest]
deps =
pytest==3.5.0
[testenv:py{310,311}-oldest]
deps =
pytest==6.2.4
[testenv:flake8]
basepython = python3.10
skip_install = True
deps =
flake8
commands =
flake8 src/pycallnumber tests --exclude=__pycache__
[testenv:build_package]
basepython = python3.10
skip_install = true
deps =
build
twine
allowlist_externals =
bash
commands =
bash -c 'rm -rf dist'
python -m build
bash -c 'python -m twine check dist/*.whl'
bash -c 'python -m twine check dist/*.gz'
[testenv:py{27,35,36,37,38,39,310,311}-test_built_package]
skip_install = true
deps =
pytest
allowlist_externals =
bash
commands =
bash -c 'python -m pip install {posargs:dist/*.whl}'
pytest
"""