-
Notifications
You must be signed in to change notification settings - Fork 49
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
Create an eponymous pypi package with pydantic models #111
Comments
I'm going back and forth in my head between this solution and one where we offer a CLI tool to 'fetch' a model on demand and store it on disk.
pros:
cons:
|
Seems excessive to expect a dev to |
Surprisingly, the following works:
Curious how pip decided to install it under
In any case, this means that we can pip install and import schemas now :) cc: @simskij |
|
Proposal
I would like to be able to pip install pydantic models
pip install charm-relation-interfaces # or pip install charm-relation-interfaces[alertmanager_dispatch]
so they could be easily imported from a centralized location
instead of storing them inside the relation's *.py file.
Background/assumptions
observability_libs.schemas
) would artificially subject an essential part of an operator to the workflow of a particular team, and may be perceived as not inviting by community. It may also give a wrong impression, as interfaces are intended to be unique across the ecosystem.The text was updated successfully, but these errors were encountered: