Conversation
c29a03b to
36bea6d
Compare
|
Ready for a review. @bryanwweber ... based on your Python background, could you have a look at this? |
|
I think we have 2 options to proceed:
In the first option, we kind of end up polluting the venv, plus local changes made to What do you think @ischoegl? I think either way is fine, but I have different suggestions for the actual code depending which route we take 😄 |
|
@bryanwweber … given that this utility is meant to be run within a venv (presumably it will only be used by developers), I don’t believe that pollution is an issue. Gaining the convenience of a CLI (rather than the longish |
bryanwweber
left a comment
There was a problem hiding this comment.
Aside from the minor updates here, I'd suggest adding a __main__.py file that calls api.main() in an if __name__ block. That way, the package can also be executed as python -m sourcegen which may be more convenient in some cases, similar to python -m pip.
Ensure that all folders are found independent of the sourcegen installation location
36bea6d to
85a87b1
Compare
|
Thanks, @bryanwweber ... all done! I had never tried hatchling; it looks nice! |
bryanwweber
left a comment
There was a problem hiding this comment.
One more small suggestion, sorry I didn't catch this the first time
Co-authored-by: Bryan Weber <[email protected]>
85a87b1 to
ae174d4
Compare
|
@bryanwweber ... done! |
Changes proposed in this pull request
This PR is mainly housekeeping, with minimal actual code changes:
interfaces/sourcegenwith lowercase file namespyproject.tomlto make sourcegen installable viapip install interfaces/sourcegensourcegena CLI utilityIf applicable, fill in the issue number this pull request is fixing
Addresses Cantera/enhancements#220
If applicable, provide an example illustrating new features this pull request is introducing
This is now possible:
wIth
pip install -e interfaces/sourcegenused while working on sourcegen.The tree structure (ignoring YAML and template files) is now
Checklist
scons build&scons test) and unit tests address code coverage