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

[question] conan info doesnt take into accountpython requires dependency #9277

Closed
sandeshhardikar opened this issue Jul 16, 2021 · 4 comments · Fixed by #9290
Closed

[question] conan info doesnt take into accountpython requires dependency #9277

sandeshhardikar opened this issue Jul 16, 2021 · 4 comments · Fixed by #9290
Assignees
Milestone

Comments

@sandeshhardikar
Copy link

I have a recipe which has build_requires , requires and python_requires .

conan info doesnt track "python_requires" neither in dependency graph or in the text output .

Is there any other way to get list of "python_requires" dependency ?

Thank in advance ,
Sandesh

@memsharded
Copy link
Member

memsharded commented Jul 16, 2021

I think the lockfile contains the locked python_requires.

I guess it might be doable adding them to conan info command, but unless there is a very compelling and demanded use case, that would probably need to wait until Conan 2.0 new CLI.

@sandeshhardikar
Copy link
Author

Thank you for your response
yes , the locked file contains python_requires .

But passing the lock file to conan info has no effect on the output . It still gives the same output and python_requires is missing in it .

conan lock create conanfile.py --lockfile-out=dummy.lock
conan info path_to_recipe -l dummy.lock --only None

My use Case :
We want to provide some system level packages to our customer , which in turn are dependent on lot of other packages . We want to determine programmatically which packages have to be uploaded outside the organization when we make a release . conan info was the suitable command for this , except for missing python_requires package

@memsharded
Copy link
Member

Understood.

I have proposed a PR in #9290 to add this information to conan info output (both stdout and json, that I guess you are interested in if doing automatic processing).

@memsharded memsharded added this to the 1.39 milestone Jul 19, 2021
@memsharded
Copy link
Member

Merged, this will be in next 1.39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants