Package: python3-pony
Version: 0.7.14-1
Severity: serious
User: debian-pyt...@lists.debian.org
Usertags: python3.10

Hello,

It seems the current version of ponyorm is broken on python3.10. If you
look closely at the logs from the latest DebCI run [1], it outputs
(without failing........):

> Sorry, but pony 0.7.14 requires Python of one of the following
> versions: 2.7, 3.3-3.9. You have version 3.10.0+

Actually running pony on 3.10 outputs something like:

======================================================================
ERROR: tests (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 154, in
loadTestsFromName
    module = __import__(module_name)
  File "/<<PKGBUILDDIR>>/tests/__init__.py", line 11, in <module>
    from . import base
  File "/<<PKGBUILDDIR>>/tests/base/__init__.py", line 10, in <module>
    from .test_cli import CLITestCase
  File "/<<PKGBUILDDIR>>/tests/base/test_cli.py", line 14, in <module>
    from pony.orm import db_session
  File "/usr/lib/python3/dist-packages/pony/orm/__init__.py", line 3, in
<module>
    from pony.orm.core import *
  File "/usr/lib/python3/dist-packages/pony/orm/core.py", line 18, in
<module>
    from pony.thirdparty.compiler import ast, parse
  File
"/usr/lib/python3/dist-packages/pony/thirdparty/compiler/__init__.py",
line 24, in <module>
    from .transformer import parse, parseFile
  File
"/usr/lib/python3/dist-packages/pony/thirdparty/compiler/transformer.py", line
32, in <module>
    import parser
ModuleNotFoundError: No module named 'parser'

This is because the parser module has been removed in Python 3.10 in
favor of ast [2].

I'll suggest upstream to fail their testsuite when ran on Python 3.10.

[1]:
https://ci.debian.net/data/autopkgtest/unstable/amd64/p/ponyorm/17023056/log.gz

[2]: https://docs.python.org/3/whatsnew/3.9.html#new-parser

-- 
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
  ⢿⡄⠘⠷⠚⠋   po...@debian.org / veronneau.org
  ⠈⠳⣄

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to