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 tool support for console scripts. #11620

Merged
merged 4 commits into from Mar 2, 2021

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Mar 2, 2021

Introduce MainSpecification which can either be an EntryPoint or
a ConsoleScript. Both PexRequest and PexFromTargetsRequest are
updated to take a MainSpecification as is PythonToolBase. All
internal rules are updated to use ConsoleScript where possible for
improved stability of entry points across requirement upgrades.

Fixes #11583

[ci skip-rust]
[ci skip-build-wheels]

Introduce `MainSpecification` which can either be an `EntryPoint` or
a `ConsoleScript`. Both `PexRequest` and `PexFromTargetsRequest` are
updated to take a `MainSpecification` as is `PythonToolBase`. All
internal rules are updated to use `ConsoleScript` where possible for
improved stability of entry points across requirement upgrades.

Fixes pantsbuild#11583

[ci skip-rust]
[ci skip-build-wheels]
@jsirois
Copy link
Member Author

jsirois commented Mar 2, 2021

Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Thank you! This looks great.

# 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]
# 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]
@jsirois jsirois merged commit 97cbd57 into pantsbuild:master Mar 2, 2021
@jsirois jsirois deleted the issues/11583 branch March 2, 2021 19:01
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

Successfully merging this pull request may close these issues.

A PexRequest should support pex -c.
3 participants