Skip to content

Commit f81fc29

Browse files
Merge branch 'develop'
2 parents 4861691 + 9115992 commit f81fc29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+228
-181
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ jobs:
6363
- ubuntu-latest
6464
- windows-latest
6565
python:
66-
- "3.7"
6766
- "3.8"
6867
- "3.9"
6968
- "3.10"
@@ -88,7 +87,6 @@ jobs:
8887
- ubuntu-latest
8988
- windows-latest
9089
python:
91-
- "3.7"
9290
- "3.8"
9391
- "3.9"
9492
- "3.10"
@@ -120,7 +118,6 @@ jobs:
120118
- ubuntu-latest
121119
- windows-latest
122120
python:
123-
- "3.7"
124121
- "3.8"
125122
- "3.9"
126123
- "3.10"
@@ -154,7 +151,6 @@ jobs:
154151
- ubuntu-latest
155152
- windows-latest
156153
python:
157-
- "3.7"
158154
- "3.8"
159155
- "3.9"
160156
- "3.10"
@@ -182,7 +178,6 @@ jobs:
182178
- ubuntu-latest
183179
- windows-latest
184180
python:
185-
- "3.7"
186181
- "3.8"
187182
- "3.9"
188183
- "3.10"
@@ -213,7 +208,6 @@ jobs:
213208
- ubuntu-latest
214209
- windows-latest
215210
python:
216-
- "3.7"
217211
- "3.8"
218212
- "3.9"
219213
- "3.10"
@@ -242,7 +236,6 @@ jobs:
242236
- ubuntu-latest
243237
- windows-latest
244238
python:
245-
- "3.7"
246239
- "3.8"
247240
- "3.9"
248241
- "3.10"
@@ -267,7 +260,6 @@ jobs:
267260
- ubuntu-latest
268261
- windows-latest
269262
python:
270-
- "3.7"
271263
- "3.8"
272264
- "3.9"
273265
- "3.10"
@@ -296,7 +288,6 @@ jobs:
296288
- ubuntu-latest
297289
- windows-latest
298290
python:
299-
- "3.7"
300291
- "3.8"
301292
- "3.9"
302293
- "3.10"
@@ -310,9 +301,6 @@ jobs:
310301
- uses: ruby/setup-ruby@v1
311302
with:
312303
ruby-version: "3.2"
313-
- uses: ruby/setup-ruby@v1
314-
with:
315-
ruby-version: "2.7"
316304
- run: make init
317305
- run: pytest -vv tests/integration/workflows/ruby_bundler
318306

@@ -327,7 +315,6 @@ jobs:
327315
- ubuntu-latest
328316
- windows-latest
329317
python:
330-
- "3.7"
331318
- "3.8"
332319
- "3.9"
333320
- "3.10"
@@ -359,7 +346,6 @@ jobs:
359346
python:
360347
- "3.9"
361348
- "3.8"
362-
- "3.7"
363349
rust:
364350
- stable
365351
steps:

aws_lambda_builders/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
# Changing version will trigger a new release!
66
# Please make the version change as the last step of your development.
77

8-
__version__ = "1.45.0"
8+
__version__ = "1.46.0"
99
RPC_PROTOCOL_VERSION = "0.3"

aws_lambda_builders/architecture.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""
22
Enum for determining type of architectures for Lambda Function.
33
"""
4+
45
X86_64 = "x86_64"
56
ARM64 = "arm64"

aws_lambda_builders/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Common utilities for the library
33
"""
4+
45
import locale
56
import logging
67
import os

aws_lambda_builders/validator.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,22 @@
1010
LOG = logging.getLogger(__name__)
1111

