summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-09-07 17:43:00 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-09-08 11:58:16 -0400
commit9b5f12a0a3f6b83bccb19c23e0c95b17d7ec8ae3 (patch)
treee998310b3517f31e6317f54a635d49bbef7d1278 /tox.ini
parent29b8306679ef7138b4e37ee3e5136333da00fda0 (diff)
downloadalembic-9b5f12a0a3f6b83bccb19c23e0c95b17d7ec8ae3.tar.gz
Support pep3149, latest import mechanics, fully
Reworked "sourceless" system to be fully capable of handling any combination of: Python2/3x, pep3149 or not, PYTHONOPTIMIZE or not, for locating and loading both env.py files as well as versioning files. This includes: locating files inside of ``__pycache__`` as well as listing out version files that might be only in ``versions/__pycache__``, deduplicating version files that may be in ``versions/__pycache__`` and ``versions/`` at the same time, correctly looking for .pyc or .pyo files based on if pep488 is present or not. The latest Python3x deprecation warnings involving importlib are also corrected. Change-Id: I2495e793c81846d3f05620dbececb18973dd8a8f Fixes: #449
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 3 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 5424402..e527d68 100644
--- a/tox.ini
+++ b/tox.ini
@@ -41,6 +41,8 @@ setenv=
mysql: MYSQL={env:TOX_MYSQL:--db mysql}
oracle: ORACLE={env:TOX_ORACLE:--db oracle} --low-connections --write-idents oracle_idents.txt
mssql: MSSQL={env:TOX_MSSQL:--db pymssql}
+ pyoptimize: PYTHONOPTIMIZE=1
+ pyoptimize: LIMITTESTS="tests/test_script_consumption.py"
# tox as of 2.0 blocks all environment variables from the
# outside, unless they are here (or in TOX_TESTENV_PASSENV,
@@ -48,7 +50,7 @@ setenv=
passenv=ORACLE_HOME NLS_LANG TOX_SQLITE TOX_POSTGRESQL TOX_MYSQL TOX_ORACLE TOX_MSSQL
commands=
- {env:BASECOMMAND} {env:WORKERS} {env:SQLITE:} {env:POSTGRESQL:} {env:MYSQL:} {env:ORACLE:} {env:MSSQL:} {env:BACKENDONLY:} {env:COVERAGE:} {posargs}
+ {env:BASECOMMAND} {env:WORKERS} {env:SQLITE:} {env:POSTGRESQL:} {env:MYSQL:} {env:ORACLE:} {env:MSSQL:} {env:BACKENDONLY:} {env:COVERAGE:} {env:LIMITTESTS:} {posargs}
{oracle}: python reap_oracle_dbs.py oracle_idents.txt