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.

plugins: Move install_requires into requirements.txt

See original GitHub issue

We need to go through all the setup.py and setup_common.py for each plugin and take anything in the install_requires and move it to a requirements.txt file within the same directory. Then we need to modify setup_common.py (or setup.py if there is no setup_common.py) similar to how was done in 4867b4c1d6b1a51ef89e3926d0561a5502ad2850

REQUIREMENTS_TXT_PATH = Path(SELF_PATH, "requirements.txt")
if REQUIREMENTS_TXT_PATH.is_file():
    INSTALL_REQUIRES += list(
        map(lambda i: i.strip(), REQUIREMENTS_TXT_PATH.read_text().split("\n"))
    )

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
yashlambacommented, Nov 14, 2020

@SGeetansh, Go ahead and let us know if you need any help! Try following the first comment for one plugin and then move on to the others. A good starting point would be any of the model plugins 😃

1reaction
pdxjohnnycommented, Nov 20, 2020

No worries! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference requirements.txt for the install_requires kwarg in ...
install_requires is used to declare dependencies on packages that are required for the package to work and are used by developer of the...
Read more >
A Better Practice for Managing Many extras_require ...
In this article, I introduce a simple yet effective solution to manage optional dependencies via extras_require in Python. This method is ...
Read more >
install_requires vs requirements files
install_requires is a setuptools setup.py keyword that should be used to specify what a project minimally needs to run correctly. When the project...
Read more >
Is requirements.txt the standard way to control library ... - Reddit
No, it isn't. The proper way is to define the build backend in a pyproject.toml-file, and to then have the project metadata—including ...
Read more >
Advanced Usage of Pipenv - Read the Docs
Pipenv will expand environment variables (if defined) in your Pipfile. ... You can convert a Pipfile and Pipfile.lock into a requirements.txt file very ......
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