Navigation Menu

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

Ignore installed external packages #61

Merged
merged 2 commits into from Jul 25, 2018

Conversation

seporaitis
Copy link
Contributor

As per requirements.txt documentation - add support for external packages.

Currently pip-lock fails with exception ValueError: not enough values to unpack (expected 2, got 1) if it encounters external package in pip freeze output.

@adamchainz
Copy link
Owner

Please add a release note above the 1.1.1 header in HISTORY.rst

Also I think 'Add support' is a bit of a misnomer, perhaps 'Ignore installed external packages' is a better description. True support would be being able to check what's specified in requirements.txt is installed.

I think for this we should also only be filtering them out of the actual side in get_mismatches, perhaps with a flag passed to get_package_versions. Otherwise we're ignoring versions specified in the requirements file and silently failing to check them.

@seporaitis seporaitis changed the title Add support for external packages Ignore installed external packages Jul 6, 2018
@seporaitis
Copy link
Contributor Author

Thanks, I hope to have a deeper look at it over the weekend!

@adamchainz adamchainz merged commit 61fb505 into adamchainz:master Jul 25, 2018
adamchainz added a commit that referenced this pull request Jul 25, 2018
@adamchainz
Copy link
Owner

Released in https://pypi.org/project/pip-lock/1.2.0/

@seporaitis seporaitis deleted the external-packages branch July 29, 2018 20:25
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

2 participants