From b1981f1a62646e41d5f5778cf5fe44761f1debf90cfc30e0239c99dcbc9c1242 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 20 Feb 2024 04:07:16 +0000 Subject: [PATCH] - 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 --- pyee-11.1.0.tar.gz | 3 +++ pyee-9.0.4.tar.gz | 3 --- python-pyee.changes | 16 ++++++++++++++++ python-pyee.spec | 24 +++++++++++------------- 4 files changed, 30 insertions(+), 16 deletions(-) create mode 100644 pyee-11.1.0.tar.gz delete mode 100644 pyee-9.0.4.tar.gz diff --git a/pyee-11.1.0.tar.gz b/pyee-11.1.0.tar.gz new file mode 100644 index 0000000..992e055 --- /dev/null +++ b/pyee-11.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b53af98f6990c810edd9b56b87791021a8f54fd13db4edd1142438d44ba2263f +size 29806 diff --git a/pyee-9.0.4.tar.gz b/pyee-9.0.4.tar.gz deleted file mode 100644 index ad6a115..0000000 --- a/pyee-9.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2770c4928abc721f46b705e6a72b0c59480c4a69c9a83ca0b00bb994f1ea4b32 -size 20232 diff --git a/python-pyee.changes b/python-pyee.changes index 68636bd..525c4a4 100644 --- a/python-pyee.changes +++ b/python-pyee.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Tue Feb 20 04:06:27 UTC 2024 - Steve Kowalik + +- 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. + ------------------------------------------------------------------- Wed Oct 5 00:02:22 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-pyee.spec b/python-pyee.spec index 5410ecd..e590162 100644 --- a/python-pyee.spec +++ b/python-pyee.spec @@ -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