-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (50 loc) · 2 KB
/
setup.py
File metadata and controls
57 lines (50 loc) · 2 KB
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
from os import path
from setuptools import setup, find_packages
with open(path.join(path.dirname(__file__), "README.rst")) as f:
readme = f.read()
with open(path.join(path.dirname(__file__), "CHANGES.rst")) as f:
readme += "\n\n" + f.read()
with open(path.join(path.dirname(__file__), "configtree", "__init__.py")) as f:
version = next(line for line in f if line.startswith("__version__"))
version = version.strip().split(" = ")[1]
version = version.strip('"')
setup(
name="ConfigTree",
version=version,
description="Is a configuration management tool",
long_description=readme,
classifiers=[
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
],
keywords="configuration config settings tree",
url="https://github.com/Cottonwood-Technology/ConfigTree",
author="Cottonwood Technology",
author_email="info@cottonwood.tech",
license="BSD",
packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=["pyyaml", "cached-property"],
include_package_data=True,
zip_safe=True,
entry_points="""\
[console_scripts]
ctdump = configtree.script:ctdump
[configtree.formatter]
json = configtree.formatter:to_json
shell = configtree.formatter:to_shell
[configtree.source]
.json = configtree.source:from_json
.yaml = configtree.source:from_yaml
.yml = configtree.source:from_yaml
""",
)