We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41863fd commit 887fbadCopy full SHA for 887fbad
rsconnect/pyproject.py
@@ -39,7 +39,7 @@ def parse_pyproject_python_requires(pyproject_file: pathlib.Path) -> typing.Opti
39
40
Returns None if the field is not found.
41
"""
42
- with pyproject_file.open("rb") as f:
43
- pyproject = tomllib.load(f)
+ content = pyproject_file.read_text()
+ pyproject = tomllib.loads(content)
44
45
return pyproject.get("project", {}).get("requires-python", None)
0 commit comments