Skip to content

Commit

Permalink
Fix dependency resolution for Apple chip.
Browse files Browse the repository at this point in the history
Github issue with more details about the problem: python-poetry/poetry#7175
  • Loading branch information
franciscoatmatter committed May 4, 2023
1 parent ef5dd99 commit ca0f766
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit ca0f766

Please sign in to comment.