matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

from pydantic import v1 as pydantic #16331

Closed polyzen closed 1 year ago

polyzen commented 1 year ago

Basic pydantic V2 support.

Fixes #15858

Pull Request Checklist

polyzen commented 1 year ago

After running poetry lock --no-update and poetry install in order to try to run the linters, I received the following error:

~/r/synapse > poetry install
Installing dependencies from lock file

Package operations: 41 installs, 0 updates, 0 removals

  • Installing click-default-group (1.2.2): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /usr/lib/python3.11/site-packages/poetry/installation/chef.py:109 in _prepare
      105│     ) -> Path:
      106│         from subprocess import CalledProcessError
      107│
      108│         with ephemeral_environment(self._env.python) as venv:
    → 109│             env = IsolatedEnv(venv, self._pool)
      110│             builder = ProjectBuilder(
      111│                 directory,
      112│                 python_executable=env.executable,
      113│                 scripts_dir=env.scripts_dir,
clokep commented 1 year ago

See also #16332.