forked from dynaconf/dynaconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
100 lines (95 loc) · 2.8 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
91
92
93
94
95
96
97
98
99
100
import io
import os
import sys
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
def read(*names, **kwargs):
"""Read a file."""
content = ""
with io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get("encoding", "utf8"),
) as open_file:
content = open_file.read().strip()
return content
setup(
name="dynaconf",
version=read("dynaconf", "VERSION"),
url="https://github.com/mk-dv/dynaconf",
license="MIT",
author="Bruno Rocha",
author_email="[email protected]",
description="The dynamic configurator for your Python Project",
long_description=read("README.md"),
long_description_content_type="text/markdown",
packages=find_packages(
exclude=[
"tests",
"tests.*",
"example",
"example.*",
"docs",
"legacy_docs",
"legacy_docs.*",
"docs.*",
"build",
"build.*",
"dynaconf.vendor_src",
"dynaconf/vendor_src",
"dynaconf.vendor_src.*",
"dynaconf/vendor_src/*",
]
),
include_package_data=True,
zip_safe=False,
platforms="any",
install_requires=["typing; python_version<'3.5'"],
tests_require=[
"pytest",
"pytest-cov",
"pytest-xdist",
"flake8",
"pep8-naming",
"flake8-debugger",
"flake8-print",
"flake8-todo",
"radon",
"flask>=0.12",
"python-dotenv",
"toml",
"codecov",
],
extras_require={
"redis": ["redis"],
"vault": ["hvac"],
"yaml": ["ruamel.yaml"],
"toml": ["toml"],
"ini": ["configobj"],
"configobj": ["configobj"],
"all": ["redis", "ruamel.yaml", "configobj", "hvac"],
},
entry_points={"console_scripts": ["dynaconf=dynaconf.cli:main"]},
setup_requires=["setuptools>=38.6.0"]
if sys.version_info >= (3, 6, 0)
else [],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Flask",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Utilities",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)