1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-27 23:18:38 +02:00

update setup.py

This commit is contained in:
Damien Nozay
2017-05-02 16:39:46 -07:00
committed by Qingping Hou
parent 6810af1767
commit f782bdeda3
4 changed files with 24 additions and 27 deletions

View File

@@ -7,8 +7,8 @@ Initial setup
Install dependencies: Install dependencies:
``` ```
pip install -r requirements.txt
python setup.py develop python setup.py develop
pip install -r dev_requirements.txt
``` ```
Setup mysql schema: Setup mysql schema:

5
dev_requirements.txt Normal file
View File

@@ -0,0 +1,5 @@
pytest
pytest-mock
requests
gunicorn
flake8

View File

@@ -1,25 +0,0 @@
falcon==1.1.0
falcon-cors
gevent
ujson
sqlalchemy
PyYAML
PyMYSQL
phonenumbers
jinja2
streql
webassets
beaker
pycrypto
importlib
python-ldap
ordereddict # for 26
pytz
icalendar
# for dev, also yum install sqlite-devel
pytest
pytest-mock
requests
gunicorn
flake8

View File

@@ -6,7 +6,7 @@ try:
except ImportError: except ImportError:
from distutils.core import setup from distutils.core import setup
import re import re
o
with open('src/oncall/__init__.py', 'r') as fd: with open('src/oncall/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
@@ -15,6 +15,23 @@ setup(
version=version, version=version,
packages=['oncall'], packages=['oncall'],
package_dir={'': 'src'}, package_dir={'': 'src'},
install_requires=[
'falcon==1.1.0',
'falcon-cors',
'gevent',
'ujson',
'sqlalchemy',
'PyYAML',
'PyMYSQL',
'phonenumbers',
'jinja2',
'streql',
'webassets',
'beaker',
'pycrypto',
'python-ldap',
'pytz',
],
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'build_assets = oncall.bin.build_assets:main', 'build_assets = oncall.bin.build_assets:main',