diff --git a/tests/__init__.py b/fastcan/tests/__init__.py similarity index 100% rename from tests/__init__.py rename to fastcan/tests/__init__.py diff --git a/tests/test_beam.py b/fastcan/tests/test_beam.py similarity index 100% rename from tests/test_beam.py rename to fastcan/tests/test_beam.py diff --git a/tests/test_fastcan.py b/fastcan/tests/test_fastcan.py similarity index 100% rename from tests/test_fastcan.py rename to fastcan/tests/test_fastcan.py diff --git a/tests/test_init.py b/fastcan/tests/test_init.py similarity index 100% rename from tests/test_init.py rename to fastcan/tests/test_init.py diff --git a/tests/test_minibatch.py b/fastcan/tests/test_minibatch.py similarity index 100% rename from tests/test_minibatch.py rename to fastcan/tests/test_minibatch.py diff --git a/tests/test_refine.py b/fastcan/tests/test_refine.py similarity index 100% rename from tests/test_refine.py rename to fastcan/tests/test_refine.py diff --git a/tests/test_utils.py b/fastcan/tests/test_utils.py similarity index 100% rename from tests/test_utils.py rename to fastcan/tests/test_utils.py diff --git a/meson.build b/meson.build index 979b0fc..ed3da8b 100644 --- a/meson.build +++ b/meson.build @@ -11,6 +11,10 @@ project( py = import('python').find_installation(pure: false) -install_subdir('fastcan', install_dir: py.get_install_dir()) +install_subdir( + 'fastcan', + install_dir: py.get_install_dir(), + install_tag: 'python-runtime', +) subdir('fastcan') diff --git a/pixi.lock b/pixi.lock index b159be4..446997e 100644 --- a/pixi.lock +++ b/pixi.lock @@ -9396,7 +9396,7 @@ packages: - pypi: ./ name: fastcan version: 0.4.1 - sha256: 9adaeb6b0c2755d295b596f2e031b27713a59f979b4afe636825792f8e0b9510 + sha256: e30c3109632ae05eea094ad7a70a6219b888c09cb905957d988a3bf942c7aeb0 requires_dist: - scikit-learn>=1.6.0 requires_python: '>=3.9' diff --git a/pixi.toml b/pixi.toml index db96c6b..d424c74 100644 --- a/pixi.toml +++ b/pixi.toml @@ -101,7 +101,7 @@ test = "pytest" test-coverage = { cmd = "rm -rf .coverage && pytest --cov-report {{ FMT }} --cov={{ PACKAGE }}", args = [{ arg = "FMT", default = "html" }, { arg = "PACKAGE", default = "fastcan" }] } [feature.build.tasks] -build-wheel = "rm -rf dist && python -m build -wnx -Cinstall-args=--tags=runtime,python-runtime,devel" +build-wheel = "rm -rf dist && python -m build -wnx" build-sdist = "rm -rf dist && python -m build --sdist" rebuild = "rm -rf build && pip install --no-deps --force-reinstall -e ." diff --git a/pyproject.toml b/pyproject.toml index 6a41762..4a51ee4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,10 +48,18 @@ build-backend = "mesonpy" # toolchain [tool.meson-python.args] setup = ['--vsenv'] +install = ['--tags=runtime,python-runtime'] + +# [tool.meson-python.wheel] # TODO: enable when meson-python 0.19.0 is released +# exclude = [ +# "**/*.pyx", +# "**/*.pxd", +# "**/__pycache__/*", +# ] [tool.pytest.ini_options] testpaths = [ - "./tests", + "./fastcan/tests", "./fastcan/narx/tests", ]