-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
26 lines (22 loc) · 851 Bytes
/
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
"""YamlInfo Install Script"""
# coding=utf-8
import json
from setuptools import setup, find_packages
with open("projectinfo.json", "rb") as project_info_json:
project_data = json.load(project_info_json)
project_info_data = project_data["info"]
project_version_data = project_data["version"]
__version__ = "%(major)s.%(minor)s.%(release)s" % project_version_data
setup(
name=project_data["info"]["name"],
version=__version__,
include_package_data=True,
install_requires=["PyYAML"],
packages=find_packages(exclude=["docs", "tests*"]),
url=project_data["info"]["url"],
license=project_data["info"]["license"],
author=project_data["info"]["authors"],
author_email=project_data["info"]["authors_email"],
description=project_data["info"]["description"],
classifiers=project_data["info"]["classifiers"],
)