Skip to content

Commit bd0f6fb

Browse files
hugovkjamesls
authored andcommitted
Warn when installing
1 parent a9325fe commit bd0f6fb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

setup.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
#!/usr/bin/env python
22

33
import io
4+
import sys
5+
import warnings
46

57
from setuptools import setup, find_packages
68

79

10+
if sys.version_info[:2] <= (2, 6) or ((3, 0) <= sys.version_info[:2] <= (3, 3)):
11+
python_ver = '.'.join(str(x) for x in sys.version_info[:3])
12+
13+
warnings.warn('You are using Python {0}, which will no longer be supported in '
14+
'JMESPath 1.0'.format(python_ver),
15+
DeprecationWarning)
16+
17+
818
setup(
919
name='jmespath',
1020
version='0.9.5',

0 commit comments

Comments
 (0)