Skip to content

Commit

Permalink
Official required version is Python 3.6+ (line#341)
Browse files Browse the repository at this point in the history
* Official required version is Python 3.6+

* `from __future__ import unicode_literals` is not required for python3
  • Loading branch information
tokuhirom authored Oct 1, 2021
1 parent 28fd289 commit 90cc583
Show file tree
Hide file tree
Showing 35 changed files with 3 additions and 39 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Japanese: https://developers.line.biz/ja/docs/messaging-api/overview/
Requirements
------------

- Python >= 2.7 or >= 3.4
- Python >= 3.6

Installation
------------
Expand Down
1 change: 0 additions & 1 deletion examples/flask-echo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.

from __future__ import unicode_literals

import os
import sys
Expand Down
1 change: 0 additions & 1 deletion examples/flask-kitchensink/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.

from __future__ import unicode_literals

import datetime
import errno
Expand Down
1 change: 0 additions & 1 deletion linebot/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

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

from __future__ import unicode_literals

__version__ = '1.20.0'
__author__ = 'LINE Corporation'
Expand Down
1 change: 0 additions & 1 deletion linebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot package."""

from __future__ import unicode_literals

from .__about__ import ( # noqa
__version__
Expand Down
1 change: 0 additions & 1 deletion linebot/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.api module."""

from __future__ import unicode_literals

import json

Expand Down
1 change: 0 additions & 1 deletion linebot/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.exceptions module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.http_client module."""

from __future__ import unicode_literals

from abc import ABCMeta, abstractmethod, abstractproperty

Expand Down
1 change: 0 additions & 1 deletion linebot/models/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.actions module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.emojis module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.base module."""

from __future__ import unicode_literals

import json

Expand Down
1 change: 0 additions & 1 deletion linebot/models/emojis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.emojis module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.error module."""

from __future__ import unicode_literals

from .base import Base

Expand Down
1 change: 0 additions & 1 deletion linebot/models/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.events module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.filter module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/flex_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.flex_message module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/imagemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.imagemap module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/insight.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.insight module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.recipient module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/mention.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.mention module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/mentionee.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.mentionee module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.messages module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.filter module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/recipient.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.limit module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.responses module."""

from __future__ import unicode_literals

from .base import Base
from .insight import (
Expand Down
1 change: 0 additions & 1 deletion linebot/models/rich_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.rich_menu module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/send_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.send_messages module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.sources module."""

from __future__ import unicode_literals

import warnings
from abc import ABCMeta, abstractproperty
Expand Down
1 change: 0 additions & 1 deletion linebot/models/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.template module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/things.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.things module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/unsend.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.unsend module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/models/video_play_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.models.video_play_complete module."""

from __future__ import unicode_literals

from abc import ABCMeta

Expand Down
1 change: 0 additions & 1 deletion linebot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.utils module."""

from __future__ import unicode_literals

import logging
import re
Expand Down
1 change: 0 additions & 1 deletion linebot/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""linebot.webhook module."""

from __future__ import unicode_literals

import base64
import hashlib
Expand Down
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def run_tests(self):
packages=[
"linebot", "linebot.models"
],
python_requires=">=3.6.0",
install_requires=_requirements(),
tests_require=_requirements_test(),
cmdclass={'test': PyTest},
Expand All @@ -77,14 +78,10 @@ def run_tests(self):
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development"
]
)

0 comments on commit 90cc583

Please sign in to comment.