2021-02-03 21:00:21 +09:00
|
|
|
|
import re
|
2020-01-31 06:06:13 +09:00
|
|
|
|
import sys
|
|
|
|
|
|
2019-07-06 19:34:14 +09:00
|
|
|
|
from setuptools import setup, find_packages
|
2020-01-31 06:06:13 +09:00
|
|
|
|
from setuptools.command.test import test
|
2019-07-06 19:34:14 +09:00
|
|
|
|
|
|
|
|
|
|
2020-01-31 06:06:13 +09:00
|
|
|
|
class PyTest(test):
|
|
|
|
|
def run_tests(self):
|
|
|
|
|
import pytest
|
2021-02-28 03:50:04 +09:00
|
|
|
|
|
2020-01-31 06:06:13 +09:00
|
|
|
|
sys.exit(pytest.main(['tests']))
|
2019-07-06 19:34:14 +09:00
|
|
|
|
|
|
|
|
|
|
2021-02-03 21:00:21 +09:00
|
|
|
|
with open('yandex_music/__init__.py', encoding='utf-8') as f:
|
|
|
|
|
version = re.findall(r"__version__ = '(.+)'", f.read())[0]
|
|
|
|
|
|
2019-07-06 19:34:14 +09:00
|
|
|
|
with open('README.rst', 'r', encoding='utf-8') as f:
|
2020-01-31 06:06:13 +09:00
|
|
|
|
readme = f.read()
|
|
|
|
|
|
2021-02-28 03:50:04 +09:00
|
|
|
|
setup(
|
|
|
|
|
name='yandex-music',
|
|
|
|
|
version=version,
|
2022-11-11 07:54:42 +09:00
|
|
|
|
author='Ilya Siamionau',
|
2021-02-28 03:50:04 +09:00
|
|
|
|
author_email='ilya@marshal.dev',
|
|
|
|
|
license='LGPLv3',
|
|
|
|
|
url='https://github.com/MarshalX/yandex-music-api/',
|
|
|
|
|
keywords='python yandex music api wrapper library client питон пайтон '
|
|
|
|
|
'яндекс музыка апи обёртка библиотека клиент',
|
2022-02-16 19:44:53 +09:00
|
|
|
|
description='Неофициальная Python библиотека для работы с API сервиса Яндекс.Музыка.',
|
|
|
|
|
long_description=readme,
|
|
|
|
|
packages=find_packages(),
|
2022-02-20 02:59:53 +09:00
|
|
|
|
install_requires=['requests[socks]', 'aiohttp', 'aiofiles'],
|
2021-02-28 03:50:04 +09:00
|
|
|
|
include_package_data=True,
|
|
|
|
|
classifiers=[
|
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
|
'Natural Language :: Russian',
|
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
|
'Topic :: Internet',
|
|
|
|
|
'Topic :: Multimedia :: Sound/Audio',
|
|
|
|
|
"Topic :: Software Development :: Libraries",
|
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
|
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
|
|
|
'Programming Language :: Python',
|
|
|
|
|
'Programming Language :: Python :: 3.7',
|
|
|
|
|
'Programming Language :: Python :: 3.8',
|
|
|
|
|
'Programming Language :: Python :: 3.9',
|
2022-02-16 19:44:53 +09:00
|
|
|
|
'Programming Language :: Python :: 3.10',
|
2021-02-28 03:50:04 +09:00
|
|
|
|
"Programming Language :: Python :: Implementation",
|
|
|
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
|
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
|
|
|
],
|
2021-09-19 22:47:19 +09:00
|
|
|
|
python_requires="~=3.7",
|
2021-02-28 03:50:04 +09:00
|
|
|
|
cmdclass={'test': PyTest},
|
2022-02-16 19:44:53 +09:00
|
|
|
|
tests_require=['pytest'],
|
2021-02-28 03:50:04 +09:00
|
|
|
|
project_urls={
|
2022-11-11 07:54:42 +09:00
|
|
|
|
'Documentation': 'https://yandex-music.rtfd.io',
|
|
|
|
|
'Telegram chat': 'https://t.me/yandex_music_api',
|
2021-02-28 03:50:04 +09:00
|
|
|
|
'Codecov': 'https://codecov.io/gh/MarshalX/yandex-music-api',
|
2022-11-11 07:54:42 +09:00
|
|
|
|
'Codacy': 'https://app.codacy.com/gh/MarshalX/yandex-music-api',
|
2021-02-28 03:50:04 +09:00
|
|
|
|
},
|
|
|
|
|
)
|