-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
69 lines (63 loc) · 1.96 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
"""Olivaw installation script"""
from setuptools import setup, find_packages
from os.path import sep, exists
from urllib.request import urlopen
from olivaw.constants import (
CORESE_PYTHON_URL,
CORESE_LOCAL_PATH,
VERSION
)
# Parse the requirements from requirements.txt
requirements = None
with open(f"{sep.join(__file__.split(sep)[:-1])}{sep}requirements.txt", "r") as requirementsFile:
requirements = requirementsFile.readlines()
requirements = [
line.strip()
for line in requirements
if len(line.strip()) > 0
]
# Download the corese jar from inria website
if not exists(CORESE_LOCAL_PATH):
with urlopen(CORESE_PYTHON_URL) as downloaded:
with open(CORESE_LOCAL_PATH, "wb") as jar:
jar.write(downloaded.read())
# Reading README.md file for injection into python package long description
long_description = ""
with open("./README.md", "r") as readme:
long_description = readme.read()
setup(
name='olivaw',
version=VERSION,
description="Python framework for supporting agile ontology development",
long_description=long_description,
long_description_content_type="text/markdown",
author='Nicolas Robert',
author_email="nicolas_robert_31@hotmail.fr",
maintainer='Nicolas Robert',
maintainer_email="nicolas_robert_31@hotmail.fr",
url="https://github.com/Wimmics/olivaw",
download_url="https://pypi.org/project/olivaw/",
packages=find_packages(include=["olivaw", "olivaw.*"]),
license="LGPL-2.1",
license_files=["LICENSE"],
keywords=[
"semantics",
"ontology",
"schema",
"vocabulary",
"linked data",
"validation",
"RDF",
"RDFS",
"OWL",
"SHACL",
"SPARQL"
],
platforms=[],
package_data={'': ['*.json', '*.ttl', '*.jar']},
install_requires=[requirements],
entry_points = {
"console_scripts": ["olivaw=olivaw.main:run"]
},
python_requires='>=3.10'
)