]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
update aiomysql extra to match asyncpg, also dedupe asyncio extras
authorThomas Grainger <tagrain@gmail.com>
Wed, 13 Jan 2021 18:15:52 +0000 (13:15 -0500)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 13 Jan 2021 18:20:33 +0000 (19:20 +0100)
<!-- Provide a general summary of your proposed changes in the Title field above -->

### 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
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)

-->

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: #<issue number>` 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: #<issue number>` 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

index 99c0b13cdeb40c7ed6dbe24fe38abf54ae4be57b..792a35d6e2f5fcae2690ae6dd7ff7660825ffb8c 100644 (file)
--- 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