Package Details: python-tree-sitter 0.21.3-1

Git Clone URL: https://aur.archlinux.org/python-tree-sitter.git (read-only, click to copy)
Package Base: python-tree-sitter
Description: Python bindings to the tree-sitter parsing library
Upstream URL: https://github.com/tree-sitter/py-tree-sitter
Licenses: MIT
Submitter: notEvil
Maintainer: notEvil
Last Packager: notEvil
Votes: 3
Popularity: 0.91
First Submitted: 2023-06-25 21:56 (UTC)
Last Updated: 2024-04-01 12:28 (UTC)

Latest Comments

MarsSeed commented on 2023-12-21 13:36 (UTC)

Thank you.

Please kindly see Arch package guidelines#Architectures:

The arch array should contain 'x86_64' if the compiled package is architecture-specific.

The installable Pacman tarball (currently created with the name python-tree-sitter-0.20.4-1-any.pkg.tar.zst) contains a binary ELF executable SO file, which is only compatible with the specific architecture it was compiled for.

notEvil commented on 2023-12-21 13:02 (UTC)

Will do. Regarding arch, https://github.com/tree-sitter/py-tree-sitter/blob/master/setup.py states any and the C-extension should build on almost any arch afaik.

MarsSeed commented on 2023-12-21 12:38 (UTC)

Please kindly declare binary architecture(s) in arch=() array; at least 'x86_64'. As this is not an 'any' arch package.

Also please make sure to install the custom license file, and add depends=glibc in line with Arch package guidelines (cf. Licenses, Package dependencies paragraphs).

See namcap analysis report:

$ namcap python-tree-sitter-0.20.4-1-any.pkg.tar.zst

ERROR: ELF file ('usr/lib/python3.11/site-packages/tree_sitter/binding.cpython-311-x86_64-linux-gnu.so')
    found in an 'any' package.
ERROR: Missing custom license directory (usr/share/licenses/python-tree-sitter)
WARNING: Dependency glibc detected and implicitly satisfied (libraries ['usr/lib/libc.so.6'] needed in files 
    ['usr/lib/python3.11/site-packages/tree_sitter/binding.cpython-311-x86_64-linux-gnu.so'])

Thank you for maintaining this package!

notEvil commented on 2023-06-25 22:41 (UTC)

Thanks, I will add 'python' as dependency. Regarding tree-sitter: the package is not strictly required since tree-sitter is a parser generator. It depends on packages like tree-sitter-c, but it would be difficult to enumerate all as optional dependency, see https://aur.archlinux.org/packages?O=0&SeB=nd&K=tree-sitter-&outdated=&SB=p&SO=d&PP=50&submit=Go

MarsSeed commented on 2023-06-25 22:28 (UTC)

And as far as I understand, it also needs tree-sitter in depends, since it is a Python bindings library to the former.

MarsSeed commented on 2023-06-25 22:26 (UTC)

Please add the required runtime `depends=('python') to PKGBUILD.