forked from SberProcessMining/Sber_Process_Mining
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (39 loc) · 1.59 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
import setuptools
import re
version_file = "sberpm/_version.py"
def get_version(version_file):
version_line = open(version_file, "rt").read()
pattern = r"^__version__ = ['\"]([^'\"]*)['\"]"
result = re.search(pattern, version_line, re.M)
if result:
return result.group(1)
else:
raise RuntimeError(f"Unable to find version string in {version_file}.")
def parse_requirements(filename):
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
setuptools.setup(
name="sberpm",
version=get_version(version_file),
author="Sber Process Mining R&D Team",
author_email='[email protected]',
description="Python Library for Process Mining",
url="https://github.com/SberProcessMining/Sber_Process_Mining",
include_package_data=True,
packages=['sberpm',
'sberpm.autoinsights',
'sberpm.bpmn', 'sberpm.bpmn._bpmn_graph_to_file',
'sberpm.metrics',
'sberpm.miners',
'sberpm.ml', 'sberpm.ml.processes', 'sberpm.ml.reinforcement_learning',
'sberpm.ml.summarization', 'sberpm.ml.text',
'sberpm.ml.vectorizer', 'sberpm.ml.vectorizer._graph_embedding_utils',
'sberpm.ml.vectorizer._hope_vectorizer_utils', 'sberpm.ml.vectorizer._word2vec_utils',
'sberpm.visual'
],
classifiers=[
"Programming Language :: Python :: 3.7",
"Operating System :: OS Independent",
],
install_requires=parse_requirements('requirements.txt')
)