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

[setuptools] Update to 74.1.* #12614

Merged
merged 11 commits into from
Sep 5, 2024
Merged

[setuptools] Update to 74.1.* #12614

merged 11 commits into from
Sep 5, 2024

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Sep 3, 2024

Closes: #12613

@srittau srittau requested a review from Avasam September 3, 2024 11:30
stubs/setuptools/setuptools/msvc.pyi Outdated Show resolved Hide resolved
stubs/setuptools/setuptools/msvc.pyi Outdated Show resolved Hide resolved

This comment has been minimized.

This comment has been minimized.

@Avasam
Copy link
Collaborator

Avasam commented Sep 3, 2024

I'll do a proper review later. But just quickly letting you know that the msvc file was restored (with a few methods still pruned) in pypa/setuptools#4626 .

So you can basically restore https://github.com/python/typeshed/pull/12599/files#diff-dd552d0277ca42b16d7514df0a75905ed71c607d1bb85c3d7c612b068cda330a , and remove the few extra methods stubtest should catch.

@srittau
Copy link
Collaborator Author

srittau commented Sep 4, 2024

I'll do a proper review later. But just quickly letting you know that the msvc file was restored (with a few methods still pruned) in pypa/setuptools#4626 .

So you can basically restore https://github.com/python/typeshed/blob/bump-setuptools-to-74.0/stubs%2Fsetuptools%2Fsetuptools%2Fmsvc.pyi , and remove the few extra methods stubtest should catch.

I've stolen the sys.platform check from the old version, but that had a lot of Incompletes that have been fixed in the new version.

This comment has been minimized.

Copy link
Collaborator

@Avasam Avasam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the more complete stubs whilst adding back this module! A few comments.

stubs/setuptools/setuptools/msvc.pyi Outdated Show resolved Hide resolved
Comment on lines +63 to +64
def microsoft(self, key: str, x86: bool = False) -> str: ... # type: ignore[misc]
def lookup(self, key: str, name: str) -> str: ...
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two can take a StrPath as the key param (and do represent relative paths, registry key paths to be exact).
But I'm pretty sure it's only meant to be a single final path segment, so relative Path support seem quite incidental. I think str is fine.

stubs/setuptools/setuptools/msvc.pyi Outdated Show resolved Hide resolved
stubs/setuptools/setuptools/msvc.pyi Outdated Show resolved Hide resolved
stubs/setuptools/@tests/stubtest_allowlist.txt Outdated Show resolved Hide resolved

This comment has been minimized.

This comment has been minimized.

1 similar comment
Copy link
Contributor

github-actions bot commented Sep 5, 2024

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Collaborator

@Avasam Avasam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Avasam Avasam merged commit 346fef2 into python:main Sep 5, 2024
48 checks passed
@srittau srittau deleted the setuptools-74.1 branch September 5, 2024 14:50
max-muoto pushed a commit to max-muoto/typeshed that referenced this pull request Sep 8, 2024
---------

Co-authored-by: Avasam <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants