-
Notifications
You must be signed in to change notification settings - Fork 57
/
setup.py
62 lines (55 loc) · 1.97 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
from codecs import open
from setuptools import setup, find_packages
from os import path
REQUIREMETS_DEV_FILE = 'requirements_dev.txt'
REQUIREMETS_TEST_FILE = 'requirements_test.txt'
REQUIREMETS_FILE = 'requirements.txt'
PROJECTNAME = 'ScoreCardModel'
VERSION = '1.1.3'
DESCRIPTION = 'simple tools for score card model'
URL = 'https://data-science-tools.github.io/ScoreCardModel/'
AUTHOR = 'hsz'
AUTHOR_EMAIL = '[email protected]'
LICENSE = 'MIT'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Documentation :: Sphinx'
]
KEYWORDS = ["math", "finance"]
PACKAGES = find_packages(exclude=['contrib', 'docs', 'test'])
ZIP_SAFE = True
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, 'README.rst'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
REQUIREMETS_DIR = path.join(HERE, "requirements")
with open(path.join(REQUIREMETS_DIR, REQUIREMETS_FILE), encoding='utf-8') as f:
REQUIREMETS = f.readlines()
with open(path.join(REQUIREMETS_DIR, REQUIREMETS_DEV_FILE), encoding='utf-8') as f:
REQUIREMETS_DEV = f.readlines()
with open(path.join(REQUIREMETS_DIR, REQUIREMETS_TEST_FILE), encoding='utf-8') as f:
REQUIREMETS_TEST = f.readlines()
setup(
name=PROJECTNAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
url=URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
packages=PACKAGES,
include_package_data=True,
install_requires=REQUIREMETS,
extras_require={
'dev': REQUIREMETS_DEV,
'test': REQUIREMETS_TEST},
zip_safe=ZIP_SAFE,
data_files=[('requirements', ['requirements/requirements.txt',
'requirements/requirements_dev.txt', 'requirements/requirements_test.txt'])]
)