Skip to content

Commit e973ec2

Browse files
Merge branch 'develop'
2 parents ae14250 + c90c9bc commit e973ec2

File tree

6 files changed

+19
-8
lines changed

6 files changed

+19
-8
lines changed

aws_lambda_builders/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
# Changing version will trigger a new release!
66
# Please make the version change as the last step of your development.
7-
__version__ = "1.36.0"
7+
__version__ = "1.37.0"
88
RPC_PROTOCOL_VERSION = "0.3"

aws_lambda_builders/workflow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,10 @@ def run(self):
362362

363363
for action in self.actions:
364364
action_info = "{}:{}".format(self.NAME, action.NAME)
365-
366-
LOG.info("Running %s", action_info)
365+
function_name = ""
366+
if self.options and "build_logical_id" in self.options:
367+
function_name = "{}:".format(self.options["build_logical_id"])
368+
LOG.info("%s Running %s", function_name, action_info)
367369

368370
try:
369371
action.execute()

aws_lambda_builders/workflows/custom_make/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def execute(self):
9292

9393
try:
9494
current_env = self.osutils.environ()
95-
LOG.info("Current Artifacts Directory : %s", self.artifact_dir_path)
95+
LOG.info("%s: Current Artifacts Directory : %s", self.build_logical_id, self.artifact_dir_path)
9696
current_env.update({"ARTIFACTS_DIR": self.artifact_dir_path})
9797
# Export environmental variables that might be needed by other binaries used
9898
# within the Makefile and also specify the makefile to be used as well.

aws_lambda_builders/workflows/custom_make/make.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import io
55
import logging
66
import shutil
7+
import sys
78
import threading
89

910
LOG = logging.getLogger(__name__)
@@ -92,9 +93,17 @@ def run(self, args, env=None, cwd=None):
9293

9394
# Log every stdout line by iterating
9495
for line in p.stdout:
95-
decoded_line = line.decode("utf-8").strip()
96-
LOG.info(decoded_line)
96+
# Writing to stderr instead of using LOG.info
97+
# since the logger library does not include ANSI
98+
# formatting characters in the output
99+
#
100+
# stderr is used since stdout appears to be reserved
101+
# for command responses
102+
sys.stderr.buffer.write(line)
103+
sys.stderr.flush()
104+
97105
# Gather total stdout
106+
decoded_line = line.decode("utf-8").strip()
98107
stdout += decoded_line
99108

100109
# Wait for the process to exit and stderr thread to end.

aws_lambda_builders/workflows/python_pip/packager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def _is_compatible_wheel_filename(self, filename):
411411
# Deploying python 3 function which means we need cp37m abi
412412
# We can also accept abi3 which is the CPython 3 Stable ABI and
413413
# will work on any version of python 3.
414-
if abi == lambda_runtime_abi or abi == "abi3":
414+
if abi in (lambda_runtime_abi, "abi3"):
415415
return True
416416
# Don't know what we have but it didn't pass compatibility tests.
417417
return False

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ pyelftools~=0.29 # Used to verify the generated Go binary architecture in integr
1212

1313
# formatter
1414
black==23.3.0
15-
ruff==0.0.278
15+
ruff==0.0.284

0 commit comments

Comments
 (0)