Skip to content

Commit 4d75128

Browse files
committed
fix: add missing dependencies
1 parent e7364c7 commit 4d75128

3 files changed

Lines changed: 30 additions & 3 deletions

File tree

‎knora/create_ontology.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from jsonschema import validate
77
from knora import KnoraError, knora
88

9+
910
def main():
1011
# parse the arguments of the command line
1112
parser = argparse.ArgumentParser()

‎knora/knora-ctl.py‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import click
2+
3+
4+
@click.group()
5+
def cli():
6+
pass
7+
8+
9+
@click.command()
10+
def init():
11+
click.echo('Initializes and loads data into GraphDB')
12+
13+
14+
@click.command()
15+
def reload():
16+
click.echo('Reloads the ontology cache')
17+
18+
19+
cli.add_command(init)
20+
cli.add_command(reload)

‎setup.py‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name='knora',
8-
version='0.0.4',
8+
version='0.0.5',
99
description='A Python library and tools for the Knora-API',
1010
url='https://github.com/dhlab-basel/knora-py',
1111
author='Lukas Rosenthaler',
@@ -20,10 +20,16 @@
2020
install_requires=[
2121
'rdflib',
2222
'lxml',
23-
'validators'
23+
'validators',
24+
'requests',
25+
'jsonschema',
26+
'click'
2427
],
2528
entry_points={
26-
'console_scripts': ['knora-create-ontology=knora.create_ontology:main'],
29+
'console_scripts': [
30+
'knora-create-ontology=knora.create_ontology:main',
31+
'knoractl=knora.knora_ctl:cli'
32+
],
2733
},
2834
include_package_data=True,
2935
zip_safe=False

0 commit comments

Comments
 (0)