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

Address issue #1236. #2785

Merged
merged 2 commits into from
May 19, 2015
Merged

Address issue #1236. #2785

merged 2 commits into from
May 19, 2015

Conversation

mrtrumbe
Copy link
Contributor

A potential solution to #1236 where we check for [extra1,extra2] formatted extras at the end of all requirement specifications, either editable or not.

I recreated the commits and pull request to fix the munged contributor when I did the original commits.

…ory-like requirement specifications as well as url requirement specifications.
@mrtrumbe mrtrumbe mentioned this pull request May 17, 2015
@rbtcollins
Copy link

So this makes

pip install .[test] work - yay.

However pip install file://path/to/thing[test] doesn't - but it doesn't work in develop either, so its not a regression in this patch.

+1.

dstufft added a commit that referenced this pull request May 19, 2015
@dstufft dstufft merged commit 7497073 into pypa:develop May 19, 2015
dstufft added a commit that referenced this pull request May 19, 2015
assert len(req.extras) == 2
assert req.extras[0] == 'ex1'
assert req.extras[1] == 'ex2'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these 4 tests are in the wrong place.
this test class is for processing lines in a requirements file.
you're not testing the process_line method in these tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, looking at it again, I'd probably move them into tests/unit/test_req.py in the TestInstallRequirement class. Does that look more reasonable to you? If so, I can put together a pull request with the change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, that would be great, thanks

@marabout2015
Copy link

I'm glad this specification works for tar.gz, and I see it also works for .whl. How do specify extras when I need to install from a URL? The package is listed in a conda environment.yml, and the system in which I'm doing the install requires that I use a URL.

@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants