Skip to content
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

Bump setuptools to 69.1.* #11423

Merged
merged 6 commits into from
Feb 14, 2024
Merged
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
14 changes: 0 additions & 14 deletions stubs/setuptools/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
# These are used like protocols, but forgot to specify "self" as the first method param
pkg_resources.IResourceProvider.get_resource_filename
pkg_resources.IResourceProvider.get_resource_stream
pkg_resources.IResourceProvider.get_resource_string
pkg_resources.IResourceProvider.has_resource
pkg_resources.IResourceProvider.resource_isdir
pkg_resources.IResourceProvider.resource_listdir
pkg_resources.IMetadataProvider.get_metadata
pkg_resources.IMetadataProvider.get_metadata_lines
pkg_resources.IMetadataProvider.has_metadata
pkg_resources.IMetadataProvider.metadata_isdir
pkg_resources.IMetadataProvider.metadata_listdir
pkg_resources.IMetadataProvider.run_script

# Is always set in __init__
pkg_resources.PathMetadata.egg_info
pkg_resources.EggMetadata.loader
3 changes: 2 additions & 1 deletion stubs/setuptools/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version = "69.0.*"
version = "69.1.*"
upstream_repository = "https://github.com/pypa/setuptools"

[tool.stubtest]
# darwin is equivalent to linux for OS-specific methods
platforms = ["linux", "win32"]
stubtest_requirements = ["tomli"]
2 changes: 1 addition & 1 deletion stubs/setuptools/setuptools/command/test.pyi
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ class test(Command):
@NonDataProperty
def test_args(self) -> list[str]: ...
def with_project_on_sys_path(self, func) -> None: ...
def project_on_sys_path(self, include_dists=[]): ...
def project_on_sys_path(self, include_dists=()): ...
@staticmethod
def paths_on_pythonpath(paths) -> None: ...
@staticmethod
Empty file.
9 changes: 9 additions & 0 deletions stubs/setuptools/setuptools/compat/py310.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import sys

__all__ = ["tomllib"]

if sys.version_info >= (3, 11):
import tomllib
else:
# This is actually vendored
import tomli as tomllib # type: ignore[import-not-found] # pyright: ignore[reportMissingImports]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from _typeshed import Incomplete, StrOrBytesPath

def shutil_rmtree(path: StrOrBytesPath, ignore_errors: bool = False, onexc: Incomplete | None = None) -> None: ...
def shutil_rmtree(path: StrOrBytesPath, ignore_errors: bool = False, onexc: Incomplete | None = None): ...