Skip to content

Commit

Permalink
Warning in compat that support for Python 2 is ending
Browse files Browse the repository at this point in the history
Resolves #1613
  • Loading branch information
Sean Gillies committed Sep 9, 2019
1 parent f587fb7 commit 0dbcfd9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
Changes
=======

1.1dev (TBD)
------------

Deprecations:

- Support for Python 2 is deprecated and a warning is raised from the
rasterio.compat module. This module will be deleted in a future version.

New features:

- A new ``rasterio.transform.from_gcps()`` returns the Affine matrix that is a
best fit to given ground control points (#1749).

1.0.28 (2019-09-09)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion rasterio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def emit(self, record):


__all__ = ['band', 'open', 'pad', 'Env']
__version__ = "1.0.28"
__version__ = "1.1dev"
__gdal_version__ = gdal_version()

# Rasterio attaches NullHandler to the 'rasterio' logger and its
Expand Down
2 changes: 2 additions & 0 deletions rasterio/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import itertools
import sys
import warnings


if sys.version_info[0] >= 3: # pragma: no cover
Expand All @@ -15,6 +16,7 @@
from collections.abc import Iterable, Mapping
from inspect import getfullargspec as getargspec
else: # pragma: no cover
warnings.warn("Python 2 compatibility will be removed after version 1.1", DeprecationWarning)
string_types = basestring,
text_type = unicode
integer_types = int, long
Expand Down

0 comments on commit 0dbcfd9

Please sign in to comment.