1212
SUPPORTED_RUNTIMES = {
13-
"nodejs12.x": [ARM64, X86_64],
14-
"nodejs14.x": [ARM64, X86_64],
1513
"nodejs16.x": [ARM64, X86_64],
1614
"nodejs18.x": [ARM64, X86_64],
1715
"nodejs20.x": [ARM64, X86_64],
18-
"python3.7": [X86_64],
1916
"python3.8": [ARM64, X86_64],
2017
"python3.9": [ARM64, X86_64],
2118
"python3.10": [ARM64, X86_64],
2219
"python3.11": [ARM64, X86_64],
2320
"python3.12": [ARM64, X86_64],
24-
"ruby2.7": [ARM64, X86_64],
2521
"ruby3.2": [ARM64, X86_64],
2622
"java8": [ARM64, X86_64],
2723
"java11": [ARM64, X86_64],
2824
"java17": [ARM64, X86_64],
2925
"java21": [ARM64, X86_64],
3026
"go1.x": [ARM64, X86_64],
3127
"dotnet6": [ARM64, X86_64],
28+
"dotnet8": [ARM64, X86_64],
3229
"provided": [ARM64, X86_64],
3330
}
3431

aws_lambda_builders/workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Implementation of a base workflow
33
"""
4+
45
import functools
56
import logging
67
import os

aws_lambda_builders/workflows/custom_make/actions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
class CustomMakeAction(BaseAction):
17-
1817
"""
1918
A Lambda Builder Action that builds and packages a provided runtime project using Make.
2019
"""

aws_lambda_builders/workflows/custom_make/make.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Wrapper around calling make through a subprocess.
33
"""
4+
45
import io
56
import logging
67
import shutil
@@ -11,7 +12,6 @@
1112

1213

1314
class MakeExecutionError(Exception):
14-
1515
"""
1616
Exception raised in case Make execution fails.
1717
It will pass on the standard error output from the Make console.
@@ -24,7 +24,6 @@ def __init__(self, **kwargs):
2424

2525

2626
class SubProcessMake(object):
27-
2827
"""
2928
Wrapper around the Make command line utility, making it
3029
easy to consume execution results.

aws_lambda_builders/workflows/custom_make/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class OSUtils(object):
13-
1413
"""
1514
Wrapper around file system functions, to make it easy to
1615
unit test actions in memory

aws_lambda_builders/workflows/custom_make/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
ProvidedMakeWorkflow
33
"""
4+
45
from aws_lambda_builders.actions import CopySourceAction
56
from aws_lambda_builders.path_resolver import PathResolver
67
from aws_lambda_builders.workflow import BaseWorkflow, BuildDirectory, BuildInSourceSupport, Capability
@@ -13,7 +14,6 @@
1314

1415

1516
class CustomMakeWorkflow(BaseWorkflow):
16-
1717
"""
1818
A Lambda builder workflow for provided runtimes based on make.
1919
"""

aws_lambda_builders/workflows/dotnet_clipackage/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Commonly used utilities
33
"""
4+
45
import logging
56
import os
67
import platform

aws_lambda_builders/workflows/dotnet_clipackage/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
.NET Core CLI Package Workflow
33
"""
4+
45
from aws_lambda_builders.workflow import BaseWorkflow, BuildDirectory, BuildInSourceSupport, Capability
56

67
from .actions import GlobalToolInstallAction, RunPackageAction
@@ -10,7 +11,6 @@
1011

1112

1213
class DotnetCliPackageWorkflow(BaseWorkflow):
13-
1414
"""
1515
A Lambda builder workflow that knows to build and package .NET Core Lambda functions
1616
"""

aws_lambda_builders/workflows/go_modules/builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Build a Go project using standard Go tooling
33
"""
4+
45
import logging
56
from pathlib import Path
67

aws_lambda_builders/workflows/go_modules/workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Go Modules Workflow
33
"""
4+
45
from aws_lambda_builders.workflow import BaseWorkflow, BuildDirectory, BuildInSourceSupport, Capability
56

67
from .actions import GoModulesBuildAction

aws_lambda_builders/workflows/java_gradle/workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Java Gradle Workflow
33
"""
4+
45
import hashlib
56
import os
67

aws_lambda_builders/workflows/java_maven/workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Java Maven Workflow
33
"""
4+
45
from aws_lambda_builders.actions import CleanUpAction, CopySourceAction
56
from aws_lambda_builders.workflow import BaseWorkflow, BuildDirectory, BuildInSourceSupport, Capability
67
from aws_lambda_builders.workflows.java.actions import JavaCopyDependenciesAction, JavaMoveDependenciesAction

