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 all 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
3 changes: 2 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
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.
* Fix ``min_by``/``max_by`` with empty lists
`(`issue 151 <https://github.com/jmespath/jmespath.py/pull/151>`__)
* Fix reverse type for ``null`` type
(`issue 145 <https://github.com/jmespath/jmespath.py/pull/145>`__)


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.4'


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
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
#!/usr/bin/env python

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),
PendingDeprecationWarning)


setup(
name='jmespath',
version='0.9.4',
Expand All @@ -16,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