From e082d772118972770781965620b786db8270af29 Mon Sep 17 00:00:00 2001 From: mcalabkova <> Date: Dec 01 2020 13:23:18 +0000 Subject: Update python-crochet to version 1.12.0 / rev 1 via SR 851833 https://build.opensuse.org/request/show/851833 by user mcalabkova + dimstar_suse dep of fedora-messaging --- diff --git a/.files b/.files new file mode 100644 index 0000000..cdeb993 Binary files /dev/null and b/.files differ diff --git a/.meta b/.meta new file mode 100644 index 0000000..9fa0cb8 --- /dev/null +++ b/.meta @@ -0,0 +1,11 @@ + + Crochet: Use Twisted Anywhere! + Crochet is an MIT-licensed library that makes it easier for blocking or threaded applications like Flask or Django to use the Twisted networking framework. Crochet provides the following features: + + - Runs Twisted's reactor in a thread it manages. + - The reactor shuts down automatically when the process' main thread finishes. + - Hooks up Twisted's log system to the Python standard library logging framework. Unlike Twisted's built-in logging bridge, this includes support for blocking Handler instances. + - A blocking API to eventual results (i.e. Deferred instances). This last feature can be used separately, so Crochet is also useful for normal Twisted applications that use threads. + + + diff --git a/.rev b/.rev new file mode 100644 index 0000000..245f045 --- /dev/null +++ b/.rev @@ -0,0 +1,10 @@ + + + 7bed1ff0af947cebf15222c1c4525cef + 1.12.0 + + dimstar_suse + dep of fedora-messaging + 851833 + + diff --git a/crochet-1.12.0.tar.gz b/crochet-1.12.0.tar.gz new file mode 120000 index 0000000..67fadb3 --- /dev/null +++ b/crochet-1.12.0.tar.gz @@ -0,0 +1 @@ +/ipfs/bafkreiepzpdeo2ebh5io45vrpipi2mvj6ojan6flm5tnkdeilyd6p63pwe \ No newline at end of file diff --git a/python-crochet.changes b/python-crochet.changes new file mode 100644 index 0000000..66f37bb --- /dev/null +++ b/python-crochet.changes @@ -0,0 +1,83 @@ +------------------------------------------------------------------- +Thu Nov 26 00:54:28 UTC 2020 - John Vandenberg + +- Remove no longer necessary bcond_with test +- Update to v1.12.0 + * Fix a timeout overflow bug in 32-bit machines + +------------------------------------------------------------------- +Fri Dec 27 12:36:41 UTC 2019 - John Vandenberg + +- Update to v1.11.0 + +------------------------------------------------------------------- +Thu Apr 14 13:07:24 UTC 2016 - termim@gmail.com + +- Update to 1.5.0 + * New features: + - Added support for Python 3.5. + * Removed features: + - Python 2.6, Python 3.3, and versions of Twisted < 15.0 are no longer + supported. + +- Update to 1.4.0 + * New features: + - Added support for Python 3.4. + * Documentation: + - Added a section on known issues and workarounds. + * Bug fixes: + - Main thread detection (used to determine when Crochet should + shutdown) is now less fragile. This means Crochet now supports more + environments, e.g. uWSGI. Thanks to Ben Picolo for the patch. + +------------------------------------------------------------------- +Sun Jun 1 03:38:25 UTC 2014 - termim@gmail.com + +- Update to 1.3.0 + * Bug fixes: + - It is now possible to call ``EventualResult.wait()`` (or functions + wrapped in ``wait_for``) at import time if another thread holds the + import lock. Thanks to Ken Struys for the patch. + +- Update to 1.2.0 + * New features: + - ``crochet.wait_for`` implements the timeout/cancellation pattern documented + in previous versions of Crochet. ``crochet.wait_for_reactor`` and + ``EventualResult.wait(timeout=None)`` are now deprecated, since lacking + timeouts they could potentially block forever. + - Functions wrapped with ``wait_for`` and ``run_in_reactor`` can now be accessed + via the ``wrapped_function`` attribute, to ease unit testing of the underlying + Twisted code. + * API changes: + - It is no longer possible to call ``EventualResult.wait()`` (or functions + wrapped with ``wait_for``) at import time, since this can lead to deadlocks + or prevent other threads from importing. Thanks to Tom Prince for the bug + report. + * Bug fixes: + - ``warnings`` are no longer erroneously turned into Twisted log messages. + - The reactor is now only imported when ``crochet.setup()`` or + ``crochet.no_setup()`` are called, allowing daemonization if only ``crochet`` + is imported (http://tm.tl/7105). Thanks to Daniel Nephin for the bug report. + +------------------------------------------------------------------- +Sat Mar 15 15:09:49 UTC 2014 - termim@gmail.com + +- Update to 1.1.0 + * Bug fixes: + - EventualResult.wait() can now be used safely from multiple threads, + thanks to Gavin Panella for reporting the bug. + - Fixed reentrancy deadlock in the logging code caused by + http://bugs.python.org/issue14976, thanks to Rod Morehead for + reporting the bug. + - Crochet now installs on Python 3.3 again, thanks to Ben Cordero. + - Crochet should now work on Windows, thanks to Konstantinos + Koukopoulos. + - Crochet tests can now run without adding its absolute path to + PYTHONPATH or installing it first. + * Documentation: + - EventualResult.original_failure is now documented. + +------------------------------------------------------------------- +Tue Feb 25 04:41:08 UTC 2014 - termim@gmail.com + +- v.1.0.0 - Initial rpm release diff --git a/python-crochet.spec b/python-crochet.spec new file mode 100644 index 0000000..0f38573 --- /dev/null +++ b/python-crochet.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-crochet +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-crochet +Version: 1.12.0 +Release: 0 +Summary: Use Twisted from any applications +License: MIT +Group: Development/Languages/Python +URL: https://github.com/itamarst/crochet +Source: https://files.pythonhosted.org/packages/source/c/crochet/crochet-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Twisted >= 16.0 +Requires: python-wrapt +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Twisted >= 16.0} +BuildRequires: %{python_module wrapt} +# /SECTION +%python_subpackages + +%description +Crochet is an MIT-licensed library that makes it easier for blocking or +threaded applications like Flask or Django to use the Twisted networking +framework. + +%prep +%setup -q -n crochet-%{version} +# Two tests fail on i586 only https://github.com/itamarst/crochet/issues/125 +# Disable only these two globally +sed -Ei 's/(test_control_c_is_possible|test_reactor_stop_unblocks)/_\1/' crochet/tests/test_api.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog