Skip to content

Commit 83bb47c

Browse files
committed
dep group updates
1 parent 8bbc9ba commit 83bb47c

File tree

8 files changed

+132
-134
lines changed

8 files changed

+132
-134
lines changed

pyproject.toml

Lines changed: 75 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,41 @@ build-backend = "hatchling.build"
99
name = "idp-accelerator"
1010
version = "1.0.0"
1111
description = "AWS GenAI IDP Accelerator - Intelligent Document Processing"
12-
authors = [
13-
{name = "AWS", email = "[email protected]"}
14-
]
12+
authors = [{ name = "AWS", email = "[email protected]" }]
1513
readme = "README.md"
1614
requires-python = ">=3.9,<3.14"
17-
license = {text = "MIT-0"}
15+
license = { text = "MIT-0" }
1816

1917
classifiers = [
20-
"Development Status :: 4 - Beta",
21-
"Intended Audience :: Developers",
22-
"License :: OSI Approved :: MIT License",
23-
"Programming Language :: Python :: 3",
24-
"Programming Language :: Python :: 3.9",
25-
"Programming Language :: Python :: 3.10",
26-
"Programming Language :: Python :: 3.11",
27-
"Programming Language :: Python :: 3.12",
18+
"Development Status :: 4 - Beta",
19+
"Intended Audience :: Developers",
20+
"License :: OSI Approved :: MIT License",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
2826
]
2927

3028
# Core dependencies shared across all lambdas
31-
dependencies = [
32-
"boto3==1.39.7",
33-
]
29+
dependencies = ["boto3==1.39.7"]
3430

3531
# Development dependencies
3632
[project.optional-dependencies]
3733
dev = [
38-
"pytest>=7.4.0",
39-
"pytest-cov>=4.1.0",
40-
"pytest-mock>=3.11.0",
41-
"pytest-asyncio>=1.1.0",
42-
"ruff>=0.14.0",
43-
"moto[s3]>=5.1.8",
44-
"python-dotenv>=1.1.0",
45-
"ipykernel>=6.29.5",
46-
"jupyter>=1.1.1",
34+
"pytest>=7.4.0",
35+
"pytest-cov>=4.1.0",
36+
"pytest-mock>=3.11.0",
37+
"pytest-asyncio>=1.1.0",
38+
"ruff>=0.14.0",
39+
"moto[s3]>=5.1.8",
40+
"python-dotenv>=1.1.0",
41+
"ipykernel>=6.29.5",
42+
"jupyter>=1.1.1",
4743
]
4844

4945
# Build dependencies
50-
build = [
51-
"hatchling",
52-
"build",
53-
]
46+
build = ["hatchling", "build"]
5447

5548
[project.urls]
5649
Homepage = "https://github.com/aws-samples/accelerated-intelligent-document-processing-on-aws"
@@ -60,28 +53,26 @@ Issues = "https://github.com/aws-samples/accelerated-intelligent-document-proces
6053
# Hatchling configuration
6154
[tool.hatch.build]
6255
exclude = [
63-
"/.github",
64-
"/.aws-sam",
65-
"/tests",
66-
"**/__pycache__",
67-
"**/*.pyc",
68-
"**/*.pyo",
69-
"**/.pytest_cache",
70-
"**/.ruff_cache",
56+
"/.github",
57+
"/.aws-sam",
58+
"/tests",
59+
"**/__pycache__",
60+
"**/*.pyc",
61+
"**/*.pyo",
62+
"**/.pytest_cache",
63+
"**/.ruff_cache",
7164
]
7265

7366
[tool.hatch.build.targets.wheel]
74-
packages = [] # Root project is not a package, just dependency management
67+
packages = [] # Root project is not a package, just dependency management
7568

7669
# UV workspace configuration
7770
[tool.uv.workspace]
78-
members = [
79-
"lib/idp_common_pkg",
80-
"idp_cli",
81-
]
71+
members = ["lib/idp_common_pkg", "idp_cli"]
8272

8373
# UV-specific configuration
8474
[tool.uv]
75+
package = false
8576

