This repository has been archived by the owner on Apr 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
55 lines (47 loc) · 1.59 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
from setuptools import setup
from setuptools import find_packages
import re as regex
def long_description():
with open('README.md') as file:
return file.read()
def get_version():
with open('apex/__init__.py') as file:
ver_regex = r'^__version__\s*=\s*"(.*)"$'
return regex.search(ver_regex, file.read(), regex.MULTILINE).group(1)
def get_requirements():
with open('requirements.txt') as file:
return file.readlines()
setup(
name='apex-framework',
version=get_version(),
description='A bot framework for Python',
long_description=long_description(),
url='https://lucia.moe',
author='Valeth',
author_email='a010@protonmail.com',
license='GPL-3.0',
classifiers=[
'Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Topic :: Communications :: Chat',
'Topic :: Internet',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'
],
keywords='bot discord framework',
packages=find_packages(exclude=['tests*']),
install_requires=get_requirements(),
python_requires='>=3.6',
setup_requires=['pytest-runner'],
tests_require=['pytest'],
extras_require={
'discord': ['discord.py'],
'systemd': ['systemd'],
'mongodb': ['pymongo']
},
scripts=['bin/apex']
)