-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathtox.ini
More file actions
71 lines (65 loc) · 1.75 KB
/
tox.ini
File metadata and controls
71 lines (65 loc) · 1.75 KB
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
[tox]
envlist=
py{310,311,312,313,314}-core
py{310,311,312,313,314}-lint
py{310,311,312,313,314}-wheel
windows-wheel
docs
[testenv]
usedevelop=True
commands=
core: pytest --cov=cid/ --cov-report=xml --cov-report=term-missing --cov-branch {posargs:tests}
docs: make check-docs-ci
basepython=
docs: python
windows-wheel: python
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
py314: python3.14
extras=
dev
allowlist_externals=make
[testenv:py{310,311,312,313,314}-lint]
deps=pre-commit
extras=
dev
commands=
pre-commit install
pre-commit run --all-files --show-diff-on-failure
[testenv:py{310,311,312,313,314}-wheel]
deps=
wheel
build[virtualenv]
allowlist_externals=
/bin/rm
/bin/bash
commands=
python -m pip install --upgrade pip
/bin/rm -rf build dist
python -m build
/bin/bash -c 'python -m pip install --upgrade "$(ls dist/py_cid-*-py3-none-any.whl)" --progress-bar off'
python -c "import cid"
skip_install=true
[testenv:windows-wheel]
deps=
wheel
build[virtualenv]
commands=
python --version
python -m pip install --upgrade pip
python -c "import shutil; shutil.rmtree('build', ignore_errors=True); shutil.rmtree('dist', ignore_errors=True)"
python -m build
python -c "import glob; import subprocess; wheels = glob.glob('dist/py_cid-*-py3-none-any.whl'); subprocess.run(['python', '-m', 'pip', 'install', '--upgrade'] + wheels)"
python -c "import cid"
[testenv:docs]
extras=
.
dev
commands =
make check-docs-ci
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
; -r{toxinidir}/requirements.txt