forked from willkg/everett
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (59 loc) · 2.2 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
#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import re
from setuptools import find_packages, setup
def get_version():
fn = os.path.join("src", "everett", "__init__.py")
vsre = r"""^__version__ = ['"]([^'"]*)['"]"""
version_file = open(fn).read()
return re.search(vsre, version_file, re.M).group(1)
def get_file(fn):
with open(fn) as fp:
return fp.read()
INSTALL_REQUIRES = []
EXTRAS_REQUIRE = {
"sphinx": ["sphinx"],
"ini": ["configobj"],
"yaml": ["PyYAML"],
}
setup(
name="everett",
version=get_version(),
description="Configuration library for Python applications",
long_description=(get_file("README.rst") + "\n\n" + get_file("HISTORY.rst")),
long_description_content_type="text/x-rst",
author="Will Kahn-Greene",
author_email="willkg@mozilla.com",
url="https://github.com/willkg/everett",
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
packages=find_packages(where="src"),
package_dir={"": "src"},
include_package_data=True,
python_requires=">=3.8",
license="MPLv2",
zip_safe=False,
keywords="conf config configuration component",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
],
project_urls={
"Documentation": "https://everett.readthedocs.io/",
"Tracker": "https://github.com/willkg/everett/issues",
"Source": "https://github.com/willkg/everett/",
},
)