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.

[question] What about parsing requirements.txt?

See original GitHub issue

https://github.com/kennethreitz/setup.py/blob/c5a82dc3670b5fa65e4d5da578d992c38b62d524/setup.py#L22

2 years ago I was playing with this http://j.mp/setup_py and one of the features is using pip.req.parse_requirements('requirements.txt') to populate the requires and avoid duplicity.

What do you think about this? on advantage of having a requirements.txt is to use pyup.io and satefy to check updates and audit the requirements for security failures.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
webknjazcommented, Sep 3, 2017

@rochacbruno take a look at pbr if you need this, but you should first consider having a single place of requirements, if you need to group optional requirements in distribution package, there’s extras_require for this purpose.

1reaction
kennethreitzcommented, Aug 29, 2017

like i said, I’ve done it before 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Proper way to parse requirements file after pip upgrade to pip ...
First, I believe parsing requirements.txt from within setup.py is not a good idea. It should be the other way around, install_requires in ...
Read more >
API to parse requirements.txt for setup.py #1080 - GitHub
parsing requirements.txt just to get structured data about all package dependencies (including optional and platform specific); parsing ...
Read more >
Add parser to requirements.txt - Support - Zyte
I'm trying to use urllib.parse to analyse and clean up some URLs. First, I added the module urllib3 to my requirements.txt file as...
Read more >
User Guide - pip documentation v22.3.1
Details on the format of the files are here: Requirements File Format. Logically, a Requirements file is just a list of pip install...
Read more >
Using Python's pip to Manage Your Projects' Dependencies
You can add as many packages as you want to the pip install command. In cases like this, a requirements.txt file can come...
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