forked from pool/python-pyee
- 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
29 lines
1013 B
Diff
29 lines
1013 B
Diff
From: Antonio Larrosa <alarrosa@suse.com>
|
|
Subject: Fix build requirements which were in fact tests requirements
|
|
|
|
pytest-asyncio was build requirement by pyee's setup.py file, but
|
|
it was only used for tests. Fix it so we can build for all python flavors
|
|
and run tests only for python3 (where pytest-asyncio is available).
|
|
|
|
Index: pyee-6.0.0/setup.py
|
|
===================================================================
|
|
--- pyee-6.0.0.orig/setup.py 2019-04-13 19:47:29.000000000 +0200
|
|
+++ pyee-6.0.0/setup.py 2019-04-25 09:47:13.860816108 +0200
|
|
@@ -14,11 +14,14 @@ setup(
|
|
|
|
packages=find_packages(),
|
|
setup_requires=[
|
|
+ 'vcversioner'
|
|
+ ],
|
|
+ tests_require=[
|
|
+ 'twisted',
|
|
+ 'futures; python_version < "3.0"',
|
|
'pytest-runner',
|
|
'pytest-asyncio; python_version > "3.4"',
|
|
- 'vcversioner'
|
|
],
|
|
- tests_require=['twisted', 'futures; python_version < "3.0"'],
|
|
include_package_data=True,
|
|
|
|
description="A port of node.js's EventEmitter to python.",
|