-
-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1113 from zariiii9003/cmake
Move project configuration from setup.py to pyproject.toml / Build ABI3 wheels
- Loading branch information
Showing
4 changed files
with
105 additions
and
148 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.15...3.26) | ||
|
||
project( | ||
${SKBUILD_PROJECT_NAME} | ||
LANGUAGES C | ||
VERSION ${SKBUILD_PROJECT_VERSION}) | ||
|
||
find_package( | ||
Python | ||
COMPONENTS | ||
Interpreter | ||
Development.Module | ||
${SKBUILD_SABI_COMPONENT} | ||
NumPy | ||
REQUIRED) | ||
|
||
python_add_library(cutils | ||
MODULE | ||
src/asammdf/blocks/cutils.c | ||
WITH_SOABI USE_SABI 3.9) | ||
|
||
target_link_libraries(cutils PRIVATE Python::NumPy) | ||
|
||
install(TARGETS cutils DESTINATION "asammdf/blocks") |
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 |
---|---|---|
@@ -1,6 +1,84 @@ | ||
[build-system] | ||
requires = ["numpy", "setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["scikit-build-core", "numpy"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
[project] | ||
name = "asammdf" | ||
description="ASAM MDF measurement data file parser" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = { text = "LGPLv3+" } | ||
authors = [{ name = "Daniel Hrisca", email = "[email protected]" }] | ||
dynamic = ["version"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development", | ||
"Topic :: Scientific/Engineering", | ||
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
] | ||
keywords = [ | ||
"read", | ||
"reader", | ||
"edit", | ||
"editor", | ||
"parse", | ||
"parser", | ||
"asam", | ||
"mdf", | ||
"measurement", | ||
] | ||
dependencies = [ | ||
"canmatrix[arxml,dbc]>=1.0", | ||
"isal; platform_machine == 'x86_64' or platform_machine == 'AMD64'", | ||
"lxml>=4.9.3", | ||
"lz4", | ||
"numexpr", | ||
"numpy>=1.23.0", | ||
"pandas", | ||
"python-dateutil", | ||
"typing-extensions", | ||
] | ||
|
||
[project.optional-dependencies] | ||
decode = ["faust-cchardet==2.1.19", "chardet"] | ||
export = [ | ||
"pyarrow", | ||
"h5py", | ||
"hdf5storage>=0.1.19", | ||
"python-snappy", | ||
] | ||
export_matlab_v5 = ["scipy"] | ||
gui = [ | ||
"natsort", | ||
"PySide6", | ||
"pyqtgraph", | ||
"pyqtlet2", | ||
"packaging", | ||
"QtPy", | ||
] | ||
encryption = ["cryptography", "keyring"] | ||
symbolic_math = ["sympy"] | ||
filesystem = ["fsspec"] | ||
|
||
[project.scripts] | ||
asammdf = "asammdf.app.asammdfgui:main [gui]" | ||
|
||
[project.urls] | ||
Documentation = "https://asammdf.readthedocs.io/en/master" | ||
Issues = "https://github.com/danielhrisca/asammdf/issues" | ||
Source = "https://github.com/danielhrisca/asammdf" | ||
|
||
[tool.scikit-build] | ||
metadata.version.provider = "scikit_build_core.metadata.regex" | ||
metadata.version.input = "src/asammdf/version.py" | ||
wheel.packages = ["src/asammdf"] | ||
wheel.py-api = "cp39" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
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