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

docs: clarify the behavior of includes #1532

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

gsalvatella
Copy link
Contributor

The behavior of includes seems to imply that any files listed will be added to the package itself. However the latter has to be also explicitly included. This can cause confusion when adding includes for the first time in an already existing package, whereby the package itself will suddenly disappear from the build. Clarify this in the documentaion.

Fixes #1531

Pull Request Check List

  • A news fragment is added in news/ describing what is new. N/A
  • Test cases added for changed code. N/A

Describe what you have changed in this PR.

@gsalvatella
Copy link
Contributor Author

gsalvatella commented Nov 25, 2022

@frostming Another interesting option would be to consider adding code block annotations. This is a great example of them being useful to not clutter the main text with admonitions and clarifications. Would you fancy the idea?

The behavior of `includes` seems to imply that any files listed will be
*added* to the package itself. However the latter has to be also
explicitly included. This can cause confusion when adding `includes` for
the first time in an already existing package, whereby the package itself
will suddenly disappear from the build. Clarify this in the
documentaion.

Fixes pdm-project#1531
@frostming frostming merged commit 378a170 into pdm-project:main Nov 27, 2022
@frostming
Copy link
Collaborator

@frostming Another interesting option would be to consider adding code block annotations. This is a great example of them being useful to not clutter the main text with admonitions and clarifications. Would you fancy the idea?

Good idea, i didn't know that plugin before

@j178 j178 mentioned this pull request Apr 3, 2024
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.

Clarify the behavior of includes
2 participants