-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Docs] Clarify usage of include_package_data/package_data/exclude_package_data
on package data files
#4643
Merged
Merged
[Docs] Clarify usage of include_package_data/package_data/exclude_package_data
on package data files
#4643
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1aaddc1
make setuptools inline literal
DanielYang59 70b5ec5
add clarify of data files
DanielYang59 0a5667e
add index to second level titles
DanielYang59 a377af0
fix case sensitivity in toml
DanielYang59 1a4a129
adjust section positioning
DanielYang59 d1e4b11
fix typo
DanielYang59 a079e8b
revision control system -> version control system
DanielYang59 46fd8db
revert version control -> revision control
DanielYang59 3a84300
clarify usage of setuptools vs Setuptools
DanielYang59 735f9ae
Merge branch 'main' into clarify-pack-data-doc
DanielYang59 bbd2167
apply @abravalheri 's suggestion as is first
DanielYang59 b07bde5
remove source files for simplicity
DanielYang59 e19f2d6
replace with sdist or wheel
DanielYang59 cae1e68
add sketch
DanielYang59 c46d060
update sketch
DanielYang59 f32b975
update legacy with latest setuptools
DanielYang59 5481166
fix typo
DanielYang59 041e23d
add note for version difference
DanielYang59 e447010
remove note on bug behaviour < 58.5.3
DanielYang59 5eab47f
remove custom notation
DanielYang59 1595318
Update docs/userguide/datafiles.rst
abravalheri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I would tag and explain something I want to change (I find myself lose track of what I was originally intended if I overthink), please free feel to comment.
I believe the source (PyPI vs file) is not important here, but whether we're installing from a binary distribution (
.whl
) or source distribution that matters.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.
We are probably better off if we don't define data files in terms of source distributions or source trees... Because then we enter in muddy waters (as source distributions and source tree may have any kinds of files).
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.
Sorry it looks like I might have caused confusion here. I was suggesting:
Because
install from PyPI
is not important here, because byinstall from PyPI
, we could install both from.whl
file (if wheel is built for that particular platform) or source distribution. I hope I didn't misunderstand anything?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.
I think the former phrase is better for the definition than the second. Alternatively only the following is also fine:
I believe We should not define define data files as per
source distribution
. A Python package always need to be transformed into a wheel, so the files inside of the wheel is what actually matters.In the previous version
install from PyPI
is being used as an equivalent ofpip install package
, which in the end of the day downloads (preferentially) a.whl
file.