File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI
2- on : [push, pull_request]
2+
3+ on :
4+ push :
5+ pull_request :
6+
37jobs :
48 test :
59 runs-on : ubuntu-latest
610 steps :
711 - uses : actions/checkout@v4
12+
813 - uses : actions/setup-python@v5
9- with : { python-version: '3.11' }
10- - run : python -m pip install -e .[dev]
14+ with :
15+ python-version : ' 3.11' # 你的项目要求 >=3.8,可按需扩展测试矩阵
16+
17+ - run : python -m pip install --upgrade pip
18+ - run : python -m pip install -e ".[dev]"
1119 - run : pytest -q
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" setuptools" , " wheel" ]
2+ requires = [" setuptools>=68 " , " wheel" ]
33build-backend = " setuptools.build_meta"
44
55[project ]
66name = " pyXenium"
7- version = " 0.1.2 "
8- description = " Tools for reading and analyzing 10x Xenium data"
7+ version = " 0.2.0 "
8+ description = " A toy Python package for analyzing 10x Xenium data. "
99readme = " README.md"
1010requires-python = " >=3.8"
1111license = { text = " MIT" }
12- authors = [{ name = " Taobo Hu" , email = " taobo.hu@dbb.su.se" }]
12+ authors = [{ name = " Taobo Hu" }]
13+
14+ # 运行时依赖(按你项目真实需要填写;示例)
1315dependencies = [
1416 " anndata>=0.10" ,
15- " click>=8.1" ,
16- " matplotlib>=3.8" ,
17- " numpy>=1.24" ,
17+ " numpy>=1.23" ,
1818 " pandas>=2.0" ,
19- " scikit-learn>=1.3" ,
2019 " scipy>=1.10" ,
21- " tqdm>=4.66 " ,
22- " zarr>=2.16 " ,
20+ " scikit-learn>=1.3 " ,
21+ " zarr>=2.15 " ,
2322 " requests>=2.31" ,
2423]
2524
25+ [project .optional-dependencies ]
26+ # ★ 新增:CI 里用到的 .[dev](pytest、构建/发布、文档等常见开发依赖)
27+ dev = [
28+ " pytest>=7" ,
29+ " pytest-cov" ,
30+ " build" ,
31+ " twine" ,
32+ " mkdocs" ,
33+ " mkdocs-material" ,
34+ ]
35+
2636[tool .setuptools ]
37+ # ★ 明确 src 布局
2738package-dir = {"" = " src" }
2839
2940[tool .setuptools .packages .find ]
3041where = [" src" ]
3142include = [" pyXenium*" ]
32-
33- [tool .setuptools .package-data ]
34- pyXenium = [" data/**" , " *.csv" , " *.zarr" , " *.txt" ]
35-
36- [project .scripts ]
37- pyxenium-import-partial = " pyXenium.io.partial_xenium_loader:app"
38-
39- # pytest.ini
40- [pytest ]
41- addopts = -q
42- doctest_glob = docs/**/*.md
Original file line number Diff line number Diff line change 11from ._version import __version__
22from .io .partial_xenium_loader import load_anndata_from_partial
3+
4+ # src/pyXenium/__init__.py
5+ __all__ = []
You can’t perform that action at this time.
0 commit comments