diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 11727ea..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Joshua Holbrook - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/pyee-7.0.1.tar.gz b/pyee-7.0.1.tar.gz deleted file mode 100644 index ed48708..0000000 --- a/pyee-7.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b0e5b89b17c8bd52a3c6517a545187907a8c69ce90169d29ebd8d2d5d7e4bc7d -size 14754 diff --git a/pyee-8.1.0.tar.gz b/pyee-8.1.0.tar.gz new file mode 100644 index 0000000..7fbde0d --- /dev/null +++ b/pyee-8.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92dacc5bd2bdb8f95aa8dd2585d47ca1c4840e2adb95ccf90034d64f725bfd31 +size 16397 diff --git a/python-pyee-import-asyncio.exceptions.patch b/python-pyee-import-asyncio.exceptions.patch deleted file mode 100644 index 68395b2..0000000 --- a/python-pyee-import-asyncio.exceptions.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: pyee-7.0.1/tests/test_async.py -=================================================================== ---- pyee-7.0.1.orig/tests/test_async.py 2020-01-30 21:22:49.000000000 +0100 -+++ pyee-7.0.1/tests/test_async.py 2020-03-27 10:10:34.734403451 +0100 -@@ -4,7 +4,7 @@ import pytest - import pytest_asyncio.plugin # noqa - - from asyncio import Future, wait_for --from concurrent.futures import TimeoutError -+from asyncio.exceptions import TimeoutError - from mock import Mock - - from twisted.internet.defer import ensureDeferred, succeed diff --git a/python-pyee.changes b/python-pyee.changes index 0edb3d9..178eb82 100644 --- a/python-pyee.changes +++ b/python-pyee.changes @@ -1,3 +1,34 @@ +------------------------------------------------------------------- +Mon Jan 18 22:37:12 UTC 2021 - Benjamin Greiner + +- 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 + ------------------------------------------------------------------- Thu Mar 26 14:04:57 UTC 2020 - pgajdos@suse.com diff --git a/python-pyee.spec b/python-pyee.spec index 3c67080..a433418 100644 --- a/python-pyee.spec +++ b/python-pyee.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyee # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,18 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-pyee -Version: 7.0.1 +Version: 8.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 -Source99: https://raw.githubusercontent.com/jfhbrook/pyee/master/LICENSE -# test_async.py: import asyncio.exception.TimeoutError -# https://github.com/jfhbrook/pyee/issues/68 -Patch0: python-pyee-import-asyncio.exceptions.patch BuildRequires: %{python_module PyHamcrest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module vcversioner} @@ -37,10 +34,9 @@ BuildRequires: python-rpm-macros BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Twisted} -BuildRequires: %{python_module mock} -BuildRequires: %{python_module pytest-runner} -BuildRequires: python3-pytest-asyncio -BuildRequires: python3-pytest-trio +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: (python38-pytest-trio if python38-base else (python3-pytest-trio if python3-base >= 3.7)) +BuildRequires: (python38-trio if python38-base else (python3-trio if python3-base >= 3.7)) # /SECTION %python_subpackages @@ -50,9 +46,8 @@ from Node.js. %prep %setup -q -n pyee-%{version} -%patch0 -p1 -# https://github.com/jfhbrook/pyee/issues/58 -cp %{SOURCE99} . +sed -i '/pytest-runner/ d' setup.py +sed -i 's/^from mock import/from unittest.mock import/' tests/test_*.py %build %python_build @@ -62,16 +57,12 @@ cp %{SOURCE99} . %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# Only run tests for python3 (see test requirements) -%{python_expand # -if [ "${python_flavor}" == "python3" ]; then - python3 setup.py test -fi -} +%pytest %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pyee +%{python_sitelib}/pyee-%{version}*-info %changelog