Mastodonplus.py/setup.py

62 lines
1.5 KiB
Python

import setuptools
VERSION = '1.5.5.2'
test_deps = [
'pytest',
'pytest-runner',
'pytest-cov',
'vcrpy',
'pytest-vcr',
'pytest-mock',
'requests-mock'
]
webpush_deps = [
'http_ece>=1.0.5',
'cryptography>=1.6.0',
]
blurhash_deps = [
'blurhash>=1.1.4',
]
extras = {
"test": test_deps + webpush_deps + blurhash_deps,
"webpush": webpush_deps,
"blurhash": blurhash_deps,
}
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
setuptools.setup(
name='Mastodonplus.py',
version=VERSION,
description='Python wrapper for the Mastodon API (new endpoints)',
packages=['mastodon'],
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[
'requests>=2.4.2',
'python-dateutil',
'six',
'pytz',
'python-magic',
'decorator>=4.0.0',
] + blurhash_deps,
tests_require=test_deps,
extras_require=extras,
url='https://git.mastodont.cat/spla/Mastodonplus.py',
author='Lorenz Diener',
author_email='lorenzd+mastodonpypypi@gmail.com',
license='MIT',
keywords='mastodon api microblogging',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Communications',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
])