Skip to content

docs: warn about data_files usage#2073

Open
Himanshuagrawal4 wants to merge 1 commit into
pypa:mainfrom
Himanshuagrawal4:PRO/packaging-data-files-warning-20260615
Open

docs: warn about data_files usage#2073
Himanshuagrawal4 wants to merge 1 commit into
pypa:mainfrom
Himanshuagrawal4:PRO/packaging-data-files-warning-20260615

Conversation

@Himanshuagrawal4

@Himanshuagrawal4 Himanshuagrawal4 commented Jun 14, 2026

Copy link
Copy Markdown

Closes #1089

Summary

  • Add a warning to the setuptools distribution guide that data_files is a legacy/deprecated mechanism
  • Point readers toward package data for files that belong inside import packages

Checks

  • git diff --check
  • python -m sphinx -b html -n -W --keep-going -d <tmp-doctrees> source <tmp-build>

📚 Documentation preview 📚: https://python-packaging-user-guide--2073.org.readthedocs.build/en/2073/

@Himanshuagrawal4 Himanshuagrawal4 marked this pull request as ready for review June 14, 2026 19:51
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.

Warn that data_files is deprecated in the packaging guide

1 participant