forked from aig-upf/tarski
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (58 loc) · 2.87 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
69
70
71
72
73
74
75
76
77
78
79
from setuptools import setup, find_packages
from codecs import open
import importlib
import os
root = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(root, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Load the version number from ./src/tarski/version.py
spec = importlib.util.spec_from_file_location('tsk.version', os.path.join(root, 'src/tarski/version.py'))
version = importlib.util.module_from_spec(spec)
spec.loader.exec_module(version)
def main():
setup(
name='tarski',
version=version.__version__,
description='Tarski is a framework for the specification, modeling and manipulation of AI planning problems.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/aig-upf/tarski',
author='Miquel Ramírez and Guillem Francès',
author_email='[email protected]',
keywords='planning logic STRIPS RDDL',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
packages=find_packages('src'), # include all packages under src
package_dir={'': 'src'}, # tell distutils packages are under src
python_requires='>=3.6', # supported Python ranges
install_requires=[
# psutil not supported on Windows, we haven't tested in other platforms, but since it's not essential
# to the functioning of Tarski, better be conservative here and install only on Linux.
'psutil; platform_system=="Linux"',
'multipledispatch',
# Antlr pinned to a specific version to avoid messages "ANTLR runtime and generated code versions disagree"
# messages. If we want to bump this up, we'll need to regenerate the grammar files with the new version.
'antlr4-python3-runtime==4.7.2',
],
extras_require={
'test': ['pytest', 'tox', 'pytest-cov', 'mypy'],
'docs': ['sphinx>=2.1.2', 'recommonmark', 'nbsphinx', 'sphinx_rtd_theme', 'ipykernel', 'ipython'],
'arithmetic': ['scipy', 'numpy'],
'rddl': ['pyrddl'],
},
# This will include non-code files specified in the manifest, see e.g.
# http://python-packaging.readthedocs.io/en/latest/non-code-files.html
include_package_data=True,
)
if __name__ == '__main__':
main()