From d87dc0a6601cf41bd989e3e4c0f9ab55fdc44d7e Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Thu, 24 Sep 2020 21:07:52 -0400 Subject: [PATCH] Fix constant named for PEP440 that should be named for PEP508 Update author email to be consistent with pyproject --- tox_poetry_installer.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tox_poetry_installer.py b/tox_poetry_installer.py index b6fbcc5..9b922b9 100644 --- a/tox_poetry_installer.py +++ b/tox_poetry_installer.py @@ -29,10 +29,10 @@ __summary__ = "Tox plugin to install Tox environment dependencies using the Poet __version__ = "0.1.0" __url__ = "https://github.com/enpaul/tox-poetry-installer/" __license__ = "MIT" -__authors__ = ["Ethan Paul "] +__authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"] -PEP440_VERSION_DELIMITERS: Tuple[str, ...] = ("~=", "==", "!=", ">", "<") +_PEP508_VERSION_DELIMITERS: Tuple[str, ...] = ("~=", "==", "!=", ">", "<") class ToxPoetryInstallerException(Exception): @@ -81,7 +81,9 @@ def _find_locked_dependencies( return find_transients(top_level.name) except KeyError: - if any(delimiter in dependency_name for delimiter in PEP440_VERSION_DELIMITERS): + if any( + delimiter in dependency_name for delimiter in _PEP508_VERSION_DELIMITERS + ): message = "specifying a version in the tox environment definition is incompatible with installing from a lockfile" else: message = (