-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
61 lines (55 loc) · 2.47 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
[tool.cibuildwheel]
manylinux-x86_64-image = "manylinux_2_28"
# No PyPy for now, we are using c++17 language features that don't compile for PyPy ATM.
skip = "cp27-* cp36-* cp37-* cp38-* pp*"
[[tool.cibuildwheel.overrides]]
select = "*manylinux_2_2*"
before-all = """apt-get --assume-yes install wget unzip;
wget https://sourceforge.net/projects/net-snmp/files/net-snmp/5.9.4/net-snmp-5.9.4.zip/download;
unzip download;
cd net-snmp-5.9.4;
./configure --with-defaults --disable-mibs --disable-manual --without-perl-modules --disable-embedded-perl;
make;
make install;"""
[[tool.cibuildwheel.overrides]]
select = "*musllinux*"
before-all = "apk add net-snmp-dev;"
[tool.cibuildwheel.linux]
before-all = """yum -y install wget;
wget https://sourceforge.net/projects/net-snmp/files/net-snmp/5.9.4/net-snmp-5.9.4.zip/download ;
unzip download;
cd net-snmp-5.9.4;
./configure --with-defaults --disable-mibs --disable-manual --without-perl-modules --disable-embedded-perl;
make ;
make install ;"""
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
[tool.cibuildwheel.macos]
environment = { PATH = "$HOME/opt/local/bin:$HOME/opt/local/sbin:$HOME/opt/local/include:$HOME/opt/local/lib:$PATH", MACOSX_DEPLOYMENT_TARGET = "15.0", DYLD_LIBRARY_PATH = "$HOME/opt/local/lib:$DYLD_LIBRARY_PATH" }
before-all = """
mkdir -p $HOME/opt/mports;
rm -rf $HOME/opt/mports/*;
cd $HOME/opt/mports;
rm -f MacPorts-2.10.5.tar.gz;
curl -L https://github.com/macports/macports-base/releases/download/v2.10.5/MacPorts-2.10.5.tar.gz -o MacPorts-2.10.5.tar.gz;
tar -xzvf MacPorts-2.10.5.tar.gz;
cd $HOME/opt/mports/MacPorts-2.10.5;
./configure --prefix=$HOME/opt/local --with-install-user=`id -un` --with-install-group=`id -gn`;
make;
make install;
make distclean;
port -N selfupdate;
port -N clean net-snmp openssl;
port -N install net-snmp openssl;
port -N upgrade net-snmp openssl;"""
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools == 75.6.0",
"wheel == 0.45.1",
]
[tool.pytest.ini_options]
pythonpath = "tests"
addopts = [
"--import-mode=importlib",
]