Skip to content

Commit

Permalink
fix: add missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic committed Mar 26, 2019
1 parent e7364c7 commit 4d75128
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
1 change: 1 addition & 0 deletions knora/create_ontology.py
Expand Up @@ -6,6 +6,7 @@
from jsonschema import validate
from knora import KnoraError, knora


def main():
# parse the arguments of the command line
parser = argparse.ArgumentParser()
Expand Down
20 changes: 20 additions & 0 deletions knora/knora-ctl.py
@@ -0,0 +1,20 @@
import click


@click.group()
def cli():
pass


@click.command()
def init():
click.echo('Initializes and loads data into GraphDB')


@click.command()
def reload():
click.echo('Reloads the ontology cache')


cli.add_command(init)
cli.add_command(reload)
12 changes: 9 additions & 3 deletions setup.py
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='knora',
version='0.0.4',
version='0.0.5',
description='A Python library and tools for the Knora-API',
url='https://github.com/dhlab-basel/knora-py',
author='Lukas Rosenthaler',
Expand All @@ -20,10 +20,16 @@
install_requires=[
'rdflib',
'lxml',
'validators'
'validators',
'requests',
'jsonschema',
'click'
],
entry_points={
'console_scripts': ['knora-create-ontology=knora.create_ontology:main'],
'console_scripts': [
'knora-create-ontology=knora.create_ontology:main',
'knoractl=knora.knora_ctl:cli'
],
},
include_package_data=True,
zip_safe=False
Expand Down

0 comments on commit 4d75128

Please sign in to comment.