From 2d949f23c6b0a3223b90bff35477a05cb997b1e2 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sun, 15 Jan 2017 16:26:23 -0500 Subject: [PATCH] setup.py: refactor slightly --- setup.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 574aa4a..a7598e3 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,12 @@ import versioneer commands = versioneer.get_cmdclass() +DEV_REQUIREMENTS = [ + "mock", + "tox", + "pyflakes", +] + setup(name="magic-wormhole", version=versioneer.get_version(), description="Securely transfer data between computers", @@ -34,15 +40,12 @@ setup(name="magic-wormhole", "hkdf", "tqdm", "click", "humanize", + "ipaddress", ], extras_require={ ':sys_platform=="win32"': ["pypiwin32"], - "tor": ["txtorcon", "ipaddress"], - "dev": [ - "mock", - "tox", - "pyflakes", - ], + "tor": ["txtorcon"], + "dev": DEV_REQUIREMENTS, }, test_suite="wormhole.test", cmdclass=commands,