Spaces:
Configuration error

File size: 1,358 Bytes
f1ba785
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"

[project]
name = "axis-numeric-inference"
version = "0.1.0"
requires-python = ">=3.11"
dependencies = ["fastapi>=0.115,<1", "pydantic>=2.10,<3", "python-multipart>=0.0.20,<1", "uvicorn>=0.34,<1"]

[project.optional-dependencies]
test = ["httpx>=0.28,<1", "pytest>=8,<10"]
inference = ["numpy>=2,<3", "Pillow>=11,<13", "onnxruntime>=1.20,<2"]
tesseract = ["numpy>=2,<3", "opencv-python-headless>=4.10,<5", "pytesseract>=0.3.13,<1"]
ml = ["numpy>=2,<3", "Pillow>=11,<13", "onnx>=1.17,<2", "onnxruntime>=1.20,<2", "torch>=2.5,<3"]

# Without this, setuptools' flat-layout auto-discovery finds two ambiguous
# top-level candidates -- axis_numeric/ (the real package) and models/ (a
# data directory of .onnx/.json model artifacts, no __init__.py, picked up
# as an implicit namespace package) -- and refuses to guess, failing the
# editable install before any test runs. models/ is never resolved through
# Python's package machinery anyway: axis_numeric/model_loader.py reads it
# via the AXIS_NUMERIC_MODEL_PATH env var, an explicit filesystem path, so
# it has no reason to be a package-discovery candidate at all.
[tool.setuptools.packages.find]
include = ["axis_numeric*"]

[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]