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

Recalculate secondary dependencies between rounds #378

Merged
merged 1 commit into from
Nov 20, 2016

Conversation

coagulant
Copy link
Contributor

Previously dependency constrains were only added between rounds of
resolving dependencies.
This could cause irrelevant packages to be
present in resulting requirements.txt, e.g. when collecting third-level
dependencies (celery->amqp->vine), when second-level
dependency changes (ampq 2.0.2 -> 1.4.9), 3rd-level requirement (vine)
might remain in resulting output.

So instead of adding new constrains each round and stopping when
there was nothing to add, we replace old constrains with newlely calculated ones
each round and stop when both sets of constrains are identical.

fixes #370

Previously dependency constrains were only added between rounds of
resolving dependencies.
This could cause irrelevant packages to be
present in resulting requirements.txt, e.g. when collecting third-level
dependencies (celery->amqp->vine), when second-level
dependency changes (ampq 2.0.2 -> 1.4.9), 3rd-level requirement (vine)
might remain in resulting output.

So instead of adding new constrains each round and stopping when
there was nothing to add, we replace old constrains with newlely calculated ones
each round and stop when both sets of constrains are identical.

fixes jazzband#370
@coagulant
Copy link
Contributor Author

@nvie any thoughts how we should improve this code to get PR merged?

@chrismeyersfsu
Copy link

Looking forward to this feature 👍

@nvie
Copy link
Member

nvie commented Nov 20, 2016

Thanks, this feature is awesome, and sorry I have not merged this before, @coagulant !

@nvie nvie merged commit 741e967 into jazzband:master Nov 20, 2016
suutari-ai added a commit to suutari/prequ that referenced this pull request Feb 9, 2017
Mark the merged PRs of pip-tools in Change Log more clearly so that it
is easier to keep track which fixes/features are already in.

This includes following 7 PRs:

  * jazzband#355
  * jazzband#378
  * jazzband#389
  * jazzband#417
  * jazzband#441
  * jazzband#448
  * jazzband#450
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.

pip-compile may add unwanted requirements from future versions of package dependencies
3 participants