-
Notifications
You must be signed in to change notification settings - Fork 3
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
Consider egg-info/requires.txt when determining requirements hash #11
Comments
Hi @dgilland , I've recently created same issue here as I was thinking about the same. And, for instance, in my projects - I don't operate with requirement files much mostly project dependencies are in the I've just found also this project and it should support the functionality we need, I need to figure out how it works (looks like https://github.com/Yelp/venv-update is used). I need to investigate about |
Hi friend (noticed the star) -- venv-update (pip-faster) instruments (monkeypatches) pip to hook into the dependency resolution and has two goals:
The venv-update plugin of Happy to elaborate :) |
@asottile I wasn't able to use @signalpillar I spent some time trying to track down how to read the |
tox-pip-extensions does most of its work by modifying install. You could get it to work still by using environment variables to control pip (via setenv) probably |
@asottile Thanks for the suggestion! Using |
Consider the scenario where
install_requires
changes insetup.py
but isn't reflected in any requirements file (e.g. maybe the requirements file only lists test dependencies and package dependencies only exist insetup.py
).Currently, this does not trigger a venv recreate since tox-battery only checks
deps
defined intox.ini
, and tox itself doesn't trigger a recreate either in this case (at least in my initial testing I didn't see this). This can result in reusing a venv with an old dependency installed fromsetup.py
.What if tox-battery used those dependencies in addition to the ones in the requirements files to generate its requirements hash? It's possible to parse the contents of
<pkgname>.egg-info/requires.txt
to get a list of dependencies defined insetup.py
so that approach may work in most cases.Thoughts?
The text was updated successfully, but these errors were encountered: