Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (119 loc) · 4.3 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (119 loc) · 4.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[project]
# The short name `adata-cli` was taken on PyPI by an unrelated project,
# so the distribution is published as `pyadata-cli`. The import package
# and the command are both still `adata`.
name = "pyadata-cli"
version = "0.17.6"
description = "Streaming CLI for exploring and editing large AnnData .h5ad and .zarr stores"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "Aljes Binkevich", email = "ab76@sanger.ac.uk" },
]
maintainers = [
{ name = "Aljes Binkevich", email = "ab76@sanger.ac.uk" },
]
keywords = [
"anndata",
"h5ad",
"zarr",
"bioinformatics",
"single-cell",
"cli",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Typing :: Typed",
]
# Every module src/adata imports is declared, here or in an extra, rather
# than left to arrive with another package. CI's floors job installs each
# floor and runs the unit suite on it. The caps keep out the next major of
# the libraries whose API the code is written against. typer is still 0.x
# and can break in a minor (0.26 stopped installing click), but a cap at the
# next minor would turn away each new typer until we release, so it is 1.0.
dependencies = [
# 3.15 leaks 32 to 160 bytes of memory on every dataset read, write and
# `.shape`, so streaming used memory in proportion to its blocks. 3.16
# brings HDF5 2.0, whose 8 MiB chunk cache `open_store` sets back to 1 MiB.
"h5py>=3.16.0,<4",
# Zarr v2 compressors (storage/__init__.py).
"numcodecs>=0.14",
"numpy>=2.3.5,<3",
# 13.0.0 fixes the decoder advisories that reach `import image` and the
# Visium and Xenium tissue images.
"pillow>=13.0.0",
"rich>=14.2.0",
"typer>=0.20.0,<1",
# 3.2.0 reads both spellings of a v3 record dtype (scanpy's
# rank_genes_groups); 3.1 cannot open a store newer zarr wrote with one.
"zarr>=3.2.0,<4",
]
[project.urls]
Homepage = "https://github.com/cellgeni/adata-cli"
Repository = "https://github.com/cellgeni/adata-cli"
Documentation = "https://cellgeni.github.io/adata-cli/"
Issues = "https://github.com/cellgeni/adata-cli/issues"
Changelog = "https://cellgeni.github.io/adata-cli/changelog/"
[project.optional-dependencies]
# Reading pycisTopic's pickles: pandas and scipy rebuild their tables and
# matrices. Imported only on that converter's path.
pickle = [
# pandas 2.2.3 is what tests/test_external_readers.py converts a pickle
# under (the floors job runs dev's pandas 3); 2.2.0 and 2.2.1 predate
# numpy 2. scipy before 1.15 caps numpy below 2.3.
"pandas>=2.2.3",
"scipy>=1.15",
]
# Reading Visium HD: its bin positions are Parquet only. Imported only in
# formats/parquet.py, which the Visium converter calls for an HD input. 18
# is the first with wheels for Python 3.13.
spatial = [
"pyarrow>=18",
]
dev = [
# pandas 3, not the pickle extra's 2.2.3: anndata writes nullable strings
# only where pandas infers them, and the test fixtures rely on that.
"pandas>=3.0",
"scipy>=1.15",
"pyarrow>=18",
# The oracle for the centroids and areas of segmented cells
# (tests/test_geojson.py). Older releases fail on numpy 2.3.
"shapely>=2.0.6",
"pytest>=9.0.3",
"pytest-cov>=6.0.0",
# Turns a hang into a failure with a traceback. Without it a stuck test
# burns the CI job's whole timeout and reports nothing useful.
"pytest-timeout>=2.3.1",
# The oracle most tests check against: anndata writes their inputs and
# reads back what this tool writes. The tool itself never imports it.
"anndata>=0.13",
]
[build-system]
requires = ["uv_build>=0.8.0,<0.9.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "adata"
[project.scripts]
adata = "adata.cli:main"
# Deprecated alias, removed in 1.0.0
h5ad = "adata.cli:main_deprecated"
[tool.coverage.run]
source = ["src/adata"]
omit = [
"*/tests/*",
"*/__pycache__/*",
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false