-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup python example, tweaks docs in response to feedback, fix gith…
…ub actions (#3925) * Make pip/pex example multi-module * Make bundling PEX actually work * Clean up english and code in general * Split up python and typescript examples into separate pages Other miscellaneous doc improvements and fixes to the github actions config
- Loading branch information
Showing
46 changed files
with
616 additions
and
638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
docs/modules/ROOT/pages/extending/example-python-support.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
= Example: Python Support | ||
|
||
include::partial$gtag-config.adoc[] | ||
|
||
This section demonstrates how to integrate `Python` support into `Mill`. | ||
We will define a simple `PythonModule` trait that can resolve dependencies, | ||
perform type checking on local code, and bundle an executable. | ||
|
||
NOTE: This integration is for educational purposes only, showcasing common technique | ||
used in building language toolchains, and is not intended for production use. | ||
|
||
== Basic Python Build Pipeline | ||
|
||
include::partial$example/extending/python/1-hello-python.adoc[] | ||
|
||
== Re-usable PythonModule | ||
|
||
include::partial$example/extending/python/2-python-modules.adoc[] | ||
|
||
== PythonModule `moduleDeps` | ||
|
||
include::partial$example/extending/python/3-python-module-deps.adoc[] | ||
|
||
== PIP dependencies and bundling | ||
|
||
include::partial$example/extending/python/4-python-libs-bundle.adoc[] | ||
|
||
|
||
|
||
As mentioned, The `PythonModule` examples here demonstrate | ||
how to add support for a new language toolchain in Mill. | ||
A production-ready version would require more work to enhance features and performance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.