-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
33 lines (28 loc) · 921 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
27
28
29
30
31
32
33
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import sys
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
with open('SimpleHOHMM/package_info.json') as f:
_info = json.load(f)
def setup_package():
needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
sphinx = ['sphinx'] if needs_sphinx else []
setup(
setup_requires=sphinx,
name='SimpleHOHMM',
version=_info["version"],
author=_info["author"],
author_email=_info["author_email"],
packages=['SimpleHOHMM'],
package_data={'SimpleHOHMM': ['package_info.json']},
url='https://simple-hohmm.readthedocs.io',
license='LICENSE.txt',
description='High Order Hidden Markov Model for sequence classification',
test_suite='test.test_suite',
)
if __name__ == "__main__":
setup_package()