This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
57 lines (48 loc) · 2.03 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
#!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
import wolpert
VERSION = wolpert.__version__
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'verify that the git tag matches our version'
def run(self):
tag = os.getenv('CIRCLE_TAG')
if tag != VERSION:
info = "Git tag: {0} does not match the version of this app: {1}" \
.format(tag, VERSION)
sys.exit(info)
with open('README.rst') as f:
LONG_DESCRIPTION = f.read()
setup(name="wolpert",
version=VERSION,
description="Stacked generalization framework",
long_description=LONG_DESCRIPTION,
url="https://github.com/caioaao/wolpert",
author="Caio Oliveira",
license="new BSD",
classifiers=['Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'],
package_dir={'wolpert': 'wolpert'},
packages=find_packages(include=['wolpert', 'wolpert.*'],
exclude=['*.tests', '*.tests.*']),
install_requires=["numpy>=0.14.2", "scikit-learn>=0.19.1"],
cmdclass={
'verify': VerifyVersionCommand,
})