8677
# Dependency resolution preferences
8778
[tool.uv.sources]
@@ -91,133 +82,97 @@ idp-common = { workspace = true }
9182
[dependency-groups]
9283
# Development group (PEP 735 style)
9384
dev = [
94-
"pytest>=7.4.0",
95-
"pytest-cov>=4.1.0",
96-
"pytest-mock>=3.11.0",
97-
"pytest-asyncio>=1.1.0",
98-
"ruff>=0.14.0",
99-
"moto[s3]>=5.1.8",
100-
"python-dotenv>=1.1.0",
101-
"ipykernel>=6.29.5",
102-
"jupyter>=1.1.1",
85+
"pytest>=7.4.0",
86+
"pytest-cov>=4.1.0",
87+
"pytest-mock>=3.11.0",
88+
"pytest-asyncio>=1.1.0",
89+
"ruff>=0.14.0",
90+
"moto[s3]>=5.1.8",
91+
"python-dotenv>=1.1.0",
92+
"ipykernel>=6.29.5",
93+
"jupyter>=1.1.1",
10394
]
10495
# Common/shared groups
105-
common-idp = [
106-
"jsonschema>=4.25.1",
107-
"pydantic>=2.12.0",
108-
]
96+
common-idp = ["jsonschema>=4.25.1", "pydantic>=2.12.0"]
10997

11098
# Lambda function groups - organized by functionality
11199
# Pattern 2 & 3: OCR Function
112100
lambda-ocr = [
113-
"idp-common[ocr,docs_service]",
114-
"numpy>=1.24.0,<2.0.0",
115-
"pandas>=1.5.0,<3.0.0",
101+
"idp-common[ocr,docs_service]",
102+
"numpy>=1.24.0,<2.0.0",
103+
"pandas>=1.5.0,<3.0.0",
116104
]
117105

118106
# Pattern 2 & 3: Extraction Function
119-
lambda-extraction = [
120-
"idp-common[extraction,docs_service,agentic-extraction]",
121-
]
107+
lambda-extraction = ["idp-common[extraction,docs_service,agentic-extraction]"]
122108

123109
# Pattern 2 & 3: Classification Function
124-
lambda-classification = [
125-
"idp-common[classification,docs_service]",
126-
]
110+
lambda-classification = ["idp-common[classification,docs_service]"]
127111

128112
# Pattern 2 & 3: Assessment Function
129-
lambda-assessment = [
130-
"idp-common[assessment,docs_service]",
131-
]
113+
lambda-assessment = ["idp-common[assessment,docs_service]"]
132114

133115
# Evaluation Function (main lambdas)
134-
lambda-evaluation = [
135-
"idp-common[evaluation,docs_service]",
136-
]
116+
lambda-evaluation = ["idp-common[evaluation,docs_service]"]
137117

138118
# Agent Processor (main lambdas)
139119
lambda-agent-processor = [
140-
"aws-requests-auth==0.4.3",
141-
"requests==2.32.4",
142-
"idp-common[agents]",
120+
"aws-requests-auth==0.4.3",
121+
"requests==2.32.4",
122+
"idp-common[agents]",
143123
]
144124

145125
# Summarization Function (all patterns)
146-
lambda-summarization = [
147-
"idp-common[docs_service]",
148-
]
126+
lambda-summarization = ["idp-common[docs_service]"]
149127

150128
# Process Results Function (all patterns)
151-
lambda-process-results = [
152-
"idp-common[reporting,docs_service]",
153-
]
129+
lambda-process-results = ["idp-common[reporting,docs_service]"]
154130

155131
# HITL Functions (all patterns)
156-
lambda-hitl = [
157-
"idp-common[docs_service]",
158-
]
132+
lambda-hitl = ["idp-common[docs_service]"]
159133

160134
# Pattern 1: BDA Discovery Function
161-
lambda-bda-discovery = [
162-
"idp-common[docs_service]",
163-
]
135+
lambda-bda-discovery = ["idp-common[docs_service]"]
164136

165137
# Pattern 1: BDA Invoke Function
166-
lambda-bda-invoke = [
167-
"idp-common[docs_service]",
168-
]
138+
lambda-bda-invoke = ["idp-common[docs_service]"]
169139

170140
# Pattern 1: BDA Completion Function
171-
lambda-bda-completion = [
172-
"idp-common[docs_service]",
173-
]
141+
lambda-bda-completion = ["idp-common[docs_service]"]
174142

175143
# Discovery Processor (main lambdas)
176144
lambda-discovery-processor = [
177-
"requests==2.32.4",
178-
"aws-requests-auth==0.4.3",
179-
"idp-common[image]",
145+
"requests==2.32.4",
146+
"aws-requests-auth==0.4.3",
147+
"idp-common[image]",
180148
]
181149

