Skip to content

Commit edc1eec

Browse files
committed
pypi
1 parent 65a379e commit edc1eec

3 files changed

Lines changed: 94 additions & 2 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*" # triggers on v0.2.0, v0.3.0, etc.
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
environment: pypi-release
12+
permissions:
13+
id-token: write # required for trusted publishing (no API token needed)
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
22+
- name: Install build tools
23+
run: pip install build
24+
25+
- name: Build sdist and wheel
26+
run: python -m build
27+
28+
- name: Publish to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1

‎pyproject.toml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ version = "0.2.0"
88
description = "Python-native interactive viewer and programmatic API for single-cell AnnData (.h5ad) objects"
99
readme = "README.md"
1010
requires-python = ">=3.10"
11-
license = { text = "MIT" }
12-
authors = [{ name = "scPyviewer authors", email = "xuanhao@iu.edu" }]
11+
license = { file = "LICENSE" }
12+
authors = [{ name = "Xuan Hao", email = "xuanhao@iu.edu" }]
1313
keywords = ["single-cell", "scRNA-seq", "AnnData", "scanpy", "visualization", "streamlit"]
1414
classifiers = [
1515
"Programming Language :: Python :: 3",
@@ -45,6 +45,8 @@ scpyviewer-prepare = "scPyviewer.prepare:main"
4545

4646
[project.urls]
4747
Homepage = "https://github.com/xuan13hao/scPyviewer"
48+
"Bug Tracker" = "https://github.com/xuan13hao/scPyviewer/issues"
49+
"Source Code" = "https://github.com/xuan13hao/scPyviewer"
4850

4951
[tool.setuptools]
5052
# pure-python package plus the app script that Streamlit runs by path

‎recipe/meta.yaml‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{% set name = "scPyviewer" %}
2+
{% set version = "0.2.0" %}
3+
4+
package:
5+
name: {{ name|lower }}
6+
version: {{ version }}
7+
8+
source:
9+
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/scPyviewer-{{ version }}.tar.gz
10+
# After `twine upload`, get the sha256 from:
11+
# https://pypi.org/project/scPyviewer/#files (click "view hashes")
12+
# then replace the placeholder below.
13+
sha256: REPLACE_WITH_SHA256_FROM_PYPI
14+
15+
build:
16+
noarch: python
17+
number: 0
18+
script: {{ PYTHON }} -m pip install . --no-deps -vv
19+
entry_points:
20+
- scpyviewer = scPyviewer._launch:main
21+
- scpyviewer-prepare = scPyviewer.prepare:main
22+
23+
requirements:
24+
host:
25+
- python >=3.10
26+
- pip
27+
- setuptools >=64
28+
- wheel
29+
run:
30+
- python >=3.10
31+
- scanpy >=1.10
32+
- anndata >=0.10
33+
- numpy >=1.24
34+
- pandas >=2.0
35+
- scipy >=1.10
36+
- scikit-learn >=1.3
37+
- matplotlib >=3.7
38+
- plotly >=5.20
39+
40+
test:
41+
imports:
42+
- scPyviewer
43+
commands:
44+
- scpyviewer --help || true # launcher exists
45+
- scpyviewer-prepare --help || true
46+
47+
about:
48+
home: https://github.com/xuan13hao/scPyviewer
49+
license: MIT
50+
license_file: LICENSE
51+
summary: Python-native interactive viewer and programmatic API for single-cell AnnData objects
52+
description: |
53+
scPyviewer ingests AnnData (.h5ad) files and exposes embeddings,
54+
gene expression, metadata, and marker/DE tables through both an
55+
interactive Streamlit app and a programmatic Python API.
56+
doc_url: https://github.com/xuan13hao/scPyviewer
57+
dev_url: https://github.com/xuan13hao/scPyviewer
58+
59+
extra:
60+
recipe-maintainers:
61+
- xuan13hao

0 commit comments

Comments
 (0)