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 option to only allow prerelease version for "top level" packages #11636

Closed
1 task done
taranlu-houzz opened this issue Dec 5, 2022 · 1 comment
Closed
1 task done
Labels
type: feature request Request for a new feature

Comments

@taranlu-houzz
Copy link

taranlu-houzz commented Dec 5, 2022

What's the problem this feature will solve?

  • I have a private package repo with pre-release versions of internal packages that are in-development.
  • I use pipx to install packages, including for testing in some cases.
  • Using --pre seems to apply to all dependencies, as well as the target package. In some cases, this causes things to break (e.g. "AttributeError: cython_sources" with Cython 3.0.0a10 yaml/pyyaml#601) when attempting to install my pre-release packages like this: pipx install <internal package> --pip-args="--index-url=<internal host:port> --trusted-host=<internal host> --pre" --python <path to pypy>

Describe the solution you'd like

It seems like it could help if there was a more specific option, maybe something like --pre-no-deps that would only allow for installing pre-release versions of the top level packages that are specified.

Alternative Solutions

N/A

Additional context

  • I am using pypy.

Code of Conduct

@taranlu-houzz taranlu-houzz added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels Dec 5, 2022
@taranlu-houzz
Copy link
Author

Guess I posted this too quickly.. For future reference, it makes sense to just specify the exact version to install directly and not use the --pre flag at all.

E.g. pipx install <internal package>==1.0.0a3 --pip-args="--index-url=<internal host:port> --trusted-host=<internal host>" --python <path to pypy>

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 5, 2023
@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Jan 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants