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"
|
__package__ = "melisa"
|
||||||
__title__ = "Melisa"
|
__title__ = "Melisa"
|
||||||
__description__ = "Cache-configurable module to interact with the Discord API."
|
__description__ = "Cache-optimized Discord microframework for Python 3"
|
||||||
__author__ = "MelisaDev"
|
__author__ = "MelisaDev"
|
||||||
__license__ = "MIT"
|
__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
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
extras_require = []
|
def long_description():
|
||||||
requirements = []
|
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:
|
def parse_requirements_file(path):
|
||||||
extras_require = file.read().splitlines()
|
with open(path, encoding='utf-8') as file:
|
||||||
|
return file.read().splitlines()
|
||||||
|
|
||||||
|
|
||||||
with open('melisa/__init__.py', encoding='utf-8') as file:
|
with open('melisa/__init__.py', encoding='utf-8') as file:
|
||||||
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', file.read(), re.MULTILINE).group(1)
|
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 = [
|
packages = [
|
||||||
'melisa',
|
'melisa',
|
||||||
|
@ -38,18 +31,20 @@ packages = [
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='melisa',
|
name='melisa',
|
||||||
author='grey-cat, TheMisterSenpai',
|
author='MelisaDev',
|
||||||
url='https://github.com/MelisaDev/melisa',
|
url='https://github.com/MelisaDev/melisa',
|
||||||
version=version,
|
version=version,
|
||||||
packages=packages,
|
packages=packages,
|
||||||
license='MIT',
|
license='MIT',
|
||||||
description='Cache-optimized Discord microframework for Python 3',
|
description='Cache-optimized Discord microframework for Python 3',
|
||||||
long_description=readme,
|
long_description=long_description(),
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8,<3.11',
|
||||||
install_requires=requirements,
|
install_requires=parse_requirements_file("requirements.txt"),
|
||||||
extras_require=extras_require,
|
extras_require={
|
||||||
|
"speedup": parse_requirements_file("packages/speed.txt")
|
||||||
|
},
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 1 - Development",
|
"Development Status :: 1 - Development",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
|
@ -59,8 +54,12 @@ setup(
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
|
"Topic :: Communications :: Chat",
|
||||||
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
"Topic :: Internet",
|
"Topic :: Internet",
|
||||||
"Topic :: Software Development :: Libraries",
|
"Topic :: Software Development :: Libraries",
|
||||||
|
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
||||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
"Topic :: Utilities",
|
"Topic :: Utilities",
|
||||||
"Typing :: Typed",
|
"Typing :: Typed",
|
||||||
|
|
Loading…
Reference in a new issue