Fix two misspellings of “requirements,” one user-visible

Related: rhbz#1950291
This commit is contained in:
Benjamin A. Beasley 2021-07-25 21:35:52 +00:00 committed by Miro Hrončok
parent bc3b3a778a
commit 4d93e74bf2
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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