Skip to content

Commit

Permalink
update pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyMinucci committed Sep 16, 2024
1 parent acc69a8 commit ab9ca06
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,38 @@ classifiers = [
]

[tool.poetry.dependencies]
python = "^3.9.0"
python = "^3.8.0"
pandas = "^2.0.0"

[build-system]
requires = ["poetry-core"]
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"
before-build = [
"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_test.so",
]

[tool.cibuildwheel.windows]
before-build = [
"cd beepop",
"mkdir build",
"cd build",
"cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..",
"cmake --build . --config Release",
"copy Release/libvpop.dll /home/runner/work/pybeepop/pybeepop/pybeepop/lib",
"move /y /home/runner/work/pybeepop/pybeepop/pybeepop/lib/libvpop.dll /home/runner/work/pybeepop/pybeepop/pybeepop/lib/beepop_win64_test.dll",
]

0 comments on commit ab9ca06

Please sign in to comment.