tox.ini 982 Bytes
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
11
12
setenv =
    PYTHON_EXECUTABLE = {envpython}
    Python3_EXECUTABLE = {envpython}
13
14
15
commands =
    python -m build --wheel -o {toxinidir}/dist

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

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

35
36
37
38
39
40
41
42
43
44
45
46
47
48
[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