You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so for SQLAlchemy we can target this at 1.4, for everybody else, we likely have to push them all to a new Y release also as distributions use this in their testing. however, right now python setup.py test has broken under Python 2 in any case as setuptools does not respect the python_requires marker (see https://twitter.com/codewithanthony/status/1156576971607797760) so these all install the incompatible pytest 5. so, this is kind of a breakage storm raining down.
What we want to have happen is that users can run:
"tox"
and that will run basic tests. so the tox.ini will have to be reconfigued so that the more elaborate series of environments are not run by default, but not sure if this is possible.
when I type "tox" it seems to just install a single python environment using the default interpreter.
However, then I can't run my more complex environments like:
tox -e py37-mysql-cext
so it seems like "envlist" has two purposes, to define the structure of tokenized environments, and to specify what runs when you type "tox", and I need these to be broken out somehow
I don't even know how it works, the envlist and the "deps" seem to both inform the "generative envlist" feature since I don't have the database tokens in my setenv.
it looks like any factor that's included in a config anywhere is fair game, so none of them need to be inside of envlist. sqlalchemy has been relying on this for years, but I'm not sure tox documents this.
I think if you just treat tox -e py37 as the cext factor you don't need the rest of those -- as long as a factor is used in one of the settings it will be available as an env name
so I think you can keep the tox.ini the same (or delete the envlist line since it defaults to py) and adjust references to the -cext envs by dropping the cext factor
pretty sure tox even allows tox -e py37-oracle-oracle6-cov-nocext even though it's nonsense 🤷♂️
"cext" is indeed an implicit factor however I need a symbol there because I'm integrating with Jenkins matrix builds and the matrix keywords go straight into the tox environment name.
Activity
zzzeek commentedon Jul 31, 2019
so for SQLAlchemy we can target this at 1.4, for everybody else, we likely have to push them all to a new Y release also as distributions use this in their testing. however, right now python setup.py test has broken under Python 2 in any case as setuptools does not respect the python_requires marker (see https://twitter.com/codewithanthony/status/1156576971607797760) so these all install the incompatible pytest 5. so, this is kind of a breakage storm raining down.
zzzeek commentedon Jul 31, 2019
What we want to have happen is that users can run:
"tox"
and that will run basic tests. so the tox.ini will have to be reconfigued so that the more elaborate series of environments are not run by default, but not sure if this is possible.
asottile commentedon Jul 31, 2019
for the tox parts, this setting is helpful: https://github.com/tox-dev/tox/blob/94436c320aa06a323cfc6bc5e2c2277a0586f2ab/tox.ini#L15
anything not in
envlistwon't get run by default but you can still call those individual environments withtox -e ...orTOXENV=... toxzzzeek commentedon Jul 31, 2019
@asottile at the moment, I am trying this:
when I type "tox" it seems to just install a single python environment using the default interpreter.
However, then I can't run my more complex environments like:
tox -e py37-mysql-cext
so it seems like "envlist" has two purposes, to define the structure of tokenized environments, and to specify what runs when you type "tox", and I need these to be broken out somehow
zzzeek commentedon Jul 31, 2019
I don't even know how it works, the envlist and the "deps" seem to both inform the "generative envlist" feature since I don't have the database tokens in my setenv.
zzzeek commentedon Jul 31, 2019
it looks like any factor that's included in a config anywhere is fair game, so none of them need to be inside of envlist. sqlalchemy has been relying on this for years, but I'm not sure tox documents this.
asottile commentedon Jul 31, 2019
ah I see what it is,
cextis a factor that's only in the envlist -- the absense ofnocextis the same as specifyingcexthere's the docs on factors but you're right I don't think there's as much depth as there should be there: https://tox.readthedocs.io/en/latest/config.html#factors-and-factor-conditional-settings
zzzeek commentedon Jul 31, 2019
Like if I do this, this does what I want. but am I breaking the rules?
asottile commentedon Jul 31, 2019
I think if you just treat
tox -e py37as thecextfactor you don't need the rest of those -- as long as a factor is used in one of the settings it will be available as an env nameso I think you can keep the
tox.inithe same (or delete theenvlistline since it defaults topy) and adjust references to the-cextenvs by dropping the cext factorpretty sure tox even allows
tox -e py37-oracle-oracle6-cov-nocexteven though it's nonsense 🤷♂️zzzeek commentedon Jul 31, 2019
"cext" is indeed an implicit factor however I need a symbol there because I'm integrating with Jenkins matrix builds and the matrix keywords go straight into the tox environment name.
asottile commentedon Jul 31, 2019
I would maybe do something like this?
zzzeek commentedon Jul 31, 2019
ah good idea
zzzeek commentedon Jul 31, 2019
I think I need the default "py" in envlist, otherwise it goes off and builds pep8 and such.
zzzeek commentedon Jul 31, 2019
eh or I just name the first env [testenv:py]
asottile commentedon Jul 31, 2019
oh right, I didn't notice that you have other testenvs defined --
envlist = pyprobably makes sensesqla-tester commentedon Oct 23, 2019
Mike Bayer has proposed a fix for this issue in the master branch:
Remove python setup.py test; fix SQL Server URL https://gerrit.sqlalchemy.org/1535