Skip to content

Commit 4fcacf7

Browse files
committed
a
1 parent ea5adb6 commit 4fcacf7

3 files changed

Lines changed: 35 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
name: CI
2-
on: [push, pull_request]
2+
3+
on:
4+
push:
5+
pull_request:
6+
37
jobs:
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

pyproject.toml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools>=68", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "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."
99
readme = "README.md"
1010
requires-python = ">=3.8"
1111
license = { text = "MIT" }
12-
authors = [{ name = "Taobo Hu", email = "taobo.hu@dbb.su.se" }]
12+
authors = [{ name = "Taobo Hu" }]
13+
14+
# 运行时依赖(按你项目真实需要填写;示例)
1315
dependencies = [
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 布局
2738
package-dir = {"" = "src"}
2839

2940
[tool.setuptools.packages.find]
3041
where = ["src"]
3142
include = ["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

src/pyXenium/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
from ._version import __version__
22
from .io.partial_xenium_loader import load_anndata_from_partial
3+
4+
# src/pyXenium/__init__.py
5+
__all__ = []

0 commit comments

Comments
 (0)