From 6ee7a6baea4915c3b04d07cf2092314cc7864d17 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 25 Jul 2021 17:35:52 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20two=20misspellings=20of=20=E2=80=9Crequir?= =?UTF-8?q?ements,=E2=80=9D=20one=20user-visible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject_buildrequires.py | 2 +- pyproject_requirements_txt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject_buildrequires.py b/pyproject_buildrequires.py index b9a67f3..624e995 100644 --- a/pyproject_buildrequires.py +++ b/pyproject_buildrequires.py @@ -342,7 +342,7 @@ def generate_requires( for req_file in requirement_files: requirements.extend( convert_requirements_txt(req_file, pathlib.Path(req_file.name)), - source=f'requirments file {req_file.name}' + source=f'requirements file {req_file.name}' ) requirements.check(source='all requirement files') if use_build_system: diff --git a/pyproject_requirements_txt.py b/pyproject_requirements_txt.py index e5ff9fe..d2389e8 100644 --- a/pyproject_requirements_txt.py +++ b/pyproject_requirements_txt.py @@ -20,7 +20,7 @@ PKGNAME_RE = re.compile(r'^[-_a-zA-Z0-9]+') def convert_requirements_txt(lines, path:Path = None): """Convert lines of a requirements file to PEP 440-style requirement strs - This does NOT handle all of requitrements.txt features (only pip can do + This does NOT handle all of requirements.txt features (only pip can do that), but tries its best. The resulting requirements might not actually be valid (either because