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

Fix Target API bindings not loading for plugins #9788

Merged
merged 1 commit into from May 15, 2020

Conversation

Eric-Arellano
Copy link
Contributor

With a plugin, we must explicitly set the entry_point in the distribution's metadata.

[ci skip-rust-tests]
[ci skip-jvm-tests]

# Delete this line to force CI to run Clippy and the Rust tests.
[ci skip-rust-tests]
# Delete this line to force CI to run the JVM tests.
[ci skip-jvm-tests]
Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Great tests, thanks. One question about the entry_points key.


setup_py.setup_py_keywords["entry_points"] = entry_points
setup_py.setup_py_keywords["entry_points"] = {"pantsbuild.plugin": entry_points}
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Is this something that setup_py was consuming under this name, or is it only for our consumption?

https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-console-scripts-entry-point

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure - this is the same as before, just now inlined.

Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Ooh, I see.

@Eric-Arellano Eric-Arellano merged commit d972dbf into pantsbuild:master May 15, 2020
@Eric-Arellano Eric-Arellano deleted the fix-plugins branch May 15, 2020 21:18
Eric-Arellano added a commit that referenced this pull request May 15, 2020
With a plugin, we must explicitly set the `entry_point` in the distribution's metadata.

[ci skip-rust-tests]
[ci skip-jvm-tests]
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.

None yet

2 participants