Skip to content

Compatibility with tox 4 #673

@frenzymadness

Description

@frenzymadness

Current Behavior

Tox 4 is now in release candidate 1 and it might make sense to take a look at how to support it here in tox_to_nox. Right now, tests results are:

FAILED tests/test_tox_to_nox.py::test_trivial - AttributeError: module 'tox.c...
FAILED tests/test_tox_to_nox.py::test_skipinstall - AttributeError: module 't...
FAILED tests/test_tox_to_nox.py::test_usedevelop - AttributeError: module 'to...
FAILED tests/test_tox_to_nox.py::test_commands - AttributeError: module 'tox....
FAILED tests/test_tox_to_nox.py::test_deps - AttributeError: module 'tox.conf...
FAILED tests/test_tox_to_nox.py::test_env - AttributeError: module 'tox.confi...
FAILED tests/test_tox_to_nox.py::test_chdir - AttributeError: module 'tox.con...
FAILED tests/test_tox_to_nox.py::test_dash_in_envname - AttributeError: modul...
FAILED tests/test_tox_to_nox.py::test_non_identifier_in_envname - AttributeEr...
FAILED tests/test_tox_to_nox.py::test_descriptions_into_docstrings - Attribut...

All failures caused by

def main() -> None:
        parser = argparse.ArgumentParser(description="Converts toxfiles to noxfiles.")
        parser.add_argument("--output", default="noxfile.py")
    
        args = parser.parse_args()
    
>       config = tox.config.parseconfig([])
E       AttributeError: module 'tox.config' has no attribute 'parseconfig'

Expected Behavior

It would be nice to have nox compatible with tox 4 when they release a final version.

Steps To Reproduce

Run nox tests with tox==4.0.0rc1

Environment

- OS:
- Python:
- Nox:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions