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

Add pip check to tox to catch dependency conflicts #924

Closed
wants to merge 2 commits into from
Closed

Conversation

tjd2002
Copy link
Contributor

@tjd2002 tjd2002 commented May 10, 2019

Per discussion at #921.

It is currently possible for our pinned requirements list to specify a set of packages that are in conflict with each other. (This is because pip install does not fail in this case pypa/pip#775 pypa/pip#988 )

Indeed, right now we have such a conflict (until #923 is merged). So adding this test should cause CI to fail if it is done before 923.

The pip check command checks for this condition, and fails if there are conflicts. This PR adds pip check to the tox testenv, and also recommends running it when initially writing the requirements files.

I am not sure if I put the command in the right place within tox, but I did test that it detects the conflict.

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.

1 participant