-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: fill out more of distutils & setuptools dist #9895
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 23 commits into
python:main
from
henryiii:henryiii/chore/moresetuptools
Mar 17, 2023
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
38838a7
fix: fill out more of distutils & setuptools dist
henryiii 3feff34
fix: typo in dict
henryiii 2ead1a7
Merge branch 'main' into henryiii/chore/moresetuptools
AlexWaygood 0d6dac4
fix: remove some duplication in Distribution subclass
henryiii 89169c2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b9a24db
revert: pull out generate method addition
henryiii 36e43a6
revert: use default values when possible
henryiii 3edf7bd
Apply suggestions from code review
henryiii dae9ea6
tests: ignore true/1 in stubgen
henryiii 9b10a94
tests: fix location
henryiii 6e89014
tests: fix location (2x)
henryiii a40bf51
Merge branch 'main' into henryiii/chore/moresetuptools
AlexWaygood 6a6874b
fix: address review feedback
henryiii 2997bfb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e0cfd77
Apply suggestions from code review
henryiii 50d9bf4
Apply suggestions from code review
henryiii 8cae27d
fix: run_command in supertype
henryiii 1053c94
refactor: use overload for reinit command
henryiii 109cbe5
Apply suggestions from code review
henryiii 7d2034b
Apply suggestions from code review
henryiii 4eed3c6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9db1265
fix: missing imports
henryiii b29448e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 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
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 |
|---|---|---|
| @@ -1,36 +1,29 @@ | ||
| from _typeshed import Incomplete | ||
| from collections.abc import Iterable, Iterator, Mapping, MutableMapping | ||
| from typing import Any | ||
|
|
||
| from setuptools import SetuptoolsDeprecationWarning | ||
| from setuptools import Command, SetuptoolsDeprecationWarning | ||
|
|
||
| from ._distutils.dist import Distribution as _Distribution | ||
|
|
||
| class Distribution(_Distribution): | ||
| def patch_missing_pkg_info(self, attrs) -> None: ... | ||
| package_data: Incomplete | ||
| dist_files: Incomplete | ||
| src_root: Incomplete | ||
| dependency_links: Incomplete | ||
| setup_requires: Incomplete | ||
| def __init__(self, attrs: Incomplete | None = ...) -> None: ... | ||
| def warn_dash_deprecation(self, opt, section): ... | ||
| def make_option_lowercase(self, opt, section): ... | ||
| def parse_config_files(self, filenames: Incomplete | None = ..., ignore_option_errors: bool = ...) -> None: ... | ||
| def fetch_build_eggs(self, requires): ... | ||
| def finalize_options(self): ... | ||
| def get_egg_cache_dir(self): ... | ||
| def patch_missing_pkg_info(self, attrs: Mapping[str, Any]) -> None: ... | ||
| src_root: str | None | ||
| dependency_links: list[str] | ||
| setup_requires: list[str] | ||
| def __init__(self, attrs: MutableMapping[str, Any] | None = None) -> None: ... | ||
| def warn_dash_deprecation(self, opt: str, section: str) -> str: ... | ||
| def make_option_lowercase(self, opt: str, section: str) -> str: ... | ||
| def parse_config_files(self, filenames: Iterable[str] | None = ..., ignore_option_errors: bool = ...) -> None: ... | ||
| def fetch_build_eggs(self, requires: str | Iterable[str]): ... | ||
| def get_egg_cache_dir(self) -> str: ... | ||
| def fetch_build_egg(self, req): ... | ||
| def get_command_class(self, command): ... | ||
| def print_commands(self): ... | ||
| def get_command_list(self): ... | ||
| def get_command_class(self, command: str) -> type[Command]: ... | ||
| def include(self, **attrs) -> None: ... | ||
| packages: Incomplete | ||
| py_modules: Incomplete | ||
| ext_modules: Incomplete | ||
| def exclude_package(self, package) -> None: ... | ||
| def has_contents_for(self, package): ... | ||
| def exclude_package(self, package: str) -> None: ... | ||
| def has_contents_for(self, package: str) -> bool | None: ... | ||
| def exclude(self, **attrs) -> None: ... | ||
| def get_cmdline_options(self): ... | ||
| def iter_distribution_names(self) -> None: ... | ||
| def get_cmdline_options(self) -> dict[str, dict[str, str | None]]: ... | ||
| def iter_distribution_names(self) -> Iterator[str]: ... | ||
| def handle_display_options(self, option_order): ... | ||
|
|
||
| class DistDeprecationWarning(SetuptoolsDeprecationWarning): ... |
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
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.