Warning in compat that support for Python 2 is ending

Resolves #1613
This commit is contained in:
Sean Gillies 2019-09-09 17:45:46 -06:00
parent f587fb72ba
commit 0dbcfd91a5
3 changed files with 16 additions and 1 deletions

View File

@ -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)
-------------------

View File

@ -42,7 +42,7 @@ import rasterio.path
__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

View File

@ -2,6 +2,7 @@
import itertools
import sys
import warnings
if sys.version_info[0] >= 3: # pragma: no cover
@ -15,6 +16,7 @@ if sys.version_info[0] >= 3: # pragma: no cover
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