-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.soon
executable file
·73 lines (65 loc) · 2.31 KB
/
setup.soon
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
from setuptools import setup, find_packages
# standalone import of a module (https://stackoverflow.com/a/58423785)
def import_module_from_path(path):
"""Import a module from the given path without executing any code above it
"""
import importlib
import pathlib
import sys
module_path = pathlib.Path(path).resolve()
module_name = module_path.stem # "path/x.py" -> "x"
spec = importlib.util.spec_from_file_location(module_name, module_path)
module = importlib.util.module_from_spec(spec)
if module not in sys.modules:
sys.modules[module_name] = module
spec.loader.exec_module(module)
else:
module = sys.modules
return module
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
version = import_module_from_path("src/_version.py").__version__
setup(
name="vspace_metta",
version=version,
author="Logicmoo Co",
author_email="[email protected]",
description="VSpace wrapper around the MeTTa interpreter to make it useable from within Python and jupyter notebooks.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/logicmoo/hyperon-wam",
project_urls={
"Bug Tracker": "https://github.com/logicmoo/metta-vspace/issues",
},
#packages=find_packages(exclude=["data/"]),
packages=["src"],
install_requires=[
"metakernel",
"yasi",
"pyswip",
"hyperon"
],
package_dir={"src": "src"},
include_package_data=True,
license="LGPL",
classifiers=[
"Framework :: IPython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Prolog",
"Programming Language :: MeTTa",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Topic :: System :: Shells",
],
python_requires=">=3.6",
zip_safe=True
)