From ca0f76649e2720da284e2a5d45dc3df7ea5b5ed3 Mon Sep 17 00:00:00 2001 From: Francisco Alves Date: Thu, 4 May 2023 13:23:54 +0200 Subject: [PATCH] Fix dependency resolution for Apple chip. Github issue with more details about the problem: https://github.com/python-poetry/poetry/pull/7175 --- README.md | 4 ++-- pyproject.toml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 133a724..1799efe 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ pip install matter-persistence pip install matter-persistence[database-migration] ``` -### With postgres support +### With postgres support. Use "postgresql_asyncpg" as dependency to force Apple chip computers to use asyncpg. ```console -pip install matter-persistence[database-postgres] +pip install sqlalchemy[postgresql_asyncpg] ``` ### With cache support diff --git a/pyproject.toml b/pyproject.toml index a5402eb..afb55e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,8 +40,9 @@ database-migrations = ["matter-persistence[database]", database-postgresql = [ "matter-persistence[database]", - "sqlalchemy[postgresql]==2.0.12", - "asyncpg==0.27.0"] + "sqlalchemy[postgresql_asyncpg]==2.0.12", + "asyncpg==0.27.0", + "greenlet"] cache = ["aiocache==0.12.1"]