2014-05-16 15:35:16 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from distutils.core import setup
|
|
|
|
|
2017-07-26 05:14:16 +02:00
|
|
|
from moulinette.globals import LOCALES_DIR
|
|
|
|
|
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',
|
2014-10-29 18:14:20 +01:00
|
|
|
packages=[
|
|
|
|
'moulinette',
|
|
|
|
'moulinette.authenticators',
|
|
|
|
'moulinette.interfaces',
|
|
|
|
'moulinette.utils',
|
|
|
|
],
|
2018-12-02 02:32:59 +01:00
|
|
|
data_files=[(LOCALES_DIR, locale_files)],
|
|
|
|
tests_require=["pytest", "webtest"],
|
2014-05-16 15:35:16 +02:00
|
|
|
)
|