2022-05-22 11:56:52 +03:00
|
|
|
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-22 11:56:52 +03:00
|
|
|
|
|
|
|
|
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
|
|
|
|
2022-05-22 11:56:52 +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'
|
2022-05-22 11:56:52 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='melisa',
|
2022-05-28 17:45:08 +03:00
|
|
|
author='MelisaDev',
|
2022-05-22 11:56:52 +03:00
|
|
|
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(),
|
2022-05-22 11:56:52 +03:00
|
|
|
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")
|
|
|
|
},
|
2022-05-22 11:56:52 +03:00
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 1 - Development",
|
|
|
|
"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",
|
2022-05-22 11:56:52 +03:00
|
|
|
"Topic :: Internet",
|
|
|
|
"Topic :: Software Development :: Libraries",
|
2022-05-28 17:45:08 +03:00
|
|
|
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
2022-05-22 11:56:52 +03:00
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
"Topic :: Utilities",
|
|
|
|
"Typing :: Typed",
|
|
|
|
]
|
|
|
|
)
|