-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
55 lines (50 loc) · 1.96 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
import importlib.machinery
import importlib.util
import io
from os import path
from setuptools import find_packages, setup
loader = importlib.machinery.SourceFileLoader(
'version', path.join('.', 'token_bucket', 'version.py')
)
spec = importlib.util.spec_from_loader(loader.name, loader)
module = importlib.util.module_from_spec(spec)
loader.exec_module(module)
VERSION = module.__version__
setup(
name='token_bucket',
version=VERSION,
description='Very fast implementation of the token bucket algorithm.',
long_description=io.open('README.rst', 'r', encoding='utf-8').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Natural Language :: English',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
keywords='web http https cloud rate limiting token bucket throttling',
author='kgriffs',
author_email='mail@kgriffs.com',
url='https://github.com/falconry/token-bucket',
license='Apache 2.0',
packages=find_packages(exclude=['tests']),
python_requires='>=3.7',
install_requires=[],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)