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

Consumable Public 'Debug Resolve' API #194

Closed
cooperlees opened this issue Jun 8, 2018 · 3 comments
Closed

Consumable Public 'Debug Resolve' API #194

cooperlees opened this issue Jun 8, 2018 · 3 comments
Labels
area/cli Related to the command line kind/feature Feature requests/implementations

Comments

@cooperlees
Copy link

Thanks for making this project, it's a shame it needs to exist, but Python really needs a nice solid resolver. I, along with a coworker tried to get JSON output added to pip download, but that was not received well (pypa/pip#5400).

How do you feel about making the debug:resolve friendlier for other packages to import and use? I have a system where I wrap pip and build wheels for my build build system to consume (the are then also built with my version of gcc, openssl etc.). Today I use pip without the --no-deps option, but this means every time someone asks for a new module we build every single dep again, wasting time and resources (as I just skip uploading them to my internal PEP381 mirror if they already exist). Combining this system with poetry I could add the --no-deps to pip and pre calculate what I need to build.

For example, we request x:

  • x depends on y
  • y is already built
    So I'd like to skip building y again and all its potential dependencies, building only what's required.

I hacked up an example file that poetry.console.commands.debug.resolve could then use: https://pastebin.com/AfHz4a2m (Naturally without the Py3 only stuff)

If this is to invasive, would you accept a PR that makes --format=json work or some parsable friendly output be generated from:

  • poetry debug:resolve $PACKAGE
    (We could generate a fake package .toml)

With debug:resolve I seem to get:

[NoSuchOption]
The "--format" option does not exist.

Thanks,
Cooper

@ambv
Copy link

ambv commented Jun 9, 2018

@sdispater, if you'd be fine with making --format=json wok with debug:resolve, we're happy to make that PR for you.

@sdispater
Copy link
Member

I think adding a --format option can be a good feature for the debug:resolve command if it can help get a dependency set consumable by other tools.

PR welcome :-)

@sdispater sdispater added enhancement area/cli Related to the command line kind/feature Feature requests/implementations labels Jun 14, 2018
Copy link

github-actions bot commented Mar 3, 2024

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/cli Related to the command line kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

4 participants