Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Delete the contents of distutils.command.__init__ #7370

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
merged 9 commits into from
Feb 28, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
45 changes: 0 additions & 45 deletions stdlib/distutils/command/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,45 +0,0 @@
import sys

from . import (
bdist_dumb as bdist_dumb,
bdist_rpm as bdist_rpm,
build as build,
build_clib as build_clib,
build_ext as build_ext,
build_py as build_py,
build_scripts as build_scripts,
check as check,
clean as clean,
install as install,
install_data as install_data,
install_headers as install_headers,
install_lib as install_lib,
register as register,
sdist as sdist,
upload as upload,
)

if sys.version_info < (3, 10):
from . import bdist_wininst as bdist_wininst

__all__ = [
"build",
"build_py",
"build_ext",
"build_clib",
"build_scripts",
"clean",
"install",
"install_lib",
"install_headers",
"install_scripts",
"install_data",
"sdist",
"register",
"bdist",
"bdist_dumb",
"bdist_rpm",
"bdist_wininst",
"check",
"upload",
]
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py36.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ collections.AsyncGenerator.ag_running
collections.Callable
collections.UserString.maketrans
datetime.datetime_CAPI
distutils.command.bdist_wininst # see #6523
distutils.cygwinccompiler.RE_VERSION
distutils.dist.command_re
distutils.fancy_getopt.longopt_re
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py37.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ collections.UserString.maketrans
contextvars.Context.__init__ # Default C __init__ signature is wrong
contextvars.ContextVar.get
dataclasses.field
distutils.command.bdist_wininst # see #6523
dummy_threading.Condition.acquire
dummy_threading.Condition.release
dummy_threading.Event.isSet
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ collections.KeysView.__reversed__
collections.ValuesView.__reversed__
contextvars.Context.__init__ # Default C __init__ signature is wrong
dataclasses.field
distutils.command.bdist_wininst # see #6523
dummy_threading.Condition.acquire
dummy_threading.Condition.release
dummy_threading.Event.isSet
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py39.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ contextvars.Context.__init__ # Default C __init__ signature is wrong
contextlib.AbstractAsyncContextManager.__class_getitem__
contextlib.AbstractContextManager.__class_getitem__
dataclasses.field
distutils.command.bdist_wininst # see #6523
enum.Enum._generate_next_value_
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
ftplib.FTP.trust_server_pasv_ipv4_address # Dangerous to use, intentionally undocumented, intentionally missing from typeshed. #6154
Expand Down
18 changes: 18 additions & 0 deletions tests/stubtest_allowlists/py3_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,24 @@ builtins.reveal_locals
builtins.reveal_type

# __all__-related weirdness (see #6523)
distutils.command.build
distutils.command.build_py
distutils.command.build_ext
distutils.command.build_clib
distutils.command.build_scripts
distutils.command.clean
distutils.command.install
distutils.command.install_lib
distutils.command.install_headers
distutils.command.install_scripts
distutils.command.install_data
distutils.command.sdist
distutils.command.register
distutils.command.bdist
distutils.command.bdist_dumb
distutils.command.bdist_rpm
distutils.command.check
distutils.command.upload
email.base64mime
email.charset
email.encoders
Expand Down