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

Support installing packages from specific index with introduction of uv #64

Open
mattkuj-vep opened this issue Dec 6, 2024 · 0 comments

Comments

@mattkuj-vep
Copy link

Issue

PR #57 introduced uv as a replacement for pip for performance improvements, but uv doesn’t support configuring an extra-index-url the same way as pip via pip config set global.extra-index-url <url> so attempting to install a package from a private package index causes this action to fail without additional configuration from the user.

Effect

    - id: install-from-pyproject-toml
      if: ${{ inputs.pyproject-toml-path != '' }}
      run: |
        cd $(dirname ${{ inputs.pyproject-toml-path }})
        uv pip install . <-- this change
      shell: bash

In my use case, the above step results in the following error message when trying to install foo from private package index for project bar:

Using Python 3.10.X environment at: ***
  × No solution found when resolving dependencies:
  ╰─▶ Because foo was not found in the package registry and bar==1.2.3
      depends on foo>=2.1.1, we can conclude that bar==1.2.3 cannot
      be used.
      And because only bar==1.2.3 is available and you require bar,
      we can conclude that your requirements are unsatisfiable.

I think the introduction of uv is useful for projects that support it, I'd love to see this action updated to support an input for index-url / extra-index-url and handle the logic for installing private packages with uv, or even guidance in the README on what configuration updates are required for users.

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

No branches or pull requests

1 participant