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

Add 'python_requires_extend' to the reference. Minor changes to pyreqs docs #1709

Merged
merged 5 commits into from
Jun 9, 2020

Conversation

jgsogo
Copy link
Contributor

@jgsogo jgsogo commented May 22, 2020

close #1694

@jgsogo jgsogo requested a review from danimtb May 22, 2020 16:00
@jgsogo jgsogo requested review from SSE4 and removed request for danimtb May 22, 2020 16:00
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
Copy link
Contributor

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?

Copy link
Contributor Author

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``
Copy link
Contributor

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?

Copy link
Contributor Author

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)

@jgsogo jgsogo requested a review from SSE4 May 26, 2020 08:54
@jgsogo jgsogo added this to the master milestone May 26, 2020
@czoido czoido merged commit 5b9cc54 into conan-io:master Jun 9, 2020
@jgsogo jgsogo deleted the doc/python_requires_extend branch June 9, 2020 07:08
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.

4 participants