Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Python 2.6 and 3.3 before removal #175

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.9.4
=====

* Python 2.6 and 3.3 have reached end-of-life and have been deprecated.
They will be dropped in JMESPath 1.0.

0.9.3
=====

Expand Down
10 changes: 10 additions & 0 deletions jmespath/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
import warnings
import sys
from jmespath import parser
from jmespath.visitor import Options

__version__ = '0.9.3'


if sys.version_info[:2] <= (2, 6) or ((3, 0) <= sys.version_info[:2] <= (3, 3)):
python_ver = '.'.join(str(x) for x in sys.version_info[:3])

warnings.warn('You are using Python {0}, which will no longer be supported in '
'JMESPath 1.0'.format(python_ver),
DeprecationWarning)


def compile(expression):
return parser.Parser().parse(expression)

Expand Down
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
#!/usr/bin/env python

import os
import sys
import io
import sys
import warnings

from setuptools import setup, find_packages


if sys.version_info[:2] <= (2, 6) or ((3, 0) <= sys.version_info[:2] <= (3, 3)):
python_ver = '.'.join(str(x) for x in sys.version_info[:3])

warnings.warn('You are using Python {0}, which will no longer be supported in '
'JMESPath 1.0'.format(python_ver),
DeprecationWarning)
hugovk marked this conversation as resolved.
Show resolved Hide resolved


setup(
name='jmespath',
version='0.9.3',
Expand All @@ -18,6 +26,7 @@
scripts=['bin/jp.py'],
packages=find_packages(exclude=['tests']),
license='MIT',
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand Down