Requirementslib

Latest version: v3.0.0

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

Scan your dependencies

Page 7 of 15

1.5.4

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

Features
--------

- Added support for hiding tokens from URLs when printing them to the screen. `192 <https://github.com/sarugaku/requirementslib/issues/192>`_


Bug Fixes
---------

- Fix AST parsing when ``setup.py`` contains binary operators other than ``+`` and ``-``. `179 <https://github.com/sarugaku/requirementslib/issues/179>`_

- Fix test failures due to updates to the ``pyparsing`` API. `181 <https://github.com/sarugaku/requirementslib/issues/181>`_

- Fixed an issue with loading ``Pipfile`` data due to ``plette`` model misalignment. `182 <https://github.com/sarugaku/requirementslib/issues/182>`_

- Fixed failed calls to ``.lower`` on ``tomlkit``'s ``Bool`` object during pipfile load as the API seems to have changed here. `183 <https://github.com/sarugaku/requirementslib/issues/183>`_

- Added import guards to prevent ``ImportErrors`` which could occur when attempting to import now-removed ``pkg_resources.extern.requirements``. `185 <https://github.com/sarugaku/requirementslib/issues/185>`_

- Fixed an issue which prevented loading ``Lockfile``-based references to local paths when calling ``as_requirements()`` on a ``requirementslib.models.lockfile.Lockfile`` instance. `188 <https://github.com/sarugaku/requirementslib/issues/188>`_

- Updated references to ``Link`` instances which no longer have the ``is_artifact`` property. `190 <https://github.com/sarugaku/requirementslib/issues/190>`_

- Updated all references to newly shimmed code to fix breakages due to ``pip 19.3`` release:
- Fixed references to ``Command`` object from ``pip`` in favor of ``InstallCommand`` which is now properly shimmed via ``pip-shims``
- Fixed invocation of ``VcsSupport`` and ``VersionControl`` objects for compatibility
- Removed addition of options to ``Command`` as they are redundant when using ``InstallCommand``
- Cut ``get_finder`` and ``start_resolver`` over to newly shimmed approaches in ``pip-shims`` `191 <https://github.com/sarugaku/requirementslib/issues/191>`_

- Fixed a bug in parsing of ``Pipfiles`` with missing or misnamed ``source`` sections which could cause ``tomlkit`` errors when loading legacy ``Pipfiles``. `194 <https://github.com/sarugaku/requirementslib/issues/194>`_

- Corrected an unexpected behavior which resulted in a ``KeyError`` when attempting to call ``__getitem__`` on a ``Pipfile`` instance with a section that was not present. `195 <https://github.com/sarugaku/requirementslib/issues/195>`_

- Fixed an issue in ``Lockfile`` path and model auto-detection when called without the ``load`` classmethod which caused initialization to fail due to an ``AttributeError``. `196 <https://github.com/sarugaku/requirementslib/issues/196>`_

- Fixed an issue which caused build directories to be deleted before dependencies could be determined for editable source reqiurements. `200 <https://github.com/sarugaku/requirementslib/issues/200>`_

- Fixed a bug which could cause parsing to fail for ``setup.cfg`` files on python 2. `202 <https://github.com/sarugaku/requirementslib/issues/202>`_

- Fixed an issue in binary operator mapping in the ``ast_parse_setup_py`` functionality of the dependency parser which could cause dependency resolution to fail. `204 <https://github.com/sarugaku/requirementslib/issues/204>`_

- Fixed an issue which prevented successful parsing of ``setup.py`` files which were not ``utf-8`` encoded. `205 <https://github.com/sarugaku/requirementslib/issues/205>`_

- Fixed an issue which caused mappings of binary operators to fail to evaluate when parsing ``setup.py`` files. `206 <https://github.com/sarugaku/requirementslib/issues/206>`_

- Fixed mapping and evaluation of boolean operators and comparisons when evaluating ``setup.py`` files with AST parser to discover dependencies. `207 <https://github.com/sarugaku/requirementslib/issues/207>`_

1.5.3

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

Features
--------

