X Tutup
Skip to content

Support requires_python in runtests.py#14051

Merged
srittau merged 1 commit intopython:mainfrom
Avasam:Support-`requires_python`-in-`runtests.py`
May 13, 2025
Merged

Support requires_python in runtests.py#14051
srittau merged 1 commit intopython:mainfrom
Avasam:Support-`requires_python`-in-`runtests.py`

Conversation

@Avasam
Copy link
Collaborator

@Avasam Avasam commented May 13, 2025

Addresses the runtests.py part of #14025

I tested by running:
uv run .\tests\runtests.py --run-stubtest .\stubs\networkx\ (should default to 3.10)
uv run .\tests\runtests.py --run-stubtest .\stubs\networkx\ --python-version=3.9 (should fail some tests)
uv run .\tests\runtests.py --run-stubtest .\stubs\networkx\ --python-version=3.11 (should work on 3.11)

uv run .\tests\runtests.py --run-stubtest .\stubs\setuptools\ (should default to 3.9)
uv run .\tests\runtests.py --run-stubtest .\stubs\setuptools\ --python-version=3.11 (should work on 3.11)

uv run .\tests\runtests.py --run-stubtest .\stdlib\typing.pyi (should default to 3.9)

This also deduplicates a Python version in code

@srittau
Copy link
Collaborator

srittau commented May 13, 2025

Linking #10722 here, which is the "canonical" issue for this.

@srittau srittau merged commit 64875ee into python:main May 13, 2025
67 checks passed
@Avasam Avasam deleted the Support-`requires_python`-in-`runtests.py` branch May 13, 2025 17:02
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup