maestral/setup.py

84 lines
2.4 KiB
Python
Raw Normal View History

import sys
2018-11-26 20:41:23 +03:00
from setuptools import setup, find_packages
2019-08-20 14:23:14 +03:00
from maestral import __version__
2018-12-03 04:42:57 +03:00
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 6)
# This check and everything above must remain compatible with Python 2.7.
if CURRENT_PYTHON < REQUIRED_PYTHON:
# noinspection PyStringFormat
sys.stderr.write("""
==========================
Unsupported Python version
==========================
2019-10-29 00:49:33 +03:00
Maestral requires Python {}.{} or higher, but you're trying to install
it on Python {}.{}. This may be because you are using a version of pip
that doesn't understand the python_requires classifier. Make sure you
have pip >= 9.0 and setuptools >= 24.2, then try again:
$ python3 -m pip install --upgrade pip setuptools
$ python3 -m pip install maestral
""".format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
sys.exit(1)
2018-12-03 04:42:57 +03:00
setup(
2020-01-29 22:26:57 +03:00
name='maestral',
2019-08-20 14:23:14 +03:00
version=__version__,
2020-01-29 22:26:57 +03:00
description='Open-source Dropbox client for macOS and Linux.',
url='https://github.com/SamSchott/maestral',
author='Sam Schott',
author_email='ss2151@cam.ac.uk',
license='MIT',
long_description=open('README.md').read(),
2019-07-16 15:50:24 +03:00
long_description_content_type='text/markdown',
2018-12-03 04:42:57 +03:00
packages=find_packages(),
package_data={
2020-01-29 22:26:57 +03:00
'maestral': [
2020-02-01 18:03:04 +03:00
'resources/*.png',
2018-12-03 04:42:57 +03:00
],
},
2020-01-29 22:26:57 +03:00
setup_requires=['wheel'],
2018-12-03 04:42:57 +03:00
install_requires=[
2020-01-29 22:26:57 +03:00
'blinker',
'bugsnag',
'click>=7.0',
'dropbox>=9.4.0',
'keyring>=19.0.0',
'keyrings.alt>=3.0.0',
'lockfile',
'Pyro5>=5.7',
'requests',
'rubicon-objc>=0.3.1;sys_platform=="darwin"',
'u-msgpack-python',
'watchdog>=0.9.0',
2019-08-14 20:42:11 +03:00
],
extras_require={
2020-02-01 18:03:04 +03:00
'systemd': [
'systemd-python',
'sdnotify'
],
'gui': [
2020-02-07 22:24:51 +03:00
'maestral-cocoa==0.1.0;sys_platform=="darwin"',
'maestral-qt==0.6.0;sys_platform=="linux"'
2020-02-01 18:03:04 +03:00
],
},
2018-12-03 04:42:57 +03:00
zip_safe=False,
entry_points={
2020-01-29 22:26:57 +03:00
'console_scripts': ['maestral=maestral.cli:main'],
2019-08-14 20:42:11 +03:00
},
2019-02-26 14:46:00 +03:00
python_requires='>=3.6',
2019-08-06 16:25:54 +03:00
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
2019-10-23 23:20:14 +03:00
'Programming Language :: Python :: 3.8',
2019-08-06 16:25:54 +03:00
'Programming Language :: Python :: 3 :: Only',
],
2019-08-14 20:42:11 +03:00
)