Skip to content
Permalink
Browse files
fix: add missing dependencies
  • Loading branch information
subotic committed Mar 26, 2019
1 parent e7364c7 commit 4d75128fc866a1ccf6fcb6aca248c59daeed10ca
Showing with 30 additions and 3 deletions.
  1. +1 −0 knora/create_ontology.py
  2. +20 −0 knora/knora-ctl.py
  3. +9 −3 setup.py
@@ -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()
@@ -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)
@@ -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',
@@ -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

0 comments on commit 4d75128

Please sign in to comment.