## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-ypy-websocket Version: 0.8.4 Release: %autorelease Summary: WebSocket connector for Ypy License: MIT URL: https://github.com/y-crdt/ypy-websocket Source: %{pypi_source ypy_websocket} BuildArch: noarch BuildRequires: python3-devel # Manual test requires because upstream [test] extra # contains also mypy and pre-commit. BuildRequires: python3-pytest BuildRequires: python3-pytest-asyncio BuildRequires: python3-websockets %global _description %{expand: ypy-websocket is an async WebSocket connector for Ypy.} %description %_description %package -n python3-ypy-websocket Summary: %{summary} %description -n python3-ypy-websocket %_description %prep %autosetup -p1 -n ypy_websocket-%{version} # Remove upper version limit from aiofiles sed -i "s/,<23//" pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files ypy_websocket %check # test_ypy_yjs.py requires https://www.npmjs.com/package/yjs %pytest --ignore=tests/test_ypy_yjs.py %files -n python3-ypy-websocket -f %{pyproject_files} %doc README.md %changelog * Thu Feb 23 2023 Lumir Balhar 0.8.4-1 - Update to 0.8.4 (rhbz#2171400) * Fri Feb 17 2023 Lumír Balhar - 0.8.2-2 - Fix FTI with newer aiofiles * Thu Jan 05 2023 Lumír Balhar - 0.8.2-1 - Initial package