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

Rename ChrootedPythonSources to ImportablePythonSources and add Target API support #9479

Merged

Conversation

Eric-Arellano
Copy link
Contributor

Chrooted was a misnomer. This rule didn't have much to do with a chroot. Rather, the rule is really preparing Python sources so that they may be imported and be run by something like Pytest.

This better expresses the intent. This doesn't really have to do with a chroot. Really, what we're doing is preparing the sources to be able to be imported by things like Pytest.

# Delete this line to force CI to run Clippy and the Rust tests.
[ci skip-rust-tests]  # No Rust changes made.

# Delete this line to force CI to run the JVM tests.
[ci skip-jvm-tests]  # No JVM changes made.
# Delete this line to force CI to run Clippy and the Rust tests.
[ci skip-rust-tests]  # No Rust changes made.

# Delete this line to force CI to run the JVM tests.
[ci skip-jvm-tests]  # No JVM changes made.
legacy_prepare_python_sources,
*determine_source_files.rules(),
*inject_init_rules(),
RootRule(Targets),
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 had to do this to remove an error that rule was not reachable.

Strangely, this only happens when the await Get[SourceFiles](AllSourceFilesRequest) is there..I don't know why because AllSourceFilesRequest is already a RootRule and it's unclear to me how this Get would impact Targets not being reachable?

@Eric-Arellano Eric-Arellano merged commit 3148096 into pantsbuild:master Apr 6, 2020
@Eric-Arellano Eric-Arellano deleted the importable-python-sources branch April 6, 2020 21:48
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