-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
48 lines (43 loc) · 1.52 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
"""
python-paginate
-----------------
Pagination support for python web frameworks (study from will_paginate).
Supported CSS: bootstrap2&3&4, foundation, ink, uikit and semanticui, metro4
Supported web frameworks: Flask, Tornado, Sanic
"""
import io
import os.path
from setuptools import setup
work_dir = os.path.dirname(os.path.abspath(__file__))
fp = os.path.join(work_dir, "python_paginate/__init__.py")
version = ""
with io.open(fp, encoding="utf-8") as f:
for line in f:
if line.startswith("__version__ = "):
version = line.split("=")[-1].strip().replace("'", "")
break
setup(
name="python-paginate",
version=version.replace('"', ""),
url="https://github.com/lixxu/python-paginate",
license="BSD-3-Clause",
author="Lix Xu",
author_email="[email protected]",
description="Simple paginate support for python web frameworks",
long_description=__doc__,
packages=["python_paginate", "python_paginate.css", "python_paginate.web"],
zip_safe=False,
platforms="any",
install_requires=["six"],
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 :: 2.6",
"Programming Language :: Python :: 3",
],
)