15
0

- update to 1.38.0:

* Formatting entities misbehaved with albums.
  * Sending a Message object with a file did not use the new file.
- update to 1.37.0:
  * Support for CDN downloads should be back. Telethon still
    prefers no CDN by default.
  * FloodWaitPremium should now be handled like any other floodwaits.
  * Fixed edge-case when using get_messages(..., reverse=True).
  * ConnectionError when using proxies should be raised properly.
- update to 1.36.0:
  * Certain updates, such as :tl:`UpdateBotStopped`, should now be
    processed reliably.
- update to 1.35.0:
  * "Custom secret support" should work with TcpMTProxy.
  * Some type hints should now be more accurate.
  * Session path couldn't be a pathlib.Path or None.
  * Python versions older than 3.9 should now be supported again.
  * Readthedocs should hopefully build the v1 documentation again.
- update to 1.34.0:
  * reply_to_chat and reply_to_sender are now in Message.
  * parse_mode with a custom instance containing both parse and
    unparse should now work.
  * Parsing and unparsing message entities should now behave better
    in certain corner-cases.
- update to 1.33.0:
  * webbrowser is now imported conditionally, to support niche environments.
Library should now retry on the suddenly-common TimedOutError.
- update to 1.32.0:
  * new and changed raw API methods
- update to 1.31.0:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Telethon?expand=0&rev=26
This commit is contained in:
2024-11-21 09:33:10 +00:00
committed by Git OBS Bridge
parent e1505b25a6
commit f0f6d1024c
4 changed files with 56 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Telethon
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,16 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Python2 is not supported
%define skip_python2 1
%define modname Telethon
%{?sle15_python_module_pythons}
Name: python-Telethon
Version: 1.30.3
Version: 1.38.0
Release: 0
Summary: Full-featured Telegram client library for Python 3
License: MIT
URL: https://github.com/LonamiWebs/Telethon
Source: https://github.com/LonamiWebs/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyaes}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-tornasync}
@@ -34,6 +33,7 @@ BuildRequires: %{python_module pytest-trio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rsa}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pyaes
@@ -42,17 +42,18 @@ BuildArch: noarch
%python_subpackages
%description
Telethon is an asyncio Python 3 MTProto library to interact with Telegram's API as a user or through a bot account (bot API alternative).
Telethon is an asyncio Python 3 MTProto library to interact with Telegram's API
as a user or through a bot account (bot API alternative).
%prep
%setup -q -n Telethon-%{version}
chmod 644 *.rst LICENSE
chmod -x *.rst LICENSE
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -63,6 +64,6 @@ chmod 644 *.rst LICENSE
%doc README.rst
%license LICENSE
%{python_sitelib}/telethon
%{python_sitelib}/Telethon-%{version}-py*.egg-info
%{python_sitelib}/Telethon-%{version}.dist-info
%changelog