-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
56 lines (47 loc) · 1.45 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
45
46
47
48
49
50
51
52
53
54
55
56
"""
sanic-babel
-----------
Adds i18n/l10n support to Sanic applications with the help of the
`Babel`_ library.
Links
`````
* `documentation <http://pythonhosted.org/sanic-babel/>`_
.. _Babel: http://babel.edgewall.org/
"""
import os
import platform
from pathlib import Path
from setuptools import setup
if platform.system().startswith("Windows"):
os.environ["SANIC_NO_UVLOOP"] = "yes"
version = ""
p = Path(__file__) / "../sanic_babel/__init__.py"
with p.resolve().open(encoding="utf-8") as f:
for line in f:
if line.startswith("__version__ = "):
version = line.split("=")[-1].strip().replace("'", "")
break
setup(
name="sanic-babel",
version=version.replace('"', ""),
url="https://github.com/lixxu/sanic-babel",
license="BSD",
author="Lix Xu",
author_email="xuzenglin@gmail.com",
description="babel support for sanic",
long_description=__doc__,
packages=["sanic_babel"],
zip_safe=False,
platforms="any",
install_requires=["Sanic>=21.3", "Babel>=2.3", "Jinja2>=2.5"],
python_requires=">=3.7",
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
],
)