Package Details: python-cbor 1.0.0-10

Git Clone URL: https://aur.archlinux.org/python-cbor.git (read-only, click to copy)
Package Base: python-cbor
Description: CBOR rfc7049 for Python
Upstream URL: https://github.com/brianolson/cbor_py
Licenses: Apache
Submitter: arojas
Maintainer: pizzaman
Last Packager: pizzaman
Votes: 2
Popularity: 0.000001
First Submitted: 2023-04-01 10:11 (UTC)
Last Updated: 2023-09-04 00:37 (UTC)

Latest Comments

morsmortium commented on 2025-06-16 17:28 (UTC)

_ TestRoot.testable _
Expected None, but test returned False. Did you mean to use `assert` instead of `return`?
- Captured log call -
WARNING  cbor.tests.test_cbor:test_cbor.py:66 non-testable case TestRoot skipped
_ TestPyPy.testable _
Expected None, but test returned True. Did you mean to use `assert` instead of `return`?
_ TestPyC.testable _
Expected None, but test returned False. Did you mean to use `assert` instead of `return`?
- Captured log call -
WARNING  cbor.tests.test_cbor:test_cbor.py:66 non-testable case TestPyC skipped
_ TestCPy.testable _
Expected None, but test returned False. Did you mean to use `assert` instead of `return`?
- Captured log call -
WARNING  cbor.tests.test_cbor:test_cbor.py:66 non-testable case TestCPy skipped
_ TestCC.testable _
Expected None, but test returned False. Did you mean to use `assert` instead of `return`?
- Captured log call -
WARNING  cbor.tests.test_cbor:test_cbor.py:66 non-testable case TestCC skipped
_ TestPyPy.testable _
Expected None, but test returned True. Did you mean to use `assert` instead of `return`?
= warnings summary =
cbor/tests/test_cbor.py::TestCBORPyPy::testable
  /usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TestRoot.testable of <class 'cbor.tests.test_cbor.TestCBORPyPy'>>)
    return self.run(*args, **kwds)

cbor/tests/test_cbor.py::TestCBORCPy::testable
  /usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TestRoot.testable of <class 'cbor.tests.test_cbor.TestCBORCPy'>>)
    return self.run(*args, **kwds)

cbor/tests/test_cbor.py::TestCBORPyC::testable
  /usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TestRoot.testable of <class 'cbor.tests.test_cbor.TestCBORPyC'>>)
    return self.run(*args, **kwds)

cbor/tests/test_cbor.py::TestCBORCC::testable
  /usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TestRoot.testable of <class 'cbor.tests.test_cbor.TestCBORCC'>>)
    return self.run(*args, **kwds)

- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
= short test summary info =
FAILED cbor/tests/test_cbor.py::TestRoot::testable - Failed: Expected None, but test returned False. Did you mean to use `assert` instead of `return`?
FAILED cbor/tests/test_cbor.py::TestPyPy::testable - Failed: Expected None, but test returned True. Did you mean to use `assert` instead of `return`?
FAILED cbor/tests/test_cbor.py::TestPyC::testable - Failed: Expected None, but test returned False. Did you mean to use `assert` instead of `return`?
FAILED cbor/tests/test_cbor.py::TestCPy::testable - Failed: Expected None, but test returned False. Did you mean to use `assert` instead of `return`?
FAILED cbor/tests/test_cbor.py::TestCC::testable - Failed: Expected None, but test returned False. Did you mean to use `assert` instead of `return`?
FAILED cbor/tests/test_objects.py::TestPyPy::testable - Failed: Expected None, but test returned True. Did you mean to use `assert` instead of `return`?
= 6 failed, 57 passed, 4 warnings in 0.08s =

(Removed extra formatting characters so it fits in 5000 character limit)

pizzaman commented on 2023-09-04 00:39 (UTC)

@buker Thanks. Fixed.

buker commented on 2023-09-03 22:02 (UTC)

Please patch the line 28 in the PKGBUILD. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-cbor#n28

The path should be ../test_cbor_patch.diff instead of ../../test_cbor_patch.diff.

pizzaman commented on 2023-08-18 09:18 (UTC)

Should be working now.

hossbeast commented on 2023-04-02 17:51 (UTC)

I get the following build errors,

% makepkg -s -f
...
==> Starting build()...
/usr/lib/python3.10/site-packages/setuptools/_distutils/extension.py:134: UserWarning: Unknown Extension options: 'headers'
  warnings.warn(msg)
Traceback (most recent call last):
  File "/home/todd/python-cbor/src/cbor_py-b3af679e7cf3e12d50acb83c3c591fc5db9a658d/setup.py", line 129, in <module>
    main()
  File "/home/todd/python-cbor/src/cbor_py-b3af679e7cf3e12d50acb83c3c591fc5db9a658d/setup.py", line 117, in main
    setup(**setup_options)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 75, in _install_setup_requires
    dist = MinimalDistribution(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 57, in __init__
    super().__init__(filtered)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 486, in __init__
    for ep in metadata.entry_points(group='distutils.setup_keywords'):
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1021, in entry_points
    return SelectableGroups.load(eps).select(**params)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 459, in load
    ordered = sorted(eps, key=by_group)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1018, in <genexpr>
    eps = itertools.chain.from_iterable(
  File "/usr/lib/python3.10/importlib/metadata/_itertools.py", line 16, in unique_everseen
    k = key(element)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 943, in _normalized_name
    or super()._normalized_name
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 622, in _normalized_name
    return Prepared.normalize(self.name)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 871, in normalize
    return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
  File "/usr/lib/python3.10/re.py", line 209, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
==> ERROR: A failure occurred in build().
    Aborting...