File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,3 +24,6 @@ dependencies = [
2424
2525[tool .setuptools .packages .find ]
2626where = [" src" ]
27+
28+ [tool .setuptools .package-data ]
29+ celltypeai = [" cell_context.json" ]
Original file line number Diff line number Diff line change 1+ import importlib .resources
2+
3+ import celltypeai
4+ from celltypeai import cell_annotator
5+
6+ # Check version is accessible
7+ assert hasattr (celltypeai , "__version__" ), "Missing __version__"
8+
9+ # Check main function is importable and callable
10+ assert callable (cell_annotator ), "cell_annotator is not callable"
11+
12+ # Check submodules are importable (catches missing files in sdist)
13+ import celltypeai .h5ad_to_json # noqa: F401
14+ import celltypeai .prompt_context_manager # noqa: F401
15+ import celltypeai .prompt_submit # noqa: F401
16+
17+ # Check that bundled data file is included in the distribution
18+ cell_context = importlib .resources .files ("celltypeai" ).joinpath ("cell_context.json" )
19+ assert cell_context .is_file (), "cell_context.json missing from distribution"
20+
21+ print (f"celltypeai version { celltypeai .__version__ } smoke test passed." )
You can’t perform that action at this time.
0 commit comments