2019-08-06 16:30:04 +03:00
|
|
|
import sys
|
2018-11-26 20:41:23 +03:00
|
|
|
from setuptools import setup, find_packages
|
2019-09-13 16:13:36 +03:00
|
|
|
|
2019-08-20 14:23:14 +03:00
|
|
|
from maestral import __version__
|
2018-12-03 04:42:57 +03:00
|
|
|
|
2019-08-06 16:30:04 +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:
|
2019-09-13 16:13:36 +03:00
|
|
|
# noinspection PyStringFormat
|
2019-08-06 16:30:04 +03:00
|
|
|
sys.stderr.write("""
|
|
|
|
==========================
|
|
|
|
Unsupported Python version
|
|
|
|
==========================
|
|
|
|
Maestral requires Python {}.{}, 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(
|
2018-12-08 22:34:34 +03:00
|
|
|
name="maestral",
|
2019-08-20 14:23:14 +03:00
|
|
|
version=__version__,
|
2018-12-03 04:42:57 +03:00
|
|
|
description="Open-source Dropbox client for macOS and Linux.",
|
2018-12-08 22:34:34 +03:00
|
|
|
url="https://github.com/SamSchott/maestral",
|
2018-12-03 04:42:57 +03:00
|
|
|
author="Sam Schott",
|
|
|
|
author_email="ss2151@cam.ac.uk",
|
2018-12-15 14:53:52 +03:00
|
|
|
license="MIT",
|
2018-12-03 04:42:57 +03:00
|
|
|
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={
|
2018-12-08 22:34:34 +03:00
|
|
|
"maestral": [
|
2019-07-09 19:01:47 +03:00
|
|
|
"gui/resources/*.ui",
|
2018-12-04 01:37:35 +03:00
|
|
|
"gui/resources/*.icns",
|
2018-12-07 22:09:20 +03:00
|
|
|
"gui/resources/*.png",
|
|
|
|
"gui/resources/*.svg",
|
2019-08-05 14:09:09 +03:00
|
|
|
"gui/resources/icon-theme-gnome/*.theme",
|
|
|
|
"gui/resources/icon-theme-gnome/*/*/*.svg",
|
2018-12-10 22:48:28 +03:00
|
|
|
"bin/*.sh",
|
2018-12-03 04:42:57 +03:00
|
|
|
],
|
|
|
|
},
|
|
|
|
install_requires=[
|
2019-08-14 20:42:11 +03:00
|
|
|
"blinker",
|
2019-08-15 15:06:21 +03:00
|
|
|
"click>=7.0",
|
2019-07-27 01:48:51 +03:00
|
|
|
"dropbox>=9.4.0",
|
2019-08-17 22:15:36 +03:00
|
|
|
"keyring>=19.0.0",
|
|
|
|
"keyrings.alt>=3.0.0",
|
2019-08-14 20:42:11 +03:00
|
|
|
"Pyro4",
|
2018-12-09 23:28:33 +03:00
|
|
|
"requests",
|
2018-12-15 14:54:27 +03:00
|
|
|
"u-msgpack-python",
|
2019-08-14 20:42:11 +03:00
|
|
|
"watchdog",
|
|
|
|
],
|
2019-09-15 14:43:12 +03:00
|
|
|
extras_require={
|
|
|
|
"systemd": ["systemd-python", "sdnotify"],
|
2019-09-15 14:43:45 +03:00
|
|
|
"gui": ["PyQt5>=5.9"],
|
2019-09-15 14:43:12 +03:00
|
|
|
},
|
2018-12-03 04:42:57 +03:00
|
|
|
zip_safe=False,
|
|
|
|
entry_points={
|
2019-08-18 14:53:37 +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',
|
|
|
|
'Programming Language :: Python :: 3 :: Only',
|
|
|
|
],
|
2019-08-14 20:42:11 +03:00
|
|
|
)
|