Skip to content
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

set envconfig.deps during tox_configure #17

Merged
merged 2 commits into from
Nov 24, 2022
Merged

set envconfig.deps during tox_configure #17

merged 2 commits into from
Nov 24, 2022

Conversation

masenf
Copy link
Owner

@masenf masenf commented Nov 24, 2022

for each of the selected environments, update the deps with the lock file at configure time, if it exists

if the user passes --pip-compile, then don't update the deps, so that tox_testenv_installdeps can access them.

this has 3 very nice side effects:

  • --pip-compile now implies --recreate, because the compiled environment is created from the pin file, it won't match the unmodified deps passed when --pip-compile is present.
  • --ignore-pins now implies --recreate, for the same reason...and un-ignoring the pins will also recreate the environment.
  • normal runs now do NOT recreate the environment which it was doing every time before

All around major win.

Replaces #10

for each of the selected environments, update the
deps with the lock file at configure time, if it
exists

if the user passes --pip-compile, then don't update
the deps, so that tox_testenv_installdeps can
access them.

this has 3 very nice side effects:
  * --pip-compile now implies --recreate, because
    the compiled environment is created from the
    pin file, it won't match the unmodified deps
    passed when --pip-compile is present.
  * --ignore-pins now implies --recreate, for the
    same reason...and un-ignoring the pins will
    also recreate the environment.
  * normal runs now do NOT recreate the environment
    which it was doing _every_ time before

All around major win.
ensure that deps are overwritten early in the
envconfig, provided that pins are not ignore and
pip-compile will not be called.
@masenf masenf merged commit aa5e8ae into main Nov 24, 2022
@masenf masenf deleted the early-deps-override branch November 24, 2022 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant