melisa/setup.py

67 lines
1.9 KiB
Python
Raw Normal View History

import re
from setuptools import setup
2022-05-28 17:45:08 +03:00
def long_description():
with open("README.md") as fp:
return fp.read()
2022-05-28 17:45:08 +03:00
def parse_requirements_file(path):
with open(path, encoding='utf-8') as file:
return file.read().splitlines()
2022-05-28 13:22:00 +03:00
with open('melisa/__init__.py', encoding='utf-8') as file:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', file.read(), re.MULTILINE).group(1)
packages = [
'melisa',
'melisa.listeners',
'melisa.models',
'melisa.models.app',
'melisa.models.guild',
'melisa.models.message',
'melisa.models.user',
2022-05-22 12:27:38 +03:00
'melisa.utils',
'melisa.core'
]
setup(
name='melisa',
2022-05-28 17:45:08 +03:00
author='MelisaDev',
url='https://github.com/MelisaDev/melisa',
version=version,
packages=packages,
license='MIT',
description='Cache-optimized Discord microframework for Python 3',
2022-05-28 17:45:08 +03:00
long_description=long_description(),
long_description_content_type="text/markdown",
include_package_data=True,
2022-05-28 17:45:08 +03:00
python_requires='>=3.8,<3.11',
install_requires=parse_requirements_file("requirements.txt"),
extras_require={
"speedup": parse_requirements_file("packages/speed.txt")
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
2022-05-28 17:45:08 +03:00
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Communications :: Chat",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
2022-05-28 17:45:08 +03:00
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
]
)