Skip to content

Commit 404eda1

Browse files
committed
Remove Python 2.6 support; bump dev version
1 parent 93d5896 commit 404eda1

File tree

12 files changed

+18
-151
lines changed

12 files changed

+18
-151
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: python
22
sudo: false
33
python:
4-
- "2.6"
54
- "2.7"
65
- "3.3"
76
- "3.4"

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
0.12.0 (unreleased)
5+
-------------------
6+
7+
Changes:
8+
9+
- *Backwards-incompatible*: Remove Python 2.6 support.
10+
411
0.11.1 (2016-02-17)
512
-------------------
613

CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Pull Requests
102102

103103
- If the pull request adds functionality, it is tested and the docs are updated.
104104
- If you've developed an extension, it is on the :ref:`Extensions List <extensions>`.
105-
- The pull request works on Python 2.6, 2.7, 3.3, 3.4, and PyPy. Use ``tox`` to verify that it does.
105+
- The pull request works on Python 2.7, 3.3, 3.4, 3.5, and PyPy. Use ``tox`` to verify that it does.
106106
- You've added yourself to ``AUTHORS.rst``.
107107

108108
4. Submit a pull request to the ``sloria:dev`` branch.
@@ -126,7 +126,7 @@ To get test coverage reports (must have coverage installed): ::
126126

127127
$ python run_tests.py cover
128128

129-
To run tests on Python 2.6, 2.7, 3.3, and 3.4 virtual environments (must have each interpreter installed): ::
129+
To run tests on Python 2.7, 3.3, 3.4, and 3.5 virtual environments (must have each interpreter installed): ::
130130

131131
$ tox
132132

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Full documentation is available at https://textblob.readthedocs.org/.
8787
Requirements
8888
------------
8989

90-
- Python >= 2.6 or >= 3.3
90+
- Python >= 2.7 or >= 3.3
9191

9292
Project Links
9393
-------------

docs/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Old:
8686
Python
8787
++++++
8888

89-
TextBlob supports Python >=2.6 or >=3.3.
89+
TextBlob supports Python >=2.7 or >=3.3.
9090

9191

9292
Dependencies

run_tests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ def get_argv():
3434
return args
3535
if "cover" in sys.argv:
3636
args += ["--with-coverage", "--cover-html"]
37-
if PY26:
38-
# Exclude tests that don't work on python2.6
39-
attr_conditions.append("not py27_only")
4037
try:
4138
__import__('numpy')
4239
except ImportError:

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def read(fname):
5353
'Natural Language :: English',
5454
'License :: OSI Approved :: MIT License',
5555
'Programming Language :: Python',
56-
'Programming Language :: Python :: 2.6',
5756
'Programming Language :: Python :: 2.7',
5857
'Programming Language :: Python :: 3.3',
5958
'Programming Language :: Python :: 3.4',

textblob/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
__version__ = '0.11.1'
3+
__version__ = '0.12.0.dev0'
44
__license__ = 'MIT'
55
__author__ = 'Steven Loria'
66

textblob/compat.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import sys
33

44
PY2 = int(sys.version[0]) == 2
5-
PY26 = PY2 and int(sys.version_info[1]) < 7
65

76
if PY2:
87
from itertools import imap, izip
@@ -17,10 +16,6 @@
1716
imap = imap
1817
izip = izip
1918
import unicodecsv as csv
20-
if PY26:
21-
from .ordereddict import OrderedDict
22-
else:
23-
from collections import OrderedDict
2419

2520
def implements_to_string(cls):
2621
"""Class decorator that renames __str__ to __unicode__ and
@@ -29,7 +24,7 @@ def implements_to_string(cls):
2924
cls.__unicode__ = cls.__str__
3025
cls.__str__ = lambda x: x.__unicode__().encode('utf-8')
3126
return cls
32-
else: # PY3
27+
else: # PY3
3328
from urllib import request
3429
from urllib.parse import quote as urlquote
3530
from urllib.parse import urlencode
@@ -41,7 +36,6 @@ def implements_to_string(cls):
4136
imap = map
4237
izip = zip
4338
import csv
44-
from collections import OrderedDict
4539

4640
implements_to_string = lambda x: x
4741

textblob/formats.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ class PipeDelimitedFormat(formats.DelimitedFormat):
1919
with open('training_data.psv', 'r') as fp:
2020
cl = NaiveBayesAnalyzer(fp, format='psv')
2121
"""
22-
2322
from __future__ import absolute_import
24-
from textblob.compat import PY2, csv, OrderedDict
25-
from textblob.utils import is_filelike
2623
import json
24+
from collections import OrderedDict
25+
26+
from textblob.compat import PY2, csv
27+
from textblob.utils import is_filelike
2728

2829
DEFAULT_ENCODING = 'utf-8'
2930

0 commit comments

Comments
 (0)