2016-03-23 12:01:54 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
"""Setup file for testing, not for packaging/distribution."""
|
|
|
|
|
|
|
|
import setuptools
|
2017-09-09 00:02:24 +02:00
|
|
|
from setuptools.command.develop import develop
|
|
|
|
from setuptools.command.install import install
|
|
|
|
|
|
|
|
|
|
|
|
def translations_compile():
|
|
|
|
"""Compile any existent translation.
|
|
|
|
"""
|
|
|
|
from pillar import cli
|
|
|
|
cli.translations.compile()
|
|
|
|
|
|
|
|
|
|
|
|
class PostDevelopCommand(develop):
|
|
|
|
"""Post-installation for develop mode."""
|
|
|
|
def run(self):
|
|
|
|
super().run()
|
|
|
|
translations_compile()
|
|
|
|
|
|
|
|
|
|
|
|
class PostInstallCommand(install):
|
|
|
|
"""Post-installation for installation mode."""
|
|
|
|
def run(self):
|
|
|
|
super().run()
|
|
|
|
translations_compile()
|
|
|
|
|
2016-03-23 12:01:54 +01:00
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name='pillar',
|
2016-08-19 09:19:06 +02:00
|
|
|
version='2.0',
|
|
|
|
packages=setuptools.find_packages('.', exclude=['test']),
|
|
|
|
install_requires=[
|
2017-09-06 17:51:21 +02:00
|
|
|
'Flask>=0.12',
|
2017-09-06 17:30:40 +02:00
|
|
|
'Eve>=0.7.3',
|
2018-07-13 11:01:22 +02:00
|
|
|
'Flask-Caching>=1.4.0',
|
2016-08-19 09:19:06 +02:00
|
|
|
'Flask-Script>=2.0.5',
|
2016-09-29 10:01:15 +02:00
|
|
|
'Flask-Login>=0.3.2',
|
|
|
|
'Flask-OAuthlib>=0.9.3',
|
2018-03-28 22:05:54 +02:00
|
|
|
'Flask-WTF>=0.14.2',
|
2017-05-18 10:00:20 +02:00
|
|
|
'algoliasearch>=1.12.0',
|
2018-01-11 10:29:15 +01:00
|
|
|
|
|
|
|
# Limit the major version to the major version of ElasticSearch we're using.
|
|
|
|
'elasticsearch>=6.0.0,<7.0.0',
|
|
|
|
'elasticsearch_dsl>=6.0.0,<7.0.0',
|
|
|
|
|
2016-09-29 10:01:15 +02:00
|
|
|
'attrs>=16.2.0',
|
2017-09-13 16:36:01 +02:00
|
|
|
'bugsnag>=2.3.1',
|
2016-08-19 09:19:06 +02:00
|
|
|
'gcloud>=0.12.0',
|
|
|
|
'google-apitools>=0.4.11',
|
|
|
|
'MarkupSafe>=0.23',
|
|
|
|
'Pillow>=2.8.1',
|
|
|
|
'requests>=2.9.1',
|
|
|
|
'rsa>=3.3',
|
2018-03-26 11:58:09 +02:00
|
|
|
'shortcodes>=2.5', # 2.4.0 and earlier corrupted unicode
|
2016-08-19 09:19:06 +02:00
|
|
|
'zencoder>=0.6.5',
|
|
|
|
'bcrypt>=2.0.0',
|
|
|
|
'blinker>=1.4',
|
2016-09-29 10:01:15 +02:00
|
|
|
'pillarsdk',
|
2016-08-19 09:19:06 +02:00
|
|
|
],
|
|
|
|
tests_require=[
|
|
|
|
'pytest>=2.9.1',
|
|
|
|
'responses>=0.5.1',
|
|
|
|
'pytest-cov>=2.2.1',
|
|
|
|
'mock>=2.0.0',
|
|
|
|
],
|
2017-09-09 00:02:24 +02:00
|
|
|
entry_points = {'console_scripts': [
|
|
|
|
'translations = pillar.cli.translations:main',
|
|
|
|
]},
|
|
|
|
cmdclass={
|
|
|
|
'install': PostInstallCommand,
|
|
|
|
'develop': PostDevelopCommand,
|
|
|
|
},
|
2016-03-23 12:01:54 +01:00
|
|
|
zip_safe=False,
|
|
|
|
)
|