-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
57 lines (41 loc) · 1.29 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
56
57
import io
import os
import re
import sys
from setuptools import setup
def get_version():
regex = r"__version__\s=\s\'(?P<version>[\d\.]+?)\'"
path = ('aiohttp_jwt', '__init__.py',)
return re.search(regex, read(*path)).group('version')
def read(*parts):
filename = os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts)
sys.stdout.write(filename)
with io.open(filename, encoding='utf-8', mode='rt') as fp:
return fp.read()
packages = ['aiohttp_jwt']
install_requires = ['aiohttp>=2.3.5', 'PyJWT>=1.6.0']
classifiers = ['Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
]
setup(
name='aiohttp_jwt',
version=get_version(),
description='aiohttp middleware for working with JWT',
long_description=read('README.md'),
long_description_content_type='text/markdown',
url='https://github.com/hzlmn/aiohttp-jwt',
author='Oleh Kuchuk',
author_email='[email protected]',
license='MIT',
packages=packages,
install_requires=install_requires,
zip_safe=False,
classifiers=classifiers,
keywords=[
'asyncio',
'aiohttp',
'jwt',
],
)