Skip to content

Commit 16fcf99

Browse files
authored
Merge pull request #195 from jamesls/deprecate-eol
Deprecate py26/py33
2 parents ca9f7e8 + 249fb21 commit 16fcf99

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1+
Next Release (TBD)
2+
==================
3+
4+
* Python 2.6 and 3.3 have reached end-of-life and have been deprecated.
5+
(`issue 175 <https://github.com/jmespath/jmespath.py/issues/175>`__)
6+
7+
18
0.9.5
29
=====
310

411
* Fix syntax warnings on python 3.8
5-
`(`issue 187 <https://github.com/jmespath/jmespath.py/issues/187>`__)
12+
(`issue 187 <https://github.com/jmespath/jmespath.py/issues/187>`__)
613

714

815
0.9.4
916
=====
1017

1118
* Fix ``min_by``/``max_by`` with empty lists
12-
`(`issue 151 <https://github.com/jmespath/jmespath.py/pull/151>`__)
19+
(`issue 151 <https://github.com/jmespath/jmespath.py/pull/151>`__)
1320
* Fix reverse type for ``null`` type
1421
(`issue 145 <https://github.com/jmespath/jmespath.py/pull/145>`__)
1522

jmespath/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1+
import warnings
2+
import sys
13
from jmespath import parser
24
from jmespath.visitor import Options
35

46
__version__ = '0.9.5'
57

68

9+
if sys.version_info[:2] <= (2, 6) or ((3, 0) <= sys.version_info[:2] <= (3, 3)):
10+
python_ver = '.'.join(str(x) for x in sys.version_info[:3])
11+
12+
warnings.warn(
13+
'You are using Python {0}, which will no longer be supported in '
14+
'version 0.11.0'.format(python_ver),
15+
DeprecationWarning)
16+
17+
718
def compile(expression):
819
return parser.Parser().parse(expression)
920

setup.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
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(
14+
'You are using Python {0}, which will no longer be supported in '
15+
'version 0.11.0'.format(python_ver),
16+
DeprecationWarning)
17+
18+
819
setup(
920
name='jmespath',
1021
version='0.9.5',
@@ -16,6 +27,7 @@
1627
scripts=['bin/jp.py'],
1728
packages=find_packages(exclude=['tests']),
1829
license='MIT',
30+
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*',
1931
classifiers=[
2032
'Development Status :: 5 - Production/Stable',
2133
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)