mirror of
https://github.com/alerta/alerta.git
synced 2025-01-24 17:29:39 +00:00
c794a04f00
* Support custom backends defined as entry point A custom backend may be needed to support a different database or to extend or modify current backends functionality. With this modification, a custom backend can be defined using an entry point to provide its module location. * Change entry point name for custom backends and include an example
22 lines
519 B
Python
22 lines
519 B
Python
from setuptools import setup
|
|
|
|
version = '0.0.1'
|
|
|
|
setup(
|
|
name='alerta-custom-backend',
|
|
version=version,
|
|
description='Alerta custom backend example',
|
|
url='https://github.com/alerta/alerta',
|
|
license='Apache License 2.0',
|
|
author='Victor Garcia',
|
|
author_email='victor.garcia@datadope.io',
|
|
packages=['package'],
|
|
install_requires=[],
|
|
include_package_data=True,
|
|
zip_safe=True,
|
|
entry_points={
|
|
'alerta.database.backends': [
|
|
'custom = package'
|
|
]
|
|
}
|
|
)
|