-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
74 lines (68 loc) · 1.97 KB
/
setup.py
File metadata and controls
74 lines (68 loc) · 1.97 KB
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
import re
from setuptools import setup, find_packages
_deps = [
"scikit-learn>=1.5.2",
"pandas>=1.5.0",
"requests>=2.32.3",
"rdflib>=6.0.2",
"parsimonious>=0.8.1",
"sortedcontainers>=2.4.0",
"owlready2>=0.40",
"JPype1>=1.5.0",
"tqdm>=4.66.5",
"fastapi>=0.115.5",
"httpx>=0.27.2",
"uvicorn>=0.32.1",
"dicee==0.3.2",
"litserve>=0.2.0",
"dspy>=3.0.3",
"ruff>=0.7.2",
"pytest>=8.1.1",
]
deps = {b: a for a, b in (re.findall(r"^(([^!=<>~ ]+)(?:[!=<>~ ].*)?$)", x)[0] for x in _deps)}
def deps_list(*pkgs):
return [deps[pkg] for pkg in pkgs]
extras = dict()
extras["min"] = deps_list(
"scikit-learn",
"pandas",
"requests",
"rdflib",
"parsimonious",
"sortedcontainers",
"owlready2",
"JPype1",
"tqdm",
"fastapi",
"httpx",
"uvicorn",
"litserve",
"dspy",
)
extras["dev"] = (extras["min"] + deps_list("pytest", "ruff"))
extras["agentic"] = (extras["min"] + deps_list("dspy"))
extras["all"] = (extras["dev"] + deps_list("dspy", "dicee"))
install_requires = [extras["min"]]
with open('README.md', 'r') as fh:
long_description = fh.read()
setup(
name="owlapy",
description="OWLAPY is a Python Framework for creating and manipulating OWL Ontologies.",
version="1.6.4",
packages=find_packages(),
include_package_data=True,
package_data={'owlapy': ['jar_dependencies/*.jar'],},
extras_require=extras,
install_requires=list(install_requires),
author='Caglar Demir',
author_email='caglardemir8@gmail.com',
url='https://github.com/dice-group/owlapy',
classifiers=[
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering"],
python_requires='>=3.11',
entry_points={"console_scripts": ["owlapy=owlapy.scripts.run:main", "owlapy-serve=owlapy.scripts.owlapy_serve:main"]},
long_description=long_description,
long_description_content_type="text/markdown",
)