Hello community, here is the log from the commit of package python-txaio for openSUSE:Factory checked in at 2020-06-06 23:37:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-txaio (Old) and /work/SRC/openSUSE:Factory/.python-txaio.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-txaio" Sat Jun 6 23:37:57 2020 rev:9 rq:791739 version:20.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-txaio/python-txaio.changes 2020-03-27 22:02:49.206985498 +0100 +++ /work/SRC/openSUSE:Factory/.python-txaio.new.3606/python-txaio.changes 2020-06-06 23:38:02.516659288 +0200 @@ -1,0 +2,6 @@ +Mon Apr 6 09:20:12 UTC 2020 - Marketa Calabkova <[email protected]> + +- update to 20.4.1 + * always use the asyncio loop of the thread which conducts the API call + +------------------------------------------------------------------- Old: ---- txaio-20.3.1.tar.gz New: ---- txaio-20.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-txaio.spec ++++++ --- /var/tmp/diff_new_pack.p4AkTT/_old 2020-06-06 23:38:05.804669607 +0200 +++ /var/tmp/diff_new_pack.p4AkTT/_new 2020-06-06 23:38:05.808669620 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-txaio -Version: 20.3.1 +Version: 20.4.1 Release: 0 Summary: WebSocket and WAMP in Python for Twisted and asyncio License: MIT @@ -32,7 +32,7 @@ BuildRequires: python2-devel BuildRequires: python3-testsuite Requires: python-six -Recommends: python-Twisted >= 12.1.0 +Recommends: python-Twisted >= 20.3.0 Recommends: python-zope.interface >= 3.6 BuildArch: noarch %ifpython2 @@ -40,7 +40,7 @@ Recommends: python-trollius %endif # SECTION test requirements -BuildRequires: %{python_module Twisted >= 12.1.0} +BuildRequires: %{python_module Twisted >= 20.3.0} BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} ++++++ txaio-20.3.1.tar.gz -> txaio-20.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/txaio-20.3.1/PKG-INFO new/txaio-20.4.1/PKG-INFO --- old/txaio-20.3.1/PKG-INFO 2020-03-22 21:14:04.671030800 +0100 +++ new/txaio-20.4.1/PKG-INFO 2020-03-31 21:04:44.039488800 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: txaio -Version: 20.3.1 +Version: 20.4.1 Summary: Compatibility API between asyncio/Twisted/Trollius Home-page: https://github.com/crossbario/txaio Author: Crossbar.io Technologies GmbH @@ -72,8 +72,8 @@ .. |Version| image:: https://img.shields.io/pypi/v/txaio.svg :target: https://pypi.python.org/pypi/txaio - .. |Build Status| image:: https://travis-ci.org/crossbario/txaio.svg?branch=master - :target: https://travis-ci.org/crossbario/txaio + .. |Build Status| image:: https://travis-ci.com/crossbario/txaio.svg?branch=master + :target: https://travis-ci.com/crossbario/txaio .. |Coverage| image:: https://codecov.io/github/crossbario/txaio/coverage.svg?branch=master :target: https://codecov.io/github/crossbario/txaio @@ -100,7 +100,7 @@ Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: Software Development :: Libraries :: Application Frameworks Requires-Python: >=3.5 -Provides-Extra: all +Provides-Extra: twisted Provides-Extra: asyncio Provides-Extra: dev -Provides-Extra: twisted +Provides-Extra: all diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/txaio-20.3.1/README.rst new/txaio-20.4.1/README.rst --- old/txaio-20.3.1/README.rst 2020-01-21 18:42:32.000000000 +0100 +++ new/txaio-20.4.1/README.rst 2020-03-30 15:31:18.000000000 +0200 @@ -64,8 +64,8 @@ .. |Version| image:: https://img.shields.io/pypi/v/txaio.svg :target: https://pypi.python.org/pypi/txaio -.. |Build Status| image:: https://travis-ci.org/crossbario/txaio.svg?branch=master - :target: https://travis-ci.org/crossbario/txaio +.. |Build Status| image:: https://travis-ci.com/crossbario/txaio.svg?branch=master + :target: https://travis-ci.com/crossbario/txaio .. |Coverage| image:: https://codecov.io/github/crossbario/txaio/coverage.svg?branch=master :target: https://codecov.io/github/crossbario/txaio diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/txaio-20.3.1/docs/index.rst new/txaio-20.4.1/docs/index.rst --- old/txaio-20.3.1/docs/index.rst 2020-01-21 18:42:32.000000000 +0100 +++ new/txaio-20.4.1/docs/index.rst 2020-03-30 15:31:18.000000000 +0200 @@ -64,8 +64,8 @@ .. |Version| image:: https://img.shields.io/pypi/v/txaio.svg :target: https://pypi.python.org/pypi/txaio -.. |Build Status| image:: https://travis-ci.org/crossbario/txaio.svg?branch=master - :target: https://travis-ci.org/crossbario/txaio +.. |Build Status| image:: https://travis-ci.com/crossbario/txaio.svg?branch=master + :target: https://travis-ci.com/crossbario/txaio .. |Coverage| image:: https://codecov.io/github/crossbario/txaio/coverage.svg?branch=master :target: https://codecov.io/github/crossbario/txaio diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/txaio-20.3.1/docs/releases.rst new/txaio-20.4.1/docs/releases.rst --- old/txaio-20.3.1/docs/releases.rst 2020-03-22 21:06:20.000000000 +0100 +++ new/txaio-20.4.1/docs/releases.rst 2020-03-30 12:50:10.000000000 +0200 @@ -1,11 +1,17 @@ txio releases ============= +master +------ + +- new: upload wheel to S3 (bucket "crossbarbuilder") in CI deploy stage +- fix: fix event loop threading issue (PR #163) + 20.3.1 ------ -- MISC: Remove python2 support -- NEW: support import-time framework selection +- new: support import-time framework selection +- fix: remove python2 support (finally) 20.1.1 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/txaio-20.3.1/setup.py new/txaio-20.4.1/setup.py --- old/txaio-20.3.1/setup.py 2020-01-21 18:42:32.000000000 +0100 +++ new/txaio-20.4.1/setup.py 2020-03-31 20:57:25.000000000 +0200 @@ -42,7 +42,7 @@ # extras_require_twisted = [ 'zope.interface>=3.6', # Zope Public License - 'twisted>=12.1.0', # MIT + 'twisted>=20.3.0', # MIT ] # asyncio dependencies: Python 3.5+ has asyncio builtin diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/txaio-20.3.1/txaio/_version.py new/txaio-20.4.1/txaio/_version.py --- old/txaio-20.3.1/txaio/_version.py 2020-03-22 21:06:20.000000000 +0100 +++ new/txaio-20.4.1/txaio/_version.py 2020-03-31 20:57:11.000000000 +0200 @@ -24,4 +24,4 @@ # ############################################################################### -__version__ = '20.3.1' +__version__ = '20.4.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/txaio-20.3.1/txaio/aio.py new/txaio-20.4.1/txaio/aio.py --- old/txaio-20.3.1/txaio/aio.py 2020-03-22 21:06:20.000000000 +0100 +++ new/txaio-20.4.1/txaio/aio.py 2020-03-27 10:12:03.000000000 +0100 @@ -309,10 +309,19 @@ using_asyncio = True def __init__(self, config): - if config.loop is None: - config.loop = asyncio.get_event_loop() self._config = config + @property + def _loop(self): + # if configured explicetly, then use this loop + if self._config.loop: + return self._config.loop + + # otherwise give out the event loop of the thread this is called in + # rather fetching the loop once in __init__, which may not neccessarily + # be called from the thread we now run the event loop in. + return asyncio.get_event_loop() + def failure_message(self, fail): """ :param fail: must be an IFailedFuture @@ -354,7 +363,7 @@ if result is not _unspecified and error is not _unspecified: raise ValueError("Cannot have both result and error.") - f = self._config.loop.create_future() + f = self._loop.create_future() if result is not _unspecified: resolve(f, result) elif error is not _unspecified: @@ -391,7 +400,7 @@ if isinstance(res, Future): return res elif iscoroutine(res): - return self._config.loop.create_task(res) + return self._loop.create_task(res) elif isinstance(res, AsyncGeneratorType): raise RuntimeError( "as_future() received an async generator function; does " @@ -408,7 +417,7 @@ def call_later(self, delay, fun, *args, **kwargs): # loop.call_later doesn't support kwargs real_call = functools.partial(fun, *args, **kwargs) - return self._config.loop.call_later(delay, real_call) + return self._loop.call_later(delay, real_call) def make_batched_timer(self, bucket_seconds, chunk_size=100): """ @@ -426,7 +435,7 @@ """ def get_seconds(): - return self._config.loop.time() + return self._loop.time() return _BatchedTimer( bucket_seconds * 1000.0, chunk_size, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/txaio-20.3.1/txaio.egg-info/PKG-INFO new/txaio-20.4.1/txaio.egg-info/PKG-INFO --- old/txaio-20.3.1/txaio.egg-info/PKG-INFO 2020-03-22 21:14:04.000000000 +0100 +++ new/txaio-20.4.1/txaio.egg-info/PKG-INFO 2020-03-31 21:04:43.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: txaio -Version: 20.3.1 +Version: 20.4.1 Summary: Compatibility API between asyncio/Twisted/Trollius Home-page: https://github.com/crossbario/txaio Author: Crossbar.io Technologies GmbH @@ -72,8 +72,8 @@ .. |Version| image:: https://img.shields.io/pypi/v/txaio.svg :target: https://pypi.python.org/pypi/txaio - .. |Build Status| image:: https://travis-ci.org/crossbario/txaio.svg?branch=master - :target: https://travis-ci.org/crossbario/txaio + .. |Build Status| image:: https://travis-ci.com/crossbario/txaio.svg?branch=master + :target: https://travis-ci.com/crossbario/txaio .. |Coverage| image:: https://codecov.io/github/crossbario/txaio/coverage.svg?branch=master :target: https://codecov.io/github/crossbario/txaio @@ -100,7 +100,7 @@ Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: Software Development :: Libraries :: Application Frameworks Requires-Python: >=3.5 -Provides-Extra: all +Provides-Extra: twisted Provides-Extra: asyncio Provides-Extra: dev -Provides-Extra: twisted +Provides-Extra: all diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/txaio-20.3.1/txaio.egg-info/requires.txt new/txaio-20.4.1/txaio.egg-info/requires.txt --- old/txaio-20.3.1/txaio.egg-info/requires.txt 2020-03-22 21:14:04.000000000 +0100 +++ new/txaio-20.4.1/txaio.egg-info/requires.txt 2020-03-31 21:04:43.000000000 +0200 @@ -1,23 +1,23 @@ [all] -twisted>=12.1.0 zope.interface>=3.6 +twisted>=20.3.0 [asyncio] [dev] -mock==1.3.0 -pep8>=1.6.2 -pyenchant>=1.6.6 -pytest-cov>=1.8.1 +wheel pytest>=2.6.4 +pytest-cov>=1.8.1 +pep8>=1.6.2 sphinx>=1.2.3 -sphinx_rtd_theme>=0.1.9 +pyenchant>=1.6.6 sphinxcontrib-spelling>=2.1.2 +sphinx_rtd_theme>=0.1.9 tox>=2.1.1 +mock==1.3.0 twine>=1.6.5 -wheel [twisted] -twisted>=12.1.0 zope.interface>=3.6 +twisted>=20.3.0
