Skip to content

Commit 5c66f74

Browse files
authored
Fix issue #684: Minor docstring edit (#699)
1 parent d37ddb6 commit 5c66f74

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup/02_installing-python-libraries/python_environment_check.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ def get_packages(pkgs):
6565

6666
def get_requirements_dict():
6767
"""
68-
Parses requirements.txt and returns a dictionary mapping package names (lowercase)
69-
to a specifier string (e.g. ">=2.18.0,<3.0"). It uses packaging.requirements.Requirement
70-
to properly handle environment markers.
68+
Parses requirements.txt and returns a dictionary mapping package names (in lowercase)
69+
to specifier strings (e.g. ">=2.18.0,<3.0"). It uses the Requirement class from
70+
packaging.requirements to properly handle environment markers, and converts each object's
71+
specifier to a string.
7172
"""
7273

7374
PROJECT_ROOT = dirname(realpath(__file__))

0 commit comments

Comments
 (0)