mirror of
https://github.com/MelisaDev/melisa.git
synced 2024-11-11 19:07:28 +03:00
setup.py
This commit is contained in:
parent
31e7462cf2
commit
722b76dee9
2 changed files with 20 additions and 21 deletions
|
@ -9,8 +9,8 @@ from .cache import CacheManager, AutoCacheModels
|
|||
|
||||
__package__ = "melisa"
|
||||
__title__ = "Melisa"
|
||||
__description__ = "Cache-configurable module to interact with the Discord API."
|
||||
__description__ = "Cache-optimized Discord microframework for Python 3"
|
||||
__author__ = "MelisaDev"
|
||||
__license__ = "MIT"
|
||||
__version__ = '0.0.1a0'
|
||||
__version__ = '0.0.1.dev1'
|
||||
|
||||
|
|
37
setup.py
37
setup.py
|
@ -3,26 +3,19 @@ import re
|
|||
from setuptools import setup
|
||||
|
||||
|
||||
extras_require = []
|
||||
requirements = []
|
||||
def long_description():
|
||||
with open("README.md") as fp:
|
||||
return fp.read()
|
||||
|
||||
with open('requirements.txt', encoding='utf-8') as file:
|
||||
requirements = file.read().splitlines()
|
||||
|
||||
with open('speed-requirements.txt', encoding='utf-8') as file:
|
||||
extras_require = file.read().splitlines()
|
||||
def parse_requirements_file(path):
|
||||
with open(path, encoding='utf-8') as file:
|
||||
return file.read().splitlines()
|
||||
|
||||
|
||||
with open('melisa/__init__.py', encoding='utf-8') as file:
|
||||
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', file.read(), re.MULTILINE).group(1)
|
||||
|
||||
if version is None:
|
||||
raise RuntimeError('Version is not set!')
|
||||
|
||||
readme = ''
|
||||
|
||||
with open('README.md', encoding='utf-8') as file:
|
||||
readme = file.read()
|
||||
|
||||
|
||||
packages = [
|
||||
'melisa',
|
||||
|
@ -38,18 +31,20 @@ packages = [
|
|||
|
||||
setup(
|
||||
name='melisa',
|
||||
author='grey-cat, TheMisterSenpai',
|
||||
author='MelisaDev',
|
||||
url='https://github.com/MelisaDev/melisa',
|
||||
version=version,
|
||||
packages=packages,
|
||||
license='MIT',
|
||||
description='Cache-optimized Discord microframework for Python 3',
|
||||
long_description=readme,
|
||||
long_description=long_description(),
|
||||
long_description_content_type="text/markdown",
|
||||
include_package_data=True,
|
||||
python_requires='>=3.8',
|
||||
install_requires=requirements,
|
||||
extras_require=extras_require,
|
||||
python_requires='>=3.8,<3.11',
|
||||
install_requires=parse_requirements_file("requirements.txt"),
|
||||
extras_require={
|
||||
"speedup": parse_requirements_file("packages/speed.txt")
|
||||
},
|
||||
classifiers=[
|
||||
"Development Status :: 1 - Development",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
|
@ -59,8 +54,12 @@ setup(
|
|||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: Implementation :: CPython",
|
||||
"Topic :: Communications :: Chat",
|
||||
"Topic :: Internet :: WWW/HTTP",
|
||||
"Topic :: Internet",
|
||||
"Topic :: Software Development :: Libraries",
|
||||
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
"Topic :: Utilities",
|
||||
"Typing :: Typed",
|
||||
|
|
Loading…
Reference in a new issue