-
-
Notifications
You must be signed in to change notification settings - Fork 126
/
setup.py
executable file
·54 lines (47 loc) · 1.38 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
"""
setup.py for Flask-Limiter
"""
__author__ = "Ali-Akber Saifee"
__email__ = "[email protected]"
__copyright__ = "Copyright 2023, Ali-Akber Saifee"
import os
from setuptools import find_packages, setup
import versioneer
this_dir = os.path.abspath(os.path.dirname(__file__))
REQUIREMENTS = filter(
None, open(os.path.join(this_dir, "requirements", "main.txt")).read().splitlines()
)
EXTRA_REQUIREMENTS = {
"redis": ["limits[redis]"],
"memcached": ["limits[memcached]"],
"mongodb": ["limits[mongodb]"],
}
setup(
name="Flask-Limiter",
author=__author__,
author_email=__email__,
license="MIT",
url="https://flask-limiter.readthedocs.org",
project_urls={
"Source": "https://github.com/alisaifee/flask-limiter",
},
zip_safe=False,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
install_requires=list(REQUIREMENTS),
classifiers=[k for k in open("CLASSIFIERS").read().split("\n") if k],
description="Rate limiting for flask applications",
long_description=open("README.rst").read(),
packages=find_packages(exclude=["tests*"]),
python_requires=">=3.8",
extras_require=EXTRA_REQUIREMENTS,
include_package_data=True,
package_data={
"flask_limiter": ["py.typed"],
},
entry_points={
'flask.commands': [
'limiter=flask_limiter.commands:cli'
],
},
)