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.

Include python dependencies

See original GitHub issue

Hi All,

Two feature suggestions…

Pull in python dependencies Is there any appetite to have a command line option that pulls in python dependencies during the the deploy command?

Separate source and build directories Executing pip install -r requirements.txt -t /path/to/source/ creates a lot of noise in the source directory. It would be great if we could create a separate build directory to create the lambda zip package.

I’ve got some time to spend on this if people think it could be useful.

Cheers,

Anthony.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
stonemarycommented, Dec 14, 2016

I worked around this problem by creating a script which: 0. Have source: _build/ in kappa.yml

  1. creates a _build directory
  2. cp _src/* _build
  3. Run the pip install -t command
  4. Runs kappa

It would be nice if kappa can do something similar.

0reactions
luizs81commented, May 9, 2017

Looking at https://github.com/garnaat/kappa/blob/develop/kappa/function.py#L69 seems that dependencies could be installed somewhere else and then listed in the kappa.yml file.

I didn’t try that yet, but can someone confirm if my understanding is correct?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to include library dependencies with a python project?
Is there any way I can include all the libraries that my project uses with my Python files (or perhaps set up an...
Read more >
How to Package Python Dependencies for Publication
Click to package Python dependencies for publication by using the package development process library and utility Setuptools.
Read more >
Managing Application Dependencies
This tutorial walks you through the use of Pipenv to manage dependencies for an application. It will show you how to install and...
Read more >
How to package a python project with all of its dependencies ...
I'm writing this post to show the way I think is the correct way for installing and packaging python apps with all their...
Read more >
Specifying Dependencies — Python Packaging Tutorial
Sometimes you'll want to use packages that are properly arranged with setuptools, but aren't published to PyPI. In those cases, you can specify...
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