Files
invenio-config-iform/setup.py
mb-wali 6a898d0f69 Mapping (#6)
* saml config

* manifest for saml files

* required

* required

* travis added install

* travis added install

* travis added installs

* extras

* extras

* added

* added

* onelogin configs

* onelogin configs

* using ready

* typo

* email sender

* modified config.py

added CORS variables in order to be possible to enable the CORS. also rearanged the config.py variables and thier comments.

* missing import:

in config.py import is needed in order to use flask_babelex func. also this module requires invenio-saml to be installed - added to the install_requires. for now installing it via github.

* install_requires

changed the branch for invenio-saml

* updated setup.py

changed to custom branch of invenio-saml, for testing the changes on those branch.

* Update config.py

In order to register user_profile via login with OAuth client, one must set this value.

* typo

fixed typo in comment.

* removed entityId

removed manully input for service provider, now it will assign automaticly the metadata url to service provider entityID.

* mapping field

a. changed invenio-saml branch, b. changed mapping field names.

* added missing NameIDFormat

* fix missplaced

name and surname was misplaced

* changed branch
2020-06-26 10:39:53 +02:00

120 lines
3.4 KiB
Python

# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Mojib Wali.
#
# invenio-config-tugraz is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""invenio module that adds tugraz configs."""
import os
from setuptools import find_packages, setup
readme = open('README.rst').read()
history = open('CHANGES.rst').read()
tests_require = [
'check-manifest>=0.25',
'coverage>=4.0',
'isort>=4.3.3',
'pydocstyle>=2.0.0',
'pytest-cov>=2.5.1',
'pytest-pep8>=1.0.6',
'pytest-invenio>=1.2.1',
]
extras_require = {
'docs': [
'Sphinx>=1.5.1',
],
'tests': tests_require,
}
extras_require['all'] = []
for reqs in extras_require.values():
extras_require['all'].extend(reqs)
setup_requires = [
'Babel>=1.3',
'pytest-runner>=3.0.0,<5',
]
install_requires = [
'Flask-BabelEx>=0.9.4',
# todo
# change to the release
# this branch will install flask-sso-saml@behind-loadbalancer
'invenio-saml @ git+https://github.com/mb-wali/invenio-saml@tugraz',
]
packages = find_packages()
# Get the version string. Cannot be done with import!
g = {}
with open(os.path.join('invenio_config_tugraz', 'version.py'), 'rt') as fp:
exec(fp.read(), g)
version = g['__version__']
setup(
name='invenio-config-tugraz',
version=version,
description=__doc__,
long_description=readme + '\n\n' + history,
keywords='invenio TODO',
license='MIT',
author='Mojib Wali',
author_email='mojib.wali@tugraz.at',
url='https://github.com/mb-wali/invenio-config-tugraz',
packages=packages,
zip_safe=False,
include_package_data=True,
platforms='any',
entry_points={
'invenio_base.apps': [
'invenio_config_tugraz = invenio_config_tugraz:invenioconfigtugraz',
],
'invenio_base.blueprints': [
'invenio_config_tugraz = invenio_config_tugraz.views:blueprint',
],
'invenio_i18n.translations': [
'messages = invenio_config_tugraz',
],
'invenio_config.module': [
'invenio_config_tugraz = invenio_config_tugraz.config',
],
# TODO: Edit these entry points to fit your needs.
# 'invenio_access.actions': [],
# 'invenio_admin.actions': [],
# 'invenio_assets.bundles': [],
# 'invenio_base.api_apps': [],
# 'invenio_base.api_blueprints': [],
# 'invenio_base.blueprints': [],
# 'invenio_celery.tasks': [],
# 'invenio_db.models': [],
# 'invenio_pidstore.minters': [],
# 'invenio_records.jsonresolver': [],
},
extras_require=extras_require,
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Development Status :: 1 - Planning',
],
)