SHA256
1
0
forked from pool/python-pyee

34 Commits

Author SHA256 Message Date
2dfc4d7508 Accepting request 1323042 from devel:languages:python
- Fix pytest section in pyproject.toml.

OBS-URL: https://build.opensuse.org/request/show/1323042
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=16
2025-12-16 14:56:36 +00:00
e326fe4e44 - Fix pytest section in pyproject.toml.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=33
2025-12-16 04:48:14 +00:00
7af6f49c8c Accepting request 1291956 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1291956
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=15
2025-07-11 19:30:43 +00:00
ce6922271a - Update to 13.0.0
- Add gh-pr184_tests.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=31
2025-07-11 11:15:05 +00:00
591275f223 Accepting request 1248482 from devel:languages:python
- update to 12.1.1:
  * Fixed ReadTheDocs build
  * `build.os` is now a required parameter
  * `python.version` is replaced by `build.tools`
  * New features in `pyee.asyncio.AsyncIOEventEmitter`:
  * `wait_for_complete` method to wait for all running handlers
    to complete execution
  * `cancel` method to cancel execution of all running handlers
  * `complete` property that's `True` when no handlers are
    currently running
  * Updated changelog for v12 release to describe where to find
    alternatives to deprecated and removed imports
  * Add support for Python 3.13

- Enable sle15_python_module_pythons.

OBS-URL: https://build.opensuse.org/request/show/1248482
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=14
2025-02-26 16:18:09 +00:00
9e8d3416fb - update to 12.1.1:
* Fixed ReadTheDocs build
  * `build.os` is now a required parameter
  * `python.version` is replaced by `build.tools`
  * New features in `pyee.asyncio.AsyncIOEventEmitter`:
  * `wait_for_complete` method to wait for all running handlers
    to complete execution
  * `cancel` method to cancel execution of all running handlers
  * `complete` property that's `True` when no handlers are
    currently running
  * Updated changelog for v12 release to describe where to find
    alternatives to deprecated and removed imports
  * Add support for Python 3.13
- Enable sle15_python_module_pythons.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=29
2025-02-25 20:37:08 +00:00
22efa806ec Accepting request 1218357 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1218357
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=13
2024-10-27 10:24:46 +00:00
af31b8336f add %{?sle15_python_module_pythons} to spec
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=27
2024-10-25 14:41:21 +00:00
672b9d2472 Accepting request 1198063 from devel:languages:python
- update to 12.0.0:
  * Remove deprecated imports:
   `pyee.BaseEventEmitter`
   `pyee.AsyncIOEventEmitter`
   `pyee.TwistedEventEmitter`
   `pyee.ExecutorEventEmitter`
   `pyee.TrioEventEmitter`
  * Add `PyeeError` which inherits from `PyeeException`, and use
    throughout
  * Deprecate direct use of `PyeeException`
  * Add project URLs to pyproject.toml and PyPI
  * Use ActionLint v2
  * Fix GitHub release action

  Refactor developer setup to use a local virtualenv
  * Fix Python 2.7 in tox
- Fix LICENSE url
- Initial release of python-pyee 3.0.3

OBS-URL: https://build.opensuse.org/request/show/1198063
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=12
2024-09-02 11:14:30 +00:00
6a7877e590 Accepting request 1147686 from devel:languages:python
- Update to 11.1.0:
  * Support Python 3.12
  * Require Python >= 3.8
  * Update classifiers in `pyproject.toml`
  * Remove package.json/package-lock.json
  * Switch from `setup.py` to `pyproject.toml` (still using setuptools)
  * Minor type annotation bugfixes
  * Store AsyncIO Futures in a set
  * `EventEmitter` supports pickling
  * Dependency on mock removed in favor of unittest.mock
  * Drop 3.7 support
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1147686
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=11
2024-02-20 20:14:51 +00:00
b1981f1a62 - Update to 11.1.0:
* Support Python 3.12
  * Require Python >= 3.8
  * Update classifiers in `pyproject.toml`
  * Remove package.json/package-lock.json
  * Switch from `setup.py` to `pyproject.toml` (still using setuptools)
  * Minor type annotation bugfixes
  * Store AsyncIO Futures in a set
  * `EventEmitter` supports pickling
  * Dependency on mock removed in favor of unittest.mock
  * Drop 3.7 support
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=23
2024-02-20 04:07:16 +00:00
9922fe334d Accepting request 1008243 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1008243
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=10
2022-10-06 05:42:34 +00:00
b32ef4101b Accepting request 1008056 from home:yarunachalam:branches:devel:languages:python
- Update to 2022/02/04 Version 9.0.4
  Add py.typed file to MANIFEST.in (ensures mypy actually respects the type annotations)
