-
Notifications
You must be signed in to change notification settings - Fork 715
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (119 loc) · 4.15 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (119 loc) · 4.15 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
129
130
131
132
133
[project]
name = "unstract-backend"
version = "0.0.1"
description = "Unstract backend built with Django to build and schedule ETL pipelines around unstructured data."
authors = [{ name = "Zipstack Inc.", email = "devsupport@zipstack.com" }]
requires-python = ">=3.12,<3.13"
readme = "README.md"
classifiers = [
"Private :: Do Not Upload",
"Framework :: Django",
"Programming Language :: Python",
]
dependencies = [
"Authlib==1.6.12", # For Auth plugins
"boto3~=1.34.0", # For Unstract-cloud-storage
"celery[amqp]>=5.3.4", # For Celery
"cron-descriptor==1.4.0", # For cron string description
"cryptography>=48.0.1",
"django==4.2.30",
"djangorestframework==3.15.2",
"django-cors-headers==4.3.1",
# Pinning django-celery-beat to avoid build issues
"django-celery-beat==2.5.0",
"django-log-request-id>=2.1.0",
"django-redis==5.4.0",
"django-tenants==3.5.0",
"drf-standardized-errors>=0.12.6",
"drf-yasg>=1.21.8", # For API docs
"psycopg2-binary==2.9.9",
"python-dotenv==1.2.2",
"python-magic==0.4.27", # For file upload/download
"python-socketio==5.14.0", # For log_events
"social-auth-app-django==5.3.0", # For OAuth
"social-auth-core==4.4.2", # For OAuth
"azure-identity==1.16.1",
"azure-mgmt-apimanagement==3.0.0",
"croniter>=3.0.3",
"django-filter>=24.3",
"httpx>=0.27.0",
# Hence required to add all indirect local dependencies too here.
"unstract-connectors",
"unstract-core",
"unstract-filesystem",
"unstract-flags",
"unstract-sdk1[aws,gcs,azure]",
"unstract-tool-registry",
"unstract-tool-sandbox",
"unstract-workflow-execution",
"unstract-filesystem",
"google-cloud-recaptcha-enterprise>=1.28.2",
"gunicorn>=23.0.0",
"stripe>=12.5.1",
]
[dependency-groups]
dev = [
"unstract-connectors",
"unstract-core",
"unstract-flags",
"unstract-tool-registry",
"unstract-tool-sandbox",
"unstract-workflow-execution",
"unstract-filesystem",
# For file watching
"inotify>=0.2.10",
"poethepoet>=0.33.1",
"debugpy>=1.8.14",
"pytest>=9.0.3",
"responses>=0.25.7",
"psutil>=7.0.0",
]
test = ["pytest>=8.0.1"]
deploy = [
"gunicorn~=23.0", # For serving the application
# Keep versions empty and let uv decide version
# since we use no code instrumentation and don't use in code
"opentelemetry-distro",
"opentelemetry-exporter-otlp",
]
[tool.uv.sources]
unstract-connectors = { path = "../unstract/connectors", editable = true }
unstract-core = { path = "../unstract/core", editable = true }
unstract-filesystem = { path = "../unstract/filesystem", editable = true }
unstract-flags = { path = "../unstract/flags", editable = true }
unstract-sdk1 = { path = "../unstract/sdk1", editable = true }
unstract-tool-registry = { path = "../unstract/tool-registry", editable = true }
unstract-tool-sandbox = { path = "../unstract/tool-sandbox", editable = true }
unstract-workflow-execution = { path = "../unstract/workflow-execution", editable = true }
[tool.uv]
constraint-dependencies = [
# (unstract-connectors) To address issue with Python 3.12 and Numpy 2.0
# https://github.com/numpy/numpy/issues/26710
"numpy<2.0.0", "pandas<2.2.0"
]
[tool.pytest.ini_options]
# Note: test.env is loaded by backend/conftest.py via python-dotenv directly
# (replaces the unmaintained pytest-dotenv plugin).
addopts = "-s"
[tool.poe]
envfile = ".env"
[tool.poe.tasks.backend]
cmd = "./entrypoint.sh"
help = "Runs the Unstract backend (Gunicorn)"
[tool.poe.tasks.migrate-db]
cmd = "uv run manage.py migrate"
help = "Performs DB migrations for Unstract backend"
[tool.poe.tasks.worker-metrics]
cmd = "celery -A backend worker --loglevel=info -Q dashboard_metric_events --autoscale 4,1"
help = "Runs the Unstract dashboard metrics worker"
[tool.poe.tasks.flower]
cmd = "celery -A backend flower --port=5555"
help = "Runs the Unstract Celery Monitoring Tool"
[tool.poe.tasks.beat]
cmd = "celery -A backend beat --loglevel=info"
help = "Runs the Unstract Celery Beat service"
# [build-system]
# requires = ["hatchling"]
# build-backend = "hatchling.build"
# [tool.hatch.build.targets.wheel]
# packages = ["unstract"]