'requests>=2.7,<3', 'six>=1.9,<2', ] REQUIRES_FOR_PYTHON2_ONLY = [ # enum34 1.1 or newer does not currently work. See # https://github.com/hzdg/django-enumfields/pull/44 'enum34>=1.0,<1.1', ] EXTRAS_REQUIRE = { ':python_version=="2.7"': REQUIRES_FOR_PYTHON2_ONLY, 'docs': [ 'Sphinx>=1.3,<2', ], 'testing': utils.get_test_requirements_from_tox_ini(TOPDIR), 'coding-style': [ 'flake8>=2.4,<3', 'pep8-naming>=0.2,<1', ], } EXTRAS_REQUIRE['everything'] = list( set(sum(EXTRAS_REQUIRE.values(), [])) - # All extras, but not... set(REQUIRES_FOR_PYTHON2_ONLY) # the Python 2 compatibility things ) if __name__ == '__main__': if 'register' in sys.argv or 'upload' in sys.argv: raise EnvironmentError('Registering and uploading is blacklisted') version = utils.get_version(VERSION, TOPDIR, VERSION_FILE)
'requests>=2.7,<3', 'six>=1.9,<2', ] REQUIRES_FOR_PYTHON2_ONLY = [ # enum34 1.1 or newer does not currently work. See # https://github.com/hzdg/django-enumfields/pull/44 'enum34>=1.0,<1.1', ] EXTRAS_REQUIRE = { ':python_version=="2.7"': REQUIRES_FOR_PYTHON2_ONLY, 'docs': [ 'Sphinx>=1.3,<2', ], 'testing': utils.get_test_requirements_from_tox_ini(TOPDIR), 'coding-style': [ 'flake8>=2.4,<3', 'pep8-naming>=0.2,<1', ], } EXTRAS_REQUIRE['everything'] = list( set(sum(EXTRAS_REQUIRE.values(), [])) - # All extras, but not... set(REQUIRES_FOR_PYTHON2_ONLY) # the Python 2 compatibility things ) if __name__ == '__main__': if 'register' in sys.argv or 'upload' in sys.argv: raise EnvironmentError('Registering and uploading is blacklisted')