forked from romantomjak/redis-ratelimit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (44 loc) · 1.79 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
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
from re import search
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(here, 'redis_ratelimit', '__init__.py')) as f:
VERSION = search(r'VERSION = \((.+?)\)', f.read()).group(1).replace(', ', '.')
setup(
name='redis-ratelimit',
version=VERSION,
description='A fixed window rate limiter based on Redis',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/romantomjak/redis-ratelimit',
author='Roman Tomjak',
author_email='r.tomjaks@gmail.com',
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
keywords='redis rate-limit rate-limiter ratelimit ratelimiter',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=['redis'],
test_suite='tests',
)