-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Join extras from constraints and requests #3105
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -313,3 +313,46 @@ def test_constrained_to_url_install_same_url(script, data): | |
| 'install', '--no-index', '-f', data.find_links, '-c', | ||
| script.scratch_path / 'constraints.txt', to_install) | ||
| assert 'Running setup.py install for singlemodule' in result.stdout | ||
|
|
||
|
|
||
| def test_install_with_extras_from_constraints(script, data): | ||
| to_install = data.packages.join("LocalExtras") | ||
| script.scratch_path.join("constraints.txt").write( | ||
| "file://%s#egg=LocalExtras[bar]" % to_install | ||
| ) | ||
| result = script.pip_install_local( | ||
| '-c', script.scratch_path / 'constraints.txt', 'LocalExtras') | ||
| assert script.site_packages / 'simple' in result.files_created | ||
|
|
||
|
|
||
| def test_install_with_extras_from_install(script, data): | ||
| to_install = data.packages.join("LocalExtras") | ||
| script.scratch_path.join("constraints.txt").write( | ||
| "file://%s#egg=LocalExtras" % to_install | ||
| ) | ||
| result = script.pip_install_local( | ||
| '-c', script.scratch_path / 'constraints.txt', 'LocalExtras[baz]') | ||
| assert script.site_packages / 'singlemodule.py'in result.files_created | ||
|
|
||
|
|
||
| def test_install_with_extras_joined(script, data): | ||
| to_install = data.packages.join("LocalExtras") | ||
| script.scratch_path.join("constraints.txt").write( | ||
| "file://%s#egg=LocalExtras[bar]" % to_install | ||
| ) | ||
| result = script.pip_install_local( | ||
| '-c', script.scratch_path / 'constraints.txt', 'LocalExtras[baz]' | ||
| ) | ||
| assert script.site_packages / 'simple' in result.files_created | ||
| assert script.site_packages / 'singlemodule.py'in result.files_created | ||
|
|
||
|
|
||
| def test_install_with_extras_editable_joined(script, data): | ||
| to_install = data.packages.join("LocalExtras") | ||
| script.scratch_path.join("constraints.txt").write( | ||
| "-e file://%s#egg=LocalExtras[bar]" % to_install | ||
| ) | ||
| result = script.pip_install_local( | ||
| '-c', script.scratch_path / 'constraints.txt', 'LocalExtras[baz]') | ||
| assert script.site_packages / 'simple' in result.files_created | ||
| assert script.site_packages / 'singlemodule.py'in result.files_created | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it worth having a case with a requirements file? Not conceptually different to install... but it might be nice to be explicit that should no longer error
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I realised that the constraints bug was a special case of the general problem (which itself is a sub-special-case of the resolver problem). I think it would be confusing if extras work with constraints but not requirements or cli - so am arguing that we address them all concurrently, within thebounds of not having a resolver). |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A logging.debug of the merge could be helpful.