-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Don't ignore missing stubs in setuptools #10058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AlexWaygood
merged 11 commits into
python:main
from
Avasam:Don't-ignore-missing-stubs-in-setuptools
May 19, 2023
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ec253ca
Don't ignore missing stubs in setuptools
Avasam b9495d8
Merge branch 'main' of https://github.com/python/typeshed into Don't-…
Avasam e72ce69
remove version dependant default
Avasam f05d076
Fix pytype and linux errors
Avasam bdf18ca
Confirmed darwin is equivalent to linux
Avasam 4057ff6
Merge branch 'main' of https://github.com/python/typeshed into Don't-…
Avasam d0485e8
Address PR comments + merge from main
Avasam 6dfcf40
Try to add relevant tests
Avasam 4e0db81
Merge branch 'main' into Don't-ignore-missing-stubs-in-setuptools
AlexWaygood dc9ff1d
Merge branch 'main' into Don't-ignore-missing-stubs-in-setuptools
Avasam 373dabb
Merge branch 'main' into Don't-ignore-missing-stubs-in-setuptools
Avasam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Mock | ||
| setuptools.msvc.winreg |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Mock | ||
| setuptools.msvc.winreg |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from typing import Any | ||
|
|
||
| from pkg_resources import ( | ||
| DefaultProvider, | ||
| EggMetadata, | ||
| EggProvider, | ||
| EmptyProvider, | ||
| FileMetadata, | ||
| IMetadataProvider, | ||
| IResourceProvider, | ||
| NullProvider, | ||
| PathMetadata, | ||
| ZipProvider, | ||
| ) | ||
| from setuptools.command.editable_wheel import EditableStrategy, _LinkTree, _StaticPth, _TopLevelFinder | ||
| from setuptools.config.expand import EnsurePackagesDiscovered | ||
| from setuptools.config.pyprojecttoml import _EnsurePackagesDiscovered | ||
|
|
||
| # We don't care about the __init__ methods, only about if an instance respects the Protocol | ||
| _: Any = object() | ||
|
|
||
| # Test IMetadataProvider Protocol implementers | ||
| metadata_provider: IMetadataProvider | ||
| metadata_provider = NullProvider(_) | ||
| metadata_provider = EggProvider(_) | ||
| metadata_provider = EmptyProvider() | ||
| metadata_provider = DefaultProvider(_) | ||
| metadata_provider = ZipProvider(_) | ||
| metadata_provider = FileMetadata(_) | ||
| metadata_provider = PathMetadata(_, _) | ||
| metadata_provider = EggMetadata(_) | ||
|
|
||
| # Test IResourceProvider Protocol implementers | ||
| resource_provider: IResourceProvider | ||
| resource_provider = NullProvider(_) | ||
| resource_provider = EggProvider(_) | ||
| resource_provider = EmptyProvider() | ||
| resource_provider = DefaultProvider(_) | ||
| resource_provider = ZipProvider(_) | ||
| resource_provider = FileMetadata(_) | ||
| resource_provider = PathMetadata(_, _) | ||
| resource_provider = EggMetadata(_) | ||
|
|
||
|
|
||
| # Test EditableStrategy Protocol implementers | ||
| editable_strategy: EditableStrategy | ||
| editable_strategy = _StaticPth(_, _, _) | ||
| editable_strategy = _LinkTree(_, _, _, _) | ||
| editable_strategy = _TopLevelFinder(_, _) | ||
| # Not EditableStrategy due to incompatible __call__ method | ||
| editable_strategy = EnsurePackagesDiscovered(_) # type: ignore | ||
| editable_strategy = _EnsurePackagesDiscovered(_, _, _) # type: ignore |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.