14
0
forked from pool/python-pyee
Files
python-pyee/python-pyee.spec

68 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pyee
#
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
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pyee
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
Version: 9.0.4
Release: 0
Summary: A port of node.js's EventEmitter to python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/jfhbrook/pyee
Source: https://files.pythonhosted.org/packages/source/p/pyee/pyee-%{version}.tar.gz
BuildRequires: %{python_module PyHamcrest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module vcversioner}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-trio if %python-base >= 3.7}
BuildRequires: %{python_module trio if %python-base >= 3.7}
# /SECTION
%python_subpackages
%description
pyee supplies an ``EventEmitter`` object similar to the ``EventEmitter``
from Node.js.
%prep
%setup -q -n pyee-%{version}
sed -i 's/^from mock import/from unittest.mock import/' tests/test_*.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/pyee
%{python_sitelib}/pyee-%{version}*-info
%changelog