-
Notifications
You must be signed in to change notification settings - Fork 361
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 'python_requires_extend' to the reference. Minor changes to pyreqs docs #1709
Conversation
This is an **experimental** feature subject to breaking changes in future releases. | ||
|
||
|
||
This class attribute defines one or more classes that will be injected in runtime as base classes of |
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.
it would be nice to have an example of syntax of multiple classes specified in python_requires_extend
, e.g. should I specify tuple, array, list or something else?
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.
Now the example uses several python requires.
|
||
|
||
This class attribute defines one or more classes that will be injected in runtime as base classes of | ||
the recipe class. Syntax for each of these classes should be a string like ``pyreq.MyConanfileBase`` |
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.
also, it's not obvious what's the effect of injection.
e.g. will class Pkg(ConanFile):
transform into class Pkg(pyreq.MyConanfileBase):
? or will it transform into class Pkg(pyreq.MyConanfileBase, ConanFile)
(multiple inheritance)? or something else?
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've added it to the python_requires
section (the linked one)
close #1694