debian/0000755000000000000000000000000012276463302007173 5ustar debian/control0000644000000000000000000000242712276463302010603 0ustar Source: crochet Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: MAAS Maintainers Build-Depends: debhelper (>= 8.1.0~), python (>= 2.7), python-setuptools, python-twisted Standards-Version: 3.9.4 Homepage: https://pypi.python.org/pypi/crochet X-Python-Version: >= 2.7 Package: python-crochet Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-twisted Description: 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. debian/source/0000755000000000000000000000000012272505737010500 5ustar debian/source/format0000644000000000000000000000001412272505737011706 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000055012276463302011045 0ustar crochet (1.0.0-0ubuntu2) trusty; urgency=low * debian/rules: Run unittests. * debian/patches/ubuntu_fix_tests.patch: Fix tests. -- Andres Rodriguez Tue, 11 Feb 2014 11:25:56 -0500 crochet (1.0.0-0ubuntu1) trusty; urgency=low * Initial release -- Gavin Panella Thu, 30 Jan 2014 12:12:21 -0500 debian/patches/0000755000000000000000000000000012276463302010622 5ustar debian/patches/ubuntu_fix_tests.patch0000644000000000000000000000562312276463302015263 0ustar Index: crochet-1.0.0/crochet/tests/test_api.py =================================================================== --- crochet-1.0.0.orig/crochet/tests/test_api.py 2014-02-11 12:54:32.331208672 -0500 +++ crochet-1.0.0/crochet/tests/test_api.py 2014-02-11 12:54:47.167208531 -0500 @@ -28,10 +28,10 @@ # Twisted. reapAllProcesses = None -from .._eventloop import (EventLoop, EventualResult, TimeoutError, +from crochet._eventloop import (EventLoop, EventualResult, TimeoutError, ResultRegistry, ReactorStopped) -from .test_setup import FakeReactor -from .. import (_main, setup, in_reactor, retrieve_result, _store, no_setup, +from test_setup import FakeReactor +from crochet.__init__ import (_main, setup, in_reactor, retrieve_result, _store, no_setup, run_in_reactor, wait_for_reactor) Index: crochet-1.0.0/crochet/tests/test_resultstore.py =================================================================== --- crochet-1.0.0.orig/crochet/tests/test_resultstore.py 2014-02-11 12:54:32.331208672 -0500 +++ crochet-1.0.0/crochet/tests/test_resultstore.py 2014-02-11 12:54:32.327208672 -0500 @@ -5,8 +5,8 @@ from twisted.trial.unittest import TestCase from twisted.internet.defer import Deferred, fail, succeed -from .._resultstore import ResultStore -from .._eventloop import EventualResult +from crochet._resultstore import ResultStore +from crochet._eventloop import EventualResult class ResultStoreTests(TestCase): Index: crochet-1.0.0/crochet/tests/test_setup.py =================================================================== --- crochet-1.0.0.orig/crochet/tests/test_setup.py 2014-02-11 12:54:32.331208672 -0500 +++ crochet-1.0.0/crochet/tests/test_setup.py 2014-02-11 12:54:32.327208672 -0500 @@ -11,7 +11,7 @@ from twisted.python.runtime import platform from twisted.internet.task import Clock -from .._eventloop import EventLoop, ThreadLogObserver, _store +from crochet._eventloop import EventLoop, ThreadLogObserver, _store class FakeReactor(Clock): Index: crochet-1.0.0/crochet/tests/test_util.py =================================================================== --- crochet-1.0.0.orig/crochet/tests/test_util.py 2014-02-11 12:54:32.331208672 -0500 +++ crochet-1.0.0/crochet/tests/test_util.py 2014-02-11 12:54:32.327208672 -0500 @@ -6,7 +6,7 @@ from twisted.trial.unittest import TestCase -from .._util import synchronized +from crochet._util import synchronized class FakeLock(object): Index: crochet-1.0.0/crochet/tests/test_shutdown.py =================================================================== --- crochet-1.0.0.orig/crochet/tests/test_shutdown.py 2014-02-11 12:54:32.331208672 -0500 +++ crochet-1.0.0/crochet/tests/test_shutdown.py 2014-02-11 12:54:32.327208672 -0500 @@ -2,7 +2,7 @@ Tests for _shutdown. """ -from __future__ import absolute_import +from __future__ import absolute_import, division import sys import subprocess debian/patches/series0000644000000000000000000000002712276463302012036 0ustar ubuntu_fix_tests.patch debian/docs0000644000000000000000000000004012272505737010045 0ustar README.rst requirements-dev.txt debian/rules0000755000000000000000000000030312276463302010247 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 override_dh_auto_test: python -m unittest discover crochet/tests debian/watch0000644000000000000000000000012012272505737010222 0ustar version=3 https://pypi.python.org/packages/source/c/crochet/crochet-(.+).tar.gz debian/copyright0000644000000000000000000000422512272507223011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-crochet Source: https://pypi.python.org/pypi/crochet Files: * Copyright: 2013 Itamar Turner-Trauring 2013 Twisted Matrix Labs License: MIT 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. Files: debian/* Copyright: 2014 Gavin Panella 2014 Canonical Ltd. License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/compat0000644000000000000000000000000212272505737010376 0ustar 8