-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (100 loc) · 3.62 KB
/
pyproject.toml
File metadata and controls
105 lines (100 loc) · 3.62 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
[project]
name = "valency-anndata"
version = "0.3.0"
description = "Experimental tooling to support notebook analysis of polislike data"
readme = "README.md"
authors = [
{ name = "Patrick Connolly", email = "patrick.c.connolly@gmail.com" }
]
requires-python = ">=3.10"
keywords = [
"polis",
"anndata",
"single-cell",
"data-analysis",
"clustering",
"dimensionality-reduction",
"opinion-data",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
"Operating System :: OS Independent",
]
dependencies = [
"anndata>=0.11.4",
"googletrans>=4.0.2",
"nest-asyncio>=1.6.0",
"platformdirs>=4.0",
"polis-client>=0.1.2",
"tqdm>=4.0",
"scanpy[leiden]",
# Intel macOS only (no usable wheels for pre Apple M1)
# See: https://github.com/numba/llvmlite/issues/1357#issuecomment-3516587016
"llvmlite<=0.45.1; platform_system == 'Darwin' and platform_machine == 'x86_64'",
# Langevitour expects setuptools to work.
"langevitour>=0.8.0",
"setuptools<81",
"red-dwarf~=0.4.0",
"svgwrite>=1.4.3",
"pacmap>=0.8.0",
# Keep this <8.0 to keep jupyter-scatter compatible with Google Colab.
# Strangely, we can go higher, but only if jupyter-scatter is installed before valency-anndata.
# Note: <8 means we're stuck on a version that triggers a traitlets DeprecationWarning
# (suppressed in pytest filterwarnings). See: https://github.com/ipython/traitlets/issues/819
"ipywidgets<8",
"huggingface-hub",
"jupyter-scatter>=0.22.2",
]
[project.urls]
Homepage = "https://github.com/patcon/valency-anndata"
Documentation = "https://github.com/patcon/valency-anndata#readme"
Repository = "https://github.com/patcon/valency-anndata"
"Bug Tracker" = "https://github.com/patcon/valency-anndata/issues"
Changelog = "https://github.com/patcon/valency-anndata/releases"
[project.optional-dependencies]
dev = [
"ipykernel>=7.1.0",
"itables>=2.6.2",
"mkdocs>=1.6.1",
"mkdocs-material[imaging]>=9.7.1",
"mkdocs-glightbox>=0.4.0",
"mkdocs-macros-plugin>=1.0.0",
"mkdocstrings-python>=2.0.1",
"nbconvert>=7.16.6",
"pytest>=8.0",
"ruff>=0.14.10",
]
polis2 = [
"polismath-commentgraph",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"live: marks tests that require network access to pol.is (deselect with '-m \"not live\"')",
]
addopts = "-m 'not live'"
filterwarnings = [
# ipywidgets<8 uses a deprecated traitlets .metadata property;
# fixed in ipywidgets 8.0.4 but we can't bump past <8 (Colab compat).
# See: https://github.com/ipython/traitlets/issues/819
"ignore::DeprecationWarning:traitlets",
]
[tool.uv.sources]
# Temporary fork (for website build only), until this gets merged:
# See: https://github.com/pfh/langevitour/pull/9
langevitour = { git = "https://github.com/patcon/langevitour", rev = "fix-js-indent" }
# polismath-commentgraph lives in a subdirectory of the polis repo.
# uv resolves this via the source below; pip users see the ImportError
# message in _polis2.py for the equivalent one-liner.
polismath-commentgraph = { git = "https://github.com/patcon/polis", rev = "package-commentgraph", subdirectory = "delphi/umap_narrative/polismath_commentgraph" }