Git Product home page Git Product logo

Comments (5)

billyshambrook avatar billyshambrook commented on June 14, 2024 17

We currently have a Makefile which will does the old pipenv lock -r > requirements.txt && sam build --manifest requirements.txt dance. Would like to try and work on this issue so we can all avoid doing that :)

There's a couple of questions I have around the implementation though:

  1. I see with the pip workflow, it's not just as simple as pip install -r requirements.txt, but instead there is a long module that is figuring out the dependencies. With pipenv, is this needed, or can we just do pipenv install? If we can't just use pipenv install, should we output the requirements.txt from pipenv and pass it to that module? Here's the module I'm talking about - https://github.com/awslabs/aws-lambda-builders/blob/develop/aws_lambda_builders/workflows/python_pip/packager.py

  2. I see aws-toolkit-vscode currently expects there to be a requirements.txt for it to add ptvsd to when debugging. Do we need to consider this, or is this something that aws-toolkit-vscode will have to handle?

Thanks

from aws-lambda-builders.

symroe avatar symroe commented on June 14, 2024 4

@billyshambrook as pipenv basically wraps pip it seems reasonable to have a pipenv workflow here that mostly wraps / extends the pip workflow. A quick win would be to basically push the pipenv lock -r > requirements.txt into a builder and then call the pip workflow with the output.

I've never worked on this project, but looking at it, it doesn't seem like a massive job. I'm willing to have a crack, but could do with some advice on if the above is a good idea or not.

from aws-lambda-builders.

jblakeney avatar jblakeney commented on June 14, 2024 1

The aws-sam-cli uses this project to define how to build and package dependencies when running sam build.

There is probably a reference in the code somewhere (been a while since I looked at it), but you can see its referenced in the base.txt as a dependency.

https://github.com/awslabs/aws-sam-cli/blob/develop/requirements/base.txt

from aws-lambda-builders.

jfuss avatar jfuss commented on June 14, 2024

Updated title to match what the description said. Pipenv instead of pyenv

from aws-lambda-builders.

AlanFoster avatar AlanFoster commented on June 14, 2024

Just for context; Is this project currently being used by the sam cli build functionality?

I can't quite see where aws-sam-cli is connected to this project, but I can see from the read me that this work is maybe in flight? 🤔

We are in the process of implementing this project.

from aws-lambda-builders.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.