Skip to content

Remove usage of py.path? #583

@henryiii

Description

@henryiii

Currently, there is a dependency on py.path, which pytest is trying to remove, and it seems like nox should remove it too, now that Python 3 is required (since quite a while, actually). py.path is not recommended for use: https://py.readthedocs.io/en/latest/path.html. This would reduce a dependency, too!

Looking through the usages, I see py.path.local.sysfind, which with a little effort could be replaced by Python 3's shutil.which. I see as_cwd, which could be handled pretty easily (ideally looking like the 3.11 context addition). That seems to be it for non-test usages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesIssues relating to a nox dependency

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions