-
Notifications
You must be signed in to change notification settings - Fork 2
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
mepo3 - hierarchical mepo #274
Conversation
`mepo clone` reads components.yaml recursively and clones all the sub-repos. MepoState().initialize() and consequently `mepo init` do not exist any more. Mepo state is created during the execution of `mepo clone`.
Added src/mepo/__init__.py Fewer directories, e.g. renamed command/compare/compare.py -> command/compare.py Using relative imports inside package
Renamed src/mepo -> src/mepo3 Updated doc generation Updated pyproject.toml
…dcoding the directory name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we merge this into develop, then it will prevent further development of "old-mepo".
Needs thought, or else we need a hepo-dev branch for the interim.
nargs = '?', | ||
default = None, | ||
help = 'Configuration file (ignored if init already called)') | ||
default = 'components.yaml', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies if this has been handled, but I fear it may be hard to glean directly from staring at the code changes. For hepo, we want the config file to be hidden in a subdirectory. E.g., .hepo/config.yml
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be better to have a separate PR for just the python packaging changes. This can safely go into mepo dev. The logic for config files in sub-repositories can/should be a separate PR.
Closing it in favor of #278 |
@tclune @amdasilva @mathomp4
The first draft of hierarchical mepo (
mepo3
) is ready. The main difference is howclone
works - instead of a flatcomponents.yaml
,mepo3
readscomponents.yaml
of each sub-repository, when available, and does a recursive cloning.This codebase also addresses some of the concerns mentioned in #273.
Installation
Either
Or, in your
python3
virtualenvTesting
This fork of
GEOSfvdycore
implements hierarchicalcomponents.yaml
thatmepo3
can read and clone. Most of the othermepo
commands work as before.TODO
mepo3 save
.