plugins: Move install_requires into requirements.txt
See original GitHub issueWe 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:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top 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 >
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 Free
Top 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
@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 😃
No worries! Thanks!