Open
Description
I am currently unsure if this is a bug, but I am using the plugin to build requirements from a Pipfile, and I see the following message:
Serverless: Generating requirements.txt from Pipfile...
--
Serverless: Parsed requirements.txt from Pipfile in /codebuild/output/src226277008/src/github.com/my-org/my-service/.serverless/requirements.txt...
Serverless: Installing requirements from /root/.cache/serverless-python-requirements/844ade38cf22332a92d3662e1b0f852366c5dc9d600ec37332c7f2ecdb1515a5_x86_64_slspyc/requirements.txt ...
Serverless: Using download cache directory /root/.cache/serverless-python-requirements/downloadCacheslspyc
Serverless: Running ...
This is what the Pipfile contains (I have pinned pandas and numpy as they are causing me a build issue):
[packages]
jsons = "*"
pandas = "1.2.1"
openpyxl = "*"
xlsxwriter = "*"
xlrd = "*"
numpy = "1.19.5"
boto3 = "*"
botocore = "*"
requests = "*"
aws-requests-auth = "*"
aws-lambda-powertools = "*"
However when I download the layer and look at the requirements.txt file included in it, the versions are not honoured:
jsons==1.6.0
numpy==1.22.0rc1
openpyxl==3.0.9
pandas==1.3.4
You can see that the versions defined in the Pipfile are being ignored for some reason, is there a chance that if there is a Pipfile.lock present it is actually using this file?