question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible use-case for generating a requirements.txt from Pipfile and Pipfile.lock

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
kennethreitzcommented, Jan 30, 2017

$ pipenv install --requirements.

1reaction
FooBarQuaxxcommented, Jan 30, 2017

@kennethreitz Sorry my bad. I was using an old version.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found