build(Testing): Not yet

This commit is contained in:
Anne de Jong 2023-07-18 17:06:40 +02:00
parent 72716ecd39
commit 914da89819
4 changed files with 14 additions and 4 deletions

8
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,8 @@
---
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: master
hooks:
- id: commitizen
- id: commitizen-branch
stages: [push]

View File

@ -1,7 +1,6 @@
cmake_minimum_required (VERSION 3.16)
project(LASP LANGUAGES C CXX VERSION 1.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED)

View File

@ -26,7 +26,7 @@ dependencies = ["scipy", "numpy", "matplotlib", "appdirs", "dataclasses_json",
"h5py", "pybind11"]
[build-system] # How pip and other frontends should build this project
requires = ["py-build-cmake~=0.1.8", "setuptools-scm"]
requires = ["py-build-cmake~=0.1.8", "setuptools_scm[toml]>=6.2"]
build-backend = "py_build_cmake.build"
[tool.py-build-cmake.module] # Where to find the Python module to package
@ -40,4 +40,7 @@ include = ["CMakeLists.txt", "cmake", "cpp_src", "python_src", "img", "scripts",
build_type = "Release"
source_path = "."
build_args = ["-j"]
install_components = ["python_modules", "python_stubs"]
install_components = ["python_modules"]
[tool.setuptools_scm]
version_file = ["python_src/lasp/_version.py" , "cpp_src/_version.txt"]

View File

@ -2,10 +2,10 @@
LASP: Library for Acoustic Signal Processing
"""
from ._version import *
from .lasp_cpp import *
import lasp.lasp_cpp
from .lasp_common import *
__version__ = lasp_cpp.__version__
# from .lasp_imptube import * # TwoMicImpedanceTube
from .lasp_measurement import * # Measurement, scaleBlockSens