Package Details: python-msgspec 0.18.6-3

Git Clone URL: https://aur.archlinux.org/python-msgspec.git (read-only, click to copy)
Package Base: python-msgspec
Description: A fast and friendly JSON/MessagePack library, with optional schema validation
Upstream URL: https://github.com/jcrist/msgspec
Licenses: BSD-3-Clause
Submitter: rumpelsepp
Maintainer: rumpelsepp
Last Packager: rumpelsepp
Votes: 3
Popularity: 0.66
First Submitted: 2023-01-02 10:26 (UTC)
Last Updated: 2024-10-25 09:13 (UTC)

Latest Comments

1 2 Next › Last »

corax2.05 commented on 2024-12-13 17:57 (UTC)

Please provide a build for aarch64 again. The build works flawlessly

user20159 commented on 2024-12-07 20:34 (UTC)

python-pytest-asyncio seems to be required:

==> Beginne check()...
Traceback (most recent call last):
  File "/usr/bin/pytest", line 8, in <module>
    sys.exit(console_main())
             ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 201, in console_main
    code = main()
           ^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 156, in main
    config = _prepareconfig(args, plugins)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 341, in _prepareconfig
    config = pluginmanager.hook.pytest_cmdline_parse(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
    raise exception.with_traceback(exception.__traceback__)
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
    teardown.throw(exception)  # type: ignore[union-attr]
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/helpconfig.py", line 105, in pytest_cmdline_parse
    config = yield
             ^^^^^
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 1140, in pytest_cmdline_parse
    self.parse(args)
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 1494, in parse
    self._preparse(args, addopts=addopts)
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 1381, in _preparse
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 421, in load_setuptools_entrypoints
    plugin = ep.load()
             ^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "/usr/lib/python3.12/site-packages/_pytest/assertion/rewrite.py", line 184, in exec_module
    exec(co, module.__dict__)
  File "/usr/lib/python3.12/site-packages/maubot/testing/__init__.py", line 17, in <module>
    from .fixtures import *  # noqa: F401,F403
    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/_pytest/assertion/rewrite.py", line 184, in exec_module
    exec(co, module.__dict__)
  File "/usr/lib/python3.12/site-packages/maubot/testing/fixtures.py", line 23, in <module>
    import pytest_asyncio
ModuleNotFoundError: No module named 'pytest_asyncio'
==> FEHLER: Ein Fehler geschah in check().
    Breche ab...

morsmortium commented on 2024-11-05 06:13 (UTC)

Does not build, full log: https://0x0.st/XG60.txt

tests/utils.py                                                            15      0   100%
tmp_install/usr/lib/python3.12/site-packages/msgspec/__init__.py          17      0   100%
tmp_install/usr/lib/python3.12/site-packages/msgspec/_json_schema.py     289      3    99%
tmp_install/usr/lib/python3.12/site-packages/msgspec/_utils.py           164     21    87%
tmp_install/usr/lib/python3.12/site-packages/msgspec/_version.py           4      0   100%
tmp_install/usr/lib/python3.12/site-packages/msgspec/inspect.py          343      9    97%
tmp_install/usr/lib/python3.12/site-packages/msgspec/json.py               2      0   100%
tmp_install/usr/lib/python3.12/site-packages/msgspec/msgpack.py            1      0   100%
tmp_install/usr/lib/python3.12/site-packages/msgspec/structs.py           36      1    97%
tmp_install/usr/lib/python3.12/site-packages/msgspec/toml.py              51     13    75%
tmp_install/usr/lib/python3.12/site-packages/msgspec/yaml.py              38      3    92%
------------------------------------------------------------------------------------------
TOTAL                                                                  12341    244    98%

================================================================== mypy ===================================================================
Found 63 errors in 11 files (checked 21 source files)
========================================================= short test summary info =========================================================
FAILED tests/basic_typing_examples.py::mypy-status
FAILED tests/test_common.py::mypy
FAILED tests/test_constraints.py::mypy
FAILED tests/test_convert.py::mypy
FAILED tests/test_convert.py::ruff::format
FAILED tests/test_inspect.py::mypy
FAILED tests/test_json.py::mypy
FAILED tests/test_msgpack.py::mypy
FAILED tests/test_schema.py::mypy
FAILED tests/test_struct.py::mypy
FAILED tests/test_toml.py::mypy
FAILED tests/test_utils.py::mypy
FAILED tests/test_yaml.py::mypy
=================================== 13 failed, 6050 passed, 51 skipped, 2 warnings in 116.71s (0:01:56) ===================================
==> ERROR: A failure occurred in check().
    Aborting...

Traace commented on 2024-11-02 16:12 (UTC) (edited on 2024-11-02 16:14 (UTC) by Traace)

Building on x86_64 does not work anymore.


Extension modules: msgspec._core, yaml._yaml (total: 2)
/home/USER/.cache/python-msgspec/PKGBUILD: line 50: 126000 Aborted                 (core dumped) pytest tests/
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'python-msgspec-0.18.6-3': 
error: packages failed to build: python-msgspec-0.18.6-3

backd00r commented on 2024-10-30 15:11 (UTC) (edited on 2024-10-30 15:14 (UTC) by backd00r)


==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'python-msgspec-0.18.6-3': 
error: packages failed to build: python-msgspec-0.18.6-3

cqzw555 commented on 2024-05-14 06:37 (UTC)

I confirm that it can be built on aarch64 and has passed the test.@carsme The message during the construction process is as follows:

$ makepkg -f                
==> Making package: python-msgspec 0.18.6-3 (Tue 14 May 2024 02:32:49 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating msgspec git repo...
==> Validating source files with sha256sums...
    msgspec ... Passed
==> Extracting sources...
  -> Creating working copy of msgspec git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
* Getting build dependencies for wheel...
running egg_info
writing msgspec.egg-info/PKG-INFO
writing dependency_links to msgspec.egg-info/dependency_links.txt
writing requirements to msgspec.egg-info/requires.txt
writing top-level names to msgspec.egg-info/top_level.txt
reading manifest file 'msgspec.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'msgspec.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
copying msgspec/structs.py -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/msgpack.py -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/json.py -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/inspect.py -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/_json_schema.py -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/_utils.py -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/yaml.py -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/toml.py -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/__init__.py -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/__init__.pyi -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/structs.pyi -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/msgpack.pyi -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/json.pyi -> build/lib.linux-aarch64-cpython-312/msgspec
copying msgspec/py.typed -> build/lib.linux-aarch64-cpython-312/msgspec
UPDATING build/lib.linux-aarch64-cpython-312/msgspec/_version.py
set build/lib.linux-aarch64-cpython-312/msgspec/_version.py to '0.18.6'
running build_ext
UPDATING build/lib.linux-aarch64-cpython-312/msgspec/_version.py
set build/lib.linux-aarch64-cpython-312/msgspec/_version.py to '0.18.6'
installing to build/bdist.linux-aarch64/wheel
running install
running install_lib
creating build/bdist.linux-aarch64/wheel
creating build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/_core.cpython-312-aarch64-linux-gnu.so -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/__init__.pyi -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/structs.py -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/_version.py -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/msgpack.py -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/json.py -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/inspect.py -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/structs.pyi -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/msgpack.pyi -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/json.pyi -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/py.typed -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/_json_schema.py -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/_utils.py -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/yaml.py -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/toml.py -> build/bdist.linux-aarch64/wheel/msgspec
copying build/lib.linux-aarch64-cpython-312/msgspec/__init__.py -> build/bdist.linux-aarch64/wheel/msgspec
running install_egg_info
running egg_info
writing msgspec.egg-info/PKG-INFO
writing dependency_links to msgspec.egg-info/dependency_links.txt
writing requirements to msgspec.egg-info/requires.txt
writing top-level names to msgspec.egg-info/top_level.txt
reading manifest file 'msgspec.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'msgspec.egg-info/SOURCES.txt'
Copying msgspec.egg-info to build/bdist.linux-aarch64/wheel/msgspec-0.18.6-py3.12.egg-info
running install_scripts
creating build/bdist.linux-aarch64/wheel/msgspec-0.18.6.dist-info/WHEEL
creating '/home/cqzw/.cache/yay/python-msgspec/src/msgspec/dist/.tmp-_tq1xxnv/msgspec-0.18.6-cp312-cp312-linux_aarch64.whl' and adding 'build/bdist.linux-aarch64/wheel' to it
adding 'msgspec/__init__.py'
adding 'msgspec/__init__.pyi'
adding 'msgspec/_core.cpython-312-aarch64-linux-gnu.so'
adding 'msgspec/_json_schema.py'
adding 'msgspec/_utils.py'
adding 'msgspec/_version.py'
adding 'msgspec/inspect.py'
adding 'msgspec/json.py'
adding 'msgspec/json.pyi'
adding 'msgspec/msgpack.py'
adding 'msgspec/msgpack.pyi'
adding 'msgspec/py.typed'
adding 'msgspec/structs.py'
adding 'msgspec/structs.pyi'
adding 'msgspec/toml.py'
adding 'msgspec/yaml.py'
adding 'msgspec-0.18.6.dist-info/LICENSE'
adding 'msgspec-0.18.6.dist-info/METADATA'
adding 'msgspec-0.18.6.dist-info/WHEEL'
adding 'msgspec-0.18.6.dist-info/top_level.txt'
adding 'msgspec-0.18.6.dist-info/RECORD'
removing build/bdist.linux-aarch64/wheel
Successfully built msgspec-0.18.6-cp312-cp312-linux_aarch64.whl
==> Starting check()...
=================================================== test session starts ====================================================
platform linux -- Python 3.12.3, pytest-8.1.2, pluggy-1.4.0
rootdir: /home/cqzw/.cache/yay/python-msgspec/src/msgspec
configfile: setup.cfg
plugins: typeguard-4.2.1
collected 6049 items / 1 skipped                                                                                           

tests/test_JSONTestSuite.py ........................................................................................ [  1%]
.................................................................................................................... [  3%]
...............................................................................                                      [  4%]
tests/test_common.py ............................................................................................... [  6%]
.................................................................................................................... [  8%]
.................................................................................................................... [ 10%]
.................................................................................................................... [ 12%]
.................................................................................................................... [ 13%]
.................................................................................................................... [ 15%]
.................................................................................................................... [ 17%]
.................................................................................................................... [ 19%]
.................................................................................................................... [ 21%]
.................................................................................................................... [ 23%]
...............................................sss.................................................................. [ 25%]
.................................................................................................................... [ 27%]
.................................................................................................................... [ 29%]
.......................................................................................................              [ 30%]
tests/test_constraints.py .......................................................................................... [ 32%]
.................................................................................................................... [ 34%]
...............................................................                                                      [ 35%]
tests/test_convert.py .............................................................................................. [ 36%]
.................................................................................................................... [ 38%]
.................................................................ssss...................................sss......... [ 40%]
.................................................................................................................... [ 42%]
.................................................................................................................... [ 44%]
.................................................................................................................... [ 46%]
........................................................                                                             [ 47%]
tests/test_cpylint.py ..                                                                                             [ 47%]
tests/test_inspect.py .............................................................................................. [ 49%]
..........................................................................                                           [ 50%]
tests/test_integration.py ....                                                                                       [ 50%]
tests/test_json.py ................................................................................................. [ 51%]
.................................................................................................................... [ 53%]
.................................................................................................................... [ 55%]
.................................................................................................................... [ 57%]
.................................................................................................................... [ 59%]
.................................................................................................................... [ 61%]
.................................................................................................................... [ 63%]
.................................................................................................................... [ 65%]
.................................................................................................................... [ 67%]
.................................................................................................................... [ 69%]
.................................................................................................................... [ 71%]
.................................................................................................................... [ 73%]
.................................................................................................................... [ 74%]
.................................................................................................................... [ 76%]
.................................................................................................................... [ 78%]
...........................                                                                                          [ 79%]
tests/test_msgpack.py .............................................................................................. [ 80%]
.................................................................................................................... [ 82%]
.................................................................................................................... [ 84%]
.................................................................................................................... [ 86%]
.................................................................................................................... [ 88%]
...............                                                                                                      [ 88%]
tests/test_mypy.py .                                                                                                 [ 88%]
tests/test_raw.py ............                                                                                       [ 88%]
tests/test_schema.py ............................................................................................... [ 90%]
.....................                                                                                                [ 90%]
tests/test_struct.py ............................................................................................... [ 92%]
.................................................................................................................... [ 94%]
.......................................................................................                              [ 95%]
tests/test_to_builtins.py .......................................................................................... [ 97%]
...................................................                                                                  [ 98%]
tests/test_toml.py .s.sssssssssssssssssssssssssssssssssssssss.......                                                 [ 98%]
tests/test_utils.py ................                                                                                 [ 99%]
tests/test_yaml.py .................................................                                                 [100%]

============================================ 5999 passed, 51 skipped in 20.79s =============================================
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "python-msgspec"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: python-msgspec 0.18.6-3 (Tue 14 May 2024 02:33:53 PM CST)

carsme commented on 2024-04-07 19:47 (UTC)

@cqzw555, have you confirmed it builds on aarch64?

cqzw555 commented on 2024-04-01 11:23 (UTC)

@carsme,would you please add 'aarch64' to 'arch'.

carsme commented on 2024-01-12 18:25 (UTC)

@Thunderbolt, these are already added as optional dependencies.