Package Details: pytype 2024.03.19-1

Git Clone URL: https://aur.archlinux.org/pytype.git (read-only, click to copy)
Package Base: pytype
Description: A static type analyzer for Python code
Upstream URL: https://google.github.io/pytype/
Licenses: MIT, Apache-2.0
Submitter: zhangkaizhao
Maintainer: None
Last Packager: cqzw555
Votes: 0
Popularity: 0.000000
First Submitted: 2018-10-02 17:05 (UTC)
Last Updated: 2024-04-01 11:47 (UTC)

Latest Comments

jaxvanyang commented on 2024-04-29 03:34 (UTC) (edited on 2024-04-29 05:25 (UTC) by jaxvanyang)

Arch has upgrade the system Python version to 3.12, which broke this package due to Python version > 3.11 is not supported for now. I am trying to fix the package by restricting the depend Python version to 3.11.

Edit: I just realized that it's not feasible, because we have to rebuild all the dependencies with Python 3.11.

zhangkaizhao commented on 2018-10-12 04:45 (UTC) (edited on 2018-10-12 05:02 (UTC) by zhangkaizhao)

@lilydjwg it works now.

Also, pytype and importlab defaults to Python 3.6 :-(

Yes... I have to install the python36 package from AUR to make pytype work as normal by default for now.

zhangkaizhao commented on 2018-10-12 03:48 (UTC)

@lilydjwg working on it.

ImportGraph.provenance is new in importlab 0.2 but no official release in GitHub repository.

See https://github.com/google/importlab/blob/master/CHANGELOG

Version 0.2 (2018-06-06)
* Track file provenance for all imports
* Don't allow relative imports in non-packages

I have updated python-importlab package to version 0.3.1 which came from PyPI https://pypi.org/project/importlab/

And the latest version of pytype in PyPI https://pypi.org/project/pytype/ is 2018.9.26 at the moment. But still keeps at 2018.9.19 in GitHub repository. The release process of python-importlab and pytype seems to be broken.

lilydjwg commented on 2018-10-11 09:35 (UTC)

CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

PyType requires 'bison'. The minimum required 'bison' version is 3.0.2.

After installing I get:

AttributeError: 'ImportGraph' object has no attribute 'provenance'

Also, pytype and importlab defaults to Python 3.6 :-(