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

Fixed: #3928 [Basic] Re-Work for First Class Python Support #4000

Merged
merged 19 commits into from
Nov 26, 2024

Conversation

himanshumahajan138
Copy link
Contributor

@himanshumahajan138 himanshumahajan138 commented Nov 20, 2024

Pull Request

Added First Class Python Support [Basic Example]
Fixes: #3928

Description

Rework for Python 1-simple, 2-custom-build-logic and 3-multi-module Examples
follow up for PR #3992

Related Issues

Checklist

  • New Example for Python 1-Simple
  • New Example for Python 2-custom-build-logic
  • New Example for Python 3-multi-module
  • Updated Documentation

Status

Completed Addition & Require Review!!!

@himanshumahajan138
Copy link
Contributor Author

himanshumahajan138 commented Nov 21, 2024

@lihaoyi why //// SNIPPET:DEPENDENCIES or //// SNIPPET:TREE and more like this are not working for my python docs???

i was looking in other examples but there these are available and working how ?

Please Explain about this...

@himanshumahajan138
Copy link
Contributor Author

@lihaoyi Ready for Review!

@himanshumahajan138 himanshumahajan138 changed the title [WIP] Fixes: #3928 Re-Work for First Class Python Support Fixed: #3928 [Basic] Re-Work for First Class Python Support Nov 21, 2024
Copy link
Member

@lihaoyi lihaoyi left a comment

Choose a reason for hiding this comment

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

Took a pass at reviewing this, @jodersky should probably take a pass as well

@lihaoyi
Copy link
Member

lihaoyi commented Nov 23, 2024

The issue with //// SNIPPET:DEPENDENCIES or //// SNIPPET:TREE were not working because this needs to be an ExampleCrossModuleJava which contains the template inheritance logic

object basic extends Cross[ExampleCrossModule](build.listIn(millSourcePath / "basic"))
.

Let's go back to using template inheritance and seeing how much of the example docs we can share; as we proceed through the rest of the Python example docs, I expect there will be large amounts of overlap between the docs and explanations, so we should get used to using the templated documentation to begin wtih

@himanshumahajan138
Copy link
Contributor Author

@lihaoyi @jodersky
Ready for Review
Let's wrap it up!

@himanshumahajan138
Copy link
Contributor Author

@lihaoyi and @jodersky please take a pass and then finalize this PR as this will open the gates for all the other Python Support PR's

@lihaoyi
Copy link
Member

lihaoyi commented Nov 26, 2024

I think this looks good enough for now. @himanshumahajan138 I'll merge this and close out the bounty using your existing banking details. Not perfect but we can continue to iterate on it post-merge

Going forward, I'll defer to @jodersky on how he wants to structure the work, since he's the one focusing on the Python language toolchain in Mill in the medium-long term. @himanshumahajan138 make sure to coordinate to ensure you guys don't duplicate work, since it's no longer only you working on this area of the bounties

@lihaoyi lihaoyi merged commit af576d7 into com-lihaoyi:main Nov 26, 2024
27 checks passed
@himanshumahajan138
Copy link
Contributor Author

@lihaoyi Ya Sure !

I Always try to ask @jodersky Sir for conflicts and resolutions we are working in manner such that we don't face duplicate and conflicting work

Thanks for Merge...

@lefou lefou added this to the 0.12.4 milestone Nov 26, 2024
@jodersky jodersky added the pythonlib Issues related to Mill's python support label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pythonlib Issues related to Mill's python support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

First Class Python Support (4000USD Bounty)
4 participants