setup.py: refactor slightly

This commit is contained in:
Brian Warner 2017-01-15 16:26:23 -05:00
parent 9a4de44cb0
commit 2d949f23c6

View File

@ -5,6 +5,12 @@ import versioneer
commands = versioneer.get_cmdclass() commands = versioneer.get_cmdclass()
DEV_REQUIREMENTS = [
"mock",
"tox",
"pyflakes",
]
setup(name="magic-wormhole", setup(name="magic-wormhole",
version=versioneer.get_version(), version=versioneer.get_version(),
description="Securely transfer data between computers", description="Securely transfer data between computers",
@ -34,15 +40,12 @@ setup(name="magic-wormhole",
"hkdf", "tqdm", "hkdf", "tqdm",
"click", "click",
"humanize", "humanize",
"ipaddress",
], ],
extras_require={ extras_require={
':sys_platform=="win32"': ["pypiwin32"], ':sys_platform=="win32"': ["pypiwin32"],
"tor": ["txtorcon", "ipaddress"], "tor": ["txtorcon"],
"dev": [ "dev": DEV_REQUIREMENTS,
"mock",
"tox",
"pyflakes",
],
}, },
test_suite="wormhole.test", test_suite="wormhole.test",
cmdclass=commands, cmdclass=commands,