Comments (5)
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:
-
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 dopipenv install
? If we can't just usepipenv 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 -
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.
@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.
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.
Updated title to match what the description said. Pipenv instead of pyenv
from aws-lambda-builders.
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)
- SAM build failed in sam cli using python 3.9. HOT 3
- How to make `sam` hold my SSH keys so `sam build` can download dependencies from my private repository? HOT 4
- [Announcement] Deprecating AWS Lambda Builders on python3.6 HOT 1
- Feature request: Add support for ES Modules with esbuild. HOT 4
- Feature request: Support packaging resource files with workflow HOT 7
- Add support for SourcesContent option in esbuild builds HOT 2
- Bug: UnsupportedPackageError when tests run under setuptools 66+ HOT 1
- [Announcement] .NET Core 3.1 Runtime Deprecation
- Using pip 23.1 produces invalid deployment file when package references other local packages HOT 1
- Feature request: Allow ignoring dependencies when building with python pip HOT 2
- Bug: sam build throws error with python packages installed with git+https url HOT 3
- Bug: No message from the Maven's stderr in the sam output logs HOT 1
- Feature request: Include/Exclude Interface for AWS Lambda Builders HOT 3
- Bug: SAM is failing to build python package neo4j HOT 5
- German Umlaut in Maven stdout causes SAM build to fail HOT 4
- NodejsNpmEsbuildBuilder:NpmInstall - NPM Failed: npm WARN config production Use `--omit=dev` instead HOT 3
- Can not install custom python dependency from custom git url HOT 3
- Bug: Using AWS::Serverless::LayerVersion with BuildMethod: makefile and python runtime fails to build HOT 2
- [Announcement] Upcoming Runtime Deprecations
- Bug: dnf command does not work on version of public.ecr.aws/lambda/python:3.11-x86_64 publish around 2023.12.05 16:00 UTC HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-lambda-builders.