[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/

2024-05-12 Thread Viorel Munteanu
commit: 8d5377032ea62c7584c888362f029b2d8a8ee480
Author: Pedro Arizmendi  pm  me>
AuthorDate: Fri May 10 17:23:42 2024 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Fri May 10 17:25:59 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8d537703

dev-python/python-telegram-bot: add 21.1.1

Closes: https://bugs.gentoo.org/931422

Signed-off-by: Pedro Arizmendi  pm.me>

 dev-python/python-telegram-bot/Manifest|   1 +
 .../python-telegram-bot-21.1.1.ebuild  | 161 +
 2 files changed, 162 insertions(+)

diff --git a/dev-python/python-telegram-bot/Manifest 
b/dev-python/python-telegram-bot/Manifest
index 067f127372..9ec49650cf 100644
--- a/dev-python/python-telegram-bot/Manifest
+++ b/dev-python/python-telegram-bot/Manifest
@@ -1,3 +1,4 @@
 DIST python-telegram-bot-20.3.tar.gz 1957466 BLAKE2B 
47e68846bb6c092648aa2bcd53289f7ac78d7335a8f84fd6a1c6440ee8b38c150f2e2df56f537e0de9e01af3c98a49fd0a8d8771c15ebd9be1658b0ee17a355b
 SHA512 
6594eb991a14acdd247505b904ca2bd5022ef8abe4b45b57218508fa53de765a6a9e05c78997723a8385b45a0950e87dc102264ed3338eed9d569d1eb596e1f9
 DIST python-telegram-bot-20.5.tar.gz 1950471 BLAKE2B 
b25440dd78d3a72242d371ec661027d2fea7c174a20a1c7482f0d1cab07aa6e5ffa886bb944c217e177732aabec676e5ea6003431a5e893a7171bb36642e3c53
 SHA512 
65f8d3de73bffcf56dd986091c34fa8f9cb60b4b8bbfc2b1c5c7392cf3a6314192a97013a2299a4d02977fd4f6ae73c487acc7a839b700d7304b02c0f5680671
 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

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
new file mode 100644
index 00..e5ba75ed0a
--- /dev/null
+++ b/dev-python/python-telegram-bot/python-telegram-bot-21.1.1.ebuild
@@ -0,0 +1,161 @@
+# 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..12} )
+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 ~x86"
+
+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
+   

[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/

2024-05-12 Thread Viorel Munteanu
commit: 54978c4c7db3d0e87ed532b61b287e0d20c44a5b
Author: Pedro Arizmendi  pm  me>
AuthorDate: Fri May 10 17:32:39 2024 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Fri May 10 17:32:39 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=54978c4c

dev-python/python-telegram-bot: drop 20.3-r1, 20.5-r1

Signed-off-by: Pedro Arizmendi  pm.me>

 dev-python/python-telegram-bot/Manifest|   2 -
 .../python-telegram-bot-20.3-r1.ebuild | 155 -
 .../python-telegram-bot-20.5-r1.ebuild | 150 
 3 files changed, 307 deletions(-)

diff --git a/dev-python/python-telegram-bot/Manifest 
b/dev-python/python-telegram-bot/Manifest
index 9ec49650cf..f85dd9d0ea 100644
--- a/dev-python/python-telegram-bot/Manifest
+++ b/dev-python/python-telegram-bot/Manifest
@@ -1,4 +1,2 @@
-DIST python-telegram-bot-20.3.tar.gz 1957466 BLAKE2B 
47e68846bb6c092648aa2bcd53289f7ac78d7335a8f84fd6a1c6440ee8b38c150f2e2df56f537e0de9e01af3c98a49fd0a8d8771c15ebd9be1658b0ee17a355b
 SHA512 
6594eb991a14acdd247505b904ca2bd5022ef8abe4b45b57218508fa53de765a6a9e05c78997723a8385b45a0950e87dc102264ed3338eed9d569d1eb596e1f9
-DIST python-telegram-bot-20.5.tar.gz 1950471 BLAKE2B 
b25440dd78d3a72242d371ec661027d2fea7c174a20a1c7482f0d1cab07aa6e5ffa886bb944c217e177732aabec676e5ea6003431a5e893a7171bb36642e3c53
 SHA512 
65f8d3de73bffcf56dd986091c34fa8f9cb60b4b8bbfc2b1c5c7392cf3a6314192a97013a2299a4d02977fd4f6ae73c487acc7a839b700d7304b02c0f5680671
 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

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-20.3-r1.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-20.3-r1.ebuild
deleted file mode 100644
index de642c415e..00
--- a/dev-python/python-telegram-bot/python-telegram-bot-20.3-r1.ebuild
+++ /dev/null
@@ -1,155 +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..11} )
-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 ~x86"
-
-RDEPEND="
-   >=dev-python/cachetools-5.3.0[${PYTHON_USEDEP}]
-   >=dev-python/cryptography-39.0.1[${PYTHON_USEDEP}]
-   >=dev-python/httpx-0.24.0[${PYTHON_USEDEP}]
-   >=dev-python/tornado-6.2[${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.2[${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_thumb_deprecation_warning
-   
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_thumb_deprecation_warning
-   

[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/files/, dev-python/python-telegram-bot/

2024-04-28 Thread David Roman
commit: 7b74a4258fcf40275c3b497131e6ea84ec7c8083
Author: Lucio Sauer  posteo  net>
AuthorDate: Sun Apr 28 19:53:45 2024 +
Commit: David Roman  gmail  com>
CommitDate: Sun Apr 28 20:02:25 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7b74a425

dev-python/python-telegram-bot: inline test deselection patches

Reduce overall package size and avoid violating ${FILESDIR} size
restrictions. Should also improve maintainability and diffability.

Bump copyright
Fix VariableOrderCheck
Fix whitespace issues
Remove redundant phase functions, function calls and variable
assignments

Signed-off-by: Lucio Sauer  posteo.net>

 ...ython-telegram-bot-20.3-no-internet-tests.patch | 704 
 ...ython-telegram-bot-20.5-no-internet-tests.patch | 324 --
 ...ython-telegram-bot-20.6-no-internet-tests.patch | 718 -
 .../python-telegram-bot-20.3.ebuild| 124 +++-
 .../python-telegram-bot-20.5.ebuild| 115 +++-
 .../python-telegram-bot-20.6.ebuild| 117 +++-
 6 files changed, 324 insertions(+), 1778 deletions(-)

diff --git 
a/dev-python/python-telegram-bot/files/python-telegram-bot-20.3-no-internet-tests.patch
 
b/dev-python/python-telegram-bot/files/python-telegram-bot-20.3-no-internet-tests.patch
deleted file mode 100644
index 1c7d71c756..00
--- 
a/dev-python/python-telegram-bot/files/python-telegram-bot-20.3-no-internet-tests.patch
+++ /dev/null
@@ -1,704 +0,0 @@
 a/tests/_files/test_animation.py
-+++ b/tests/_files/test_animation.py
-@@ -69,11 +69,13 @@ class TestAnimationBase:
-
-
- class TestAnimationWithoutRequest(TestAnimationBase):
-+@pytest.mark.skip(reason="Requires internet connection")
- def test_slot_behaviour(self, animation):
- for attr in animation.__slots__:
- assert getattr(animation, attr, "err") != "err", f"got extra slot 
'{attr}'"
- assert len(mro_slots(animation)) == len(set(mro_slots(animation))), 
"duplicate slot"
-
-+@pytest.mark.skip(reason="Requires internet connection")
- def test_creation(self, animation):
- assert isinstance(animation, Animation)
- assert isinstance(animation.file_id, str)
-@@ -81,6 +83,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
- assert animation.file_id
- assert animation.file_unique_id
-
-+@pytest.mark.skip(reason="Requires internet connection")
- def test_expected_values(self, animation):
- assert animation.mime_type == self.mime_type
- assert animation.file_name.startswith("game.gif") == 
self.file_name.startswith("game.gif")
-@@ -98,6 +101,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
- assert animation.thumb is animation.thumbnail
- check_thumb_deprecation_warnings_for_args_and_attrs(recwarn, __file__)
-
-+@pytest.mark.skip(reason="Requires internet connection")
- def test_de_json(self, bot, animation):
- json_dict = {
- "file_id": self.animation_file_id,
-@@ -118,6 +122,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
- assert animation.mime_type == self.mime_type
- assert animation.file_size == self.file_size
-
-+@pytest.mark.skip(reason="Requires internet connection")
- def test_to_dict(self, animation):
- animation_dict = animation.to_dict()
-
-@@ -187,6 +192,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
- finally:
- bot._local_mode = False
-
-+@pytest.mark.skip(reason="Requires internet connection")
- async def test_send_with_animation(self, monkeypatch, bot, chat_id, 
animation):
- async def make_assertion(url, request_data: RequestData, *args, 
**kwargs):
- return request_data.json_parameters["animation"] == 
animation.file_id
-@@ -195,6 +201,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
- assert await bot.send_animation(animation=animation, chat_id=chat_id)
-
- @pytest.mark.parametrize("bot_class", ["Bot", "ExtBot"])
-+@pytest.mark.skip(reason="Requires internet connection")
- async def test_send_animation_thumb_deprecation_warning(
- self, recwarn, monkeypatch, bot_class, bot, raw_bot, chat_id, 
animation
- ):
-@@ -216,6 +223,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
- with pytest.raises(ValueError, match="different entities as 'thumb' 
and 'thumbnail'"):
- await bot.send_animation(chat_id, file, thumbnail=file, 
thumb=different_file)
-
-+@pytest.mark.skip(reason="Requires internet connection")
- async def test_get_file_instance_method(self, monkeypatch, animation):
- async def make_assertion(*_, **kwargs):
- return kwargs["file_id"] == animation.file_id
 a/tests/_files/test_audio.py
-+++ b/tests/_files/test_audio.py
-@@ -70,11 +70,13 @@ class TestAudioBase:
-
-
- class TestAudioWithoutRequest(TestAudioBase):
-+

[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/

2024-04-28 Thread David Roman
commit: b20450c4cc2c7469e75d06f96204e013f17b59f1
Author: Lucio Sauer  posteo  net>
AuthorDate: Sun Apr 28 20:15:48 2024 +
Commit: David Roman  gmail  com>
CommitDate: Sun Apr 28 20:15:48 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b20450c4

dev-python/python-telegram-bot: drop 20.3, 20.5, 20.6

Signed-off-by: Lucio Sauer  posteo.net>

 .../python-telegram-bot-20.3.ebuild| 156 -
 .../python-telegram-bot-20.5.ebuild| 151 
 .../python-telegram-bot-20.6.ebuild| 151 
 3 files changed, 458 deletions(-)

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-20.3.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-20.3.ebuild
deleted file mode 100644
index c4ee5057ec..00
--- a/dev-python/python-telegram-bot/python-telegram-bot-20.3.ebuild
+++ /dev/null
@@ -1,156 +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..11} )
-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 ~x86"
-
-RDEPEND="
-   >=dev-python/cachetools-5.3.0[${PYTHON_USEDEP}]
-   >=dev-python/cryptography-39.0.1[${PYTHON_USEDEP}]
-   >=dev-python/httpx-0.24.0[${PYTHON_USEDEP}]
-   >=dev-python/tornado-6.2[${PYTHON_USEDEP}]
-   dev-python/setuptools[${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.2[${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_thumb_deprecation_warning
-   
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_thumb_deprecation_warning
-   
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_thumb_deprecation_warning
-   
tests/_files/test_document.py::TestDocumentWithoutRequest::test_send_with_document
-   
tests/_files/test_document.py::TestDocumentWithoutRequest::test_slot_behaviour
-  

[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/

2024-04-28 Thread David Roman
commit: 01d605620de70144dbef5633e68cc9dbbbcfa74b
Author: Lucio Sauer  posteo  net>
AuthorDate: Sun Apr 28 20:04:24 2024 +
Commit: David Roman  gmail  com>
CommitDate: Sun Apr 28 20:04:24 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=01d60562

dev-python/python-telegram-bot: remove setuptools from RDEPEND

Signed-off-by: Lucio Sauer  posteo.net>

 .../python-telegram-bot-20.3-r1.ebuild | 155 +
 .../python-telegram-bot-20.5-r1.ebuild | 150 
 .../python-telegram-bot-20.6-r1.ebuild | 150 
 3 files changed, 455 insertions(+)

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-20.3-r1.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-20.3-r1.ebuild
new file mode 100644
index 00..de642c415e
--- /dev/null
+++ b/dev-python/python-telegram-bot/python-telegram-bot-20.3-r1.ebuild
@@ -0,0 +1,155 @@
+# 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..11} )
+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 ~x86"
+
+RDEPEND="
+   >=dev-python/cachetools-5.3.0[${PYTHON_USEDEP}]
+   >=dev-python/cryptography-39.0.1[${PYTHON_USEDEP}]
+   >=dev-python/httpx-0.24.0[${PYTHON_USEDEP}]
+   >=dev-python/tornado-6.2[${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.2[${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_thumb_deprecation_warning
+   
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_thumb_deprecation_warning
+   
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_thumb_deprecation_warning
+   
tests/_files/test_document.py::TestDocumentWithoutRequest::test_send_with_document
+   
tests/_files/test_document.py::TestDocumentWithoutRequest::test_slot_behaviour
+   

[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/files/, dev-python/python-telegram-bot/

2023-10-30 Thread David Roman
commit: 571180eb4cd3b977187fe1e5a04c5cbe450fee50
Author: Pedro Arizmendi  pm  me>
AuthorDate: Sun Oct 29 17:00:09 2023 +
Commit: David Roman  gmail  com>
CommitDate: Sun Oct 29 17:00:43 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=571180eb

dev-python/python-telegram-bot: add 20.6

Signed-off-by: Pedro Arizmendi  pm.me>

 dev-python/python-telegram-bot/Manifest|   1 +
 ...ython-telegram-bot-20.6-no-internet-tests.patch | 718 +
 .../python-telegram-bot-20.6.ebuild|  57 ++
 3 files changed, 776 insertions(+)

diff --git a/dev-python/python-telegram-bot/Manifest 
b/dev-python/python-telegram-bot/Manifest
index 4b5bd4db2f..067f127372 100644
--- a/dev-python/python-telegram-bot/Manifest
+++ b/dev-python/python-telegram-bot/Manifest
@@ -1,2 +1,3 @@
 DIST python-telegram-bot-20.3.tar.gz 1957466 BLAKE2B 
47e68846bb6c092648aa2bcd53289f7ac78d7335a8f84fd6a1c6440ee8b38c150f2e2df56f537e0de9e01af3c98a49fd0a8d8771c15ebd9be1658b0ee17a355b
 SHA512 
6594eb991a14acdd247505b904ca2bd5022ef8abe4b45b57218508fa53de765a6a9e05c78997723a8385b45a0950e87dc102264ed3338eed9d569d1eb596e1f9
 DIST python-telegram-bot-20.5.tar.gz 1950471 BLAKE2B 
b25440dd78d3a72242d371ec661027d2fea7c174a20a1c7482f0d1cab07aa6e5ffa886bb944c217e177732aabec676e5ea6003431a5e893a7171bb36642e3c53
 SHA512 
65f8d3de73bffcf56dd986091c34fa8f9cb60b4b8bbfc2b1c5c7392cf3a6314192a97013a2299a4d02977fd4f6ae73c487acc7a839b700d7304b02c0f5680671
+DIST python-telegram-bot-20.6.tar.gz 1958397 BLAKE2B 
f5f11a604ff1eb199b2b81571b86b69541faa1d98a5d12ac4f3a9f8c6789f722e924232244f211721986beba1380bc877f33251564a46086e4e33d8952e701e1
 SHA512 
87e42af8663d11f2e33783d40a28a1767f4f5e14203e53463a8f76be0f9a8f0601b3e34b297d1d1ed2f2111b48cbf22a22d28a4d7396b67defb1f0081b10bc38

diff --git 
a/dev-python/python-telegram-bot/files/python-telegram-bot-20.6-no-internet-tests.patch
 
b/dev-python/python-telegram-bot/files/python-telegram-bot-20.6-no-internet-tests.patch
new file mode 100644
index 00..8718aaa038
--- /dev/null
+++ 
b/dev-python/python-telegram-bot/files/python-telegram-bot-20.6-no-internet-tests.patch
@@ -0,0 +1,718 @@
+diff --git a/tests/_files/test_animation.py b/tests/_files/test_animation.py
+index 23ec3b50..d5b3775d 100644
+--- a/tests/_files/test_animation.py
 b/tests/_files/test_animation.py
+@@ -65,11 +65,13 @@ class TestAnimationBase:
+
+
+ class TestAnimationWithoutRequest(TestAnimationBase):
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_slot_behaviour(self, animation):
+ for attr in animation.__slots__:
+ assert getattr(animation, attr, "err") != "err", f"got extra slot 
'{attr}'"
+ assert len(mro_slots(animation)) == len(set(mro_slots(animation))), 
"duplicate slot"
+
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_creation(self, animation):
+ assert isinstance(animation, Animation)
+ assert isinstance(animation.file_id, str)
+@@ -77,11 +79,13 @@ class TestAnimationWithoutRequest(TestAnimationBase):
+ assert animation.file_id
+ assert animation.file_unique_id
+
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_expected_values(self, animation):
+ assert animation.mime_type == self.mime_type
+ assert animation.file_name.startswith("game.gif") == 
self.file_name.startswith("game.gif")
+ assert isinstance(animation.thumbnail, PhotoSize)
+
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_de_json(self, bot, animation):
+ json_dict = {
+ "file_id": self.animation_file_id,
+@@ -102,6 +106,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
+ assert animation.mime_type == self.mime_type
+ assert animation.file_size == self.file_size
+
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_to_dict(self, animation):
+ animation_dict = animation.to_dict()
+
+@@ -171,6 +176,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
+ finally:
+ bot._local_mode = False
+
++@pytest.mark.skip(reason="Requires internet connection")
+ async def test_send_with_animation(self, monkeypatch, bot, chat_id, 
animation):
+ async def make_assertion(url, request_data: RequestData, *args, 
**kwargs):
+ return request_data.json_parameters["animation"] == 
animation.file_id
+@@ -178,6 +184,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
+ monkeypatch.setattr(bot.request, "post", make_assertion)
+ assert await bot.send_animation(animation=animation, chat_id=chat_id)
+
++@pytest.mark.skip(reason="Requires internet connection")
+ async def test_get_file_instance_method(self, monkeypatch, animation):
+ async def make_assertion(*_, **kwargs):
+ return kwargs["file_id"] == animation.file_id
+diff --git 

[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/, dev-python/python-telegram-bot/files/

2023-05-15 Thread Viorel Munteanu
commit: 9b82b2883cae022d231cd72c4ce4d89e76ac67d8
Author: Pedro Arizmendi  pm  me>
AuthorDate: Mon May 15 10:46:50 2023 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Mon May 15 10:47:19 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9b82b288

dev-python/python-telegram-bot: add 20.3

Signed-off-by: Pedro Arizmendi  pm.me>

 dev-python/python-telegram-bot/Manifest|   1 +
 ...ython-telegram-bot-20.3-no-internet-tests.patch | 704 +
 .../python-telegram-bot-20.3.ebuild|  57 ++
 3 files changed, 762 insertions(+)

diff --git a/dev-python/python-telegram-bot/Manifest 
b/dev-python/python-telegram-bot/Manifest
index aac259996..84e959ca9 100644
--- a/dev-python/python-telegram-bot/Manifest
+++ b/dev-python/python-telegram-bot/Manifest
@@ -1,2 +1,3 @@
 DIST python-telegram-bot-13.14.tar.gz 2282098 BLAKE2B 
549c87737585f3b2b4bae9f9430fcf8dbaf4f9048013f623b5ef910534a0c70792e36eedffa707b4ff68d6de53c69d4befe64618fc8944c35c3efe680294c4a9
 SHA512 
859d9852feaaf147b608c1ef4e5f388c345f7efcd699a828d690b110fb499cb9391a51bafe8e0b533d106dccf038a4c845fa13c0dab12bb7792dffe5d059af27
 DIST python-telegram-bot-20.2.tar.gz 1940084 BLAKE2B 
a575f7ea616e29c32f3773adc66153ddbe4563420697d5eb2dcb1ad7df72d5ea348b0900552d65a91fdfe9c4d65c4fc1d43e9e5e7bb18d5943ae0d329878a6a0
 SHA512 
1d25a7c0c8b97c3292af364f1c9f94289de340d19587f2d43817f36bd89c3862fe6c1cf58b68dcdfa5aca6a94acb8da99bb49a9f4ad76e3a61b3b59810dae6e5
+DIST python-telegram-bot-20.3.tar.gz 1957466 BLAKE2B 
47e68846bb6c092648aa2bcd53289f7ac78d7335a8f84fd6a1c6440ee8b38c150f2e2df56f537e0de9e01af3c98a49fd0a8d8771c15ebd9be1658b0ee17a355b
 SHA512 
6594eb991a14acdd247505b904ca2bd5022ef8abe4b45b57218508fa53de765a6a9e05c78997723a8385b45a0950e87dc102264ed3338eed9d569d1eb596e1f9

diff --git 
a/dev-python/python-telegram-bot/files/python-telegram-bot-20.3-no-internet-tests.patch
 
b/dev-python/python-telegram-bot/files/python-telegram-bot-20.3-no-internet-tests.patch
new file mode 100644
index 0..1c7d71c75
--- /dev/null
+++ 
b/dev-python/python-telegram-bot/files/python-telegram-bot-20.3-no-internet-tests.patch
@@ -0,0 +1,704 @@
+--- a/tests/_files/test_animation.py
 b/tests/_files/test_animation.py
+@@ -69,11 +69,13 @@ class TestAnimationBase:
+
+
+ class TestAnimationWithoutRequest(TestAnimationBase):
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_slot_behaviour(self, animation):
+ for attr in animation.__slots__:
+ assert getattr(animation, attr, "err") != "err", f"got extra slot 
'{attr}'"
+ assert len(mro_slots(animation)) == len(set(mro_slots(animation))), 
"duplicate slot"
+
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_creation(self, animation):
+ assert isinstance(animation, Animation)
+ assert isinstance(animation.file_id, str)
+@@ -81,6 +83,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
+ assert animation.file_id
+ assert animation.file_unique_id
+
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_expected_values(self, animation):
+ assert animation.mime_type == self.mime_type
+ assert animation.file_name.startswith("game.gif") == 
self.file_name.startswith("game.gif")
+@@ -98,6 +101,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
+ assert animation.thumb is animation.thumbnail
+ check_thumb_deprecation_warnings_for_args_and_attrs(recwarn, __file__)
+
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_de_json(self, bot, animation):
+ json_dict = {
+ "file_id": self.animation_file_id,
+@@ -118,6 +122,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
+ assert animation.mime_type == self.mime_type
+ assert animation.file_size == self.file_size
+
++@pytest.mark.skip(reason="Requires internet connection")
+ def test_to_dict(self, animation):
+ animation_dict = animation.to_dict()
+
+@@ -187,6 +192,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
+ finally:
+ bot._local_mode = False
+
++@pytest.mark.skip(reason="Requires internet connection")
+ async def test_send_with_animation(self, monkeypatch, bot, chat_id, 
animation):
+ async def make_assertion(url, request_data: RequestData, *args, 
**kwargs):
+ return request_data.json_parameters["animation"] == 
animation.file_id
+@@ -195,6 +201,7 @@ class TestAnimationWithoutRequest(TestAnimationBase):
+ assert await bot.send_animation(animation=animation, chat_id=chat_id)
+
+ @pytest.mark.parametrize("bot_class", ["Bot", "ExtBot"])
++@pytest.mark.skip(reason="Requires internet connection")
+ async def test_send_animation_thumb_deprecation_warning(
+ self, recwarn, monkeypatch, bot_class, bot, raw_bot, chat_id, 
animation
+ ):
+@@ -216,6 +223,7 @@ class 

[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/

2023-04-28 Thread Arthur Zamarin
commit: 6c4aa683de3fd3223bc1eaa7e418e78db1ba20ba
Author: Pedro Arizmendi  pm  me>
AuthorDate: Thu Apr 27 17:50:06 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Thu Apr 27 17:50:06 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6c4aa683

dev-python/python-telegram-bot: Added missing pytz dependency

Closes: https://bugs.gentoo.org/905117
Signed-off-by: Pedro Arizmendi  pm.me>

 ...ython-telegram-bot-20.2.ebuild => python-telegram-bot-20.2-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-20.2.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-20.2-r1.ebuild
similarity index 97%
rename from dev-python/python-telegram-bot/python-telegram-bot-20.2.ebuild
rename to dev-python/python-telegram-bot/python-telegram-bot-20.2-r1.ebuild
index 73aae7e20..9b383fdb3 100644
--- a/dev-python/python-telegram-bot/python-telegram-bot-20.2.ebuild
+++ b/dev-python/python-telegram-bot/python-telegram-bot-20.2-r1.ebuild
@@ -29,6 +29,7 @@ BDEPEND="
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.2[${PYTHON_USEDEP}]
)
 "



[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/

2022-09-17 Thread Ronny Gutbrod
commit: 59fed255b994b0e3bb71b94b7731b3ef3c232875
Author: David Roman  gmail  com>
AuthorDate: Sat Sep 17 11:32:23 2022 +
Commit: Ronny Gutbrod  tastytea  de>
CommitDate: Sat Sep 17 11:32:23 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=59fed255

dev-python/python-telegram-bot: verbump 13.14

Closes: https://bugs.gentoo.org/848342
Signed-off-by: David Roman  gmail.com>

 dev-python/python-telegram-bot/Manifest | 2 +-
 ...on-telegram-bot-13.1.ebuild => python-telegram-bot-13.14.ebuild} | 2 +-
 dev-python/python-telegram-bot/python-telegram-bot-.ebuild  | 6 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/dev-python/python-telegram-bot/Manifest 
b/dev-python/python-telegram-bot/Manifest
index 2afb32a7b..ac443ca28 100644
--- a/dev-python/python-telegram-bot/Manifest
+++ b/dev-python/python-telegram-bot/Manifest
@@ -1 +1 @@
-DIST python-telegram-bot-13.1.tar.gz 1998020 BLAKE2B 
376402c28245b6a6a516c58be0f730b1e8d98b8f829d705355415afc3d702f1b35f29988a2600b13a6f346d524016499fafee51ae8b81042a5e074e34c222961
 SHA512 
ff51b0490d159de4cbc2a273f1011d63d71b1d83ae1850ca3967d63386f1580e9ce9f641cb8de0b99c629660f6143dfcdef8c6f49fc91a888efd43132b1697c0
+DIST python-telegram-bot-13.14.tar.gz 2282098 BLAKE2B 
549c87737585f3b2b4bae9f9430fcf8dbaf4f9048013f623b5ef910534a0c70792e36eedffa707b4ff68d6de53c69d4befe64618fc8944c35c3efe680294c4a9
 SHA512 
859d9852feaaf147b608c1ef4e5f388c345f7efcd699a828d690b110fb499cb9391a51bafe8e0b533d106dccf038a4c845fa13c0dab12bb7792dffe5d059af27

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-13.1.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-13.14.ebuild
similarity index 98%
rename from dev-python/python-telegram-bot/python-telegram-bot-13.1.ebuild
rename to dev-python/python-telegram-bot/python-telegram-bot-13.14.ebuild
index ac5195fe7..d033e8edd 100644
--- a/dev-python/python-telegram-bot/python-telegram-bot-13.1.ebuild
+++ b/dev-python/python-telegram-bot/python-telegram-bot-13.14.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_8 )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
index 90d56ae91..d033e8edd 100644
--- a/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
+++ b/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_8 )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 
@@ -22,6 +22,10 @@ fi
 LICENSE="GPL-3"
 SLOT="0"
 
+# This error is really strange
+# UserWarning: python-telegram-bot is using upstream urllib3. This is allowed 
but not supported by python-telegram-bot maintainers.
+RESTRICT="test"
+
 RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]



[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/

2020-11-08 Thread Andrew Ammerlaan
commit: 3521cb2cf8fd233a3e72b25c8db7311924386950
Author: David Roman  gmail  com>
AuthorDate: Sat Nov  7 00:24:47 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Sat Nov  7 00:24:47 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3521cb2c

dev-python/python-telegram-bot: verbump to 13.0

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: David Roman  gmail.com>

 dev-python/python-telegram-bot/Manifest   | 1 +
 ...ython-telegram-bot-.ebuild => python-telegram-bot-13.0.ebuild} | 4 +++-
 dev-python/python-telegram-bot/python-telegram-bot-.ebuild| 4 +++-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-python/python-telegram-bot/Manifest 
b/dev-python/python-telegram-bot/Manifest
index 0a5c14bd..8cd02b57 100644
--- a/dev-python/python-telegram-bot/Manifest
+++ b/dev-python/python-telegram-bot/Manifest
@@ -1 +1,2 @@
 DIST python-telegram-bot-12.4.2.tar.gz 1896003 BLAKE2B 
2fbf77046da9c25b82682db040967e326bb92be0709f76ce9ebf98d611822d07c60d68d02e241cfbb4cc233be0e198a866f85557790227e7439d2688c5d01651
 SHA512 
b5c652433c99205e71dee67d1c9e5d3a9b2df40b2d60c1810135ef8b1b72f2b4b27a506682d0522a1bae58d39ba7cd559e262c222fde7dd324df779a00a76e10
+DIST python-telegram-bot-13.0.tar.gz 1971799 BLAKE2B 
b63b71a4c872d2734ff2477f948b253fa29ed662c1de7291a654fec94e027178f0d6d4a90cbab6e144a0848893583b2fcd82b3f0f9a7df6908bec33cee8c523f
 SHA512 
e35754871d753e6a2a46901a8292446ea729d17ee9122a932c26c8f51aff2c02cf47193036e37a22f17bb3d35814ac9c214449efa86541b0937e83849349b8eb

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-13.0.ebuild
similarity index 94%
copy from dev-python/python-telegram-bot/python-telegram-bot-.ebuild
copy to dev-python/python-telegram-bot/python-telegram-bot-13.0.ebuild
index da5d9a71..3a480ab2 100644
--- a/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
+++ b/dev-python/python-telegram-bot/python-telegram-bot-13.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_7 )
+PYTHON_COMPAT=( python3_{7,8} )
 
 inherit distutils-r1
 
@@ -34,12 +34,14 @@ RDEPEND="
 "
 
 DEPEND="test? (
+   dev-python/APScheduler[${PYTHON_USEDEP}]
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/flake8[${PYTHON_USEDEP}]
dev-python/flaky[${PYTHON_USEDEP}]
dev-python/pylint[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
+   dev-python/pytz[${PYTHON_USEDEP}]
dev-python/yapf[${PYTHON_USEDEP}]
 )"
 

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
index da5d9a71..3a480ab2 100644
--- a/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
+++ b/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_7 )
+PYTHON_COMPAT=( python3_{7,8} )
 
 inherit distutils-r1
 
@@ -34,12 +34,14 @@ RDEPEND="
 "
 
 DEPEND="test? (
+   dev-python/APScheduler[${PYTHON_USEDEP}]
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/flake8[${PYTHON_USEDEP}]
dev-python/flaky[${PYTHON_USEDEP}]
dev-python/pylint[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
+   dev-python/pytz[${PYTHON_USEDEP}]
dev-python/yapf[${PYTHON_USEDEP}]
 )"
 



[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/

2020-03-13 Thread Andrew Ammerlaan
commit: 056991a706e3c0d4e5e5c28153fb0e7a3fe128b6
Author: David Roman  gmail  com>
AuthorDate: Fri Mar 13 17:42:14 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Fri Mar 13 17:42:34 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=056991a7

dev-python/python-telegram-bot: fix tests

Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: David Roman  gmail.com>

 .../python-telegram-bot-12.4.2.ebuild  | 39 ++
 .../python-telegram-bot-.ebuild| 39 ++
 2 files changed, 36 insertions(+), 42 deletions(-)

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-12.4.2.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-12.4.2.ebuild
index 6004623..497474b 100644
--- a/dev-python/python-telegram-bot/python-telegram-bot-12.4.2.ebuild
+++ b/dev-python/python-telegram-bot/python-telegram-bot-12.4.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( python3_{6,7} )
 
 inherit distutils-r1
 
@@ -22,10 +22,6 @@ fi
 LICENSE="GPL-3"
 SLOT="0"
 
-# No tests because require networking access
-# Commenting out the test deps so we can add py3_8
-RESTRICT="test"
-
 RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
@@ -37,15 +33,15 @@ RDEPEND="
www-servers/tornado[${PYTHON_USEDEP}]
 "
 
-#DEPEND="test? (
-#  dev-python/attrs[${PYTHON_USEDEP}]
-#  dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
-#  dev-python/flake8[${PYTHON_USEDEP}]
-#  dev-python/flaky[${PYTHON_USEDEP}]
-#  dev-python/pylint[${PYTHON_USEDEP}]
-#  dev-python/pytest-timeout[${PYTHON_USEDEP}]
-#  dev-python/yapf[${PYTHON_USEDEP}]
-#)"
+DEPEND="test? (
+   dev-python/attrs[${PYTHON_USEDEP}]
+   dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
+   dev-python/flake8[${PYTHON_USEDEP}]
+   dev-python/flaky[${PYTHON_USEDEP}]
+   dev-python/pylint[${PYTHON_USEDEP}]
+   dev-python/pytest-timeout[${PYTHON_USEDEP}]
+   dev-python/yapf[${PYTHON_USEDEP}]
+)"
 
 distutils_enable_tests pytest
 distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
@@ -54,14 +50,15 @@ python_prepare_all() {
# do not make a test flaky report
sed -i -e '/addopts/d' setup.cfg || die
 
-   # this test fails: Unknown pytest.mark.nocoverage
-   # likely this requires pytest-cov but that is deprecated
-   # so we skip the test
-   rm tests/test_meta.py || die
+   sed -i 's/from telegram.vendor.ptb_urllib3 //g' tests/test_*.py
+   sed -i 's/telegram.vendor.ptb_urllib3.urllib3/urllib3/g' tests/test_*.py
 
-   # this fails to import urllib3 even though
-   # it is installed
-   rm tests/test_official.py || die
+   # Remove tests files that require network access
+   rm 
tests/test_{animation,audio,bot,commandhandler,constants,conversationhandler}.py
 || die
+   rm 
tests/test_{dispatcher,document,forcereply,inlinekeyboardmarkup,inputmedia}.py 
|| die
+   rm 
tests/test_{invoice,jobqueue,official,parsemode,persistence,photo,sticker,updater}.py
 || die
+   rm tests/test_replykeyboard{markup,remove}.py || die
+   rm tests/test_{video,videonote,voice}.py || die
 
distutils-r1_python_prepare_all
 }

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
index 6004623..497474b 100644
--- a/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
+++ b/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( python3_{6,7} )
 
 inherit distutils-r1
 
@@ -22,10 +22,6 @@ fi
 LICENSE="GPL-3"
 SLOT="0"
 
-# No tests because require networking access
-# Commenting out the test deps so we can add py3_8
-RESTRICT="test"
-
 RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
@@ -37,15 +33,15 @@ RDEPEND="
www-servers/tornado[${PYTHON_USEDEP}]
 "
 
-#DEPEND="test? (
-#  dev-python/attrs[${PYTHON_USEDEP}]
-#  dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
-#  dev-python/flake8[${PYTHON_USEDEP}]
-#  dev-python/flaky[${PYTHON_USEDEP}]
-#  dev-python/pylint[${PYTHON_USEDEP}]
-#  dev-python/pytest-timeout[${PYTHON_USEDEP}]
-#  dev-python/yapf[${PYTHON_USEDEP}]
-#)"
+DEPEND="test? (
+   dev-python/attrs[${PYTHON_USEDEP}]
+   dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
+   dev-python/flake8[${PYTHON_USEDEP}]
+   dev-python/flaky[${PYTHON_USEDEP}]
+   dev-python/pylint[${PYTHON_USEDEP}]
+   dev-python/pytest-timeout[${PYTHON_USEDEP}]
+   dev-python/yapf[${PYTHON_USEDEP}]
+)"
 
 distutils_enable_tests pytest
 distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
@@ -54,14 +50,15 @@ python_prepare_all() {
# do not make a test flaky 

[gentoo-commits] repo/proj/guru:master commit in: dev-python/python-telegram-bot/

2020-03-13 Thread Andrew Ammerlaan
commit: fcd403ed19857488ba3454f299bf0b929363e5d1
Author: David Roman  gmail  com>
AuthorDate: Thu Mar 12 19:38:09 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Thu Mar 12 19:38:09 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fcd403ed

dev-python/python-telegram-bot: new package

Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: David Roman  gmail.com>

 dev-python/python-telegram-bot/Manifest|  1 +
 dev-python/python-telegram-bot/metadata.xml|  8 +
 .../python-telegram-bot-12.4.2.ebuild  | 39 ++
 .../python-telegram-bot-.ebuild| 39 ++
 4 files changed, 87 insertions(+)

diff --git a/dev-python/python-telegram-bot/Manifest 
b/dev-python/python-telegram-bot/Manifest
new file mode 100644
index 000..5f57644
--- /dev/null
+++ b/dev-python/python-telegram-bot/Manifest
@@ -0,0 +1 @@
+DIST v12.4.2.tar.gz 1896003 BLAKE2B 
2fbf77046da9c25b82682db040967e326bb92be0709f76ce9ebf98d611822d07c60d68d02e241cfbb4cc233be0e198a866f85557790227e7439d2688c5d01651
 SHA512 
b5c652433c99205e71dee67d1c9e5d3a9b2df40b2d60c1810135ef8b1b72f2b4b27a506682d0522a1bae58d39ba7cd559e262c222fde7dd324df779a00a76e10

diff --git a/dev-python/python-telegram-bot/metadata.xml 
b/dev-python/python-telegram-bot/metadata.xml
new file mode 100644
index 000..01c1fc8
--- /dev/null
+++ b/dev-python/python-telegram-bot/metadata.xml
@@ -0,0 +1,8 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   davidroma...@gmail.com
+   David Roman
+   
+

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-12.4.2.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-12.4.2.ebuild
new file mode 100644
index 000..aeefe43
--- /dev/null
+++ b/dev-python/python-telegram-bot/python-telegram-bot-12.4.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python wrapper of telegram bots API"
+HOMEPAGE="https://python-telegram-bot.org/;
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   
EGIT_REPO_URI="https://github.com/python-telegram-bot/python-telegram-bot;
+else
+   SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz;
+
+   KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+   dev-python/certifi[${PYTHON_USEDEP}]
+   dev-python/cryptography[${PYTHON_USEDEP}]
+   dev-python/decorator[${PYTHON_USEDEP}]
+   dev-python/future[${PYTHON_USEDEP}]
+   dev-python/PySocks[${PYTHON_USEDEP}]
+   dev-python/ujson[${PYTHON_USEDEP}]
+   dev-python/urllib3[${PYTHON_USEDEP}]
+   www-servers/tornado[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}"
+
+# No tests because require networking access

diff --git a/dev-python/python-telegram-bot/python-telegram-bot-.ebuild 
b/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
new file mode 100644
index 000..aeefe43
--- /dev/null
+++ b/dev-python/python-telegram-bot/python-telegram-bot-.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python wrapper of telegram bots API"
+HOMEPAGE="https://python-telegram-bot.org/;
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   
EGIT_REPO_URI="https://github.com/python-telegram-bot/python-telegram-bot;
+else
+   SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz;
+
+   KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+   dev-python/certifi[${PYTHON_USEDEP}]
+   dev-python/cryptography[${PYTHON_USEDEP}]
+   dev-python/decorator[${PYTHON_USEDEP}]
+   dev-python/future[${PYTHON_USEDEP}]
+   dev-python/PySocks[${PYTHON_USEDEP}]
+   dev-python/ujson[${PYTHON_USEDEP}]
+   dev-python/urllib3[${PYTHON_USEDEP}]
+   www-servers/tornado[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}"
+
+# No tests because require networking access