feat(setup): update setup

This commit is contained in:
ths_dev 2022-05-28 13:22:00 +03:00 committed by GitHub
parent 884003f350
commit ffa1e1e105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,17 +2,16 @@ import re
from setuptools import setup from setuptools import setup
extras_require = {
'speed': [
'orjson>=3.5.4'
]
}
extras_require = []
requirements = [] requirements = []
with open('requirements.txt', encoding='utf-8') as file: with open('requirements.txt', encoding='utf-8') as file:
requirements = file.read().splitlines() requirements = file.read().splitlines()
with open('speed-requirements.txt', encoding='utf-8') as file:
extras_require = 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)
@ -39,7 +38,7 @@ packages = [
setup( setup(
name='melisa', name='melisa',
author='gray-cat, TheMisterSenpai', author='grey-cat, TheMisterSenpai',
url='https://github.com/MelisaDev/melisa', url='https://github.com/MelisaDev/melisa',
version=version, version=version,
packages=packages, packages=packages,
@ -48,6 +47,7 @@ setup(
long_description=readme, long_description=readme,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
include_package_data=True, include_package_data=True,
python_requires='>=3.8',
install_requires=requirements, install_requires=requirements,
extras_require=extras_require, extras_require=extras_require,
classifiers=[ classifiers=[