-
-
Notifications
You must be signed in to change notification settings - Fork 293
/
setup.py
74 lines (66 loc) · 1.91 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
import io
import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
def read(*names, **kwargs):
"""Read a file."""
return io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
).read()
def parse_md_to_rst(file):
"""Read Markdown file and convert to ReStructured Text."""
try:
from m2r import parse_from_file
return parse_from_file(file)
except ImportError:
# m2r may not be installed in user environment
try:
return read(file)
except:
return file.read()
setup(
name='dynaconf',
version="0.5.0",
url='https://github.com/rochacbruno/dynaconf',
license='MIT',
author="Bruno Rocha",
author_email="rochacbruno@gmail.com",
description='The dynamic configurator for your Python Project',
long_description=parse_md_to_rst("README.md"),
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=['six', 'python-box'],
tests_require=[
"pytest",
"pytest-cov",
"flake8",
"pep8-naming",
"flake8-debugger",
"flake8-print",
"flake8-todo",
"radon",
"flask>=0.12"
],
extras_require={
"redis": ['redis'],
"yaml": ['PyYAML'],
"toml": ['toml'],
"all": ['redis', 'PyYAML', 'toml'],
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
]
)