Skip to content

Commit 2272bb4

Browse files
committed
first version
1 parent 468ea47 commit 2272bb4

9 files changed

Lines changed: 76 additions & 24 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: publish-pypi
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
20+
- name: Upgrade build tooling
21+
run: python -m pip install --upgrade pip build
22+
23+
- name: Build sdist and wheel
24+
run: python -m build
25+
26+
# 可选健检:显示产物
27+
- name: List dist artifacts
28+
run: ls -l dist
29+
30+
- name: Publish to PyPI
31+
uses: pypa/gh-action-pypi-publish@v1.12.4
32+
with:
33+
user: __token__
34+
password: ${{ secrets.PYPI_API_TOKEN }}
35+
# skip-existing: true # 若你想忽略已存在版本,可取消注释
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: publish-testpypi
2+
3+
on:
4+
workflow_dispatch: {}
5+
6+
jobs:
7+
build-and-publish-testpypi:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Check out repository
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.11"
18+
19+
- name: Upgrade build tooling
20+
run: python -m pip install --upgrade pip build
21+
22+
- name: Build sdist and wheel
23+
run: python -m build
24+
25+
- name: List dist artifacts
26+
run: ls -l dist
27+
28+
- name: Publish to TestPyPI
29+
uses: pypa/gh-action-pypi-publish@v1.12.4
30+
with:
31+
user: __token__
32+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
33+
repository-url: https://test.pypi.org/legacy/
34+
# skip-existing: true # 可选

.github/workflows/publish.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Toolkit for combining **Spatial Transcriptomics** with **Perturb-seq** workflows
55
## Install
66

77
```bash
8-
pip install spatialperturb
8+
pip install SpatialPerturb
99
# or with GNN extras:
10-
pip install 'spatialperturb[gnn]'
10+
pip install 'SpatialPerturb[gnn]'
1111
```
1212

1313
## Quick start
@@ -20,7 +20,7 @@ print(sp.__version__)
2020

2121
CLI:
2222
```bash
23-
spatialperturb version
23+
SpatialPerturb version
2424
```
2525

2626
## Development

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=69", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "spatialperturb"
6+
name = "SpatialPerturb"
77
version = "0.1.0"
88
description = "Spatial transcriptomics × Perturb-seq toolkit: signatures, label transfer, spatial scoring, and graph-based modeling."
99
readme = "README.md"

0 commit comments

Comments
 (0)