From c11a4b335aae1b5d57bc8eec0c3d1bfa7678adee Mon Sep 17 00:00:00 2001 From: Kevin Hsieh <2467001+crowbat@users.noreply.github.com> Date: Fri, 2 Oct 2026 13:30:48 -0700 Subject: [PATCH 1/3] Add pytest cuda marker --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 3a9bedb..e3cae8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -313,6 +313,7 @@ norecursedirs = [ ".oss-export" ] markers = [ # `seed` is registered by tests/config/plugin.py, alongside the fixture that reads it. "slow: marks tests as slow (deselect with '-m \"not slow\"')", + "cuda: marks tests that require a CUDA GPU", ] log_format = "%(asctime)s %(levelname)s %(name)s:%(lineno)d: %(message)s" log_date_format = "%Y-%m-%d %H:%M:%S.%f%z" From 2b0ebecc037728caf97412aa9c286364ee06abf0 Mon Sep 17 00:00:00 2001 From: Kevin Hsieh <2467001+crowbat@users.noreply.github.com> Date: Fri, 2 Oct 2026 15:17:30 -0700 Subject: [PATCH 2/3] Address review comment --- pyproject.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e3cae8b..6d2cb61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -182,13 +182,13 @@ tutorial = [ [tool.setuptools] package-dir = { "" = "src" } +[tool.setuptools.dynamic] +version = { attr = "coreai_opt._about.__version__" } +[tool.setuptools.package-data] +coreai_opt = [ "deps/_kmeans1d/_core.cpp", "deps/_kmeans1d/LICENSE", "py.typed" ] [tool.setuptools.packages] find.where = [ "src" ] find.exclude = [ "coreai_opt_benchmarking*", "tests*" ] -[tool.setuptools.package-data] -coreai_opt = [ "deps/_kmeans1d/_core.cpp", "deps/_kmeans1d/LICENSE", "py.typed" ] -[tool.setuptools.dynamic] -version = { attr = "coreai_opt._about.__version__" } # make env group installed by default with uv sync [tool.uv] @@ -313,7 +313,7 @@ norecursedirs = [ ".oss-export" ] markers = [ # `seed` is registered by tests/config/plugin.py, alongside the fixture that reads it. "slow: marks tests as slow (deselect with '-m \"not slow\"')", - "cuda: marks tests that require a CUDA GPU", + "cuda: marks tests that require an NVIDIA GPU", ] log_format = "%(asctime)s %(levelname)s %(name)s:%(lineno)d: %(message)s" log_date_format = "%Y-%m-%d %H:%M:%S.%f%z" From 889827060e5624344d56e7c35576f9eb18f75672 Mon Sep 17 00:00:00 2001 From: Kevin Hsieh <2467001+crowbat@users.noreply.github.com> Date: Fri, 2 Oct 2026 15:42:39 -0700 Subject: [PATCH 3/3] Run make check --- pyproject.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6d2cb61..fba9ae9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -182,13 +182,13 @@ tutorial = [ [tool.setuptools] package-dir = { "" = "src" } -[tool.setuptools.dynamic] -version = { attr = "coreai_opt._about.__version__" } -[tool.setuptools.package-data] -coreai_opt = [ "deps/_kmeans1d/_core.cpp", "deps/_kmeans1d/LICENSE", "py.typed" ] [tool.setuptools.packages] find.where = [ "src" ] find.exclude = [ "coreai_opt_benchmarking*", "tests*" ] +[tool.setuptools.package-data] +coreai_opt = [ "deps/_kmeans1d/_core.cpp", "deps/_kmeans1d/LICENSE", "py.typed" ] +[tool.setuptools.dynamic] +version = { attr = "coreai_opt._about.__version__" } # make env group installed by default with uv sync [tool.uv] @@ -311,9 +311,9 @@ no_implicit_optional = true testpaths = [ "tests" ] norecursedirs = [ ".oss-export" ] markers = [ + "cuda: marks tests that require an NVIDIA GPU", # `seed` is registered by tests/config/plugin.py, alongside the fixture that reads it. "slow: marks tests as slow (deselect with '-m \"not slow\"')", - "cuda: marks tests that require an NVIDIA GPU", ] log_format = "%(asctime)s %(levelname)s %(name)s:%(lineno)d: %(message)s" log_date_format = "%Y-%m-%d %H:%M:%S.%f%z"