Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (99 loc) · 2.96 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (99 loc) · 2.96 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ailsa"
version = "0.1.0"
description = "AILSA (AI + LSD + Agents): agentic Computer-Assisted Structure Elucidation of natural products from NMR data"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Christoph Steinbeck" }
]
keywords = ["nmr", "chemistry", "structure-elucidation", "case", "natural-products"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Chemistry",
]
dependencies = [
"click>=8.0",
"jsonschema>=4.18.0",
# nmrglue 0.12 (PyPI, 2026-08) is the first release that is NumPy-2 compatible;
# PyPI rejects direct-URL dependencies, so a plain version specifier is required.
"nmrglue>=0.12",
"numpy>=1.24",
"pydantic>=2.0",
"requests>=2.28",
"rdkit>=2023.0",
"scipy>=1.10",
"tqdm>=4.0",
]
[project.scripts]
ailsa = "ailsa.cli:cli"
lucy = "ailsa.cli:lucy_deprecated"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.1",
"mypy>=1.0",
# Required by fastapi.testclient.TestClient (starlette) to exercise the
# webview API tests. Without it, tests/test_webview_api.py fails whenever
# the [webview] extra (fastapi) is installed. Test-only dependency.
"httpx>=0.27",
]
prediction = [
# NOTE: hose-code-generator has broken dependencies (xmlrunner) on Python 3.12
# Install manually: pip install git+https://github.com/Ratsemaat/HOSE_code_generator.git --no-deps
# Then install its actual runtime deps: pip install rdkit
]
webview = [
"fastapi>=0.100",
"uvicorn>=0.20",
"matplotlib>=3.7",
]
nus = [
# No dependencies yet -- NUS-01..05 (Phase 97) use only nmrglue/pydantic/click,
# already core dependencies. Reserved for Phase 98/99 pip-installable pieces
# (e.g. QC-plotting deps), following the [webview] extra's lazy-import pattern.
]
[tool.hatch.build.targets.wheel]
packages = ["src/ailsa"]
artifacts = [
"src/ailsa/data/schemas/*",
"src/ailsa/lsd/filters/*",
"src/ailsa/webview/static/*",
]
[tool.hatch.build.targets.sdist]
include = ["/src/ailsa", "/README.md", "/LICENSE", "/pyproject.toml"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"
pythonpath = ["src"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_ignores = true
packages = ["ailsa"]
mypy_path = "src"
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]