-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (42 loc) · 1.37 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
import os
import os.path
import re
import codecs
from setuptools import setup, find_packages
NAME = "metaconfig"
DESCRIPTION = "YAML metaconfig for Python"
CLASSIFIERS = """
Programming Language :: Python
""".strip().split("\n")
AUTHOR = "Eugene Chernyshov"
EMAIL = "[email protected]"
URL = "https://github.com/Evgenus/metaconfig"
KEYWORDS = ""
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, NAME, '__init__.py'), 'r') as fp:
try:
VERSION = re.findall(r"^__version__ = '([^']+)'$", fp.read(), re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.md')).read()
LICENSE = open(os.path.join(here, 'LICENSE')).read()
TODO = open(os.path.join(here, 'TODO')).read()
requires = open(os.path.join(here, 'requirements.txt')).readlines()
setup(name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=README + '\n\n' + CHANGES + '\n\n' + TODO,
classifiers=CLASSIFIERS,
author=AUTHOR,
author_email=EMAIL,
url=URL,
license=LICENSE,
keywords=KEYWORDS,
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite=NAME+".tests",
)