Package Details: python-eliot 1.15.0-3

Git Clone URL: https://aur.archlinux.org/python-eliot.git (read-only, click to copy)
Package Base: python-eliot
Description: Logging that tells you why it happened
Upstream URL: https://github.com/itamarst/eliot
Licenses: Apache-2.0
Submitter: pfm
Maintainer: micwoj92
Last Packager: micwoj92
Votes: 1
Popularity: 0.44
First Submitted: 2019-02-23 00:02 (UTC)
Last Updated: 2024-07-01 18:24 (UTC)

Latest Comments

djp commented on 2023-08-21 21:02 (UTC) (edited on 2023-08-21 21:02 (UTC) by djp)

The tests on this currently fail. This patch allows the tests to succeed, and the changes should be in line with the original test cases.

Instructions:

  1. Add the diff as package.patch, sha256sum = 694332cfd1f17ac5966589fa70e861fa3af4f1cafb518d7e00c2dbf4cc416dff.

  2. add patch --strip=1 --input=${srcdir}/package.patch to the prepare method of the PKGBUILD after cd...

diff --unified --recursive --text eliot-1.14.0.orig/eliot/json.py eliot-1.14.0.new/eliot/json.py
--- eliot-1.14.0.orig/eliot/json.py     2019-05-21 09:16:53.000000000 -0400
+++ eliot-1.14.0.new/eliot/json.py      2023-08-21 16:43:26.795415128 -0400
@@ -19,7 +19,7 @@
                 return float(o)
             if isinstance(o, numpy.integer):
                 return int(o)
-            if isinstance(o, (numpy.bool, numpy.bool_)):
+            if isinstance(o, (bool, numpy.bool_)):
                 return bool(o)
             if isinstance(o, numpy.ndarray):
                 if o.size > 10000:
diff --unified --recursive --text eliot-1.14.0.orig/eliot/tests/test_filter.py eliot-1.14.0.new/eliot/tests/test_filter.py
--- eliot-1.14.0.orig/eliot/tests/test_filter.py        2019-05-21 09:16:53.000000000 -0400
+++ eliot-1.14.0.new/eliot/tests/test_filter.py 2023-08-21 13:39:48.934977020 -0400
@@ -93,7 +93,7 @@
         """
         By default L{main} uses information from L{sys}.
         """
