-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
90 lines (69 loc) · 2.52 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import os
from codecs import open
from setuptools import setup, find_packages
ENV = os.environ.get('DEPLOYMENT_ENV') or 'dev'
package_name = 'smsapi' + '-' + ENV
# Get the long description from the README file
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
with open('VERSION', encoding='utf-8') as f:
package_version = f.read()
dependencies = [
'Flask==0.12',
'Flask-SQLAlchemy==2.1',
'Flask-Redis==0.3.0',
'Flask-HTTPAuth==3.2.2',
'Flask-Inputs==0.2.0',
'pg8000==1.10.6',
'jsonschema==2.6.0',
'gunicorn',
'enum34'
]
test_dependencies = [
'nose==1.3.7',
'mock==2.0.0'
]
print "**************************************************"
print "Installing package: " + package_name + " version: " + package_version
print "**************************************************"
setup(
name=package_name,
namespace_packages=['plivo'],
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version=package_version,
description='Project for sms api - inbound/outbound',
long_description=long_description,
# The project's main homepage.
url='https://github.com/akshay58538/smsapi',
# Author details
author='Akshay Goel',
author_email='[email protected]',
# What does your project relate to?
keywords='plivo smsapi inbound outbound postgresql',
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=find_packages(exclude=['contrib', 'docs', 'tests', 'scripts', 'build', 'dist']),
package_data={
'plivo': ['sms/init/db_init.sql', 'sms/config/*.json'],
'': ['VERSION']
},
# Alternatively, if you want to distribute just a my_module.py, uncomment
# this:
# py_modules=["my_module"],
# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=dependencies,
tests_require=test_dependencies,
test_suite="tests",
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
'test': ['coverage']
}
)