From b04dcbd7bc2c4e160f0fc5b5a4a97dea1bb227e7 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 13 Jan 2021 13:15:52 -0500 Subject: [PATCH] update aiomysql extra to match asyncpg, also dedupe asyncio extras ### Description currently the asyncio extra-deps are duplicated between every async driver (or it seems they are supposed to be). This updates all async drivers to depend on the `sqlalchemy[asyncio]` extra using the `%(asyncio)s` shorthand ### Checklist This pull request is: - [ ] A documentation / typographical error fix - Good to go, no issue or tests are needed - [ ] A short code fix - please include the issue number, and create an issue if none exists, which must include a complete example of the issue. one line code fixes without an issue and demonstration will not be accepted. - Please include: `Fixes: #` in the commit message - please include tests. one line code fixes without tests will not be accepted. - [ ] A new feature implementation - please include the issue number, and create an issue if none exists, which must include a complete example of how the feature would look. - Please include: `Fixes: #` in the commit message - please include tests. **Have a nice day!** Closes: #5830 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5830 Pull-request-sha: 9146e5f1391015b284fd96def8c04e36a7c985d2 Change-Id: I1865cc67b4cdf9f73a7effbfcb86cf2c1f824644 --- setup.cfg | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 99c0b13cde..792a35d6e2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,7 +43,7 @@ install_requires = [options.extras_require] asyncio = - greenlet;python_version>="3" + greenlet!=0.4.17;python_version>="3" mssql = pyodbc mssql_pymssql = pymssql mssql_pyodbc = pyodbc @@ -60,14 +60,16 @@ oracle = postgresql = psycopg2>=2.7 postgresql_pg8000 = pg8000>=1.16.6 postgresql_asyncpg = + %(asyncio)s asyncpg;python_version>="3" - greenlet;python_version>="3" postgresql_psycopg2binary = psycopg2-binary postgresql_psycopg2cffi = psycopg2cffi pymysql = pymysql;python_version>="3" pymysql<1;python_version<"3" -aiomysql = aiomysql +aiomysql = + %(asyncio)s + aiomysql;python_version>="3" [egg_info] tag_build = dev -- 2.47.2