2014-05-16 15:35:16 +02:00
|
|
|
#!/usr/bin/env python
|
2019-06-27 23:55:33 +02:00
|
|
|
|
2014-05-16 15:35:16 +02:00
|
|
|
import os
|
|
|
|
import sys
|
2019-07-28 19:43:28 +02:00
|
|
|
from setuptools import setup, find_packages
|
2019-07-20 12:27:32 +02:00
|
|
|
from moulinette.globals import init_moulinette_env
|
2014-05-16 15:35:16 +02:00
|
|
|
|
2019-07-20 12:27:32 +02:00
|
|
|
|
|
|
|
LOCALES_DIR = init_moulinette_env()['LOCALES_DIR']
|
2017-07-26 05:14:16 +02:00
|
|
|
|
2014-05-16 15:35:16 +02:00
|
|
|
# Extend installation
|
|
|
|
locale_files = []
|
2017-07-26 05:14:16 +02:00
|
|
|
|
2014-05-16 15:35:16 +02:00
|
|
|
if "install" in sys.argv:
|
|
|
|
# Evaluate locale files
|
|
|
|
for f in os.listdir('locales'):
|
|
|
|
if f.endswith('.json'):
|
|
|
|
locale_files.append('locales/%s' % f)
|
|
|
|
|
|
|
|
|
|
|
|
setup(name='Moulinette',
|
|
|
|
version='2.0.0',
|
2014-05-16 16:09:05 +02:00
|
|
|
description='Prototype interfaces quickly and easily',
|
2014-05-16 15:35:16 +02:00
|
|
|
author='Yunohost Team',
|
|
|
|
author_email='yunohost@yunohost.org',
|
|
|
|
url='http://yunohost.org',
|
|
|
|
license='AGPL',
|
2019-07-28 19:46:10 +02:00
|
|
|
packages=find_packages(exclude=['test']),
|
2018-12-02 02:32:59 +01:00
|
|
|
data_files=[(LOCALES_DIR, locale_files)],
|
2019-06-27 23:55:33 +02:00
|
|
|
python_requires='==2.7.*',
|
|
|
|
install_requires=[
|
|
|
|
'argcomplete',
|
|
|
|
'psutil',
|
|
|
|
'pytz',
|
|
|
|
'pyyaml',
|
2019-07-28 05:50:56 +02:00
|
|
|
'toml',
|
2019-12-22 11:16:54 +01:00
|
|
|
'python-ldap',
|
2019-12-28 16:29:26 +01:00
|
|
|
'gevent-websocket',
|
|
|
|
'bottle',
|
2019-06-27 23:55:33 +02:00
|
|
|
],
|
|
|
|
tests_require=[
|
|
|
|
'pytest',
|
|
|
|
'pytest-cov',
|
|
|
|
'pytest-env',
|
|
|
|
'pytest-mock',
|
|
|
|
'requests',
|
|
|
|
'requests-mock',
|
2020-03-30 22:57:23 +02:00
|
|
|
'webtest'
|
2019-06-27 23:55:33 +02:00
|
|
|
],
|
2014-05-16 15:35:16 +02:00
|
|
|
)
|