-
Notifications
You must be signed in to change notification settings - Fork 973
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
Optional user/channel #5381
Optional user/channel #5381
Conversation
|
||
def copy_with_rev(self, revision): | ||
return ConanFileReference(self.name, self.version, self.user, self.channel, revision) | ||
|
||
def copy_clear_rev(self): | ||
return ConanFileReference(self.name, self.version, self.user, self.channel, None) | ||
|
||
def __lt__(self, other): |
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.
To allow sorting a list of references
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.
I like it, I thought it was going to be more complicated.
Tests are comprehensive and clear too.
Just a couple of minor questions, please check.
012859b
to
c6e2f45
Compare
c6e2f45
to
4f8c721
Compare
Changelog: Feature: The "user/channel" fields are now optional. e.g:
conan create .
is valid if thename
andversion
are declared in the recipe. e.g:conan create . lib/1.0@
to omit user and channel. The same for other commands. Theuser
andchannel
can also be omitted while specifying requirements in the conanfiles.Docs: conan-io/docs#1375
Close #5310
@PYVERS: Macos@py27, Windows@py36, Linux@py27
@tags: svn, slow
@revisions: 1