-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
69 lines (63 loc) · 1.95 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
63
64
65
66
67
68
69
[tool.poetry]
name = "pybeepop-plus"
version = "0.1.2"
description = "EPA's Python interface for the EPA/USDA honey bee colony model BeePop+"
authors = ["Jeffrey Minucci <[email protected]>"]
maintainers = ["Jeffrey Minucci <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/USEPA/pybeepop"
documentation = "https://usepa.github.io/pybeepop/"
packages = [
{ include = "pybeepop", from ="." },
]
include = ["lib/*.dll", "lib/*.so", "data/*"]
classifiers = [
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Intended Audience :: Science/Research",
]
[tool.poetry.dependencies]
python = "^3.8.0"
pandas = "^2.0.0"
matplotlib = "^3.1.0"
[build-system]
requires = ["poetry-core", "setuptools"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.build]
script = "build.py"
generate-setup-file = true
[tool.cibuildwheel.linux]
before-all = ["yum -y install cmake",
"cd beepop",
"mkdir build",
"cd build",
"cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..",
"cmake --build . --config Release",
"pwd",
"cp liblibvpop.so ../../pybeepop/lib",
"mv -f ../../pybeepop/lib/liblibvpop.so ../../pybeepop/lib/beepop_linux.so",
]
[tool.cibuildwheel.windows]
before-all = [
"cd beepop",
"mkdir build",
"cd build",
"cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..",
"cmake --build . --config Release",
"copy Release\\libvpop.dll ..\\..\\pybeepop\\lib",
"move /y ..\\..\\pybeepop\\lib\\libvpop.dll ..\\..\\pybeepop\\lib\\beepop_win64.dll",
]
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = ["apk add cmake",
"cd beepop",
"mkdir build",
"cd build",
"cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..",
"cmake --build . --config Release",
"pwd",
"cp liblibvpop.so ../../pybeepop/lib",
"mv -f ../../pybeepop/lib/liblibvpop.so ../../pybeepop/lib/beepop_linux.so",
]