aws_lambda_builders/workflows/nodejs_npm/actions.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class NodejsNpmPackAction(BaseAction):
16-
1716
"""
1817
A Lambda Builder Action that packages a Node.js package using NPM to extract the source and remove test resources
1918
"""
@@ -151,7 +150,6 @@ def execute(self):
151150

152151

153152
class NodejsNpmCIAction(BaseAction):
154-
155153
"""
156154
A Lambda Builder Action that installs NPM project dependencies
157155
using the CI method - which is faster and better reproducible
@@ -201,7 +199,6 @@ def execute(self):
201199

202200

203201
class NodejsNpmrcAndLockfileCopyAction(BaseAction):
204-
205202
"""
206203
A Lambda Builder Action that copies lockfile and NPM config file .npmrc
207204
"""
@@ -247,7 +244,6 @@ def execute(self):
247244

248245

249246
class NodejsNpmrcCleanUpAction(BaseAction):
250-
251247
"""
252248
A Lambda Builder Action that cleans NPM config file .npmrc
253249
"""
@@ -288,7 +284,6 @@ def execute(self):
288284

289285

290286
class NodejsNpmLockFileCleanUpAction(BaseAction):
291-
292287
"""
293288
A Lambda Builder Action that cleans up garbage lockfile left by 7 in node_modules
294289
"""

aws_lambda_builders/workflows/nodejs_npm/exceptions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Exceptions for the Node.js workflow
33
"""
44

5-
65
from aws_lambda_builders.exceptions import LambdaBuilderError
76

87

aws_lambda_builders/workflows/nodejs_npm/npm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class SubprocessNpm(object):
13-
1413
"""
1514
Wrapper around the NPM command line utility, making it
1615
easy to consume execution results.

aws_lambda_builders/workflows/nodejs_npm/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class OSUtils(object):
13-
1413
"""
1514
Wrapper around file system functions, to make it easy to
1615
unit test actions in memory

aws_lambda_builders/workflows/nodejs_npm/workflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343

4444
class NodejsNpmWorkflow(BaseWorkflow):
45-
4645
"""
4746
A Lambda builder workflow that knows how to pack
4847
NodeJS projects using NPM.

aws_lambda_builders/workflows/nodejs_npm_esbuild/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Actions specific to the esbuild bundler
33
"""
4+
45
import logging
56
from typing import Any, Dict
67

@@ -17,7 +18,6 @@
1718

1819

1920
class EsbuildBundleAction(BaseAction):
20-
2121
"""
2222
A Lambda Builder Action that packages a Node.js package using esbuild into a single file
2323
optionally transpiling TypeScript

aws_lambda_builders/workflows/nodejs_npm_esbuild/esbuild.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Wrapper around calling esbuild through a subprocess.
33
"""
4+
45
import logging
56
from pathlib import Path
67
from typing import Any, Callable, Dict, List, Union

aws_lambda_builders/workflows/nodejs_npm_esbuild/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Esbuild specific exceptions
33
"""
4+
45
from aws_lambda_builders.actions import ActionFailedError
56
from aws_lambda_builders.exceptions import LambdaBuilderError
67

aws_lambda_builders/workflows/nodejs_npm_esbuild/workflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131

3232
class NodejsNpmEsbuildWorkflow(BaseWorkflow):
33-
3433
"""
3534
A Lambda builder workflow that uses esbuild to bundle Node.js and transpile TS
3635
NodeJS projects using NPM with esbuild.

aws_lambda_builders/workflows/python_pip/DESIGN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def build_dependencies(artifacts_dir_path,
4949
5050
:type runtime: str
5151
:param runtime: Python version to build dependencies for. This can
52-
either be python3.7, python3.8, python3.9, python3.10, python3.11 or python3.12. These are
52+
either be python3.8, python3.9, python3.10, python3.11 or python3.12. These are
5353
currently the only supported values.
5454
5555
:type ui: :class:`lambda_builders.actions.python_pip.utils.UI`

aws_lambda_builders/workflows/python_pip/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Python pip specific workflow exceptions.
33
"""
4+
45
from aws_lambda_builders.exceptions import LambdaBuilderError
56

67

0 commit comments

Comments
 (0)