2017-05-02 15:57:25 -07:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
# -*- coding:utf-8 -*-
|
|
|
|
|
|
2017-05-23 15:30:57 -07:00
|
|
|
import setuptools
|
2017-05-02 15:57:25 -07:00
|
|
|
import re
|
2017-05-02 16:39:46 -07:00
|
|
|
|
2017-05-02 15:57:25 -07:00
|
|
|
with open('src/oncall/__init__.py', 'r') as fd:
|
|
|
|
|
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
|
|
|
|
|
|
2020-01-24 15:46:45 -08:00
|
|
|
with open('README.md', 'r') as fd:
|
|
|
|
|
long_description = fd.read()
|
|
|
|
|
|
2017-05-23 15:30:57 -07:00
|
|
|
setuptools.setup(
|
2017-05-02 15:57:25 -07:00
|
|
|
name='oncall',
|
|
|
|
|
version=version,
|
2020-01-24 15:46:45 -08:00
|
|
|
description='Oncall is a calendar tool designed for scheduling and managing on-call shifts',
|
|
|
|
|
long_description=long_description,
|
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
|
url='https://github.com/linkedin/oncall',
|
|
|
|
|
classifiers=[
|
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
|
'Natural Language :: English',
|
|
|
|
|
'Programming Language :: Python :: 3'
|
|
|
|
|
],
|
2017-05-02 15:57:25 -07:00
|
|
|
package_dir={'': 'src'},
|
2017-05-19 18:07:35 -07:00
|
|
|
packages=setuptools.find_packages('src'),
|
|
|
|
|
include_package_data=True,
|
2017-05-02 16:39:46 -07:00
|
|
|
install_requires=[
|
2020-01-15 15:38:25 -08:00
|
|
|
'falcon==1.4.1',
|
2017-05-02 16:39:46 -07:00
|
|
|
'falcon-cors',
|
2020-10-02 13:49:10 -07:00
|
|
|
'greenlet==0.4.16',
|
|
|
|
|
'asn1crypto==1.0.0',
|
2020-01-15 15:38:25 -08:00
|
|
|
'gevent==1.4.0',
|
2017-05-02 16:39:46 -07:00
|
|
|
'ujson',
|
|
|
|
|
'sqlalchemy',
|
|
|
|
|
'PyYAML',
|
|
|
|
|
'PyMYSQL',
|
|
|
|
|
'phonenumbers',
|
|
|
|
|
'jinja2',
|
|
|
|
|
'streql',
|
|
|
|
|
'webassets',
|
|
|
|
|
'beaker',
|
2021-01-22 16:01:33 -08:00
|
|
|
'cryptography==3.2',
|
2017-05-02 16:39:46 -07:00
|
|
|
'python-ldap',
|
|
|
|
|
'pytz',
|
2017-05-08 18:19:30 -07:00
|
|
|
'irisclient',
|
2019-08-09 15:30:11 -04:00
|
|
|
'slackclient==1.3.1',
|
2019-02-26 05:05:19 +05:30
|
|
|
'icalendar',
|
2021-01-19 17:50:56 -08:00
|
|
|
'pymsteams',
|
|
|
|
|
'idna==2.10'
|
2017-05-02 16:39:46 -07:00
|
|
|
],
|
2017-07-12 18:14:52 -07:00
|
|
|
extras_require={
|
|
|
|
|
'ldap': ['python-ldap'],
|
2018-05-18 16:17:01 +02:00
|
|
|
'prometheus': ['prometheus_client'],
|
2017-07-12 18:14:52 -07:00
|
|
|
'dev': [
|
|
|
|
|
'pytest',
|
|
|
|
|
'pytest-mock',
|
|
|
|
|
'requests',
|
|
|
|
|
'gunicorn',
|
|
|
|
|
'flake8',
|
|
|
|
|
'Sphinx==1.5.6',
|
|
|
|
|
'sphinxcontrib-httpdomain',
|
|
|
|
|
'sphinx_rtd_theme',
|
|
|
|
|
'sphinx-autobuild',
|
|
|
|
|
],
|
|
|
|
|
},
|
2017-05-02 15:57:25 -07:00
|
|
|
entry_points={
|
|
|
|
|
'console_scripts': [
|
2017-05-09 22:31:50 -07:00
|
|
|
'oncall-dev = oncall.bin.run_server:main',
|
2017-05-20 10:25:20 -07:00
|
|
|
'oncall-user-sync = oncall.bin.user_sync:main',
|
2017-05-02 15:57:25 -07:00
|
|
|
'build_assets = oncall.bin.build_assets:main',
|
|
|
|
|
'oncall-scheduler = oncall.bin.scheduler:main',
|
|
|
|
|
'oncall-notifier = oncall.bin.notifier:main'
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
)
|