Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Support pipenv #32

Open
nitrocode opened this issue Jan 10, 2019 · 3 comments
Open

Support pipenv #32

nitrocode opened this issue Jan 10, 2019 · 3 comments

Comments

@nitrocode
Copy link

nitrocode commented Jan 10, 2019

It would be nice if pipenv was supported.

https://pipenv.readthedocs.io/en/latest/

It doesn't have a requirements.txt file, instead it has Pipfile and Pipfile.lock files

pipenv run pip install -r <(pipenv lock -r) --target .

Source: pypa/pipenv#746 (comment)

Would be enough to install all of its dependencies

@raymondbutcher
Copy link
Contributor

(shameless copy/paste from #33)

Hi,

Custom build commands were added in v0.11.0. There is an example here which uses Docker: https://github.com/claranet/terraform-aws-lambda/tree/master/tests/build-command

It should be possible to have a build script that runs pipenv directly or in Docker. I don't currently have a pipenv project to test this on.

If you get this working, please update this issue and maybe we can add a test for it.

Cheers!

@ruzin
Copy link

ruzin commented Feb 11, 2019

something I built to help specifically with packaging up python source code and dependencies for AWS Lambda https://github.com/ruzin/terraform_aws_lambda_python

@ruzin
Copy link

ruzin commented Feb 11, 2019

In case anyone finds it useful

mbklein pushed a commit to nulib/terraform-aws-lambda that referenced this issue Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants