Skip to content

Commit

Permalink
Merge d1d9a17 into dba46d8
Browse files Browse the repository at this point in the history
  • Loading branch information
white-gecko committed Dec 10, 2019
2 parents dba46d8 + d1d9a17 commit ffc06a3
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 17 deletions.
39 changes: 22 additions & 17 deletions quit/run.py
Expand Up @@ -7,34 +7,39 @@
import logging
from quit.application import getDefaults, parseEnv, parseArgs
from quit.web.app import create_app
from werkzeug.wsgi import DispatcherMiddleware
from werkzeug.middleware.dispatcher import DispatcherMiddleware

logger = logging.getLogger('quit.run')

sys.setrecursionlimit(2 ** 15)

defaults = getDefaults()
env = parseEnv()
args = parseArgs(sys.argv[1:])
args = {**defaults, **env, **args}
application = create_app(args)
def main():
sys.setrecursionlimit(2 ** 15)

# Set the basepath
if args['basepath']:
logger.info("Configure DispatcherMiddleware for basepath \"{}\"".format(args['basepath']))
defaults = getDefaults()
env = parseEnv()
args = parseArgs(sys.argv[1:])
args = {**defaults, **env, **args}
application = create_app(args)

def simple(env, resp):
"""A simple WSGI application.
# Set the basepath
if args['basepath']:
logger.info("Configure DispatcherMiddleware for basepath \"{}\"".format(args['basepath']))

See also: http://werkzeug.pocoo.org/docs/0.14/middlewares/
"""
resp('200 OK', [('Content-Type', 'text/plain')])
def simple(env, resp):
"""A simple WSGI application.
application.wsgi_app = DispatcherMiddleware(simple, {args['basepath']: application.wsgi_app})
See also: http://werkzeug.pocoo.org/docs/0.14/middlewares/
"""
resp('200 OK', [('Content-Type', 'text/plain')])

application.wsgi_app = DispatcherMiddleware(
simple, {args['basepath']: application.wsgi_app})

if __name__ == "__main__":
application.run(debug=args['flask_debug'],
use_reloader=False,
host=args['host'],
port=args['port'])


if __name__ == "__main__":
main()
Empty file added quit/web/extras/__init__.py
Empty file.
80 changes: 80 additions & 0 deletions setup.py
@@ -0,0 +1,80 @@
"""
Quit Store
----------------
Quads in Git - Distributed Version Control for RDF Knowledge Bases
The Quit Store (stands for Quads in Git) provides a workspace for distributed
collaborative Linked Data knowledge engineering. You are able to read and write
RDF datasets (aka. multiple Named Graphs) through a standard SPARQL 1.1 Query
and Update interface. To collaborate you can create multiple branches of the
dataset and share your repository with your collaborators as you know it from
Git.
"""
from setuptools import setup
import os

setup(
name='QuitStore',
version='0.17.0',
url='https://github.com/AKSW/QuitStore',
license='GPLv3+',
author='Natanael Arndt, Norman Radtke',
author_email='arndtn@gmail.com',
description='Distributed Version Control for RDF Knowledge Bases',
long_description=__doc__,
entry_points={
'console_scripts': ['quit=quit.run:main'],
},
packages=[
'quit',
'quit.plugins',
'quit.plugins.serializers',
'quit.plugins.serializers.results',
'quit.tools',
'quit.web',
'quit.web.extras',
'quit.web.modules'
],
package_data={
'quit.web': [
'static/css/*',
'static/fonts/*',
'static/js/*',
'static/octicons/*',
'static/octicons/svg/*',
'templates/*'
]
},
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'rdflib>=4.2.2',
'Flask',
'Flask-Cors',
'sortedcontainers',
'uritools',
'pygit2>=1.0.0'
],
dependency_links=[
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Database',
'Topic :: Database :: Database Engines/Servers',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Version Control :: Git',
'Topic :: System :: Archiving',
'Topic :: System :: Distributed Computing'
]
)

0 comments on commit ffc06a3

Please sign in to comment.