]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use tox extras
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Feb 2023 20:44:47 +0000 (15:44 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Feb 2023 20:47:06 +0000 (15:47 -0500)
per tox devs [1] it's better we use "extras" explcitly
rather than putting our extras in deps

[1] https://github.com/tox-dev/tox/issues/2898#issuecomment-1407921041

Change-Id: Ib57bc1277a462b270e243b1bb4cdb55a80449256

tox.ini

diff --git a/tox.ini b/tox.ini
index 05d4a510cc8f92374b934d3dfd9bd2b3fbe2ab76..49a09d99bca5a7b1b4b8d27fcc139db36dc31556 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -5,35 +5,36 @@ envlist = py
 [testenv]
 cov_args=--cov=sqlalchemy --cov-report term --cov-append --cov-report xml --exclude-tag memory-intensive --exclude-tag timing-intensive -k "not aaa_profiling"
 
-# new opt as of tox 4.4.0 was set to True causing it to dump the
-# deps below into a constraints file, while requirements of the
-# form ".[aiosqlite]" are not valid constraints, those are requirements
-constrain_package_deps=false
+# this needs to be set as of tox 4.4.0 *if* we have extras (e.g. .[aiosqlite])
+# inside of deps.  But we put them in extras now.
+# see https://github.com/tox-dev/tox/issues/2898
+constrain_package_deps=false
 
 usedevelop=
      cov: True
 
-deps=
-     pytest>=7.0.0rc1,<8
-     pytest-xdist
+extras=
+     sqlite: aiosqlite
+     sqlite_file: aiosqlite
+     sqlite_file: sqlcipher; python_version < '3.10'
+     postgresql: postgresql
+     postgresql: postgresql_asyncpg
+     postgresql: postgresql_pg8000
+     postgresql: postgresql_psycopg
 
-     sqlite: .[aiosqlite]
-     sqlite_file: .[aiosqlite]
-     sqlite_file: .[sqlcipher]; python_version < '3.10'
-     postgresql: .[postgresql]
-     postgresql: .[postgresql_asyncpg]
-     postgresql: .[postgresql_pg8000]
-     postgresql: .[postgresql_psycopg]
+     mysql: mysql
+     mysql: pymysql
+     mysql: asyncmy
 
-     mysql: .[mysql]
-     mysql: .[pymysql]
-     mysql: .[asyncmy]
+#     mysql: mariadb_connector
 
-#     mysql: .[mariadb_connector]
+     oracle: oracle
+     oracle: oracle_oracledb
+     mssql: mssql
 
-     oracle: .[oracle]
-     oracle: .[oracle_oracledb]
-     mssql: .[mssql]
+deps=
+     pytest>=7.0.0rc1,<8
+     pytest-xdist
 
      dbapimain-sqlite: git+https://github.com/omnilib/aiosqlite.git#egg=aiosqlite
      dbapimain-sqlite: git+https://github.com/coleifer/sqlcipher3.git#egg=sqlcipher3