-        self.assertEqual(inspect.getargspec(main).defaults, (sys,))
+        self.assertEqual(inspect.getfullargspec(main).defaults, (sys,))

     def test_stdinOut(self):
         """
diff --unified --recursive --text eliot-1.14.0.orig/eliot/tests/test_json.py eliot-1.14.0.new/eliot/tests/test_json.py
--- eliot-1.14.0.orig/eliot/tests/test_json.py  2019-05-21 09:16:53.000000000 -0400
+++ eliot-1.14.0.new/eliot/tests/test_json.py   2023-08-21 16:46:55.628223998 -0400
@@ -33,9 +33,9 @@
             np.float32(12.5),
             np.float64(2.0),
             np.float16(0.5),
-            np.bool(True),
-            np.bool(False),
-            np.bool_(True),
+            bool(True),
+            bool(False),
+            bool(True),
             np.unicode_("hello"),
             np.byte(12),
             np.short(12),

lmartinez-mirror commented on 2022-03-13 01:36 (UTC)

Couldn't reproduce under a clean chroot. Report it to upstream?

carlosal1015 commented on 2022-03-09 16:33 (UTC)

Hi, I have the following message error:

==> Starting check()...
========================================================================== test session starts ===========================================================================
platform linux -- Python 3.10.2, pytest-7.0.1, pluggy-0.13.1
rootdir: /tmp/makepkg/python-eliot/src/eliot-1.14.0
plugins: hypothesis-6.17.0
collected 486 items                                                                                                                                                      

eliot/tests/test_action.py .......................................................................................................                                 [ 21%]
eliot/tests/test_api.py ..........                                                                                                                                 [ 23%]
eliot/tests/test_coroutines.py ...                                                                                                                                 [ 23%]
eliot/tests/test_dask.py ssssssss                                                                                                                                  [ 25%]
eliot/tests/test_filter.py .........                                                                                                                               [ 27%]
eliot/tests/test_generators.py ........                                                                                                                            [ 29%]
eliot/tests/test_journald.py .F

================================================================================ FAILURES ================================================================================
_____________________________________________________________________ SdJournaldSendTests.test_large _____________________________________________________________________

self = <eliot.tests.test_journald.SdJournaldSendTests testMethod=test_large>

    def test_large(self):
        """
        L{sd_journal_send} can write a C{MESSAGE} field with a large message.
        """
>       self.assert_roundtrip(b"hello world" * 20000)

eliot/tests/test_journald.py:106: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
eliot/tests/test_journald.py:84: in assert_roundtrip
    result = last_journald_message()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def last_journald_message():
        """
        @return: Last journald message from this process as a dictionary in
             journald JSON format.
        """
        # It may take a little for messages to actually reach journald, so we
        # write out marker message and wait until it arrives. We can then be
        # sure the message right before it is the one we want.
        marker = unicode(uuid4())
        sd_journal_send(MESSAGE=marker.encode("ascii"))
        for i in range(500):
            messages = check_output(
                [
                    b"journalctl",
                    b"-a",
                    b"-o",
                    b"json",
                    b"-n2",
                    b"_PID=" + str(getpid()).encode("ascii"),
                ]
            )
            messages = [loads(m) for m in messages.splitlines()]
            if len(messages) == 2 and messages[1]["MESSAGE"] == marker:
                return messages[0]
            sleep(0.01)
>       raise RuntimeError("Message never arrived?!")
E       RuntimeError: Message never arrived?!

eliot/tests/test_journald.py:63: RuntimeError
============================================================================ warnings summary ============================================================================
../../../../../usr/lib/python3.10/site-packages/testtools/distutilscmd.py:7
  /usr/lib/python3.10/site-packages/testtools/distutilscmd.py:7: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.core import Command

.:0
  :0: UserWarning: You do not have a working installation of the service_identity module: 'No module named 'service_identity''.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.

../../../../../usr/lib/python3.10/unittest/result.py:24
  /usr/lib/python3.10/unittest/result.py:24: PytestCollectionWarning: cannot collect test class 'TestResult' because it has a __init__ constructor (from: eliot/tests/test_testing.py)
    class TestResult(object):

eliot/tests/test_action.py::StartActionAndTaskTests::test_startActionNoLogger
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_action.py:675: DeprecationWarning: add_destination is deprecated since 1.1.0. Use add_destinations instead.
    add_destination(messages.append)

eliot/tests/test_action.py::StartActionAndTaskTests::test_startTaskNoLogger
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_action.py:655: DeprecationWarning: add_destination is deprecated since 1.1.0. Use add_destinations instead.
    add_destination(messages.append)

eliot/tests/test_action.py::SerializationTests::test_continueTaskNoLogger
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_action.py:813: DeprecationWarning: add_destination is deprecated since 1.1.0. Use add_destinations instead.
    add_destination(messages.append)

eliot/tests/test_action.py::FailedActionExtractionTests::test_error_in_extracter
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/_traceback.py:44: DeprecationWarning: MessageType.__call__() is deprecated since 1.11.0, use MessageType.log() instead.
    msg = TRACEBACK_MESSAGE(reason=exception, traceback=traceback, exception=typ)

eliot/tests/test_action.py::PreserveContextTests::test_callable_only_once
eliot/tests/test_action.py::PreserveContextTests::test_no_context
eliot/tests/test_action.py::PreserveContextTests::test_with_context_calls_underlying
eliot/tests/test_action.py::PreserveContextTests::test_with_context_preserves_context
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_action.py:1493: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="child")

eliot/tests/test_action.py::IndividualMessageLogTests::test_log_adds_timestamp
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_action.py:1732: DeprecationWarning: add_destination is deprecated since 1.1.0. Use add_destinations instead.
    add_destination(messages.append)

eliot/tests/test_action.py::IndividualMessageLogTests::test_log_creates_new_dictionary
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_action.py:1714: DeprecationWarning: add_destination is deprecated since 1.1.0. Use add_destinations instead.
    add_destination(messages.append)

eliot/tests/test_action.py::IndividualMessageLogTests::test_part_of_action
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_action.py:1746: DeprecationWarning: add_destination is deprecated since 1.1.0. Use add_destinations instead.
    add_destination(messages.append)

eliot/tests/test_api.py::PublicAPITests::test_addDestination
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_api.py:24: DeprecationWarning: add_destination is deprecated since 1.1.0. Use add_destinations instead.
    eliot.addDestination(o)

eliot/tests/test_coroutines.py::CoroutineTests::test_await_inherits_coroutine_contexts
eliot/tests/test_coroutines.py::CoroutineTests::test_interleaved_coroutines
eliot/tests/test_coroutines.py::CoroutineTests::test_multiple_coroutines_contexts
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_coroutines.py:37: DeprecationWarning: There is no current event loop
    loop = asyncio.get_event_loop()

eliot/tests/test_coroutines.py::CoroutineTests::test_await_inherits_coroutine_contexts
eliot/tests/test_coroutines.py::CoroutineTests::test_interleaved_coroutines
eliot/tests/test_coroutines.py::CoroutineTests::test_multiple_coroutines_contexts
eliot/tests/test_coroutines.py::CoroutineTests::test_multiple_coroutines_contexts
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_coroutines.py:38: DeprecationWarning: There is no current event loop
    futures = [asyncio.ensure_future(f()) for f in async_functions]

eliot/tests/test_filter.py::MainTests::test_default
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_filter.py:96: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    self.assertEqual(inspect.getargspec(main).defaults, (sys,))

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_close_generator
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:250: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="a")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_close_generator
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:255: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="c")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_concurrent_generators
eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_concurrent_generators
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:214: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="{}-a".format(which))

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_concurrent_generators
eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_concurrent_generators
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:216: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="{}-b".format(which))

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_concurrent_generators
eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_concurrent_generators
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:218: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="{}-c".format(which))

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_concurrent_generators
eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_concurrent_generators
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:219: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="{}-d".format(which))

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_generator_and_non_generator
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:172: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="a")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_generator_and_non_generator
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:187: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="0")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_generator_and_non_generator
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:175: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="b")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_generator_and_non_generator
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:189: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="1")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_generator_and_non_generator
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:177: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="c")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_generator_and_non_generator
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:179: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="d")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_generator_and_non_generator
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:191: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="2")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_nested_generators
eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_nested_generators
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:271: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="m-recurse={}".format(recurse))

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_inside_another_action
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:112: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="a")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_inside_another_action
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:114: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="b")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_inside_another_action
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:116: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="c")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_inside_another_action
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:117: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="d")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_inside_nested_actions
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:135: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="a")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_inside_nested_actions
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:137: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="b")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_inside_nested_actions
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:141: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="c")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_inside_nested_actions
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:142: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="d")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_inside_nested_actions
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:143: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="e")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_none
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:76: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="hello")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_none
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:78: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="goodbye")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_value
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:95: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="hello")

eliot/tests/test_generators.py::EliotFriendlyGeneratorFunctionTests::test_yield_value
  /tmp/makepkg/python-eliot/src/eliot-1.14.0/eliot/tests/test_generators.py:97: DeprecationWarning: Message.log() is deprecated since 1.11.0, use Action.log() or eliot.log_message() instead.
    Message.log(message_type="goodbye")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================================================== short test summary info =========================================================================
FAILED eliot/tests/test_journald.py::SdJournaldSendTests::test_large - RuntimeError: Message never arrived?!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================= 1 failed, 134 passed, 8 skipped, 55 warnings in 33.98s =========================================================
==> ERROR: A failure occurred in check().
    Aborting...
checking dependencies...

fungible commented on 2022-01-15 10:05 (UTC) (edited on 2022-01-16 04:40 (UTC) by fungible)

Checksums are incorrect.

>> md5sum eliot-1.14.0.tar.gz
d2327da7dd7533bb2af111477da73767  eliot-1.14.0.tar.gz

Also missing dependencies:

python-six python-zope-interface python-pyrsistent python-boltons