diff --git a/doc/installation.rst b/doc/installation.rst index f695837..9660475 100644 --- a/doc/installation.rst +++ b/doc/installation.rst @@ -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 `_ for all available DBAPIs packages. diff --git a/pyproject.toml b/pyproject.toml index abb51b4..db966f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] @@ -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