diff --git a/setup.py b/setup.py index d6631258c21d2a7026e79245d7312ddaaab115ae..24366082c2f43465d1fe0d8289a03e62e0f429f1 100644 --- a/setup.py +++ b/setup.py @@ -33,50 +33,50 @@ # # ################################################################################### # Define package version -version = open("version.txt").read().rstrip() from setuptools import setup, find_packages +version = open("version.txt").read().rstrip() + + def load_requirements(f): - retval = [str(k.strip()) for k in open(f, 'rt')] - return [k for k in retval if k and k[0] not in ('#', '-')] + retval = [str(k.strip()) for k in open(f, "rt")] + return [k for k in retval if k and k[0] not in ("#", "-")] + # The only thing we do in this file is to call the setup() function with all # parameters that define our package. setup( - - name='beat.backend.python', + name="beat.backend.python", version=open("version.txt").read().rstrip(), - description='Python Backend for the BEAT Platform', - url='https://gitlab.idiap.ch/beat/beat.backend.python', - license='BSD', - author='Idiap Research Institute', - author_email='beat.support@idiap.ch', - long_description=open('README.rst').read(), - + description="Python Backend for the BEAT Platform", + url="https://gitlab.idiap.ch/beat/beat.backend.python", + license="BSD", + author="Idiap Research Institute", + author_email="beat.support@idiap.ch", + long_description=open("README.rst").read(), # This line is required for any distutils based packaging. packages=find_packages(), include_package_data=True, zip_safe=False, - install_requires=load_requirements('requirements.txt'), - + install_requires=load_requirements("requirements.txt"), entry_points={ - 'console_scripts': [ - 'execute = beat.backend.python.scripts.execute:main', - 'loop_execute = beat.backend.python.scripts.loop_execute:main', - 'describe = beat.backend.python.scripts.describe:main', - 'databases_provider = beat.backend.python.scripts.databases_provider:main', - 'index = beat.backend.python.scripts.index:main', - ], + "console_scripts": [ + "execute = beat.backend.python.scripts.execute:main", + "loop_execute = beat.backend.python.scripts.loop_execute:main", + "describe = beat.backend.python.scripts.describe:main", + "databases_provider = beat.backend.python.scripts.databases_provider:main", + "index = beat.backend.python.scripts.index:main", + ] }, - - classifiers = [ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: BSD License', - 'Natural Language :: English', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Topic :: Software Development :: Libraries :: Python Modules', + classifiers=[ + "Framework :: BEAT", + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Natural Language :: English", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Topic :: Software Development :: Libraries :: Python Modules", ], )