Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ def find_version(*file_paths):
package_data={"PyQt5-stubs": ['*.pyi']},
packages=["PyQt5-stubs"],
extras_require={
"dev": ["mypy==0.930", "pytest", "pytest-xvfb"],
"dev": [
"mypy==0.991; python_version >= '3.7'",
"mypy==0.930; python_version < '3.7'",
"pytest",
"pytest-xvfb",
],
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not know you can do things like this. Nice!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the env_var list at https://peps.python.org/pep-0508/.

env_var       = ('python_version' | 'python_full_version' |
                 'os_name' | 'sys_platform' | 'platform_release' |
                 'platform_system' | 'platform_version' |
                 'platform_machine' | 'platform_python_implementation' |
                 'implementation_name' | 'implementation_version' |
                 'extra' # ONLY when defined by a containing layer
                 )

Though it appears this boundary may belong closer to 0.981 python/mypy@dc118e2.

classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down