From c5c139b630010d8e91f8de7468df44a19f874cb6 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Wed, 25 Mar 2020 15:44:21 -0400 Subject: [PATCH] Release 1.5.4 --- .gitignore | 1 + CHANGELOG.rst | 51 +++++++++++++++++++++++++++++++++ news/179.bugfix.rst | 1 - news/181.bugfix.rst | 1 - news/182.bugfix.rst | 1 - news/183.bugfix.rst | 1 - news/185.bugfix.rst | 1 - news/188.bugfix.rst | 1 - news/190.bugfix.rst | 1 - news/191.bugfix.rst | 5 ---- news/192.feature.rst | 1 - news/194.bugfix.rst | 1 - news/195.bugfix.rst | 1 - news/196.bugfix.rst | 1 - news/197.trivial.rst | 1 - news/200.bugfix.rst | 1 - news/202.bugfix.rst | 1 - news/204.bugfix.rst | 1 - news/205.bugfix.rst | 1 - news/206.bugfix.rst | 1 - news/207.bugfix.rst | 1 - src/requirementslib/__init__.py | 2 +- 22 files changed, 53 insertions(+), 24 deletions(-) delete mode 100644 news/179.bugfix.rst delete mode 100644 news/181.bugfix.rst delete mode 100644 news/182.bugfix.rst delete mode 100644 news/183.bugfix.rst delete mode 100644 news/185.bugfix.rst delete mode 100644 news/188.bugfix.rst delete mode 100644 news/190.bugfix.rst delete mode 100644 news/191.bugfix.rst delete mode 100644 news/192.feature.rst delete mode 100644 news/194.bugfix.rst delete mode 100644 news/195.bugfix.rst delete mode 100644 news/196.bugfix.rst delete mode 100644 news/197.trivial.rst delete mode 100644 news/200.bugfix.rst delete mode 100644 news/202.bugfix.rst delete mode 100644 news/204.bugfix.rst delete mode 100644 news/205.bugfix.rst delete mode 100644 news/206.bugfix.rst delete mode 100644 news/207.bugfix.rst diff --git a/.gitignore b/.gitignore index 9f5a440c..6736d6bd 100644 --- a/.gitignore +++ b/.gitignore @@ -115,3 +115,4 @@ pip-wheel-metadata/ .vscode XDG_CACHE_HOME junit +.bento diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 16f83832..8b05ab34 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,54 @@ +1.5.4 (2020-03-25) +================== + +Features +-------- + +- Added support for hiding tokens from URLs when printing them to the screen. `#192 `_ + + +Bug Fixes +--------- + +- Fix AST parsing when ``setup.py`` contains binary operators other than ``+`` and ``-``. `#179 `_ + +- Fix test failures due to updates to the ``pyparsing`` API. `#181 `_ + +- Fixed an issue with loading ``Pipfile`` data due to ``plette`` model misalignment. `#182 `_ + +- Fixed failed calls to ``.lower`` on ``tomlkit``'s ``Bool`` object during pipfile load as the API seems to have changed here. `#183 `_ + +- Added import guards to prevent ``ImportErrors`` which could occur when attempting to import now-removed ``pkg_resources.extern.requirements``. `#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 `_ + +- Updated references to ``Link`` instances which no longer have the ``is_artifact`` property. `#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 `_ + +- Fixed a bug in parsing of ``Pipfiles`` with missing or misnamed ``source`` sections which could cause ``tomlkit`` errors when loading legacy ``Pipfiles``. `#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 `_ + +- 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 `_ + +- Fixed an issue which caused build directories to be deleted before dependencies could be determined for editable source reqiurements. `#200 `_ + +- Fixed a bug which could cause parsing to fail for ``setup.cfg`` files on python 2. `#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 `_ + +- Fixed an issue which prevented successful parsing of ``setup.py`` files which were not ``utf-8`` encoded. `#205 `_ + +- Fixed an issue which caused mappings of binary operators to fail to evaluate when parsing ``setup.py`` files. `#206 `_ + +- Fixed mapping and evaluation of boolean operators and comparisons when evaluating ``setup.py`` files with AST parser to discover dependencies. `#207 `_ + + 1.5.3 (2019-07-09) ================== diff --git a/news/179.bugfix.rst b/news/179.bugfix.rst deleted file mode 100644 index 8963d58b..00000000 --- a/news/179.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix AST parsing when ``setup.py`` contains binary operators other than ``+`` and ``-``. diff --git a/news/181.bugfix.rst b/news/181.bugfix.rst deleted file mode 100644 index 31a49473..00000000 --- a/news/181.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix test failures due to updates to the ``pyparsing`` API. diff --git a/news/182.bugfix.rst b/news/182.bugfix.rst deleted file mode 100644 index 3def4dc5..00000000 --- a/news/182.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed an issue with loading ``Pipfile`` data due to ``plette`` model misalignment. diff --git a/news/183.bugfix.rst b/news/183.bugfix.rst deleted file mode 100644 index fc055338..00000000 --- a/news/183.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed failed calls to ``.lower`` on ``tomlkit``'s ``Bool`` object during pipfile load as the API seems to have changed here. diff --git a/news/185.bugfix.rst b/news/185.bugfix.rst deleted file mode 100644 index 5dcb4b2e..00000000 --- a/news/185.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Added import guards to prevent ``ImportErrors`` which could occur when attempting to import now-removed ``pkg_resources.extern.requirements``. diff --git a/news/188.bugfix.rst b/news/188.bugfix.rst deleted file mode 100644 index 0338e1f8..00000000 --- a/news/188.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed an issue which prevented loading ``Lockfile``-based references to local paths when calling ``as_requirements()`` on a ``requirementslib.models.lockfile.Lockfile`` instance. diff --git a/news/190.bugfix.rst b/news/190.bugfix.rst deleted file mode 100644 index e762c916..00000000 --- a/news/190.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Updated references to ``Link`` instances which no longer have the ``is_artifact`` property. diff --git a/news/191.bugfix.rst b/news/191.bugfix.rst deleted file mode 100644 index aec5c8b0..00000000 --- a/news/191.bugfix.rst +++ /dev/null @@ -1,5 +0,0 @@ -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`` diff --git a/news/192.feature.rst b/news/192.feature.rst deleted file mode 100644 index 0f019191..00000000 --- a/news/192.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Added support for hiding tokens from URLs when printing them to the screen. diff --git a/news/194.bugfix.rst b/news/194.bugfix.rst deleted file mode 100644 index b38b2aca..00000000 --- a/news/194.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed a bug in parsing of ``Pipfiles`` with missing or misnamed ``source`` sections which could cause ``tomlkit`` errors when loading legacy ``Pipfiles``. diff --git a/news/195.bugfix.rst b/news/195.bugfix.rst deleted file mode 100644 index 540ff3d9..00000000 --- a/news/195.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -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. diff --git a/news/196.bugfix.rst b/news/196.bugfix.rst deleted file mode 100644 index 91d7412e..00000000 --- a/news/196.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -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``. diff --git a/news/197.trivial.rst b/news/197.trivial.rst deleted file mode 100644 index 3bad7efc..00000000 --- a/news/197.trivial.rst +++ /dev/null @@ -1 +0,0 @@ -Automated releases via github actions. diff --git a/news/200.bugfix.rst b/news/200.bugfix.rst deleted file mode 100644 index 4a5caa78..00000000 --- a/news/200.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed an issue which caused build directories to be deleted before dependencies could be determined for editable source reqiurements. diff --git a/news/202.bugfix.rst b/news/202.bugfix.rst deleted file mode 100644 index 3cc180d4..00000000 --- a/news/202.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed a bug which could cause parsing to fail for ``setup.cfg`` files on python 2. diff --git a/news/204.bugfix.rst b/news/204.bugfix.rst deleted file mode 100644 index f20d30bf..00000000 --- a/news/204.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -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. diff --git a/news/205.bugfix.rst b/news/205.bugfix.rst deleted file mode 100644 index ba1990e2..00000000 --- a/news/205.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed an issue which prevented successful parsing of ``setup.py`` files which were not ``utf-8`` encoded. diff --git a/news/206.bugfix.rst b/news/206.bugfix.rst deleted file mode 100644 index 9795814d..00000000 --- a/news/206.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed an issue which caused mappings of binary operators to fail to evaluate when parsing ``setup.py`` files. diff --git a/news/207.bugfix.rst b/news/207.bugfix.rst deleted file mode 100644 index 8f2ca993..00000000 --- a/news/207.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed mapping and evaluation of boolean operators and comparisons when evaluating ``setup.py`` files with AST parser to discover dependencies. diff --git a/src/requirementslib/__init__.py b/src/requirementslib/__init__.py index 8182d2ea..488da849 100644 --- a/src/requirementslib/__init__.py +++ b/src/requirementslib/__init__.py @@ -10,7 +10,7 @@ from .models.pipfile import Pipfile from .models.requirements import Requirement -__version__ = "1.5.4.dev0" +__version__ = "1.5.4" logger = logging.getLogger(__name__)