forked from drgarcia1986/simple-settings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (60 loc) · 1.94 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
# -*- coding: utf-8 -*-
from setuptools import setup
def read(fname):
""" Return file content. """
with open(fname) as f:
content = f.read()
return content
description = 'A simple way to manage your project settings'
try:
long_description = read('README.rst')
except IOError:
long_description = description
YAML_REQUIRES = ['PyYAML==3.11']
DYNAMIC_SETTINGS_REQUIRES = ['jsonpickle==0.9.3']
REDIS_REQUIRES = ['redis==2.10.5', 'six==1.10.0'] + DYNAMIC_SETTINGS_REQUIRES
CONSUL_REQUIRES = ['consulate==0.6.0'] + DYNAMIC_SETTINGS_REQUIRES
DATABASE_REQUIRES = ['SQLAlchemy==1.0.13'] + DYNAMIC_SETTINGS_REQUIRES
ALL_REQUIRES = set(
YAML_REQUIRES +
REDIS_REQUIRES +
CONSUL_REQUIRES +
DATABASE_REQUIRES
)
download_url = 'https://github.com/drgarcia1986/simple-settings/tarball/master'
setup(
name='simple-settings',
version='0.10.0',
install_requires=[],
url='https://github.com/drgarcia1986/simple-settings',
author='Diego Garcia',
author_email='[email protected]',
keywords='django flask bottle tornado settings configuration conf',
description=description,
long_description=long_description,
download_url=download_url,
packages=[
'simple_settings',
'simple_settings.strategies',
'simple_settings.dynamic_settings',
],
package_dir={
'simple_settings': 'simple_settings',
'strategies': 'simple_settings/strategies',
'dynamic_settings': 'simple_settings/dynamic_settings',
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
extras_require={
'all': ALL_REQUIRES,
'consul': CONSUL_REQUIRES,
'database': DATABASE_REQUIRES,
'redis': REDIS_REQUIRES,
'yaml': YAML_REQUIRES,
}
)