forked from pool/python-Telethon
- 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:
69
python-Telethon.spec
Normal file
69
python-Telethon.spec
Normal file
@@ -0,0 +1,69 @@
|
||||
#
|
||||
# spec file for package python-Telethon
|
||||
#
|
||||
# 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define modname Telethon
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-Telethon
|
||||
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}
|
||||
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
|
||||
Requires: python-rsa
|
||||
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).
|
||||
|
||||
%prep
|
||||
%setup -q -n Telethon-%{version}
|
||||
chmod -x *.rst LICENSE
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# test_all_methods_present needs readthedocs available
|
||||
%pytest -k 'not test_all_methods_present'
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/telethon
|
||||
%{python_sitelib}/Telethon-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user