Skip to content

Extract dependencies from setup.py #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gaborbernat opened this issue Mar 27, 2017 · 5 comments
Closed

Extract dependencies from setup.py #496

gaborbernat opened this issue Mar 27, 2017 · 5 comments

Comments

@gaborbernat
Copy link
Member

So now one has the option to add requirements.txt via the -r option. However, for the package there already exists a setup.py that contains the dependencies. It would be nice to not need to have maintain dependencies in two files and instead load them directly from the requirements.txt via '-ssetup.py'. What do you guys think?

@RonnyPfannschmidt
Copy link

RonnyPfannschmidt commented Mar 27, 2017

i belive this is a duplicate of #13

@The-Compiler
Copy link
Member

I don't understand - tox already install requirements listed in your setup.py when installing your package, no? Also setup.py vs requirements.txt might be worth a read 😉

@RonnyPfannschmidt
Copy link

@The-Compiler the requirement extraction happens at package install time, not package test time
and its done by pip, not by tox

it could help a lot to extract test_requires/extra_requires and reuse them

@obestwalter
Copy link
Member

obestwalter commented Mar 27, 2017

This is really a dupe, so let's take the discussion there. Closing.

Duplicate of #13

@gaborbernat
Copy link
Member Author

@obestwalter @RonnyPfannschmidt you're correct, my pain is that after initial env creation stuff updated in setup.py does not trigger a reinstall (only if you change stuff in deps), but that's another issue.

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants