tox.ini 1.01 KB
Newer Older
1
2
[tox]
envlist = py38,py39,py310,py311,py312
3
isolated_build = False
4

5
[testenv:py{38,39,310,311,312}]
6
skip_install = false
7
8
9
deps =
    wheel
    build
10
setenv =
11
    WITH_COMMITID = TRUE
12
13
    PYTHON_EXECUTABLE = {envpython}
    Python3_EXECUTABLE = {envpython}
14
15
16
commands =
    python -m build --wheel -o {toxinidir}/dist

17
[testenv:py{38,39,310,311,312}-pypi]
18
skip_install = false
19
20
setenv =
    PYPI_BUILD = TRUE
21
    WITH_COMMITID = FALSE
22
23
    PYTHON_EXECUTABLE = {envpython}
    Python3_EXECUTABLE = {envpython}
24
commands =
25
    python setup.py bdist_wheel --plat-name=manylinux2014_x86_64
26

27
[testenv:audit_manylinux2014]
28
29
30
31
32
33
34
skip_install = true
allowlist_externals =
    bash
deps =
    auditwheel
    patchelf
commands =
35
    bash -c 'auditwheel repair -L=/lib --exclude=/usr/local/cuda* --exclude=libcuda.so.1 --plat=manylinux2014_x86_64 dist/*'
36

37
38
39
40
41
42
43
44
45
46
47
48
49
50
[testenv:py38]
basepython = python3.8

[testenv:py39]
basepython = python3.9

[testenv:py310]
basepython = python3.10

[testenv:py311]
basepython = python3.11

[testenv:py312]
basepython = python3.12