Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
99 lines (90 sloc) 3.4 KB
#!/usr/bin/env python3
import re
import struct
import sys
from setuptools import setup
import versioneer
requirements = [
"atomicwrites",
"autobahn",
'distro ; sys_platform != "darwin" and sys_platform != "win32"',
"humanize",
"hyperlink",
"magic-wormhole",
"PyNaCl >= 1.2.0", # 1.2.0 adds Argon2id KDF
"PyQt5",
"pyyaml",
"qt5reactor",
"treq",
"twisted[tls]",
"txtorcon",
"zxcvbn",
]
if sys.platform.startswith("linux") and (struct.calcsize("P") * 8) == 32:
try:
import PyQt5 # noqa; F401 (imported but unused)
except ImportError:
sys.exit(
"PyQt5 wheels are not available for 32-bit GNU/Linux. Please "
"manually install PyQt5 into this environment and try again."
)
requirements.remove("PyQt5")
module_file = open("gridsync/__init__.py").read()
metadata = dict(re.findall(r"__([a-z]+)__\s*=\s*\"([^\"]+)\"", module_file))
setup(
name="gridsync",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Synchronize local directories with Tahoe-LAFS storage grids.",
long_description=open("README.rst").read(),
author=metadata["author"],
url=metadata["url"],
license=metadata["license"],
keywords="gridsync tahoe-lafs tahoe lafs allmydata-tahoe magic-wormhole",
python_requires=">=3.6, <3.9",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: MacOS X",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications",
"Environment :: X11 Applications :: Gnome",
"Environment :: X11 Applications :: GTK",
"Environment :: X11 Applications :: KDE",
"Environment :: X11 Applications :: Qt",
"Intended Audience :: End Users/Desktop",
"License :: DFSG approved",
"License :: OSI Approved",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: Microsoft :: Windows :: Windows 7",
"Operating System :: Microsoft :: Windows :: Windows 8",
"Operating System :: Microsoft :: Windows :: Windows 8.1",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Communications :: File Sharing",
"Topic :: Desktop Environment",
"Topic :: Internet",
"Topic :: Security",
"Topic :: Security :: Cryptography",
"Topic :: System :: Archiving",
"Topic :: System :: Archiving :: Backup",
"Topic :: System :: Archiving :: Mirroring",
"Topic :: System :: Distributed Computing",
"Topic :: System :: Filesystems",
"Topic :: System :: Recovery Tools",
"Topic :: Utilities",
],
packages=["gridsync", "gridsync.gui"],
package_data={"gridsync": ["resources/*", "resources/providers/*"]},
entry_points={"console_scripts": ["gridsync=gridsync.cli:main"]},
install_requires=requirements,
)