Skip to content

Commit e60036a

Browse files
authored
Merge pull request #3 from jason810496/fix/poetry-extras-dependencies
Fix/poetry extras dependencies
2 parents 7680e6f + 9bff8e6 commit e60036a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

doc/installation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Install with additional DBAPIs packages
1515

1616
.. code-block:: bash
1717
18-
pip install pgmq-sqlalchemy[psycopg2]
19-
pip install pgmq-sqlalchemy[asyncpg]
20-
# pip install pgmq-sqlalchemy[postgres-python-driver]
18+
pip install "pgmq-sqlalchemy[asyncpg]"
19+
pip install "pgmq-sqlalchemy[psycopg2-binary]"
20+
# pip install "pgmq-sqlalchemy[postgres-python-driver]"
2121
2222
.. Note:: See `SQLAlchemy Postgresql Dialects <https://docs.sqlalchemy.org/en/20/dialects/postgresql.html>`_ for all available DBAPIs packages.
2323

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers = [
2727
"Documentation" = "https://pgmq-sqlalchemy.readthedocs.io/en/latest/"
2828

2929
[tool.poetry.extras]
30-
asyncpg = ["asyncpg"]
30+
asyncpg = ["asyncpg", "greenlet"]
3131
pg8000 = ["pg8000"]
3232
psycopg = ["psycopg"]
3333
psycopg2-binary = ["psycopg2-binary"]
@@ -37,6 +37,13 @@ psycopg2cffi = ["psycopg2cffi"]
3737
[tool.poetry.dependencies]
3838
python = "^3.9"
3939
SQLAlchemy = "^2.0.31"
40+
# optional dependencies
41+
asyncpg = {version = "^0.29.0", optional = true}
42+
greenlet = {version = "^3.0.3", optional = true}
43+
pg8000 = {version = "^1.31.2", optional = true}
44+
psycopg = {version = "^3.2.1", optional = true}
45+
psycopg2-binary = {version = "^2.9.9", optional = true}
46+
psycopg2cffi = {version = "^2.9.0", optional = true}
4047

4148
[tool.poetry.group.dev.dependencies]
4249
# postgresql drivers

0 commit comments

Comments
 (0)