Path.py

Latest version: v12.5.0

Safety actively analyzes 630169 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 11

11.2.0

------

- 146: Rely on `importlib_metadata
<https://pypi.org/project/importlib_metadata>`_ instead of
setuptools/pkg_resources to load the version of the module.
Added tests ensuring a <100ms import time for the ``path``
module. This change adds an explicit dependency on the
importlib_metadata package, but the project still supports
copying of the ``path.py`` module without any dependencies.

11.1.0

------

- 143, 144: Add iglob method.
- 142, 145: Rename ``tempdir`` to ``TempDir`` and declare
it as part of ``__all__``. Retain ``tempdir`` for compatibility
for now.
- 145: ``TempDir.__enter__`` no longer returns the ``TempDir``
instance, but instead returns a ``Path`` instance, suitable for
entering to change the current working directory.

11.0.1

------

- 136: Fixed test failures on BSD.

- Refreshed package metadata.

11.0

----

- Drop support for Python 3.3.

10.6

----

- Renamed ``namebase`` to ``stem`` to match API of pathlib.
Kept ``namebase`` as a deprecated alias for compatibility.

- Added new ``with_suffix`` method, useful for renaming the
extension on a Path::

orig = Path('mydir/mypath.bat')
renamed = orig.rename(orig.with_suffix('.cmd'))

10.5

----

- Packaging refresh and readme updates.

Page 4 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.