-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (65 loc) · 1.88 KB
/
Copy pathpyproject.toml
File metadata and controls
72 lines (65 loc) · 1.88 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tinyfold"
version = "0.1.0"
description = "AlphaFold3-style binary PPI predictor"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
dependencies = [
"torch>=2.5,<2.7",
"gemmi>=0.6",
"pyarrow>=14.0",
"pandas>=2.0",
"numpy>=1.24",
"scipy>=1.10",
"dill>=0.3",
"DockQ>=2.1",
"tqdm",
"requests",
"matplotlib>=3.5",
"py3Dmol>=2.0",
"jinja2>=3.0",
"transformers>=4.40",
]
[project.scripts]
tinyfold-predict = "tinyfold.cli.predict:main"
tinyfold-embed-esm = "tinyfold.cli.prepare_esm2:main"
tinyfold-prepare-data = "tinyfold.cli.prepare_data:main"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-timeout",
"ruff>=0.8",
]
[tool.hatch.build.targets.wheel]
packages = ["src/tinyfold"]
# --- CUDA torch via uv --------------------------------------------------------
# PyPI only ships CPU torch on Windows; CUDA builds live on the PyTorch index.
# Pull the cu124 wheel on win32/linux (both have cu124 builds); fall back to
# PyPI elsewhere (macOS -> mps/cpu). This makes `uv sync` produce a GPU env.
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[tool.uv.sources]
torch = [
{ index = "pytorch-cu124", marker = "sys_platform == 'win32' or sys_platform == 'linux'" },
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --tb=short"
timeout = 120
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests that load real data",
"network: marks tests that make real network requests (deselect with '-m \"not network\"')",
]
filterwarnings = [
"error",
# DockQ's backend leaves its temporary PDB files unclosed during scoring.
"ignore::ResourceWarning",
]