forked from PokaInc/arnparse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_tools_version.py
More file actions
16 lines (14 loc) · 882 Bytes
/
check_tools_version.py
File metadata and controls
16 lines (14 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from distutils.version import StrictVersion
import setuptools
import twine
import wheel
if __name__ == '__main__':
"""
Ensure that all tools are correctly installed. See https://stackoverflow.com/a/26737258
"""
assert StrictVersion(setuptools.__version__) >= StrictVersion('38.6.0'), 'Please upgrade setuptools. ' \
'See https://stackoverflow.com/a/26737258'
assert StrictVersion(twine.__version__) >= StrictVersion('1.11.0'), 'Please upgrade twine. ' \
'See https://stackoverflow.com/a/26737258'
assert StrictVersion(wheel.__version__) >= StrictVersion('0.31.0'), 'Please upgrade wheel. ' \
'See https://stackoverflow.com/a/26737258'