-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.py
66 lines (54 loc) · 1.54 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
58
59
60
61
62
63
64
65
66
"""
Flask-Discord
-------------
An Discord OAuth2 flask extension.
"""
import re
import os
from setuptools import setup, find_packages
def __get_version():
with open("flask_discord/__init__.py") as package_init_file:
return re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', package_init_file.read(), re.MULTILINE).group(1)
requirements = [
"Flask",
"pyjwt>=2.4.0",
"requests",
"oauthlib",
"cachetools",
"requests_oauthlib",
]
on_rtd = os.getenv('READTHEDOCS') == 'True'
if on_rtd:
requirements.append('sphinxcontrib-napoleon')
requirements.append('Pallets-Sphinx-Themes')
extra_requirements = {
'docs': [
'sphinx==1.8.3'
]
}
setup(
name='Flask-Discord',
version=__get_version(),
url='https://github.com/thec0sm0s/Flask-Discord',
license='MIT',
author='□ | The Cosmos',
author_email='[email protected]',
description='Discord OAuth2 extension for Flask.',
long_description=__doc__,
packages=find_packages(),
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=requirements,
extras_require=extra_requirements,
classifiers=[
'Framework :: Flask',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)