KEMBAR78
Move static project metadata to pyproject.toml by cdce8p · Pull Request #18146 · python/mypy · GitHub
Skip to content

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Nov 11, 2024

Setuptools supports using setup.py and pyproject.toml simultaneously. This PR moves most of the static project metadata to pyproject.toml.

Diff for .dist-info/METADATA

 Metadata-Version: 2.1
 Name: mypy
 Version: 1.14.0+dev
 Summary: Optional static typing for Python
-Home-page: https://www.mypy-lang.org/
+Author-email: Jukka Lehtosalo <jukka.lehtosalo@iki.fi>
-Author: Jukka Lehtosalo
-Author-email: jukka.lehtosalo@iki.fi
 License: MIT
+Project-URL: Homepage, https://www.mypy-lang.org/
 Project-URL: Documentation, https://mypy.readthedocs.io/en/stable/index.html
 ...

dist-info/RECORD is the same (except for the changed hash for .dist-info/METADATA).

https://packaging.python.org/en/latest/specifications/core-metadata/

"faster-cache": "orjson",
},
python_requires=">=3.8",
include_package_data=True,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

true is the default for tool.setuptools.include-package-data (in pyproject.toml) since setuptools >=61.0.0. https://setuptools.pypa.io/en/latest/userguide/datafiles.html#include-package-data

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Nice, thanks for doing this!

@hauntsaninja hauntsaninja merged commit 0ee6dc9 into python:master Nov 14, 2024
19 checks passed
@cdce8p cdce8p deleted the static-metadata branch November 14, 2024 06:21
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