Skip to content
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

Utility CLI for DLite Entities Service #17

Draft
wants to merge 44 commits into
base: main
Choose a base branch
from

Conversation

CasperWA
Copy link
Collaborator

Closes #12

Adds a utility CLI for use with DLite Entities Service.

@CasperWA CasperWA force-pushed the cwa/close-12-upload-script branch from 7ee2b2a to 161c87e Compare April 28, 2023 20:04
CasperWA and others added 7 commits April 28, 2023 22:27
These are currently only used in 'config show' to return the output in
the given format, but are made as global options to be available
whenever an output of that kind is desired.
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Attention: 168 lines in your changes are missing coverage. Please review.

Comparison is base (7c3f930) 75.00% compared to head (6710fe4) 60.35%.

Files Patch % Lines
dlite_entities_service/utils_cli/main.py 40.32% 111 Missing ⚠️
dlite_entities_service/utils_cli/config.py 41.57% 52 Missing ⚠️
...tities_service/utils_cli/_utils/global_settings.py 77.27% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #17       +/-   ##
===========================================
- Coverage   75.00%   60.35%   -14.65%     
===========================================
  Files           9       12        +3     
  Lines         200      502      +302     
===========================================
+ Hits          150      303      +153     
- Misses         50      199      +149     
Flag Coverage Δ
docker 60.15% <46.85%> (?)
local 60.35% <47.16%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

There's an issue that the Option aliases are not being read.
It fails to parse the metadata of Option and Argument.

Also, avoid using Python 3.10-style typing, since typer cannot handle it
(X | Y).
Indeed, to ensure pyupgrade doesn't change it automatically type aliases
are created for all occurrences.
DLite does not support Python 3.12+.
3.11 introduces StrEnum.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Help script for uploading entities
1 participant