-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
62 lines (52 loc) · 2.21 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
[build-system]
requires = [
# c++ building
"cmake>=3.21",
# pyi generation
"mypy",
# unit tests (for code coverage cmake target)
"pytest",
"numpy",
"imageio",
# defaults
"setuptools",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.distutils.bdist_wheel]
universal = false
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ""
testpaths = ["tests/"]
[tool.cibuildwheel]
build-verbosity = 3
test-requires = "pytest numpy imageio"
test-command = "pytest -s {project}/tests"
manylinux-i686-image = "manylinux_2_28"
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
[tool.cibuildwheel.linux]
before-build = [
"""dnf install -y zlib-devel openssl-devel freetype-devel fontconfig-devel freeglut-devel alsa-lib-devel mesa-libGL-devel \
xorg-x11-proto-devel xorg-x11-proto-devel libcurl-devel libpng-devel libX11-devel libXcursor-devel libXrandr-devel \
libXinerama-devel libXrender-devel libXcomposite-devel libXinerama-devel libXcursor-devel xorg-x11-server-Xvfb \
gtk3-devel webkit2gtk3-devel wget""",
"wget https://github.com/linux-test-project/lcov/releases/download/v2.0/lcov-2.0-1.noarch.rpm",
"yum localinstall -y lcov-2.0-1.noarch.rpm",
#"wget https://rpmfind.net/linux/epel/7/x86_64/Packages/p/perl-JSON-XS-3.01-2.el7.x86_64.rpm",
#"yum localinstall -y perl-JSON-XS-3.01-2.el7.x86_64.rpm",
"wget https://repo.almalinux.org/almalinux/8/PowerTools/x86_64/os/Packages/perl-JSON-XS-3.04-3.el8.x86_64.rpm",
"yum localinstall -y perl-JSON-XS-3.04-3.el8.x86_64.rpm",
"sed -i \"s/use JSON::PP/use JSON::XS/g\" /usr/bin/geninfo"
# "ln -s /usr/include/freetype2/ft2build.h /usr/include/ft2build.h",
# "ln -s /usr/include/freetype2/freetype /usr/include/freetype"
]
test-command = [
"xvfb-run -a -s \"-screen 0 1024x768x24\" pytest -s {project}/tests"
# """xvfb-run -a -s \"-screen 0 1024x768x24\" pytest -s {project}/tests || \
# { (mkdir -p /output/compare_data && cp {project}/tests/compare_data/* /output/compare_data/) ; exit 1 ; }"""
]
#repair-wheel-command = """
#pip install auditwheel-symbols && (auditwheel repair -w {dest_dir} {wheel} || auditwheel-symbols --manylinux 2014 {wheel})
#"""