Experiment: use hatch for builds, conda and rez packaging#303
Draft
antirotor wants to merge 6 commits into
Draft
Experiment: use hatch for builds, conda and rez packaging#303antirotor wants to merge 6 commits into
antirotor wants to merge 6 commits into
Conversation
add hatch, entry point and a basic system to build conda recipe and rez package
Not sure exactly how this happens, needs more investigation, but this allows further testing for now.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog Description
This is experimental exploration of what it would take to standardize build process using hatch. The ultimate end goal would be to create wheels, conda and rez packages from the launcher that could make easier AYON deployment especially in automated environments, like render farm, CI/CD, etc. Having exposed dependencies can also help with rez integration down the line,
Current status
Currently, it can build using hatch, but that's it. The shim part isn't handled well and also the dependencies are not defined properly, although you get conda recipe and rudimentary rez package.
Usage:
There are more commands added to the manage helper scripts:
package-conda,package-rezandpackage-builds(create both conda and rez)You can directly use
hatchcommand -uv run hatch buildNote
The targets now are not configured properly. Ideally, there would be target for executable, wheel, conda and rez package. Right now, if you use just
hatch buildit will build the wheels only and that is not very useful.