Package Details: pytype 2024.10.11-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: jaxvanyang
Last Packager: jaxvanyang
Votes: 0
Popularity: 0.000000
First Submitted: 2018-10-02 17:05 (UTC)
Last Updated: 2024-11-11 05:08 (UTC)

Pinned Comments

jaxvanyang commented on 2024-08-03 00:24 (UTC) (edited on 2024-11-11 05:11 (UTC) by jaxvanyang)

This package won't build due to check() fail. And it's still NOT USABLE if you skip check because Python 3.12 is not fully supported in this release, see https://github.com/google/pytype/issues/1475. You can verify that with the --nocheck option of makepkg, or using an AUR helper like paru -Syu --nocheck pytype.

I'll just wait for a new release to fix this. Or you can use pytype-git instead.

UPD: I have to disable some tests from the upstream to make it pass the check. But at least, it builds and is usable at least for now.

Latest Comments

jaxvanyang commented on 2024-08-19 08:02 (UTC) (edited on 2024-08-19 08:06 (UTC) by jaxvanyang)

@Calimero

Sorry for the inconvenience. But reverting won't work either, because there's no release working with Python 3.12. You can install this package with the --nocheck option of makepkg, or using an AUR helper like paru -Syu --nocheck pytype. But when you use it, you will get:

$ pytype -d import-error src                                  15:57:02
Computing dependencies
Analyzing 1 sources with 0 local dependencies
ninja: Entering directory `.pytype'
...
Python versions > 3.11 are not yet supported.
ninja: build stopped: subcommand failed.
Leaving directory '.pytype'

The only way to make it work is to reverting your system Python version to 3.11, but it's not feasible. So I suggest to use pytype-git for now. It can't pass the check either, but it works with Python 3.12. I disabled check there, so you can install it like other AUR packages.

Calimero commented on 2024-08-13 13:04 (UTC)

How about reverting the version here to the last one that still works? (I know about the pesky out-of-date flaggers, but you shouldn't let it be a deterrent) Neverminding failing updates for those of us who already have it installed, the choice to leave the package broken is a real problem for new installations.

jaxvanyang commented on 2024-08-03 00:24 (UTC) (edited on 2024-11-11 05:11 (UTC) by jaxvanyang)

This package won't build due to check() fail. And it's still NOT USABLE if you skip check because Python 3.12 is not fully supported in this release, see https://github.com/google/pytype/issues/1475. You can verify that with the --nocheck option of makepkg, or using an AUR helper like paru -Syu --nocheck pytype.

I'll just wait for a new release to fix this. Or you can use pytype-git instead.

UPD: I have to disable some tests from the upstream to make it pass the check. But at least, it builds and is usable at least for now.

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 :-(