FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Support `requires_python` in `runtests.py` by Avasam · Pull Request #14051 · python/typeshed · GitHub

Repository navigation

Support requires_python in runtests.py - #14051

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

srittau merged 1 commit into
python:mainfrom
Avasam:Support-`requires_python`-in-`runtests.py`

Conversation

Avasam commented May 13, 2025 •
edited
Loading

Copy link
Copy Markdown
Collaborator

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 commented May 13, 2025

Copy link
Copy Markdown
Collaborator

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

srittau merged commit 64875ee into python:main May 13, 2025
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL