-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Cli conversion (fix #189) #310
Open
borrob
wants to merge
49
commits into
geopython:master
Choose a base branch
from
borrob:cli_conversion
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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
The new CLI will call commands from outside the package. The import statements needed to be reworked. Not proud of the solution, but I cannot think of something better now.
With the setup file we can install the cli command `geohc` and build eggs and wheels.
Move all the models.py ... commands to the geohc cli and add deprecation warnings.
Need to fix loose ends: - DB exists, but still needs db-create - check import statements - fix env setting for GHC_SETTINGS_CONF - check non-docker build - update docs
TODO: test the create-instance, double check os.path things
@borrob again great effort! See you even thought of Docker build. @tomkralidis will you be able to review? |
tomkralidis
requested changes
Jan 12, 2020
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 brings an unified CLI to control GeoHealthCheck (fix #189).
I introduced
click
to take control over all the cli-commands and I was able to completely phase outpaver
(paver
is still available, but I marked it as deprecated). To keep an overview, I kept all of the cli commands in the filegeohc_cli.py
. I also introduced asetup.py
file in order to install GHC with a simplepip install .
. I believe we can now also upload it to pypi.@tomkralidis : can you review the
setup.py
file since I assumed you would be the maintainer.The CLI command now allow for:
geohc create-instance
,geohc db-create
,geohc db-adduser -u rob -p mypass -e [email protected] -r admin
, andgeohc --help
.