Pip-shims

Latest version: v0.7.3

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

Scan your dependencies

Page 2 of 4

0.5.2

==================

Features
--------

- Added support for ``pip==20.1``.
- Added support for global temporary directory context management when generating wheel caches using the compatibility module;
- Added wheel cache context management which now requires the temporary directory context in some cases;
- Improved function argument introspection;
- Updated test invocations to reflect shifting parameters. `65 <https://github.com/sarugaku/pip-shims/issues/65>`_

0.5.1

==================

Bug Fixes
---------

- Fixed incorrect session creation via ``pip_shims.compat.get_session`` which inadvertently passed a tuple to pip when building a session instance. `56 <https://github.com/sarugaku/pip-shims/issues/56>`_

- Added ``wheel_cache`` context manager helper for managing global context when creating wheel wheel_cache instances. `58 <https://github.com/sarugaku/pip-shims/issues/58>`_

- Fixed resolution failures due to ``Resolver.resolve`` signature updates in ``pipmaster``:
- Automatically check for and pass ``check_supports_wheel`` argument to `Resolver.resolve()` when expected
- Check whether ``Resolver.resolve()`` expects a ``RequirementSet`` or ``List[InstallRequirement]`` and pass the appropriate input `59 <https://github.com/sarugaku/pip-shims/issues/59>`_

- Fixed requirement build failures due to new ``autodelete: bool`` required argument in ``InstallRequirement.ensure_build_location``. `60 <https://github.com/sarugaku/pip-shims/issues/60>`_

- Updated ``Resolver`` import path to point at new location (``legacy_resolve`` -> ``resolution.legacy.resolver``). `61 <https://github.com/sarugaku/pip-shims/issues/61>`_

- Fixed ``AttributeError`` caused by failed ``RequirementSet.cleanup()`` calls after ``Resolver.resolve()`` which is no longer valid in ``pip>=20.1``. `62 <https://github.com/sarugaku/pip-shims/issues/62>`_

0.5.0

==================

Features
--------

- Exposed ``build``, ``build_one``, and ``build_one_inside_env`` from ``wheel_builder`` module starting in ``pip>=20``. `49 <https://github.com/sarugaku/pip-shims/issues/49>`_

- Added a ``build_wheel`` shim function which can build either a single ``InstallRequirement`` or an iterable of ``InstallRequirement`` instances. `50 <https://github.com/sarugaku/pip-shims/issues/50>`_

- Exposed ``global_tempdir_manager`` for handling ``TempDirectory`` instance contexts. `51 <https://github.com/sarugaku/pip-shims/issues/51>`_


Bug Fixes
---------

- Added ``Downloader`` class which is now passed to ``shim_unpack`` implementation. `42 <https://github.com/sarugaku/pip-shims/issues/42>`_

- Updated references to the ``Downloader`` class to point at ``pip._internal.network.download.Downloader`` which is where it resides on pip master for ``pip>19.3.1``. `46 <https://github.com/sarugaku/pip-shims/issues/46>`_

- Added a compatibility shim to provide ongoing access to the ``Wheel`` class which is removed in ``pip>19.3.1``. `47 <https://github.com/sarugaku/pip-shims/issues/47>`_

- Added mapping for ``distributions.make_distribution_for_install`` to ``make_abstract_dist`` for ``pip>=20.0``. `52 <https://github.com/sarugaku/pip-shims/issues/52>`_

0.4.0

==================

Features
--------

- Improved documentation and added fundamentally re-architected the library
- Added improved docstrings and example usages
- Included type annotations for many types and shims
- Fully reimplemented critical functionality to abstract logic while improving maintainability and ability to reason about the core operations
- Added numerous helper functions to reduce maintenance burden
- Added fully backward compatible library native shims to call ``pip`` functions:

- ``populate_options``
- ``get_requirement_set``
- ``get_package_finder``
- ``shim_unpack``
- ``make_preparer``
- ``get_resolver``
- ``resolve``

- Added design drawings
- Implemented ``ShimmedPath`` and ``ShimmedPathCollection`` abstractions `37 <https://github.com/sarugaku/pip-shims/issues/37>`_

0.3.4

==================

Features
--------

- Added ``SessionCommandMixin``, ``CandidateEvaluator``, ``CandidatePreferences``, ``LinkCollector``, ``LinkEvaluator``, ``TargetPython``, ``SearchScope``, and ``SelectionPreferences`` to exposed classes and ``install_req_from_req_string`` to exposed functions. `33 <https://github.com/sarugaku/pip-shims/issues/33>`_


Bug Fixes
---------

- Added override to the ``Command`` class to automatically fill in default values for ``name`` and ``summary`` which are now required in ``__init__``.
- Added mixin to the Command class to continue supporting ``_build_session`` method. `32 <https://github.com/sarugaku/pip-shims/issues/32>`_

- Shimmed functions for ``is_file_url`` and ``is_archive_file``. `34 <https://github.com/sarugaku/pip-shims/issues/34>`_

- Updated the paths for the following moved items:
- ``SafeFileCache`` -> ``network.cache``
- ``Link`` -> ``models.link.Link``
- ``path_to_url`` -> ``utils.url``
- ``url_to_path`` -> ``utils.url``
- ``SourceDistribution`` -> ``distributions.source.legacy`` `35 <https://github.com/sarugaku/pip-shims/issues/35>`_

0.3.3

==================

Features
--------

- Added ``commands.freeze.DEV_PKGS`` and ``utils.compat.stdlib_pkgs`` shims. `25 <https://github.com/sarugaku/pip-shims/issues/25>`_

- Updated ``PackageFinder`` test and added ``CandidateEvaluator`` import starting with ``pip>=19.1`` for finding prerelease candidates. `27 <https://github.com/sarugaku/pip-shims/issues/27>`_


Bug Fixes
---------

- Fixed import paths for ``VcsSupport`` on ``pip>19.1.1``. `28 <https://github.com/sarugaku/pip-shims/issues/28>`_

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.