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

feat!: Split dependencies by backend #129

Merged
merged 4 commits into from
May 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# pylint: disable=invalid-name

from io import open
from os import path
Expand All @@ -35,14 +36,30 @@
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = "Development Status :: 3 - Alpha"
dependencies = [
'google-api-python-client < 2.0.0', 'oauth2client',
'google-cloud-monitoring < 2.0.0', 'google-cloud-pubsub==1.7.0',
'google-cloud-bigquery < 3.0.0', 'prometheus-http-client',
'prometheus-client', 'pyyaml', 'opencensus', 'elasticsearch',
'python-dateutil', 'datadog', 'retrying==1.3.3'
]
extras = {}
dependencies = ['pyyaml', 'ruamel.yaml', 'python-dateutil', 'click < 8.0']
extras = {
'api': ['Flask', 'gunicorn', 'cloudevents', 'functions-framework'],
'prometheus': ['prometheus-client', 'prometheus-http-client'],
'datadog': ['datadog', 'retrying==1.3.3'],
'dynatrace': ['requests'],
'bigquery': [
'google-api-python-client < 2.0.0', 'google-cloud-bigquery < 3.0.0'
],
'cloud_monitoring': [
'google-api-python-client < 2.0.0', 'google-cloud-monitoring < 2.0.0'
],
'cloud_service_monitoring': [
'google-api-python-client < 2.0.0', 'google-cloud-monitoring < 2.0.0'
],
'cloud_storage': [
'google-api-python-client < 2.0.0', 'google-cloud-storage'
],
'pubsub': [
'google-api-python-client < 2.0.0', 'google-cloud-pubsub==1.7.0'
],
'elasticsearch': ['elasticsearch'],
'dev': ['wheel', 'flake8', 'mock', 'coverage', 'nose', 'pylint']
}

# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
Expand Down Expand Up @@ -70,6 +87,7 @@
],
keywords='slo sli generator gcp',
install_requires=dependencies,
extras_require=extras,
entry_points={
'console_scripts': ['slo-generator=slo_generator.cli:main'],
},
Expand Down