-
Notifications
You must be signed in to change notification settings - Fork 291
/
setup.py
36 lines (30 loc) · 1.24 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
import runpy
from os.path import dirname, join
from pathlib import Path
from setuptools import setup, find_packages
# Import only the metadata of the pm4py to use in the setup. We cannot import it directly because
# then we need to import packages that are about to be installed by the setup itself.
meta_path = Path(__file__).parent.absolute() / "pm4py" / "meta.py"
meta = runpy.run_path(str(meta_path))
def read_file(filename):
with open(join(dirname(__file__), filename)) as f:
return f.read()
setup(
name=meta['__name__'],
version=meta['__version__'],
description=meta['__doc__'].strip(),
long_description=read_file('README.md'),
author=meta['__author__'],
author_email=meta['__author_email__'],
py_modules=['pm4py'],
include_package_data=True,
packages=[x for x in find_packages() if x.startswith("pm4py")],
url='https://processintelligence.solutions/',
license='AGPL 3.0',
install_requires=read_file("requirements.txt").split("\n"),
project_urls={
'Documentation': 'https://processintelligence.solutions/pm4py/',
'Source': 'https://github.com/process-intelligence-solutions/pm4py',
'Tracker': 'https://github.com/process-intelligence-solutions/pm4py/issues',
}
)