-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
90 lines (78 loc) · 2.17 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
import ast
import re
import docutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
NAME = 'baka'
DESC = 'Baka framework built top pyramid'
AUTHOR = 'Nanang Suryadi'
AUTHOR_EMAIL = 'nanang.ask@gmail.com'
URL = 'https://github.com/baka-framework/baka.git'
LICENSE = 'BSD License'
KEYWORDS = ['baka', 'framework', 'pyramid']
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Framework :: Pyramid',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
]
INSTALL_REQUIRES = [
'setuptools>=27',
'pyramid>=1.9',
'werkzeug>=0.12',
'bson',
'trafaret>=0.12.1.dev0',
'trafaret_config>=1.0.1'
]
dev_extras = [
'nose',
'nose-parameterized',
'nosexcover',
'coverage',
'mock',
'webtest',
'pyramid',
'baka',
'readme',
'twine',
]
EXTRAS_REQUIRE = {
'dev': dev_extras,
'docs': ['Sphinx'],
'test': ['coverage'],
}
ENTRY_POINTS = """
"""
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('baka/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(name=NAME,
version=version,
description=DESC,
long_description=long_description,
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
license=LICENSE,
include_package_data=True,
dependency_links=['https://github.com/baka-framework/baka.git/tree/master#egg=baka'],
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
entry_points=ENTRY_POINTS,
packages=find_packages(include=['baka', 'baka.*']),
zip_safe=False)