Files
python-mautrix/python-mautrix.spec
Matej Cepl 752af3b687 Accepting request 1119335 from home:mcepl:branches:network:messaging:matrix
- Update to 0.20.2:
  - (crypto) Changed OlmMachine.share_keys to make the OTK count
    parameter optional. When omitted, the count is fetched from
    the server.
  - (appservice) Added option to run appservice transaction event
    handlers synchronously.
  - (appservice) Added log and hs_token parameters to
    AppServiceServerMixin to allow using it as a standalone class
    without extending.
  - (api) Added support for setting appservice user_id
    and device_id query parameters manually without using
    AppServiceAPI.
- Update to 0.20.1:
  - (util.program) Removed --base-config flag in bridges, as
    there are no valid use cases (package data should always
    work) and it's easy to cause issues by pointing the flag at
    the wrong file.
  - (bridge) Added support for the com.devture.shared_secret_auth
    login type for automatic double puppeting.
  - (bridge) Dropped support for syncing with double
    puppets. MSC2409 is now the only way to receive ephemeral
    events.
  - (bridge) Added support for double puppeting with arbitrary
    as_tokens.
- Update to 0.20.0:
  - Dropped Python 3.8 support.
  - Breaking change (.state_store) Removed legacy SQLAlchemy
    state store implementations.
  - Mildly breaking change (util.async_db) Changed SQLiteDatabase
    to not remove prefix slashes from database paths.
    - Library users should use sqlite:path.db instead of
      sqlite:///path.db for relative paths, and sqlite:/path.db
      instead of sqlite:////path.db for absolute paths.
    - Bridge configs do this migration automatically.
  - (util.async_db) Added warning log if using SQLite database
    path that isn't writable.
  - (util.program) Fixed manual_stop not working if it's called
    during startup.
  - (client) Stabilized support for asynchronous uploads.
    - unstable_create_msc was renamed to create_mxc, and the
      max_stall_ms parameters for downloading were renamed to
      timeout_ms.
  - (crypto) Added option to not rotate keys when devices change.
  - (crypto) Added option to remove all keys that were received
    before the automatic ratcheting was implemented (in
    v0.19.10).
  - (types) Improved reply fallback removal to have a smaller
    chance of false positives for messages that don't use reply
    fallbacks.
- Update to 0.19.16:
  - (appservice) Fixed Python 3.8 compatibility.
- Remove upstreamed no-immutable.patch.

OBS-URL: https://build.opensuse.org/request/show/1119335
OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/python-mautrix?expand=0&rev=7
2023-10-21 08:31:10 +00:00

96 lines
3.0 KiB
RPMSpec

#
# spec file for package python-mautrix
#
# Copyright (c) 2022 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/
#
%if 0%{?suse_version} >= 1550
%bcond_without test
%else
# Leap 15.x: Ignore that upstream doesn't support Python < 3.8 and does not have the test requirements
%define skip_python2 1
%bcond_with test
%endif
Name: python-mautrix
Version: 0.20.2
Release: 0
Summary: A Python 3 asyncio Matrix framework
License: MPL-2.0
URL: https://github.com/mautrix/python
# The GitHub Archive has json data required for the test suite
Source: https://github.com/mautrix/python/archive/refs/tags/v%{version}.tar.gz#/mautrix-python-%{version}-gh.tar.gz
# PATCH-FIX-UPSTREAM no-immutable.patch gh#mautrix/python#147 mcepl@suse.com
# SQLAlchemy 2.0 renamed sql.base.ImmutableColumnCollection to ReadOnlyColumnCollection
# Patch0: no-immutable.patch
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-aiohttp >= 3
Requires: python-attrs >= 18.1.0
Requires: python-yarl >= 1
Suggests: python-python-magic >= 0.4.15
BuildArch: noarch
BuildRequires: %{python_module aiohttp >= 3.0.1}
BuildRequires: %{python_module attrs >= 18.1.0}
BuildRequires: %{python_module yarl >= 1}
# SECTION optional requirements
BuildRequires: %{python_module python-magic >= 0.4.15}
# /SECTION optional requirements
%if %{with test}
BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module commonmark}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module uvloop}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module asyncpg}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module aiosqlite}
BuildRequires: %{python_module sqlalchemy}
BuildRequires: %{python_module olm}
BuildRequires: %{python_module unpaddedbase64}
BuildRequires: %{python_module pycryptodomex}
BuildRequires: %{python_module ruamel.yaml}
BuildRequires: %{python_module prometheus_client}
%endif
%python_subpackages
%description
A Python 3 asyncio Matrix framework.
%prep
%autosetup -p1 -n python-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%pytest
%endif
%files %{python_files}
%doc README.rst CHANGELOG.md
%license LICENSE
%{python_sitelib}/mautrix
%{python_sitelib}/mautrix-%{version}*-info
%changelog