-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (46 loc) · 1.37 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
"""
Discord-Flask
-------------
A feature rich discord extension for Flask.
"""
import re
from setuptools import setup, find_packages
def __get_version():
with open("discord_flask/__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",
"typing-extensions"
]
def __get_long_description():
with open("README.rst", "r") as readme_file:
return readme_file.read()
setup(
name='Discord-Flask',
version=__get_version(),
url='https://github.com/hunter87ff/Discord-Flask',
license='MIT',
author='hunter87ff',
author_email='hunter87.dev@gmail.com',
long_description=__get_long_description(),
packages=find_packages(),
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=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'
]
)