182150
# Agent Request Handler
183-
lambda-agent-request = [
184-
"idp-common[docs_service]",
185-
]
186-
187-
# Configuration Resolver
188-
lambda-configuration = [
189-
"idp-common",
190-
]
151+
lambda-agent-request = ["idp-common[docs_service]"]
191152

192153
# Chat with Document
193-
lambda-chat-document = [
194-
"idp-common[docs_service]",
195-
]
154+
lambda-chat-document = ["idp-common[docs_service]"]
155+
lambda-save-reporting = ["idp-common[reporting]"]
196156

197157
# Queue Functions (processor, sender)
198-
lambda-queue = [
199-
"idp-common[docs_service]",
200-
]
158+
lambda-queue = ["idp-common[docs_service]"]
201159

202160
# Cognito/Auth Functions (minimal)
203-
lambda-cognito = [
204-
"cfnresponse",
205-
]
161+
lambda-cognito = ["cfnresponse"]
162+
lambda-counter = ["cfnresponse"]
163+
lambda-workforce = ["cfnresponse"]
206164

207165
# Dashboard Merger
208-
lambda-dashboard = [
209-
"PyYAML>=6.0.0",
210-
]
166+
lambda-dashboard = ["PyYAML>=6.0.0", "cfnresponse"]
211167

212168
# IPSet Updater (boto3 only)
213-
lambda-ipset = []
169+
lambda-ipset = ["cfnresponse", "urllib3>=1.26.0"]
214170

215171
# Minimal functions (counter, reporting, etc)
216-
lambda-minimal = [
217-
"cfnresponse",
218-
]
172+
lambda-start-codebuild = ["crhelper~=2.0.10"]
173+
174+
lambda-update-configuration = ["cfnresponse", "PyYAML", "idp-common"]
175+
lambda-update-settings = ["cfnresponse"]
219176

220177
# Document management resolvers
221-
lambda-document-resolver = [
222-
"idp-common[docs_service]",
223-
]
178+
lambda-document-resolver = ["idp-common[docs_service]"]

src/lambda/configuration_resolver/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
33
PROJECT_ROOT := $(abspath $(MAKEFILE_DIR)/../../../)
44

55
build-ConfigurationResolverFunction:
6-
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-configuration
6+
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-update-configuration
77
cp *.py "$(ARTIFACTS_DIR)/"
88
rm -rf "$(ARTIFACTS_DIR)"/__pycache__
99

src/lambda/get-workforce-url/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
33
PROJECT_ROOT := $(abspath $(MAKEFILE_DIR)/../../../)
44

55
build-GetWorkforceUrlFunction:
6-
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-minimal
6+
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-workforce
77
cp *.py "$(ARTIFACTS_DIR)/"
88
rm -rf "$(ARTIFACTS_DIR)"/__pycache__
99

src/lambda/initialize_counter/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
33
PROJECT_ROOT := $(abspath $(MAKEFILE_DIR)/../../../)
44

55
build-InitializeCounterFunction:
6-
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-minimal
6+
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-counter
77
cp *.py "$(ARTIFACTS_DIR)/"
88
rm -rf "$(ARTIFACTS_DIR)"/__pycache__
99

src/lambda/save_reporting_data/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
33
PROJECT_ROOT := $(abspath $(MAKEFILE_DIR)/../../../)
44

55
build-SaveReportingDataFunction:
6-
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-minimal
6+
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-save-reporting
77
cp *.py "$(ARTIFACTS_DIR)/"
88
rm -rf "$(ARTIFACTS_DIR)"/__pycache__
99

src/lambda/start_codebuild/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
33
PROJECT_ROOT := $(abspath $(MAKEFILE_DIR)/../../../)
44

55
build-StartCodeBuildFunction:
6-
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-minimal
6+
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-start-codebuild
77
cp *.py "$(ARTIFACTS_DIR)/"
88
rm -rf "$(ARTIFACTS_DIR)"/__pycache__
99

src/lambda/update_configuration/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
33
PROJECT_ROOT := $(abspath $(MAKEFILE_DIR)/../../../)
44

55
build-UpdateConfigurationFunction:
6-
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-configuration
6+
uv pip install --target "$(ARTIFACTS_DIR)" --python 3.12 --project "$(PROJECT_ROOT)" --group lambda-update-configuration
77
cp *.py "$(ARTIFACTS_DIR)/"
88
rm -rf "$(ARTIFACTS_DIR)"/__pycache__
99

0 commit comments

Comments
 (0)