mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 10:11:14 +00:00
Merge pull request #267 from SanketDG/version_check
add python version testing in setup.py
This commit is contained in:
commit
e2542915e4
13
setup.py
Normal file → Executable file
13
setup.py
Normal file → Executable file
@ -1,5 +1,18 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
import sys
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
|
||||||
|
print(
|
||||||
|
'thefuck requires Python version 2.7 or later' +
|
||||||
|
' ({}.{} detected).'.format(*sys.version_info[:2]))
|
||||||
|
sys.exit(-1)
|
||||||
|
|
||||||
|
if sys.version_info[0] == 3 and sys.version_info[1] < 3:
|
||||||
|
print(
|
||||||
|
'thefuck requires Python version 3.3 or later' +
|
||||||
|
' ({}.{} detected).'.format(*sys.version_info[:2]))
|
||||||
|
sys.exit(-1)
|
||||||
|
|
||||||
VERSION = '1.46'
|
VERSION = '1.46'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user