-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox_build.ini
47 lines (45 loc) · 1.24 KB
/
tox_build.ini
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
[tox]
envlist = py310-build,py31{1,2,3}-wheel,auditwheel
skipsdist = True
[testenv]
passenv = *
setenv =
CCACHE_DIR = {envdir}/.ccache
DONT_YARN = false
build: BUILD_OPTIMIZATION=false
build: DONT_YARN=true
NOT_COMPRESS = 1
wheel: BUILD_OPTIMIZATION=true
py313: PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
changedir = {envdir}
allowlist_externals =
rm
ls
grep
bash
yarn
commands =
rm -rf {toxinidir}/build
build: bash -ec 'cd {toxinidir} && yarn install --pure-lockfile && yarn build'
build: python -m build --sdist --wheel --no-isolation --skip-dependency-check --outdir {toxinidir}/dist {toxinidir}
wheel: python -m build --wheel --no-isolation --skip-dependency-check --outdir {toxinidir}/dist {toxinidir}
deps =
cython>=3.0.5
build~=1.0.3
wheel==0.41.3
setuptools>=61.2.0
setuptools-rust==1.10.2
-rrequirements-doc.txt
vstcompile~=3.0
[testenv:auditwheel]
basepython = python3.11
changedir = {envdir}
allowlist_externals =
bash
grep
rm
ls
commands =
bash -c "for whl in `ls {toxinidir}/dist/*.whl | grep -v manylinux | grep linux`; do auditwheel repair --plat manylinux_2_17_x86_64 $whl -w {toxinidir}/dist/; rm $whl; done"
deps =
auditwheel~=6.0.0