Skip to content

Commit 81fa082

Browse files
committed
Foundation for detecting python version requirements from pyproject.toml
1 parent 0c170fb commit 81fa082

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,9 @@ typeCheckingMode = "strict"
9292
reportPrivateUsage = "none"
9393
reportUnnecessaryIsInstance = "none"
9494
reportUnnecessaryComparison = "none"
95+
96+
[tool.uv.sources]
97+
rsconnect-python = { workspace = true }
98+
99+
[tool.uv.workspace]
100+
members = ["tests/testdata/python-project"]

rsconnect/pyproject.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ def parse_pyproject_python_requires(pyproject_file: pathlib.Path) -> typing.Opti
4141
"""
4242
content = pyproject_file.read_text()
4343
pyproject = tomllib.loads(content)
44-
4544
return pyproject.get("project", {}).get("requires-python", None)

0 commit comments

Comments
 (0)