Skip to content

Remove all deprecated modules#986

Closed
habara-k wants to merge 1 commit intounified-clientfrom
remove-deprecated-v2
Closed

Remove all deprecated modules#986
habara-k wants to merge 1 commit intounified-clientfrom
remove-deprecated-v2

Conversation

@habara-k
Copy link
Copy Markdown
Contributor

@habara-k habara-k commented Apr 13, 2026

Summary

Remove all deprecated v2 legacy modules (linebot.api, linebot.models, linebot.webhook, linebot.http_client, etc.) that have been replaced by linebot.v3 in #985.
After this change, only linebot.v3 remains as the public API surface.

What's removed

  • Core modules: linebot.api (LineBotApi), linebot.async_api (AsyncLineBotApi), linebot.webhook, linebot.exceptions, linebot.http_client, linebot.async_http_client, linebot.aiohttp_async_http_client, linebot.utils, linebot.deprecations
  • Models: entire linebot.models package (25 files) and linebot.constants
  • Tests: tests/api/, tests/async_api/, tests/models/, and legacy top-level test files
  • Docs: linebot.rst, linebot.models.rst and their reference in index.rst
  • Dependencies: requests, future, Deprecated (no longer used)
  • setup.py: CodegenCommand class (generated async_api.py from api.py)

Other changes

  • linebot/v3/exceptions.py: the only remaining usage of the future package (a Python 2 compatibility library). Replaced future.utils.with_metaclass with Python 3 metaclass= syntax to fully remove the future dependency.

@habara-k habara-k force-pushed the remove-deprecated-v2 branch from bc17d34 to f3b6213 Compare April 13, 2026 02:56
@habara-k habara-k self-assigned this Apr 13, 2026
@habara-k habara-k deleted the branch unified-client April 14, 2026 08:27
@habara-k habara-k closed this Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant