flake8: depends #1282

Merged
g1itch merged 5 commits from flake8-depends into v0.6 2018-06-27 11:24:56 +02:00
Showing only changes of commit 4eb3a00625 - Show all commits

View File

@ -10,7 +10,7 @@ import sys
if not hasattr(sys, 'hexversion') or sys.hexversion < 0x20300F0: if not hasattr(sys, 'hexversion') or sys.hexversion < 0x20300F0:
sys.exit( sys.exit(
'Python version: %s\n' 'Python version: %s\n'
'PyBitmessage requires Python 2.7.3 or greater (but not Python 3)' 'PyBitmessage requires Python 2.7.4 or greater (but not Python 3)'
% sys.version % sys.version
) )
@ -433,18 +433,19 @@ def check_dependencies(verbose=False, optional=False):
has_all_dependencies = True has_all_dependencies = True
# Python 2.7.3 is the required minimum. Python 3+ is not supported, # Python 2.7.4 is the required minimum.
# but it is still useful to provide information about our other # (https://bitmessage.org/forum/index.php?topic=4081.0)
# requirements. # Python 3+ is not supported, but it is still useful to provide
# information about our other requirements.
logger.info('Python version: %s', sys.version) logger.info('Python version: %s', sys.version)
if sys.hexversion < 0x20703F0: if sys.hexversion < 0x20704F0:
logger.error( logger.error(
'PyBitmessage requires Python 2.7.3 or greater' 'PyBitmessage requires Python 2.7.4 or greater'
' (but not Python 3+)') ' (but not Python 3+)')
has_all_dependencies = False has_all_dependencies = False
if sys.hexversion >= 0x3000000: if sys.hexversion >= 0x3000000:
logger.error( logger.error(
'PyBitmessage does not support Python 3+. Python 2.7.3' 'PyBitmessage does not support Python 3+. Python 2.7.4'
' or greater is required.') ' or greater is required.')
has_all_dependencies = False has_all_dependencies = False