Skip to content

Commit 5636158

Browse files
committed
tests: additional functional tests for python_uv
1 parent 84f5c13 commit 5636158

File tree

12 files changed

+816
-7
lines changed

12 files changed

+816
-7
lines changed

aws_lambda_builders/workflows/python_uv/packager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def _build_from_lock_file(
369369
# For uv sync, we need the project directory (where pyproject.toml and uv.lock are)
370370
# uv sync automatically finds both files in the working directory
371371
project_dir = os.path.dirname(lock_path)
372-
372+
373373
self._uv_runner.sync_dependencies(
374374
project_dir=project_dir, # Pass project directory instead of lock path
375375
target_dir=target_dir,

aws_lambda_builders/workflows/python_uv/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def run_subprocess(self, cmd, cwd=None, env=None):
3434
def detect_uv_manifest(source_dir: str) -> Optional[str]:
3535
"""
3636
Detect UV-compatible manifest files in order of preference.
37-
37+
3838
Note: uv.lock is NOT a manifest - it's a lock file that accompanies pyproject.toml.
3939
UV workflows support these manifest types:
4040
1. pyproject.toml (preferred) - may have accompanying uv.lock
@@ -50,15 +50,15 @@ def detect_uv_manifest(source_dir: str) -> Optional[str]:
5050
pyproject_path = os.path.join(source_dir, "pyproject.toml")
5151
if os.path.isfile(pyproject_path):
5252
return pyproject_path
53-
53+
5454
# Check for requirements.txt variants (in order of preference)
5555
requirements_variants = [
5656
"requirements.txt",
57-
"requirements-dev.txt",
57+
"requirements-dev.txt",
5858
"requirements-test.txt",
59-
"requirements-prod.txt"
59+
"requirements-prod.txt",
6060
]
61-
61+
6262
for requirements_file in requirements_variants:
6363
requirements_path = os.path.join(source_dir, requirements_file)
6464
if os.path.isfile(requirements_path):

aws_lambda_builders/workflows/python_uv/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _get_additional_binaries(self):
174174

175175
def get_validators(self):
176176
"""Get runtime validators.
177-
177+
178178
UV has robust built-in Python version handling and can automatically
179179
find, download, and manage Python versions. Unlike pip, UV doesn't need
180180
external validation of Python runtime paths.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)