summaryrefslogtreecommitdiff
path: root/misc/py-sagemaker-serve/files/patch-pyproject.toml
blob: 9ee202738eec942744bb93aca23d305ad1cd259f (plain) (blame)
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
Removed dependencies:
- deepdiff: declared but never imported or used in the codebase
- mlflow: optional, only used conditionally when sagemaker_mlflow is installed
- sagemaker_schema_inference_artifacts: optional, used in try/except fallback
- pytest: test-only dependency, not needed at runtime
- tqdm, psutil: handled via RUN_DEPENDS in Makefile
- tritonclient[http]: optional, used in try/except for Triton validation
- onnx, onnxruntime, torch: not available on FreeBSD; torch has a module-level
  import in app.py but that module is only used for specific serving scenarios

--- pyproject.toml.orig	2025-11-20 20:42:14 UTC
+++ pyproject.toml
@@ -1,5 +1,5 @@
 [build-system]
-requires = ["setuptools>=64", "wheel"]
+requires = ["setuptools", "wheel"]
 build-backend = "setuptools.build_meta"

 [project]
@@ -23,16 +23,6 @@ dependencies = [
     "sagemaker-train>=0.1.0",
     "boto3>=1.35.75,<2.0",
     "botocore>=1.35.75,<2.0",
-    "deepdiff",
-    "mlflow",
-    "sagemaker_schema_inference_artifacts",
-    "pytest",
-    "tqdm",
-    "psutil",
-    "tritonclient[http]",
-    "onnx",
-    "onnxruntime",
-    "torch>=2.0.0"
 ]

 [project.optional-dependencies]
@@ -49,7 +39,6 @@ dev = [
 ]

 [tool.setuptools]
-package-dir = {"" = "src"}
 include-package-data = true

 [tool.setuptools.packages.find]