17
0
Files
python-matrix-nio/python-matrix-nio.spec
Matej Cepl 4cc374dfbb Accepting request 1127710 from home:mcepl:branches:network:messaging:matrix
- Update to 0.23.0:
  - Bug Fixes
    - Allow custom ToDeviceEvents via UnknownToDeviceEvent
    - Remove callback execution boilerplate + allow arbitrary
      callable/awaitable objects
    - Fix schemas for m.room.avatar and m.room.canonical_alias
    - Propagate asyncio.CancelledError in sync_forever
  - Features
    - Introduce the DM room account data (m.direct)
  - Miscellaneous Tasks
    - Update the nio-bot description
    - Bump aiohttp from 3.8.5 to 3.8.6
- Update to 0.22.1:
    - Fix ImportError from when e2e is not installed
- Update to 0.22.0:
  - Bug Fixes
    - Fix space handling to account for Matrix spec ambiguities.
  - Features
    - Add a simple streamed response to download to files
    - Add get space hierarchy capability
    - Support for Token-Authenticated Registration
    - Add room_type to room_create API function to allow for
      custom room types
    - Add support for m.reaction events
  - Miscellaneous Tasks
    - Add .readthedocs.yaml v2 to support ReadTheDocs migration
    - Remove future dependency
    - Fix jsonschema deprecations
    - Replace cgi.parse_header()
    - Run pre-commit autoupdate to fix deprecation
    - Introduce ruff as a pre-commit hook + run on whole codebase
    - Update pre-commit hooks
    - Replace ALL type comments with type hints
    - Add pyupgrade, async, various flake8, Perflint, and more
      ruff linting rules
- Remove upstreamed patch:
  - remove-future-requirement.patch

OBS-URL: https://build.opensuse.org/request/show/1127710
OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/python-matrix-nio?expand=0&rev=8
2023-11-20 14:03:04 +00:00

78 lines
2.6 KiB
RPMSpec

#
# spec file for package python-matrix-nio
#
# Copyright (c) 2023 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/
#
Name: python-matrix-nio
Version: 0.23.0
Release: 0
Summary: A Python Matrix client library, designed according to sans I/O principles
License: ISC
URL: https://github.com/poljar/matrix-nio
Source: https://files.pythonhosted.org/packages/source/m/matrix_nio/matrix_nio-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-aiofiles >= 0.6.0
Requires: python-aiohttp >= 3.8.6
Requires: python-aiohttp-socks >= 0.7.0
Requires: python-h11 >= 0.12.0
Requires: python-h2 >= 4.0.0
Requires: python-jsonschema >= 3.2.0
Requires: python-pycryptodome >= 3.10.1
Requires: python-unpaddedbase64 >= 2.1.0
Suggests: python-atomicwrites >= 1.4.0
Suggests: python-cachetools >= 4.2.1
Suggests: python-dataclasses >= 0.7
Suggests: python-peewee >= 3.14.4
Suggests: python-python-olm >= 3.1.3
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module aiofiles >= 0.6.0}
BuildRequires: %{python_module aiohttp >= 3.8.6}
BuildRequires: %{python_module aiohttp-socks >= 0.7.0}
BuildRequires: %{python_module h11 >= 0.12.0}
BuildRequires: %{python_module h2 >= 4.0.0}
BuildRequires: %{python_module jsonschema >= 3.2.0}
BuildRequires: %{python_module pycryptodome >= 3.10.1}
BuildRequires: %{python_module unpaddedbase64 >= 2.1.0}
# /SECTION
%python_subpackages
%description
A Python Matrix client library, designed according to sans I/O principles.
%prep
%autosetup -p1 -n matrix_nio-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md
%license LICENSE.md
%{python_sitelib}/nio
%{python_sitelib}/matrix_nio-%{version}*-info
%changelog