summaryrefslogtreecommitdiff
path: root/dev-python/python-telegram-bot
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-telegram-bot')
-rw-r--r--dev-python/python-telegram-bot/Manifest3
-rw-r--r--dev-python/python-telegram-bot/metadata.xml6
-rw-r--r--dev-python/python-telegram-bot/python-telegram-bot-20.6-r1.ebuild150
-rw-r--r--dev-python/python-telegram-bot/python-telegram-bot-21.1.1.ebuild161
-rw-r--r--dev-python/python-telegram-bot/python-telegram-bot-22.7.ebuild162
-rw-r--r--dev-python/python-telegram-bot/python-telegram-bot-9999.ebuild2
6 files changed, 165 insertions, 319 deletions
diff --git a/dev-python/python-telegram-bot/Manifest b/dev-python/python-telegram-bot/Manifest
index f85dd9d0ea92..ea794374b447 100644
--- a/dev-python/python-telegram-bot/Manifest
+++ b/dev-python/python-telegram-bot/Manifest
@@ -1,2 +1 @@
-DIST python-telegram-bot-20.6.tar.gz 1958397 BLAKE2B f5f11a604ff1eb199b2b81571b86b69541faa1d98a5d12ac4f3a9f8c6789f722e924232244f211721986beba1380bc877f33251564a46086e4e33d8952e701e1 SHA512 87e42af8663d11f2e33783d40a28a1767f4f5e14203e53463a8f76be0f9a8f0601b3e34b297d1d1ed2f2111b48cbf22a22d28a4d7396b67defb1f0081b10bc38
-DIST python-telegram-bot-21.1.1.tar.gz 2059431 BLAKE2B c41a7a8eeef2e8f2f7f1865789ed38a96e225dd89ad8c5ded5db75fbcffb8bde71bac8782d7541b2d8caa29e69ce092cc6a3a8c359133b1b359bdbb32a502025 SHA512 10143ea0abdbb86e1f2d47d4383fc0cd5e066fb6c93c906974f73f4fecf29b3e8ae963597dbe79ba85e817180977a246fed485e1461f809bc57013bf31a375df
+DIST python-telegram-bot-22.7.tar.gz 2369831 BLAKE2B bb0951bc9563fbd5dbe2c69f4f1724574597765f5593806720de160f34f13144c727656cc1f2e2396294e54d5f24c87728b2717cc8cf17d0859fe3c44a9987a9 SHA512 612c20b642501428898fb32f913e48e6f617dc245918496d2ced37f5296d9c791aedbf71c61f31b8f84eaf9833f034ee49fea99bb0bf7a51a35c3c869dfdd012
diff --git a/dev-python/python-telegram-bot/metadata.xml b/dev-python/python-telegram-bot/metadata.xml
index 22f6fce8e3b8..60b7cdef532a 100644
--- a/dev-python/python-telegram-bot/metadata.xml
+++ b/dev-python/python-telegram-bot/metadata.xml
@@ -1,14 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person">
- <email>dwosky@pm.me</email>
- <name>Pedro Arizmendi</name>
- </maintainer>
<upstream>
<changelog>https://python-telegram-bot.readthedocs.io/en/stable/changelog.html</changelog>
<bugs-to>https://github.com/python-telegram-bot/python-telegram-bot/issues</bugs-to>
<doc>https://docs.python-telegram-bot.org/en/stable/</doc>
</upstream>
- <origin>gentoo-guru-overlay</origin>
+ <origin>liguros-repo</origin>
</pkgmetadata> \ No newline at end of file
diff --git a/dev-python/python-telegram-bot/python-telegram-bot-20.6-r1.ebuild b/dev-python/python-telegram-bot/python-telegram-bot-20.6-r1.ebuild
deleted file mode 100644
index b937bcd2ff37..000000000000
--- a/dev-python/python-telegram-bot/python-telegram-bot-20.6-r1.ebuild
+++ /dev/null
@@ -1,150 +0,0 @@
-# Copyright 2023-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
-inherit distutils-r1 optfeature
-
-DESCRIPTION="Python wrapper of telegram bots API"
-HOMEPAGE="https://docs.python-telegram-bot.org https://github.com/python-telegram-bot/python-telegram-bot"
-SRC_URI="https://github.com/python-telegram-bot/python-telegram-bot/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="
- >=dev-python/cachetools-5.3.1[${PYTHON_USEDEP}]
- >=dev-python/cryptography-39.0.1[${PYTHON_USEDEP}]
- >=dev-python/httpx-0.25.0[${PYTHON_USEDEP}]
- >=dev-python/tornado-6.3.3[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- dev-python/beautifulsoup4[${PYTHON_USEDEP}]
- dev-python/flaky[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/pytest-asyncio[${PYTHON_USEDEP}]
- dev-python/pytz[${PYTHON_USEDEP}]
- >=dev-python/tornado-6.3.3[${PYTHON_USEDEP}]
- )
-"
-
-# These tests require an internet connection
-EPYTEST_DESELECT=(
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_creation
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_de_json
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_expected_values
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_get_file_instance_method
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_send_with_animation
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_slot_behaviour
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_to_dict
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_creation
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_de_json
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_equality
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_expected_values
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_get_file_instance_method
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_send_with_audio
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_slot_behaviour
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_to_dict
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_de_json
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_get_big_file_instance_method
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_get_small_file_instance_method
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_send_with_chat_photo
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_slot_behaviour
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_to_dict
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_creation
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_de_json
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_equality
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_expected_values
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_get_file_instance_method
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_send_with_document
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_slot_behaviour
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_to_dict
- tests/_files/test_inputmedia.py::TestInputMediaAnimationWithoutRequest::test_with_animation
- tests/_files/test_inputmedia.py::TestInputMediaAudioWithoutRequest::test_with_audio
- tests/_files/test_inputmedia.py::TestInputMediaDocumentWithoutRequest::test_with_document
- tests/_files/test_inputmedia.py::TestInputMediaPhotoWithoutRequest::test_with_photo
- tests/_files/test_inputmedia.py::TestInputMediaVideoWithoutRequest::test_with_video
- tests/_files/test_inputmedia.py::TestSendMediaGroupWithoutRequest::test_send_media_group_throws_error_with_group_caption_and_individual_captions
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_creation
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_de_json
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_equality
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_expected_values
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_get_file_instance_method
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_send_with_photosize
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_slot_behaviour
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_to_dict
- tests/_files/test_sticker.py::TestStickerSetWithoutRequest::test_de_json
- tests/_files/test_sticker.py::TestStickerSetWithoutRequest::test_get_file_instance_method
- tests/_files/test_sticker.py::TestStickerSetWithoutRequest::test_sticker_set_to_dict
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_creation
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_de_json
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_equality
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_expected_values
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_send_with_sticker
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_slot_behaviour
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_to_dict
- tests/_files/test_video.py::TestVideoWithoutRequest::test_creation
- tests/_files/test_video.py::TestVideoWithoutRequest::test_equality
- tests/_files/test_video.py::TestVideoWithoutRequest::test_expected_values
- tests/_files/test_video.py::TestVideoWithoutRequest::test_get_file_instance_method
- tests/_files/test_video.py::TestVideoWithoutRequest::test_send_with_video
- tests/_files/test_video.py::TestVideoWithoutRequest::test_slot_behaviour
- tests/_files/test_video.py::TestVideoWithoutRequest::test_to_dict
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_creation
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_equality
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_expected_values
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_get_file_instance_method
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_send_with_video_note
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_slot_behaviour
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_to_dict
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_creation
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_equality
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_expected_values
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_get_file_instance_method
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_send_with_voice
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_slot_behaviour
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_to_dict
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_after_shutdown
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_exceptions
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_manual_timeouts
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_params_no_data
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_params_with_data
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_return_value
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_http_1_response
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_multiple_init_cycles
- tests/request/test_request.py::TestRequestWithoutRequest::test_chat_migrated
- tests/request/test_request.py::TestRequestWithoutRequest::test_error_description
- tests/request/test_request.py::TestRequestWithoutRequest::test_exceptions_in_do_request
- tests/request/test_request.py::TestRequestWithoutRequest::test_illegal_json_response
- tests/request/test_request.py::TestRequestWithoutRequest::test_replaced_unprintable_char
- tests/request/test_request.py::TestRequestWithoutRequest::test_retrieve
- tests/request/test_request.py::TestRequestWithoutRequest::test_retry_after
- tests/request/test_request.py::TestRequestWithoutRequest::test_special_errors
- tests/request/test_request.py::TestRequestWithoutRequest::test_timeout_propagation
- tests/request/test_request.py::TestRequestWithoutRequest::test_unknown_request_params
- tests/test_bot.py::TestBotWithoutRequest::test_copy_message
- tests/test_bot.py::TestBotWithoutRequest::test_equality
- tests/test_bot.py::TestBotWithoutRequest::test_get_me_and_properties
- tests/test_bot.py::TestBotWithoutRequest::test_log_decorator
- tests/test_forum.py::TestForumTopicCreatedWithoutRequest::test_equality
- tests/test_forum.py::TestForumTopicWithoutRequest::test_de_json
- tests/test_forum.py::TestForumTopicWithoutRequest::test_equality
- tests/test_forum.py::TestForumTopicWithoutRequest::test_expected_values
- tests/test_forum.py::TestForumTopicWithoutRequest::test_slot_behaviour
- tests/test_forum.py::TestForumTopicWithoutRequest::test_to_dict
-)
-
-distutils_enable_tests pytest
-
-# Run only the tests that don't require a connection
-python_test() {
- epytest -m no_req
-}
-
-pkg_postinst() {
- optfeature "using telegram.ext.JobQueue" dev-python/APScheduler
-}
diff --git a/dev-python/python-telegram-bot/python-telegram-bot-21.1.1.ebuild b/dev-python/python-telegram-bot/python-telegram-bot-21.1.1.ebuild
deleted file mode 100644
index 77a45a49f2ce..000000000000
--- a/dev-python/python-telegram-bot/python-telegram-bot-21.1.1.ebuild
+++ /dev/null
@@ -1,161 +0,0 @@
-# Copyright 2023-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
-inherit distutils-r1 optfeature
-
-DESCRIPTION="Python wrapper of telegram bots API"
-HOMEPAGE="https://docs.python-telegram-bot.org https://github.com/python-telegram-bot/python-telegram-bot"
-SRC_URI="https://github.com/python-telegram-bot/python-telegram-bot/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="
- >=dev-python/cachetools-5.3.3[${PYTHON_USEDEP}]
- >=dev-python/cryptography-39.0.1[${PYTHON_USEDEP}]
- >=dev-python/httpx-0.27.0[${PYTHON_USEDEP}]
- >=dev-python/tornado-6.4[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- dev-python/beautifulsoup4[${PYTHON_USEDEP}]
- dev-python/flaky[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/pytest-asyncio[${PYTHON_USEDEP}]
- dev-python/pytz[${PYTHON_USEDEP}]
- >=dev-python/tornado-6.4[${PYTHON_USEDEP}]
- )
-"
-
-# These tests require an internet connection
-EPYTEST_DESELECT=(
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_creation
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_de_json
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_expected_values
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_get_file_instance_method
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_send_animation_default_quote_parse_mode
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_send_with_animation
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_slot_behaviour
- tests/_files/test_animation.py::TestAnimationWithoutRequest::test_to_dict
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_creation
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_de_json
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_equality
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_expected_values
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_get_file_instance_method
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_send_audio_default_quote_parse_mode
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_send_with_audio
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_slot_behaviour
- tests/_files/test_audio.py::TestAudioWithoutRequest::test_to_dict
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_de_json
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_get_big_file_instance_method
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_get_small_file_instance_method
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_send_with_chat_photo
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_slot_behaviour
- tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_to_dict
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_creation
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_de_json
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_equality
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_expected_values
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_get_file_instance_method
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_send_document_default_quote_parse_mode
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_send_with_document
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_slot_behaviour
- tests/_files/test_document.py::TestDocumentWithoutRequest::test_to_dict
- tests/_files/test_inputmedia.py::TestInputMediaAnimationWithoutRequest::test_with_animation
- tests/_files/test_inputmedia.py::TestInputMediaAudioWithoutRequest::test_with_audio
- tests/_files/test_inputmedia.py::TestInputMediaDocumentWithoutRequest::test_with_document
- tests/_files/test_inputmedia.py::TestInputMediaPhotoWithoutRequest::test_with_photo
- tests/_files/test_inputmedia.py::TestInputMediaVideoWithoutRequest::test_with_video
- tests/_files/test_inputmedia.py::TestSendMediaGroupWithoutRequest::test_send_media_group_default_quote_parse_mode
- tests/_files/test_inputmedia.py::TestSendMediaGroupWithoutRequest::test_send_media_group_throws_error_with_group_caption_and_individual_captions
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_creation
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_de_json
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_equality
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_expected_values
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_get_file_instance_method
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_send_photo_default_quote_parse_mode
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_send_with_photosize
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_slot_behaviour
- tests/_files/test_photo.py::TestPhotoWithoutRequest::test_to_dict
- tests/_files/test_sticker.py::TestStickerSetWithoutRequest::test_de_json
- tests/_files/test_sticker.py::TestStickerSetWithoutRequest::test_get_file_instance_method
- tests/_files/test_sticker.py::TestStickerSetWithoutRequest::test_sticker_set_to_dict
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_creation
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_de_json
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_equality
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_expected_values
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_send_sticker_default_quote_parse_mode
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_send_with_sticker
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_slot_behaviour
- tests/_files/test_sticker.py::TestStickerWithoutRequest::test_to_dict
- tests/_files/test_video.py::TestVideoWithoutRequest::test_creation
- tests/_files/test_video.py::TestVideoWithoutRequest::test_equality
- tests/_files/test_video.py::TestVideoWithoutRequest::test_expected_values
- tests/_files/test_video.py::TestVideoWithoutRequest::test_get_file_instance_method
- tests/_files/test_video.py::TestVideoWithoutRequest::test_send_video_default_quote_parse_mode
- tests/_files/test_video.py::TestVideoWithoutRequest::test_send_with_video
- tests/_files/test_video.py::TestVideoWithoutRequest::test_slot_behaviour
- tests/_files/test_video.py::TestVideoWithoutRequest::test_to_dict
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_creation
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_equality
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_expected_values
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_get_file_instance_method
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_send_video_note_default_quote_parse_mode
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_send_with_video_note
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_slot_behaviour
- tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_to_dict
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_creation
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_equality
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_expected_values
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_get_file_instance_method
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_send_voice_default_quote_parse_mode
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_send_with_voice
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_slot_behaviour
- tests/_files/test_voice.py::TestVoiceWithoutRequest::test_to_dict
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_after_shutdown
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_exceptions
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_manual_timeouts
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_params_no_data
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_params_with_data
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_return_value
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_http_1_response
- tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_multiple_init_cycles
- tests/request/test_request.py::TestRequestWithoutRequest::test_chat_migrated
- tests/request/test_request.py::TestRequestWithoutRequest::test_error_description
- tests/request/test_request.py::TestRequestWithoutRequest::test_exceptions_in_do_request
- tests/request/test_request.py::TestRequestWithoutRequest::test_illegal_json_response
- tests/request/test_request.py::TestRequestWithoutRequest::test_replaced_unprintable_char
- tests/request/test_request.py::TestRequestWithoutRequest::test_retrieve
- tests/request/test_request.py::TestRequestWithoutRequest::test_retry_after
- tests/request/test_request.py::TestRequestWithoutRequest::test_special_errors
- tests/request/test_request.py::TestRequestWithoutRequest::test_timeout_propagation
- tests/request/test_request.py::TestRequestWithoutRequest::test_unknown_request_params
- tests/test_bot.py::TestBotWithoutRequest::test_bot_method_logging
- tests/test_bot.py::TestBotWithoutRequest::test_copy_message
- tests/test_bot.py::TestBotWithoutRequest::test_equality
- tests/test_bot.py::TestBotWithoutRequest::test_get_me_and_properties
- tests/test_bot.py::TestBotWithoutRequest::test_log_decorator
- tests/test_bot.py::TestBotWithoutRequest::test_send_message_default_quote_parse_mode
- tests/test_forum.py::TestForumTopicCreatedWithoutRequest::test_equality
- tests/test_forum.py::TestForumTopicWithoutRequest::test_de_json
- tests/test_forum.py::TestForumTopicWithoutRequest::test_equality
- tests/test_forum.py::TestForumTopicWithoutRequest::test_expected_values
- tests/test_forum.py::TestForumTopicWithoutRequest::test_slot_behaviour
- tests/test_forum.py::TestForumTopicWithoutRequest::test_to_dict
-)
-
-distutils_enable_tests pytest
-
-# Run only the tests that don't require a connection
-python_test() {
- epytest -m no_req
-}
-
-pkg_postinst() {
- optfeature "using telegram.ext.JobQueue" dev-python/APScheduler
-}
diff --git a/dev-python/python-telegram-bot/python-telegram-bot-22.7.ebuild b/dev-python/python-telegram-bot/python-telegram-bot-22.7.ebuild
new file mode 100644
index 000000000000..2e7dab79c80c
--- /dev/null
+++ b/dev-python/python-telegram-bot/python-telegram-bot-22.7.ebuild
@@ -0,0 +1,162 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{12..13} )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Python wrapper of telegram bots API"
+HOMEPAGE="https://docs.python-telegram-bot.org https://github.com/python-telegram-bot/python-telegram-bot"
+SRC_URI="https://github.com/python-telegram-bot/python-telegram-bot/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=dev-python/cachetools-5.3.3[${PYTHON_USEDEP}]
+ >=dev-python/cryptography-39.0.1[${PYTHON_USEDEP}]
+ >=dev-python/httpx-0.27.0[${PYTHON_USEDEP}]
+ >=dev-python/tornado-6.4[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/beautifulsoup4[${PYTHON_USEDEP}]
+ dev-python/flaky[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ >=dev-python/tornado-6.4[${PYTHON_USEDEP}]
+ )
+"
+
+# These tests require an internet connection
+EPYTEST_DESELECT=(
+ tests/_files/test_animation.py::TestAnimationWithoutRequest::test_creation
+ tests/_files/test_animation.py::TestAnimationWithoutRequest::test_de_json
+ tests/_files/test_animation.py::TestAnimationWithoutRequest::test_expected_values
+ tests/_files/test_animation.py::TestAnimationWithoutRequest::test_get_file_instance_method
+ tests/_files/test_animation.py::TestAnimationWithoutRequest::test_send_animation_default_quote_parse_mode
+ tests/_files/test_animation.py::TestAnimationWithoutRequest::test_send_with_animation
+ tests/_files/test_animation.py::TestAnimationWithoutRequest::test_slot_behaviour
+ tests/_files/test_animation.py::TestAnimationWithoutRequest::test_to_dict
+ tests/_files/test_audio.py::TestAudioWithoutRequest::test_creation
+ tests/_files/test_audio.py::TestAudioWithoutRequest::test_de_json
+ tests/_files/test_audio.py::TestAudioWithoutRequest::test_equality
+ tests/_files/test_audio.py::TestAudioWithoutRequest::test_expected_values
+ tests/_files/test_audio.py::TestAudioWithoutRequest::test_get_file_instance_method
+ tests/_files/test_audio.py::TestAudioWithoutRequest::test_send_audio_default_quote_parse_mode
+ tests/_files/test_audio.py::TestAudioWithoutRequest::test_send_with_audio
+ tests/_files/test_audio.py::TestAudioWithoutRequest::test_slot_behaviour
+ tests/_files/test_audio.py::TestAudioWithoutRequest::test_to_dict
+ tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_de_json
+ tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_get_big_file_instance_method
+ tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_get_small_file_instance_method
+ tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_send_with_chat_photo
+ tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_slot_behaviour
+ tests/_files/test_chatphoto.py::TestChatPhotoWithoutRequest::test_to_dict
+ tests/_files/test_document.py::TestDocumentWithoutRequest::test_creation
+ tests/_files/test_document.py::TestDocumentWithoutRequest::test_de_json
+ tests/_files/test_document.py::TestDocumentWithoutRequest::test_equality
+ tests/_files/test_document.py::TestDocumentWithoutRequest::test_expected_values
+ tests/_files/test_document.py::TestDocumentWithoutRequest::test_get_file_instance_method
+ tests/_files/test_document.py::TestDocumentWithoutRequest::test_send_document_default_quote_parse_mode
+ tests/_files/test_document.py::TestDocumentWithoutRequest::test_send_with_document
+ tests/_files/test_document.py::TestDocumentWithoutRequest::test_slot_behaviour
+ tests/_files/test_document.py::TestDocumentWithoutRequest::test_to_dict
+ tests/_files/test_inputmedia.py::TestInputMediaAnimationWithoutRequest::test_with_animation
+ tests/_files/test_inputmedia.py::TestInputMediaAudioWithoutRequest::test_with_audio
+ tests/_files/test_inputmedia.py::TestInputMediaDocumentWithoutRequest::test_with_document
+ tests/_files/test_inputmedia.py::TestInputMediaPhotoWithoutRequest::test_with_photo
+ tests/_files/test_inputmedia.py::TestInputMediaVideoWithoutRequest::test_with_video
+ tests/_files/test_inputmedia.py::TestSendMediaGroupWithoutRequest::test_send_media_group_default_quote_parse_mode
+ tests/_files/test_inputmedia.py::TestSendMediaGroupWithoutRequest::test_send_media_group_throws_error_with_group_caption_and_individual_captions
+ tests/_files/test_photo.py::TestPhotoWithoutRequest::test_creation
+ tests/_files/test_photo.py::TestPhotoWithoutRequest::test_de_json
+ tests/_files/test_photo.py::TestPhotoWithoutRequest::test_equality
+ tests/_files/test_photo.py::TestPhotoWithoutRequest::test_expected_values
+ tests/_files/test_photo.py::TestPhotoWithoutRequest::test_get_file_instance_method
+ tests/_files/test_photo.py::TestPhotoWithoutRequest::test_send_photo_default_quote_parse_mode
+ tests/_files/test_photo.py::TestPhotoWithoutRequest::test_send_with_photosize
+ tests/_files/test_photo.py::TestPhotoWithoutRequest::test_slot_behaviour
+ tests/_files/test_photo.py::TestPhotoWithoutRequest::test_to_dict
+ tests/_files/test_sticker.py::TestStickerSetWithoutRequest::test_de_json
+ tests/_files/test_sticker.py::TestStickerSetWithoutRequest::test_get_file_instance_method
+ tests/_files/test_sticker.py::TestStickerSetWithoutRequest::test_sticker_set_to_dict
+ tests/_files/test_sticker.py::TestStickerWithoutRequest::test_creation
+ tests/_files/test_sticker.py::TestStickerWithoutRequest::test_de_json
+ tests/_files/test_sticker.py::TestStickerWithoutRequest::test_equality
+ tests/_files/test_sticker.py::TestStickerWithoutRequest::test_expected_values
+ tests/_files/test_sticker.py::TestStickerWithoutRequest::test_send_sticker_default_quote_parse_mode
+ tests/_files/test_sticker.py::TestStickerWithoutRequest::test_send_with_sticker
+ tests/_files/test_sticker.py::TestStickerWithoutRequest::test_slot_behaviour
+ tests/_files/test_sticker.py::TestStickerWithoutRequest::test_to_dict
+ tests/_files/test_video.py::TestVideoWithoutRequest::test_creation
+ tests/_files/test_video.py::TestVideoWithoutRequest::test_equality
+ tests/_files/test_video.py::TestVideoWithoutRequest::test_expected_values
+ tests/_files/test_video.py::TestVideoWithoutRequest::test_get_file_instance_method
+ tests/_files/test_video.py::TestVideoWithoutRequest::test_send_video_default_quote_parse_mode
+ tests/_files/test_video.py::TestVideoWithoutRequest::test_send_with_video
+ tests/_files/test_video.py::TestVideoWithoutRequest::test_slot_behaviour
+ tests/_files/test_video.py::TestVideoWithoutRequest::test_to_dict
+ tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_creation
+ tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_equality
+ tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_expected_values
+ tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_get_file_instance_method
+ tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_send_video_note_default_quote_parse_mode
+ tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_send_with_video_note
+ tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_slot_behaviour
+ tests/_files/test_videonote.py::TestVideoNoteWithoutRequest::test_to_dict
+ tests/_files/test_voice.py::TestVoiceWithoutRequest::test_creation
+ tests/_files/test_voice.py::TestVoiceWithoutRequest::test_equality
+ tests/_files/test_voice.py::TestVoiceWithoutRequest::test_expected_values
+ tests/_files/test_voice.py::TestVoiceWithoutRequest::test_get_file_instance_method
+ tests/_files/test_voice.py::TestVoiceWithoutRequest::test_send_voice_default_quote_parse_mode
+ tests/_files/test_voice.py::TestVoiceWithoutRequest::test_send_with_voice
+ tests/_files/test_voice.py::TestVoiceWithoutRequest::test_slot_behaviour
+ tests/_files/test_voice.py::TestVoiceWithoutRequest::test_to_dict
+ tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_after_shutdown
+ tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_exceptions
+ tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_manual_timeouts
+ tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_params_no_data
+ tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_params_with_data
+ tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_do_request_return_value
+ tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_http_1_response
+ tests/request/test_request.py::TestHTTPXRequestWithoutRequest::test_multiple_init_cycles
+ tests/request/test_request.py::TestRequestWithoutRequest::test_chat_migrated
+ tests/request/test_request.py::TestRequestWithoutRequest::test_error_description
+ tests/request/test_request.py::TestRequestWithoutRequest::test_exceptions_in_do_request
+ tests/request/test_request.py::TestRequestWithoutRequest::test_illegal_json_response
+ tests/request/test_request.py::TestRequestWithoutRequest::test_replaced_unprintable_char
+ tests/request/test_request.py::TestRequestWithoutRequest::test_retrieve
+ tests/request/test_request.py::TestRequestWithoutRequest::test_retry_after
+ tests/request/test_request.py::TestRequestWithoutRequest::test_special_errors
+ tests/request/test_request.py::TestRequestWithoutRequest::test_timeout_propagation
+ tests/request/test_request.py::TestRequestWithoutRequest::test_unknown_request_params
+ tests/test_bot.py::TestBotWithoutRequest::test_bot_method_logging
+ tests/test_bot.py::TestBotWithoutRequest::test_copy_message
+ tests/test_bot.py::TestBotWithoutRequest::test_equality
+ tests/test_bot.py::TestBotWithoutRequest::test_get_me_and_properties
+ tests/test_bot.py::TestBotWithoutRequest::test_log_decorator
+ tests/test_bot.py::TestBotWithoutRequest::test_send_message_default_quote_parse_mode
+ tests/test_forum.py::TestForumTopicCreatedWithoutRequest::test_equality
+ tests/test_forum.py::TestForumTopicWithoutRequest::test_de_json
+ tests/test_forum.py::TestForumTopicWithoutRequest::test_equality
+ tests/test_forum.py::TestForumTopicWithoutRequest::test_expected_values
+ tests/test_forum.py::TestForumTopicWithoutRequest::test_slot_behaviour
+ tests/test_forum.py::TestForumTopicWithoutRequest::test_to_dict
+)
+
+distutils_enable_tests pytest
+
+# Run only the tests that don't require a connection
+python_test() {
+ epytest -m no_req
+}
+
+pkg_postinst() {
+ optfeature "using telegram.ext.JobQueue" dev-python/APScheduler
+}
diff --git a/dev-python/python-telegram-bot/python-telegram-bot-9999.ebuild b/dev-python/python-telegram-bot/python-telegram-bot-9999.ebuild
index aa638c35a8ca..a29eabb7fb93 100644
--- a/dev-python/python-telegram-bot/python-telegram-bot-9999.ebuild
+++ b/dev-python/python-telegram-bot/python-telegram-bot-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
+PYTHON_COMPAT=( python3_12 )
inherit distutils-r1 optfeature
DESCRIPTION="Python wrapper of telegram bots API"