14
0
forked from pool/python-pyee
Files
python-pyee/fix-build-requirements.patch
Tomáš Chvátal 53b5cb212c Accepting request 697772 from home:pgajdos
- 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
2019-04-25 09:33:09 +00:00

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.",