Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
- ubuntu-latest
- windows-latest
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
Expand Down Expand Up @@ -262,7 +261,6 @@ jobs:
- ubuntu-latest
- windows-latest
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
Expand Down Expand Up @@ -291,7 +289,6 @@ jobs:
- ubuntu-latest
- windows-latest
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ max-branches = 13

[tool.black]
line-length = 120
target_version = ['py37', 'py38', 'py39']
target_version = ['py310', 'py311', 'py312', 'py313', 'py314']
exclude = '''

(
Expand Down
9 changes: 3 additions & 6 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
coverage==7.13.5; python_version>="3.10"
coverage==7.10.7; python_version<"3.10"
coverage==7.13.5
flake8==3.8.4
pytest-cov==6.3.0; python_version>="3.9"
pytest-cov==5.0.0; python_version<"3.9"
pytest-cov==6.3.0

# Test requirements
pytest>=6.1.1
parameterized==0.9.0
pyelftools~=0.32 # Used to verify the generated Go binary architecture in integration tests (utils.py)

# formatter
black==26.3.1; python_version>="3.10"
black==25.11.0; python_version<"3.10"
black==26.3.1
ruff==0.15.5
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def read_version():
license="Apache License 2.0",
packages=find_packages(exclude=["tests.*", "tests"]),
keywords="AWS Lambda Functions Building",
# Support 3.8 or greater
python_requires=(">=3.8"),
# Support 3.10 or greater
python_requires=(">=3.10"),
entry_points={"console_scripts": ["{}=aws_lambda_builders.__main__:main".format(cmd_name)]},
install_requires=read_requirements("base.txt") + read_requirements("python_pip.txt"),
extras_require={"dev": read_requirements("dev.txt")},
Expand All @@ -58,8 +58,6 @@ def read_version():
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
16 changes: 10 additions & 6 deletions tests/unit/workflows/python_uv/test_packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,11 @@ def test_build_dependencies_pyproject_with_uv_lock(self):
# Mock the uv export command
self.mock_uv_runner._uv.run_uv_command.return_value = (0, b"", b"")

with patch("os.path.basename", return_value="pyproject.toml"), patch(
"os.path.dirname", return_value=os.path.join("path", "to")
), patch("os.path.exists") as mock_exists:
with (
patch("os.path.basename", return_value="pyproject.toml"),
patch("os.path.dirname", return_value=os.path.join("path", "to")),
patch("os.path.exists") as mock_exists,
):

# Mock that uv.lock exists alongside pyproject.toml
mock_exists.return_value = True
Expand All @@ -242,9 +244,11 @@ def test_build_dependencies_pyproject_with_uv_lock(self):

def test_build_dependencies_pyproject_without_uv_lock(self):
"""Test that pyproject.toml without uv.lock uses standard pyproject build."""
with patch("os.path.basename", return_value="pyproject.toml"), patch(
"os.path.dirname", return_value=os.path.join("path", "to")
), patch("os.path.exists") as mock_exists:
with (
patch("os.path.basename", return_value="pyproject.toml"),
patch("os.path.dirname", return_value=os.path.join("path", "to")),
patch("os.path.exists") as mock_exists,
):
# Mock that uv.lock does NOT exist alongside pyproject.toml
mock_exists.return_value = False

Expand Down
Loading