- Update to 2022/01/18 Version 9.0.3
  Improve type safety of EventEmitter#on, EventEmitter#add_listener and EventEmitter#listens_to by parameterizing the Handler
  Minor fixes to documentation
- Update to 2022/01/17 Version 9.0.2
  Add tests_require to setup.py, fixing COPR build
  Install as an editable package in environment.yml and requirements_docs.txt, fixing Conda workflows and ReadTheDocs respectively
- Update to 2022/01/17 Version 9.0.1
  Fix regression where EventEmitter#listeners began crashing when called with uninitialized listeners
- Update to 2022/01/17 Version 9.0.0
  Compatibility:
  Drop 3.6 support
  New features:
  New EventEmitter.event_names() method (see PR #96)
  Type annotations and type checking with pyright
  Exprimental pyee.cls module exposing an @evented class decorator and a @on method decorator (see PR #84)
  Moved/deprecated interfaces:
  pyee.TwistedEventEmitter -> pyee.twisted.TwistedEventEmitter
  pyee.AsyncIOEventEmitter -> pyee.asyncio.AsyncIOEventEmitter
  pyee.ExecutorEventEmitter -> pyee.executor.ExecutorEventEmitter
  pyee.TrioEventEmitter -> pyee.trio.TrioEventEmitter
  Removed interfaces:
  pyee.CompatEventEmitter
  Documentation fixes:
  Add docstring to BaseEventEmitter
  Update docstrings to reference EventEmitter instead of BaseEventEmitter throughout
  Developer Setup & CI:
  Migrated builds from Travis to GitHub Actions
  Refactor developer setup to use a local virtualenv

OBS-URL: https://build.opensuse.org/request/show/1008056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=21
2022-10-05 14:58:38 +00:00
618a16fe83 Accepting request 932769 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/932769
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=9
2021-11-21 22:52:10 +00:00
46ab537d0f Accepting request 932514 from home:pgajdos:python
- version update to 8.2.2
  2021/8/14 Version 8.2.1
  -----------
  - Add .readthedocs.yaml file
  - Remove vcversioner dependency from docs build
  2021/8/14 Version 8.2.0
  -----------------------
  - Remove test_requires and setup_requires directives from setup.py (closing #82)
  - Remove vcversioner from dependencies
  - Streamline requirements.txt and environment.yml files
  - Update and extend CONTRIBUTING.rst
  - CI with GitHub Actions instead of Travis (closing #56)
  - Format all code with black
  - Switch default branch to ``main``
  - Add the CHANGELOG to Sphinx docs (closing #51)
  - Updated copyright information

OBS-URL: https://build.opensuse.org/request/show/932514
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=20
2021-11-21 10:59:21 +00:00
Richard Brown
29e9c6138a Accepting request 882538 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/882538
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=8
2021-04-01 12:18:16 +00:00
b8e741e90a Accepting request 882451 from home:bnavigator:branches:devel:languages:python
- make build requirement specification fit for python39 flavor

OBS-URL: https://build.opensuse.org/request/show/882451
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=18
2021-04-01 10:32:08 +00:00
8c9b3391f6 Accepting request 864168 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/864168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=7
2021-01-19 15:02:48 +00:00
393fc7a024 Accepting request 864167 from home:bnavigator:branches:devel:languages:python
- Update to 8.1.0
  * Improved thread safety in base EventEmitter
  * Documentation fix in ExecutorEventEmitter
- Changelog for Version 8.0.1
  * Update README to reflect new API
- Changelog for Version 8.0.0
  * Drop support for Python 2.7
  * Remove CompatEventEmitter and rename BaseEventEmitter to
    EventEmitter
  * Create an alias for BaseEventEmitter with a deprecation warning
- Changelog for Version 7.0.4
  * setup_requires vs tests_require now correct
  * tests_require updated to pass in tox
  * 3.7 testing removed from tox
  * 2.7 testing removed from Travis
- Changelog for Version 7.0.3
  * Tag license as MIT in setup.py
  * Update requirements and environment to pip -e the package
- Changelog for Version 7.0.2
  * Support Python 3.8 by attempting to import TimeoutError from
    asyncio.exceptions
  * Add LICENSE to package manifest
  * Add trio testing to tox
  * Add Python 3.8 to tox
  * Fix Python 2.7 in tox 
- Clarify test requirements for different python versions
- Drop python-pyee-import-asyncio.exceptions.patch merged upstream

OBS-URL: https://build.opensuse.org/request/show/864167
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=16
2021-01-18 23:14:18 +00:00
d07c5fdf06 Accepting request 789777 from devel:languages:python
- version update to 7.0.1
  - Some tweaks to the docs
  - Added a ``TrioEventEmitter`` class for intended use with trio
  - ``AsyncIOEventEmitter`` now correctly handles cancellations
  - Add a new experimental ``pyee.uplift`` API for adding new functionality to
    existing event emitters
- deleted patches
  - fix-build-requirements.patch (upstreamed)
- Add patch python-pyee-import-asyncio.exceptions.patch

OBS-URL: https://build.opensuse.org/request/show/789777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=6
2020-03-31 15:14:16 +00:00
Tomáš Chvátal
70788ae75f - Add patch python-pyee-import-asyncio.exceptions.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=14
2020-03-30 12:57:49 +00:00
Tomáš Chvátal
7964916f5a Accepting request 788972 from home:pgajdos:python
- version update to 7.0.1
  - Some tweaks to the docs
  - Added a ``TrioEventEmitter`` class for intended use with trio
  - ``AsyncIOEventEmitter`` now correctly handles cancellations
  - Add a new experimental ``pyee.uplift`` API for adding new functionality to
    existing event emitters
- deleted patches
  - fix-build-requirements.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/788972
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=13
2020-03-30 12:52:19 +00:00
a44ad00a4f Accepting request 697804 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/697804
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=5
2019-04-26 20:54:29 +00:00
Tomáš Chvátal
53b5cb212c Accepting request 697772 from home:pgajdos
- version update to 6.0.0
  * Added a ``BaseEventEmitter`` class which is entirely synchronous and
    intended for simple use and for subclassing
  * Added an ``AsyncIOEventEmitter`` class for intended use with asyncio
  * Added a ``TwistedEventEmitter`` class for intended use with twisted
  * Added an ``ExecutorEventEmitter`` class which runs events in an executor
  * Deprecated ``EventEmitter`` (use one of the new classes)
- modified patches
  % fix-build-requirements.patch (refreshed)

OBS-URL: https://build.opensuse.org/request/show/697772
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=11
2019-04-25 09:33:09 +00:00
f2dfb575d0 Accepting request 659585 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659585
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=4
2018-12-24 10:41:51 +00:00
ddfaf6489f Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=9
2018-12-04 13:50:44 +00:00
7df90a61e5 Accepting request 645345 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/645345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=3
2018-10-31 12:14:34 +00:00
Tomáš Chvátal
a301e0eafc Accepting request 645310 from home:TheBlackCat:branches:devel:languages:python
- python-hamcrest was renamed to python-PyHamcrest

OBS-URL: https://build.opensuse.org/request/show/645310
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=7
2018-10-29 19:06:59 +00:00
ad4e3bda26 Accepting request 624307 from devel:languages:python
Clean up SPEC
Add missing BuildRequires

OBS-URL: https://build.opensuse.org/request/show/624307
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=2
2018-07-31 13:56:37 +00:00
222ce982af - Clean up SPEC
- Add missing BuildRequires

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=5
2018-07-19 15:55:13 +00:00
18d9cafcf7 Accepting request 582449 from devel:languages:python
New package python-pyee, required by mycroft-core

OBS-URL: https://build.opensuse.org/request/show/582449
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyee?expand=0&rev=1
2018-03-16 09:39:42 +00:00
Tomáš Chvátal
88c1c66f53 Accepting request 582442 from home:alarrosa:branches:devel:languages:python
- Fix LICENSE url

OBS-URL: https://build.opensuse.org/request/show/582442
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=3
2018-03-04 20:29:07 +00:00
Tomáš Chvátal
f27c660678 Accepting request 578302 from home:alarrosa:branches:devel:languages:python
- pytest-asyncio was build requirement by pyee's setup.py file, but
  it was only used for tests. On top of that, the python-pytest-asyncio
  package is only available for python3, so now we only do tests on
  python3 and a patch was added to fix the requirements:
  * fix-build-requirements.patch
- Since the tests require at least python 3.5, only run the tests when
  suse_version >= 1500

OBS-URL: https://build.opensuse.org/request/show/578302
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=2
2018-02-20 10:06:59 +00:00
Tomáš Chvátal
b911d5cbca Accepting request 563115 from home:alarrosa:branches:devel:languages:python
New package python-pyee, required by mycroft-core

OBS-URL: https://build.opensuse.org/request/show/563115
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=1
2018-01-10 09:42:59 +00:00
6 changed files with 159 additions and 10 deletions

98
gh-pr184_tests.patch Normal file
View File

@@ -0,0 +1,98 @@
From 1b229fadbadf3c5d94b0a9a53461ea7157bb1bff Mon Sep 17 00:00:00 2001
From: Josh Holbrook <josh.holbrook@gmail.com>
Date: Mon, 26 May 2025 11:18:43 -0800
Subject: [PATCH 1/2] Remove fixture from trio test
---
tests/test_trio.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/test_trio.py b/tests/test_trio.py
index 4ac814c..3edc54f 100644
--- a/tests/test_trio.py
+++ b/tests/test_trio.py
@@ -12,7 +12,7 @@ class PyeeTestError(Exception):
@pytest.mark.trio
-async def test_trio_emit():
+async def test_trio_emit() -> None:
"""Test that the trio event emitter can handle wrapping
coroutines
"""
@@ -35,7 +35,7 @@ async def event_handler():
@pytest.mark.trio
-async def test_trio_once_emit():
+async def test_trio_once_emit() -> None:
"""Test that trio event emitters also wrap coroutines when
using once
"""
@@ -58,7 +58,7 @@ async def event_handler():
@pytest.mark.trio
-async def test_trio_error():
+async def test_trio_error() -> None:
"""Test that trio event emitters can handle errors when
wrapping coroutines
"""
@@ -86,7 +86,7 @@ async def handle_error(exc):
@pytest.mark.trio
-async def test_sync_error(event_loop):
+async def test_sync_error() -> None:
"""Test that regular functions have the same error handling as coroutines"""
async with TrioEventEmitter() as ee:
From b1624101d42df56177f6b6461e73c20039cb9b92 Mon Sep 17 00:00:00 2001
From: Josh Holbrook <josh.holbrook@gmail.com>
Date: Mon, 26 May 2025 11:24:41 -0800
Subject: [PATCH 2/2] Type check trio tests
---
tests/test_trio.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/tests/test_trio.py b/tests/test_trio.py
index 3edc54f..5c42ec8 100644
--- a/tests/test_trio.py
+++ b/tests/test_trio.py
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
+from typing import NoReturn
+
import pytest
import pytest_trio.plugin # type: ignore # noqa
import trio
@@ -64,7 +66,7 @@ async def test_trio_error() -> None:
"""
async with TrioEventEmitter() as ee:
- send, rcv = trio.open_memory_channel(1)
+ send, rcv = trio.open_memory_channel[PyeeTestError](1)
@ee.on("event")
async def event_handler():
@@ -90,14 +92,14 @@ async def test_sync_error() -> None:
"""Test that regular functions have the same error handling as coroutines"""
async with TrioEventEmitter() as ee:
- send, rcv = trio.open_memory_channel(1)
+ send, rcv = trio.open_memory_channel[PyeeTestError](1)
@ee.on("event")
- def sync_handler():
+ def sync_handler() -> NoReturn:
raise PyeeTestError()
@ee.on("error")
- async def handle_error(exc):
+ async def handle_error(exc) -> None:
async with send:
await send.send(exc)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b53af98f6990c810edd9b56b87791021a8f54fd13db4edd1142438d44ba2263f
size 29806

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c480603f4aa2927d4766eb41fa82793fe60a82cbfdb8d688e0d08c55a534e145
size 29675

3
pyee-13.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b391e3c5a434d1f5118a25615001dbc8f669cf410ab67d04c4d4e07c55481c37
size 31250

View File

@@ -1,3 +1,53 @@
-------------------------------------------------------------------
Tue Dec 16 04:47:59 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Fix pytest section in pyproject.toml.
-------------------------------------------------------------------
Fri Jul 11 10:38:21 UTC 2025 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Add gh-pr184_tests.patch to repair failing tests
-------------------------------------------------------------------
Sat Jun 28 07:30:03 UTC 2025 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- update to 13.0.0:
* Type checking improvements
* Introduce overloads for ee.on
* Add None return type for functions as appropriate
* Type self as Any in all methods
* Local and CI tasks for type checking with mypy
* mypy type checking passes
* pyright type checking passes
* Addition of mypy to development dependencies
* Removed conditional import of iscoroutine
* This was implemented to support Python 3.3, which was dropped long ago
* Removed type stub for twisted.python.Failure
* This was to address a typing issue in unsupported versions of Twisted
* Export Handler type in pyee/__init__.py
-------------------------------------------------------------------
Tue Feb 25 20:36:45 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 12.1.1:
* Fixed ReadTheDocs build
* `build.os` is now a required parameter
* `python.version` is replaced by `build.tools`
* New features in `pyee.asyncio.AsyncIOEventEmitter`:
* `wait_for_complete` method to wait for all running handlers
to complete execution
* `cancel` method to cancel execution of all running handlers
* `complete` property that's `True` when no handlers are
currently running
* Updated changelog for v12 release to describe where to find
alternatives to deprecated and removed imports
* Add support for Python 3.13
-------------------------------------------------------------------
Thu Sep 26 21:02:27 UTC 2024 - Guang Yee <gyee@suse.com>
- Enable sle15_python_module_pythons.
-------------------------------------------------------------------
Sat Aug 31 12:19:50 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyee
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,19 @@
#
%{?sle15_python_module_pythons}
Name: python-pyee
Version: 12.0.0
Version: 13.0.0
Release: 0
Summary: A port of node.js's EventEmitter to python
License: MIT
URL: https://github.com/jfhbrook/pyee
Source: https://files.pythonhosted.org/packages/source/p/pyee/pyee-%{version}.tar.gz
# https://github.com/jfhbrook/pyee/pull/184
Patch0: gh-pr184_tests.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module vcversioner}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -44,7 +46,9 @@ pyee supplies an ``EventEmitter`` object similar to the ``EventEmitter``
from Node.js.
%prep
%setup -q -n pyee-%{version}
%autosetup -n pyee-%{version} -p1
# https://github.com/jfhbrook/pyee/issues/189
sed -ie 's/\(tool.pytest\)/\1.ini_options/' pyproject.toml
%build
%pyproject_wheel