-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
47 lines (43 loc) · 1.32 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
"""
sanic-jinja2
--------------
Jinja2 support for sanic
"""
import os
import platform
from pathlib import Path
from setuptools import setup
if platform.system().startswith("Windows"):
os.environ["SANIC_NO_UVLOOP"] = "yes"
p = Path(__file__) / "../sanic_jinja2/__init__.py"
version = ""
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-jinja2",
version=version.replace('"', ""),
url="https://github.com/lixxu/sanic-jinja2",
license="bsd-3-clause",
author="Lix Xu",
author_email="xuzenglin@gmail.com",
description="Jinja2 support for sanic",
long_description=__doc__,
packages=["sanic_jinja2"],
zip_safe=False,
platforms="any",
install_requires=["sanic>=21.3", "jinja2"],
python_requires=">=3.7",
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",
"Programming Language :: Python :: 3",
],
)