- Added support for parsing lists of variables as extras in `setup.py` files via ``ast.BinOp`` traversal. `177 <https://github.com/sarugaku/requirementslib/issues/177>`_


Bug Fixes
---------

- Fixed quoting of markers when formatting requirements as pip-compatible lines. `173 <https://github.com/sarugaku/requirementslib/issues/173>`_

- Quotes surrounding requirement lines will now be stripped only if matching pairs are found to ensure requirements can be parsed correctly. `176 <https://github.com/sarugaku/requirementslib/issues/176>`_

1.5.2

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

Bug Fixes
---------

- Added support to the AST parser for discovering non-standard invocations of ``setup`` in ``setup.py``, e.g. using the fully qualified function name. `163 <https://github.com/sarugaku/requirementslib/issues/163>`_

- Fixed an issue which caused dynamic references in ``setup.cfg`` to fail when ``package_dir`` was specified in ``setup.py``. `165 <https://github.com/sarugaku/requirementslib/issues/165>`_

- Fixed handling of `-signs in ``file:`` URLs, unbreaking the use of local packages in e.g. `Jenkins <https://jenkins.io>`_ workspaces. `#168 <https://github.com/sarugaku/requirementslib/issues/168>`_

- Fixed occasional recursion error when parsing function references using AST parser on ``setup.py`` files. `169 <https://github.com/sarugaku/requirementslib/issues/169>`_

- Fixed an intermittent issue caused by the use of ``lru_cache`` on a helper function in the translation of markers. `171 <https://github.com/sarugaku/requirementslib/issues/171>`_

- Added enhanced ``get_line()`` functionality to ``Line`` objects and expanded test coverage to incorporate hypothesis. `174 <https://github.com/sarugaku/requirementslib/issues/174>`_,
`77 <https://github.com/sarugaku/requirementslib/issues/77>`_

1.5.1

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

Bug Fixes
---------

- Fixed a bug which caused local dependencies to incorrectly return ``wheel`` as their name. `158 <https://github.com/sarugaku/requirementslib/issues/158>`_

- Wheels which are successfully built but which contain no valid metadata will now correctly be skipped over during requirements parsing in favor of sdists. `160 <https://github.com/sarugaku/requirementslib/issues/160>`_

1.5.0

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

Features
--------

- Implemented an AST parser for ``setup.py`` for parsing package names, dependencies, and version information if available. `106 <https://github.com/sarugaku/requirementslib/issues/106>`_

- Fully implement marker merging and consolidation logic using ``requirement.merge_markers(markers)``. `153 <https://github.com/sarugaku/requirementslib/issues/153>`_


Bug Fixes
---------

- Updated ``attrs`` dependency to constraint ``>=18.2``. `142 <https://github.com/sarugaku/requirementslib/issues/142>`_

- Fixed a bug which forced early querying for dependencies via pypi or other indexes just by simply creating a ``Requirement`` instance.
- Added the ability to skip tests requiring internet by setting ``REQUIREMENTSLIB_SKIP_INTERNET_TESTS``. `145 <https://github.com/sarugaku/requirementslib/issues/145>`_

- Egg fragments on ``PEP-508`` style direct URL dependencies are now disregarded rather than merged with the leading name. `146 <https://github.com/sarugaku/requirementslib/issues/146>`_

- Fixed a bug which prevented the successful loading of pipfiles using ``Pipfile.load``. `148 <https://github.com/sarugaku/requirementslib/issues/148>`_

- Fixed a bug which prevented handling special setup.cfg directives during dependency parsing. `150 <https://github.com/sarugaku/requirementslib/issues/150>`_

- Fixed an issue which caused the merging of markers to inadvertently use ``or`` to merge even different variables. `153 <https://github.com/sarugaku/requirementslib/issues/153>`_

1.4.2

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

Bug Fixes
---------

- Fixed a bug which prevented successful parsing of VCS urls with dashes. `138 <https://github.com/sarugaku/requirementslib/issues/138>`_

- Fixed a bug which caused significant degradation in performance while loading requirements. `140 <https://github.com/sarugaku/requirementslib/issues/140>`_

Page 7 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.