/
setup.py
executable file
·68 lines (60 loc) · 1.86 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
# -*- coding: utf-8 -*-
# Always prefer setuptools over distutils
from setuptools import setup, find_namespace_packages
# To use a consistent encoding
from codecs import open
import os
from os import path
here = path.abspath(path.dirname(__file__))
PKG_NAME = 'thomas-core'
PKG_DESC = 'Thomas, a library for working with Bayesian Networks.'
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
PKG_DESCRIPTION = f.read()
# Read the API version from disk. This file should be located in the package
# folder, since it's also used to set the pkg.__version__ variable.
version_path = os.path.join(here, 'thomas', 'core', '_version.py')
version_ns = {
'__file__': version_path
}
with open(version_path) as f:
exec(f.read(), {}, version_ns)
# Setup the package
setup(
name=PKG_NAME,
version=version_ns['__version__'],
description=PKG_DESC,
long_description=PKG_DESCRIPTION,
long_description_content_type='text/markdown',
url='https://github.com/mellesies/thomas-core',
author='Melle Sieswerda',
author_email='m.sieswerda@iknl.nl',
packages=find_namespace_packages(include=['thomas.*']),
package_data={
"thomas.core": [
"__build__",
"data/dataset_17_2.csv",
"data/dataset_17_2_with_NAs.csv",
"data/dataset_17_3.csv",
"data/*.lark",
"data/*.json",
"data/*.oobn",
"data/*.net",
],
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>= 3.7',
install_requires=[
'lark-parser',
'matplotlib>=3.1',
'networkx>=2.4',
'numpy>=1.18',
'pandas>=1',
'scikit-learn',
'termcolor',
],
)