Skip to content

Remove tests.lib.path #6050

@pradyunsg

Description

@pradyunsg

File: https://github.com/pypa/pip/blob/master/tests/lib/path.py

There exist better alternatives to rolling out our own "Path" class for file handling -- the stdlib pathlib.Path and pathlib2.Path (backport to Py2) should be more than sufficient to satisfy our needs now.

if sys.python_version_info[0] >= 3:
    from pathlib import Path
else:
    from pathlib2 import Path

To be done:

  • Confirm that the pathlib equivalent is indeed enough for our needs.
    • Figure out the relevant workarounds if needed.
  • Drop this file and just directly perform the imports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions