Commit 2cd65e34 authored by Samuel GAIST's avatar Samuel GAIST

[setup] Refactore setup.py to match other conda ported beat packages

Now requirements are taken from the corresponding txt files as
well as version.

The requirement files only contains what conda doesn't provide already
except for Django which can be obtained from both.
parent 36e91261
......@@ -27,13 +27,19 @@
from setuptools import setup, find_packages
def load_requirements(f):
retval = [str(k.strip()) for k in open(f, 'rt', encoding='utf8')]
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.web',
version='1.3.1rc1',
description='Biometrics Evaluation and Testing Platform (Web Modules)',
version=open("version.txt").read().rstrip(),
description='Web Application for the BEAT Platform',
url='https://gitlab.idiap.ch/beat/beat.web',
license='AGPLv3',
author='Idiap Research Institute',
......@@ -44,50 +50,22 @@ setup(
packages=find_packages(),
include_package_data=True,
zip_safe=False,
namespace_packages=[
"beat",
],
install_requires=[
"beat.core",
"django",
"django-activity-stream",
"django-jsonfield",
"django-guardian",
"djangorestframework",
"django-rest-swagger",
"docopt",
"docutils",
"Jinja2",
"nose",
"psycopg2-binary",
"pytz",
"psutil",
"setuptools",
"simplejson",
"sphinx",
"sphinxcontrib-programoutput",
"sphinxcontrib-httpdomain",
"sphinx-rtd-theme",
"matplotlib",
],
classifiers = [
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: JavaScript',
'Framework :: Django',
],
install_requires=load_requirements('requirements.txt'),
test_require=load_requirements('test_requirements.txt'),
entry_points={
'console_scripts': [
'scheduler = beat.web.scripts.scheduler:main',
'scheduler = beat.web.scripts.scheduler:main'
],
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: JavaScript',
'Framework :: Django',
]
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment