-
-
Notifications
You must be signed in to change notification settings - Fork 90
make matplotlib optional #303
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,7 +22,10 @@ def __init__(self, *args, **kwargs): | |||||
|
|
||||||
| register_matplotlib_converters() | ||||||
| except ImportError as exce: # noqa F841 | ||||||
| raise ImportError("matplotlib was not found") | ||||||
| raise ImportError( | ||||||
| "matplotlib is required for plotting functionality. " | ||||||
| "Install with: pip install 'prometheus-api-client[plotting]'" | ||||||
|
||||||
| "Install with: pip install 'prometheus-api-client[plotting]'" | |
| "Install with: pip install 'prometheus-api-client-optional-matplotlib'" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,4 @@ requests | |
| dateparser | ||
| pandas>=1.4.0 | ||
| numpy | ||
| matplotlib | ||
| httmock | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,11 +27,11 @@ def get_version(): | |
|
|
||
| VERSION = get_version() | ||
| setuptools.setup( | ||
| name="prometheus-api-client", | ||
| name="prometheus-api-client-optional-matplotlib", | ||
|
||
| version=VERSION, | ||
| author="Anand Sanmukhani", | ||
| author_email="[email protected]", | ||
| description="A small python api to collect data from prometheus", | ||
| description="A Python API client for Prometheus with optional matplotlib dependency", | ||
| long_description=long_description, | ||
| long_description_content_type="text/markdown", | ||
| url="https://github.com/4n4nd/prometheus-api-client-python", | ||
|
|
||
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.
The
__title__should remain asprometheus-api-client(or the original valueprometheus-connectif that was intentional). Changing it toprometheus-api-client-optional-matplotlibis inconsistent with standard Python packaging practices for optional dependencies. The package title typically doesn't reflect which dependencies are optional.