-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
111 lines (88 loc) · 3.54 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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='guillem.frances@upf.edu',
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 :: Apache Software License",
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
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>=7.0.1',
'tox',
'pytest-cov',
'mypy'
],
'docs': [
'jinja2==3.0.3',
'docutils<0.18',
'sphinx==4.4.0',
'nbsphinx==0.8.8',
'recommonmark==0.7.1',
'sphinx_rtd_theme==1.0.0',
'ipykernel==6.9.1',
'ipython==8.1.0'
],
'arithmetic': [
'scipy',
'numpy'
],
'rddl': [
"pyrddl"
],
'parsegen': [
'ply==3.11'
],
'clingo': [
# Clingo (& gringo) bindings to the clingo solver
'clingo>=5.5.1'
],
'stubs': [
'types-psutil',
]
},
# 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()