Possible use-case for generating a requirements.txt from Pipfile and Pipfile.lock
See original GitHub issueI’m working on a project using the Serverless framework (serverless.com) and the way Lambda’s are uploaded is to bundle all the files in the directory. The way you typically do this with serverless is to do something like
pip install -r requirements.txt -t ./vendored
Then in your python handler you’d have
import sys; sys.path.append('./vendored')
With pipenv I get the .venv directory but I’m not sure I want to bundle the whole virtualenv and upload that to AWS (or Google/azure) It would be nice if there was a command to generate a requirements.txt like output or install to a specific directory instead of a virtualenv for this sort of use case.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Generate requirements.txt from Pipfile.lock #3493 - GitHub
Imagine, you generate requirements.txt to use it in Dockerfile to build a docker image. Locally your application works, but when you generate ......
Read more >Python HOW: Create requirements.txt Using pipenv
The Pipfile is used to track which dependencies your project needs in case you need to re-install them; Launches a subshell in the...
Read more >How are Pipfile and Pipfile.lock used? - Stack Overflow
The Pipfile file is intended to specify packages requirements for your Python application or library, both to development and execution.
Read more >pipenv lock [> requirements.txt] - Fig.io
Name, Description. --dev-only, Generate a requirements file with only the development requirements. --header, Add header to generated requirements.
Read more >Pipfile.lock → requirements.txt | Yet another way : r/Python
pip-tools can help you generate it from a requirements.in file. Aliases can make everything convenient.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
$ pipenv install --requirements
.@kennethreitz Sorry my bad. I was using an old version.