Skip to content

Commit

Permalink
Merge pull request #3 from jason810496/fix/poetry-extras-dependencies
Browse files Browse the repository at this point in the history
Fix/poetry extras dependencies
  • Loading branch information
jason810496 authored Jul 21, 2024
2 parents 7680e6f + 9bff8e6 commit e60036a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Install with additional DBAPIs packages

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

9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ classifiers = [
"Documentation" = "https://pgmq-sqlalchemy.readthedocs.io/en/latest/"

[tool.poetry.extras]
asyncpg = ["asyncpg"]
asyncpg = ["asyncpg", "greenlet"]
pg8000 = ["pg8000"]
psycopg = ["psycopg"]
psycopg2-binary = ["psycopg2-binary"]
Expand All @@ -37,6 +37,13 @@ psycopg2cffi = ["psycopg2cffi"]
[tool.poetry.dependencies]
python = "^3.9"
SQLAlchemy = "^2.0.31"
# optional dependencies
asyncpg = {version = "^0.29.0", optional = true}
greenlet = {version = "^3.0.3", optional = true}
pg8000 = {version = "^1.31.2", optional = true}
psycopg = {version = "^3.2.1", optional = true}
psycopg2-binary = {version = "^2.9.9", optional = true}
psycopg2cffi = {version = "^2.9.0", optional = true}

[tool.poetry.group.dev.dependencies]
# postgresql drivers
Expand Down

0 comments on commit e60036a

Please sign in to comment.