/
setup.py
44 lines (41 loc) · 1.25 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""
Flask-yamli18n
----------------
Use YAML files for i18n in Flask
It requires Python2.6+ as it uses string.format syntax.
Or you can modify it to python2.5 '%s' syntax.
"""
import os.path
from setuptools import setup
p = os.path.join(os.path.dirname(__file__), 'flask_yamli18n', '__init__.py')
with open(os.path.abspath(p)) as f:
for line in f:
if line.startswith('__version__ = '):
version = line.split('=')[-1].strip().replace("'", '')
break
setup(
name='flask-yamli18n',
version=version,
url='https://github.com/lixxu/flask-yamli18n',
license='BSD',
author='Lix Xu',
author_email='xuzenglin@gmail.com',
description='Use yaml files as translation files in flask',
long_description=__doc__,
packages=['flask_yamli18n'],
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'PyYAML'
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)