2023-03-05 08:18:17 +00:00
|
|
|
from pathlib import Path
|
|
|
|
|
2017-09-05 20:59:32 +00:00
|
|
|
from setuptools import setup
|
2016-11-24 13:11:07 +00:00
|
|
|
|
2019-05-31 12:12:04 +00:00
|
|
|
test_deps = [
|
|
|
|
'pytest',
|
|
|
|
'pytest-runner',
|
|
|
|
'pytest-cov',
|
|
|
|
'vcrpy',
|
|
|
|
'pytest-vcr',
|
|
|
|
'pytest-mock',
|
2022-11-30 22:14:57 +00:00
|
|
|
'requests-mock',
|
|
|
|
'pytz'
|
2019-05-31 12:12:04 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
webpush_deps = [
|
|
|
|
'http_ece>=1.0.5',
|
|
|
|
'cryptography>=1.6.0',
|
|
|
|
]
|
|
|
|
|
2019-06-22 13:34:59 +00:00
|
|
|
blurhash_deps = [
|
2019-10-12 17:01:16 +00:00
|
|
|
'blurhash>=1.1.4',
|
2019-06-22 13:34:59 +00:00
|
|
|
]
|
|
|
|
|
2017-11-28 05:03:13 +00:00
|
|
|
extras = {
|
2019-06-22 13:34:59 +00:00
|
|
|
"test": test_deps + webpush_deps + blurhash_deps,
|
|
|
|
"webpush": webpush_deps,
|
|
|
|
"blurhash": blurhash_deps,
|
2017-11-28 05:03:13 +00:00
|
|
|
}
|
|
|
|
|
2023-03-05 08:18:17 +00:00
|
|
|
this_directory = Path(__file__).parent
|
|
|
|
long_description = (this_directory / "README.rst").read_text()
|
|
|
|
|
2016-11-24 13:11:07 +00:00
|
|
|
setup(name='Mastodon.py',
|
2023-04-23 18:31:42 +00:00
|
|
|
version='1.8.1',
|
2016-11-24 13:11:07 +00:00
|
|
|
description='Python wrapper for the Mastodon API',
|
2023-03-05 08:18:17 +00:00
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type='text/x-rst',
|
2016-11-24 13:11:07 +00:00
|
|
|
packages=['mastodon'],
|
2018-06-05 12:10:53 +00:00
|
|
|
install_requires=[
|
2019-04-28 21:22:09 +00:00
|
|
|
'requests>=2.4.2',
|
2018-06-05 12:10:53 +00:00
|
|
|
'python-dateutil',
|
2023-02-06 02:50:07 +00:00
|
|
|
'six',
|
2023-02-06 13:23:34 +00:00
|
|
|
'python-magic-bin ; platform_system=="Windows"', # pragma: no cover
|
2023-02-06 02:50:07 +00:00
|
|
|
'python-magic ; platform_system!="Windows"',
|
2018-06-05 12:10:53 +00:00
|
|
|
'decorator>=4.0.0',
|
2019-10-12 17:01:16 +00:00
|
|
|
] + blurhash_deps,
|
2017-11-28 05:03:13 +00:00
|
|
|
tests_require=test_deps,
|
|
|
|
extras_require=extras,
|
2016-11-24 19:40:23 +00:00
|
|
|
url='https://github.com/halcy/Mastodon.py',
|
|
|
|
author='Lorenz Diener',
|
|
|
|
author_email='lorenzd+mastodonpypypi@gmail.com',
|
|
|
|
license='MIT',
|
|
|
|
keywords='mastodon api microblogging',
|
|
|
|
classifiers=[
|
2017-06-15 23:29:12 +00:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2016-11-24 19:40:23 +00:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Topic :: Communications',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 3',
|
2017-09-05 20:59:32 +00:00
|
|
|
])
|