From 3c9685a90bfb9ec962e3f61e3c80b26e593b03f2 Mon Sep 17 00:00:00 2001 From: Chuck Daniels Date: Wed, 9 Oct 2024 14:00:03 -0400 Subject: [PATCH] Upgrade tooling to fix broken build - Have tox install current LTS release of nodejs - Have tox install latest v2.x release of CDK CLI - Update pip editable install to work with pip 25+ The last point addresses the following warning when running tox: > DEPRECATION: Legacy editable install of hls_lambda_layer==0.0.0 from > file:///Users/chuck/src/NASA-IMPACT/hls-orchestration/layers/hls_lambda_layer/python > (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour > change. A possible replacement is to add a pyproject.toml or enable > --use-pep517, and use setuptools >= 64. If the resulting installation > is not behaving as expected, try using --config-settings editable_mode=compat. > Please consult the setuptools documentation for more information. > Discussion can be found at https://github.com/pypa/pip/issues/11457 --- setup.py | 4 +++- tox.ini | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 69abef1..716cf07 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,9 @@ "constructs>=10.0.0", ] -install_requires: list[str] = [] +install_requires: list[str] = [ + "setuptools>=64", +] extras_require_test = [ *aws_cdk_extras, diff --git a/tox.ini b/tox.ini index c3c0a99..c3b46fc 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ extras = test envdir = toxenv passenv = AWS_DEFAULT_REGION commands = - pip install -e ./layers/hls_lambda_layer/python + pip install --use-pep517 -e ./layers/hls_lambda_layer/python python -m pytest --cov=lambda_functions --ignore=node_modules --ignore=cdk.out flake8 @@ -17,8 +17,8 @@ passenv = HLS_* AWS_* commands = - nodeenv --node=20.17.0 --python-virtualenv - npm install -g aws-cdk@v2.155.0 + nodeenv --node=lts --python-virtualenv + npm install -g aws-cdk@v2.* cdk --version [testenv:dev]