Skip to content

Commit 90cc583

Browse files
authored
Official required version is Python 3.6+ (#341)
* Official required version is Python 3.6+ * `from __future__ import unicode_literals` is not required for python3
1 parent 28fd289 commit 90cc583

35 files changed

+3
-39
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Japanese: https://developers.line.biz/ja/docs/messaging-api/overview/
2222
Requirements
2323
------------
2424

25-
- Python >= 2.7 or >= 3.4
25+
- Python >= 3.6
2626

2727
Installation
2828
------------

examples/flask-echo/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from __future__ import unicode_literals
1615

1716
import os
1817
import sys

examples/flask-kitchensink/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from __future__ import unicode_literals
1615

1716
import datetime
1817
import errno

linebot/__about__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""Meta data of line-bot-sdk."""
1616

17-
from __future__ import unicode_literals
1817

1918
__version__ = '1.20.0'
2019
__author__ = 'LINE Corporation'

linebot/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot package."""
1616

17-
from __future__ import unicode_literals
1817

1918
from .__about__ import ( # noqa
2019
__version__

linebot/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.api module."""
1616

17-
from __future__ import unicode_literals
1817

1918
import json
2019

linebot/exceptions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.exceptions module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/http_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.http_client module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta, abstractmethod, abstractproperty
2019

linebot/models/actions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.actions module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/background.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.emojis module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.base module."""
1616

17-
from __future__ import unicode_literals
1817

1918
import json
2019

linebot/models/emojis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.emojis module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/error.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.error module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from .base import Base
2019

linebot/models/events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.events module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/filter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.filter module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/flex_message.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.flex_message module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/imagemap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.imagemap module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/insight.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.insight module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/limit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.recipient module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/mention.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.mention module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/mentionee.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.mentionee module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/messages.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.messages module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/operator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.filter module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/recipient.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.limit module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/responses.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.responses module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from .base import Base
2019
from .insight import (

linebot/models/rich_menu.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.rich_menu module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/send_messages.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.send_messages module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/sources.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.sources module."""
1616

17-
from __future__ import unicode_literals
1817

1918
import warnings
2019
from abc import ABCMeta, abstractproperty

linebot/models/template.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.template module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/things.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.things module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/unsend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.unsend module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/models/video_play_complete.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.models.video_play_complete module."""
1616

17-
from __future__ import unicode_literals
1817

1918
from abc import ABCMeta
2019

linebot/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.utils module."""
1616

17-
from __future__ import unicode_literals
1817

1918
import logging
2019
import re

linebot/webhook.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""linebot.webhook module."""
1616

17-
from __future__ import unicode_literals
1817

1918
import base64
2019
import hashlib

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def run_tests(self):
6969
packages=[
7070
"linebot", "linebot.models"
7171
],
72+
python_requires=">=3.6.0",
7273
install_requires=_requirements(),
7374
tests_require=_requirements_test(),
7475
cmdclass={'test': PyTest},
@@ -77,14 +78,10 @@ def run_tests(self):
7778
"License :: OSI Approved :: Apache Software License",
7879
"Intended Audience :: Developers",
7980
"Programming Language :: Python",
80-
"Programming Language :: Python :: 2",
81-
"Programming Language :: Python :: 2.7",
82-
"Programming Language :: Python :: 3",
83-
"Programming Language :: Python :: 3.4",
84-
"Programming Language :: Python :: 3.5",
8581
"Programming Language :: Python :: 3.6",
8682
"Programming Language :: Python :: 3.7",
8783
"Programming Language :: Python :: 3.8",
84+
"Programming Language :: Python :: 3.9",
8885
"Topic :: Software Development"
8986
]
9087
)

0 commit comments

Comments
 (0)