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-repos].find_links as preferred alias for [python-repos].repos #16582

Merged
merged 4 commits into from Aug 19, 2022

Conversation

Eric-Arellano
Copy link
Contributor

find_links matches the Python ecosystem with pip and Pex. This would have been a better name from the start.

At the same time, we are trying to give stronger backward compatibility for users: #16547. It's relatively cheap for us to support both option names ~indefinitely.

Note that #15627 took away the ability to give multiple flag names for the same option, which we could have used here. I debated reviving that, but I think this is preferable because it makes clear which option is preferred. Users will get a deprecation message when using [python-repos].repos, although they can silence it with --ignore-warnings.

[ci skip-build-wheels]

[ci skip-rust]

[ci skip-build-wheels]

[ci skip-rust]
option, you can either use:

* a URL to an HTML file with links to wheel and sdist files, or
* a `file://` absolute path to a local directory with wheel and/or sdist files.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm almost positive a bare absolute path works too. It does in Pex. Perhaps it complicates docs too much and should just be an easter egg though since it adds 0 capabilities.

src/python/pants/backend/python/subsystems/repos.py Outdated Show resolved Hide resolved
src/python/pants/backend/python/subsystems/repos.py Outdated Show resolved Hide resolved
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano enabled auto-merge (squash) August 19, 2022 01:19
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano merged commit 79d35f7 into pantsbuild:main Aug 19, 2022
@Eric-Arellano Eric-Arellano deleted the find-links-alias branch August 19, 2022 03:38
cczona pushed a commit to cczona/pants that referenced this pull request Sep 1, 2022
…].repos` (pantsbuild#16582)

`find_links` matches the Python ecosystem with pip and Pex. This would have been a better name from the start. 

At the same time, we are trying to give stronger backward compatibility for users: pantsbuild#16547. It's relatively cheap for us to support both option names ~indefinitely.

Note that pantsbuild#15627 took away the ability to give multiple flag names for the same option, which we could have used here. I debated reviving that, but I think this is preferable because it makes clear which option is preferred. Users will get a deprecation message when using `[python-repos].repos`, although they can silence it with `--ignore-warnings`.

[ci skip-rust]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants