forked from neuromti/tool-libeep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to init scaffolding according to a github commit: python-poetry/poetry#2740 (comment)
- Loading branch information
1 parent
0eb1ab3
commit ed8e9a8
Showing
12 changed files
with
56 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import subprocess | ||
from pathlib import Path | ||
from typing import Any | ||
|
||
|
||
def build(setup_kwargs: Any) -> None: | ||
build_dir = Path("./build-cmake") | ||
build_dir.mkdir(exist_ok=True) | ||
|
||
subprocess.check_call(["cmake", ".."], cwd=build_dir) | ||
subprocess.check_call(["cmake", "--build", ".", "--config", "Release"], cwd=build_dir) | ||
|
||
# copy the resulting files to the python package | ||
libeep_dir = Path("./python/libeep") | ||
for library_file in (build_dir / "python/libeep/v3/").glob("pyeep*"): | ||
library_file.replace(libeep_dir / library_file.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[tool.poetry] | ||
name = "tool-libeep" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Steffen Heimes <sheimes@ant-neuro.com>"] | ||
readme = "README.md" | ||
|
||
packages = [ | ||
{ include = "libeep", from = "python" }, | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
|
||
[tool.poetry.build] | ||
script = "build.py" | ||
generate-setup-file = true | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "^8.1.1" | ||
|
||
[build-system] | ||
# 1.5.2 required for https://github.com/python-poetry/poetry/issues/7505 | ||
requires = ['setuptools>=65.4.1', 'wheel', 'cmake>=3.29.2' , "poetry-core>=1.5.2"] | ||
build-backend = "poetry.core.masonry.api" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.