[System][Doc] Made bjoern optional
This commit is contained in:
parent
216b757740
commit
254a64efec
|
@ -3,12 +3,16 @@
|
||||||
## Installation
|
## Installation
|
||||||
### Requirements
|
### Requirements
|
||||||
- mysql or mariadb
|
- mysql or mariadb
|
||||||
- python 3.4+
|
- python 3.6+
|
||||||
### Install python files
|
### Install python files
|
||||||
pip3 install --user .
|
pip3 install --user .
|
||||||
or with ldap support
|
or with ldap support
|
||||||
|
|
||||||
pip3 install --user ".[ldap]"
|
pip3 install --user ".[ldap]"
|
||||||
|
or if you want to use bjoern as the HTTP server:
|
||||||
|
|
||||||
|
pip3 install --user ".[ldap,bjoern]"
|
||||||
|
|
||||||
#### Windows
|
#### Windows
|
||||||
Same as above, but for mysql you have to follow this guide:
|
Same as above, but for mysql you have to follow this guide:
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
import inspect
|
import inspect
|
||||||
import argparse
|
import argparse
|
||||||
import bjoern
|
|
||||||
import typing
|
|
||||||
|
|
||||||
|
|
||||||
def install(arguments):
|
def install(arguments):
|
||||||
|
@ -21,7 +19,11 @@ def run(arguments):
|
||||||
if arguments.debug:
|
if arguments.debug:
|
||||||
app.run(arguments.host, arguments.port, debug=True)
|
app.run(arguments.host, arguments.port, debug=True)
|
||||||
else:
|
else:
|
||||||
bjoern.run(app, arguments.host, arguments.port, reuse_port=True)
|
try:
|
||||||
|
import bjoern
|
||||||
|
bjoern.run(app, arguments.host, arguments.port, reuse_port=True)
|
||||||
|
except ImportError:
|
||||||
|
app.run(arguments.host, arguments.port, debug=False)
|
||||||
|
|
||||||
|
|
||||||
def export(arguments):
|
def export(arguments):
|
||||||
|
|
7
setup.py
7
setup.py
|
@ -8,19 +8,18 @@ setup(
|
||||||
author_email="tim@groeger-clan.de",
|
author_email="tim@groeger-clan.de",
|
||||||
description="Does things",
|
description="Does things",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
package_data={"": ["*.yml"]},
|
package_data={"": ["*.toml"]},
|
||||||
scripts=["run_flaschengeist"],
|
scripts=["run_flaschengeist"],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"Flask >= 1.1",
|
"Flask >= 1.1",
|
||||||
"PyYAML>=5.3.1",
|
"toml",
|
||||||
"sqlalchemy>=1.3",
|
"sqlalchemy>=1.3",
|
||||||
"flask_sqlalchemy",
|
"flask_sqlalchemy",
|
||||||
"flask_cors",
|
"flask_cors",
|
||||||
"werkzeug",
|
"werkzeug",
|
||||||
"bjoern",
|
|
||||||
"python-dateutil",
|
"python-dateutil",
|
||||||
],
|
],
|
||||||
extras_require={"ldap": ["flask_ldapconn", "ldap3"]},
|
extras_require={"ldap": ["flask_ldapconn", "ldap3"], "bjoern": ["bjoern"]},
|
||||||
entry_points={
|
entry_points={
|
||||||
"flaschengeist.plugin": [
|
"flaschengeist.plugin": [
|
||||||
"auth = flaschengeist.modules.auth:AuthRoutePlugin",
|
"auth = flaschengeist.modules.auth:AuthRoutePlugin",
|
||||||
|
|
Loading…
Reference in New Issue