-
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
Python package with expanded testing #278
Merged
Merged
Conversation
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
Maybe 'mepo reset' is causing issues with testing 'mepo tag create'
only for the case where OS is ubuntu-latest and Python version is 3.9
@mathomp4 I think this is ready for merge. Converting to PR. |
mathomp4
approved these changes
May 15, 2024
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.
Approve!
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.
This PR addresses some of the concerns raised in #273
mepo
is now a Python package withsrc/mepo/__init__.py
src/mepo/main.py
->src/mepo/__main__.py
. This allows one to executemepo
viapython -m mepo
.src/mepo/config/config_file.py
->src/mepo/registry.py
. Socomponents.yaml
is now called a registry, instead of a config file. While this change is mostly internal, it does affect theclone
command - the optional argument--config
tomepo clone
is now--registry
.More code reorganization
src/mepo/command/command.py
is now included in__main__.py
src/mepo/command/<command>/<command>.py
->src/mepo/command/<command>.py
src/command/<command_subcommand>.py
src/mepo/state/state.py
->src/mepo/state.py
src/mepo/state/component.py
->src/mepo/component.py
src/mepo/repository/git.py
->src/mepo/git.py
-1
/--one-per-line
formepo list
Expanded testing to cover more
mepo
commandsSince the
multiprocessing
library now supports the context manager protocol, we can write3412ad7, 376baf2
Added linting via Pylint
Implemented context manager for
os.chdir
. We can now doinstead of
Using
contextlib.chdir
when available (3.11+)Formatted code using Black
Managing project using Poetry. Closes Poetry for packaging and dependency management #281
Split GitHub actions workflow into three
Using
contextlib.redirect_stdout
to redirect stdout to variableSwitched state file format from
pickle
d (mepo1 style) tojson
(mepo2 style). Closes State file: pickle to json #284mepo update-state
update-state
to permanently convert mepo1 style state to mepo2 style