14
0
forked from pool/python-pyee

- 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
This commit is contained in:
2024-02-20 04:07:16 +00:00
committed by Git OBS Bridge
parent b32ef4101b
commit b1981f1a62
4 changed files with 30 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyee
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,27 +16,26 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pyee
Version: 9.0.4
Version: 11.1.0
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 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
Requires: python-typing_extensions
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}
BuildRequires: %{python_module pytest-trio}
# /SECTION
%python_subpackages
@@ -46,22 +45,21 @@ 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
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%doc README.md
%license LICENSE
%{python_sitelib}/pyee
%{python_sitelib}/pyee-%{version}*-info
%{python_sitelib}/pyee-%{version}.dist-info
%changelog