Some Cleanup of setup.py and documentation in auth

This commit is contained in:
Ferdinand Thiessen 2020-10-30 22:19:16 +01:00
parent 9bbcaa5bc9
commit f60c06bc17
2 changed files with 9 additions and 3 deletions

View File

@ -25,7 +25,7 @@ def login():
Route: ``/auth`` | Method: ``POST`` Route: ``/auth`` | Method: ``POST``
POST-data: {'userid': string, 'password': string} POST-data: ``{userid: string, password: string}``
Returns: Returns:
A JSON object with `flaschengeist.models.user.User` and created A JSON object with `flaschengeist.models.user.User` and created

View File

@ -10,6 +10,7 @@ setup(
packages=find_packages(), packages=find_packages(),
package_data={"": ["*.toml"]}, package_data={"": ["*.toml"]},
scripts=["run_flaschengeist"], scripts=["run_flaschengeist"],
python_requires=">=3.6",
install_requires=[ install_requires=[
"Flask >= 1.1", "Flask >= 1.1",
"toml", "toml",
@ -18,17 +19,22 @@ setup(
"flask_cors", "flask_cors",
"werkzeug", "werkzeug",
"python-dateutil", "python-dateutil",
# Needed for python < 3.7
"backports-datetime-fromisoformat",
], ],
extras_require={"ldap": ["flask_ldapconn", "ldap3"], "bjoern": ["bjoern"]}, extras_require={"ldap": ["flask_ldapconn", "ldap3"], "bjoern": ["bjoern"]},
entry_points={ entry_points={
"flaschengeist.plugin": [ "flaschengeist.plugin": [
# Authentication providers
"auth_plain = flaschengeist.plugins.auth_plain:AuthPlain",
"auth_ldap = flaschengeist.plugins.auth_ldap:AuthLDAP [ldap]",
# Route providers (and misc)
"auth = flaschengeist.plugins.auth:AuthRoutePlugin", "auth = flaschengeist.plugins.auth:AuthRoutePlugin",
"users = flaschengeist.plugins.users:UsersPlugin", "users = flaschengeist.plugins.users:UsersPlugin",
"roles = flaschengeist.plugins.roles:RolesPlugin", "roles = flaschengeist.plugins.roles:RolesPlugin",
"balance = flaschengeist.plugins.balance:BalancePlugin",
"schedule = flaschengeist.plugins.schedule:SchedulePlugin", "schedule = flaschengeist.plugins.schedule:SchedulePlugin",
"mail = flaschengeist.plugins.message_mail:MailMessagePlugin", "mail = flaschengeist.plugins.message_mail:MailMessagePlugin",
"auth_plain = flaschengeist.plugins.auth_plain:AuthPlain",
"auth_ldap = flaschengeist.plugins.auth_ldap:AuthLDAP [ldap]",
], ],
}, },
) )