-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Update setuptools to 78.1.0 #13734
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
Update setuptools to 78.1.0 #13734
Conversation
Also re-export missing distutils command `install_data` and remove duplicate stublist allow entries
|
Closes: #13732 |
This comment has been minimized.
This comment has been minimized.
Closing keywords have to be in the original post (you can see the bot's PR didn't get linked) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can see, here's the only public typing related changes:
setuptools/_distutils/command/install.py'sinstall.config_varsis now aChainMapsetuptools/_distutils/compilers/C/msvc.pyadded back the accidentally removedshared_lib_formatpropertywarn_dash_deprecationandmake_option_lowercasehave been removed fromsetuptools/dist.py
So this patch should still be applied (at least setuptools/setuptools/_distutils/compilers/C/msvc.pyi)
diff --git a/stubs/setuptools/setuptools/_distutils/command/install.pyi b/stubs/setuptools/setuptools/_distutils/command/install.pyi
index 059116834..67502f9d0 100644
--- a/stubs/setuptools/setuptools/_distutils/command/install.pyi
+++ b/stubs/setuptools/setuptools/_distutils/command/install.pyi
@@ -1,5 +1,6 @@
from _typeshed import Incomplete
-from typing import ClassVar
+from collections import ChainMap
+from typing import Any, ClassVar
from ..cmd import Command
@@ -34,7 +35,7 @@ class install(Command):
build_lib: Incomplete
record: Incomplete
def initialize_options(self) -> None: ...
- config_vars: Incomplete
+ config_vars: ChainMap[str, Any] # Any: Same as sysconfig.get_config_vars
install_libbase: Incomplete
def finalize_options(self) -> None: ...
def dump_dirs(self, msg) -> None: ...
diff --git a/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi b/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi
index 99d107c63..44f5c85b8 100644
--- a/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi
+++ b/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi
@@ -10,10 +10,8 @@ class Compiler(base.Compiler):
obj_extension: ClassVar[str]
static_lib_extension: ClassVar[str]
shared_lib_extension: ClassVar[str]
- # This was accidentally removed upstream and should be back pretty soon.
- # shared_lib_format: ClassVar[str]
- # static_lib_format = shared_lib_format
- static_lib_format: ClassVar[str]
+ shared_lib_format: ClassVar[str]
+ static_lib_format = shared_lib_format
exe_extension: ClassVar[str]
initialized: bool
def initialize(self, plat_name: str | None = None) -> None: ...|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
--------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Also re-export missing distutils command
install_dataand remove duplicate stublist allow entries