Skip to content

Per format packages support#1133

Merged
sdispater merged 2 commits intodevelopfrom
per-format-packages-support
May 29, 2019
Merged

Per format packages support#1133
sdispater merged 2 commits intodevelopfrom
per-format-packages-support

Conversation

@sdispater
Copy link
Copy Markdown
Member

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

This PR adds support for specifying packages on a per-format basis. This is especially useful for adding a tests packages to the sdist which is a common case:

[tool.poetry]
# ...
packages = [
    { include = "my_package" },
    { include = "tests", format = "sdist" },
]

This should fix #1067 and #1109

@sdispater sdispater added area/build-system Related to PEP 517 packaging (see poetry-core) kind/feature Feature requests/implementations labels May 28, 2019
@sdispater sdispater added this to the 1.0 milestone May 28, 2019
Comment thread docs/docs/pyproject.md Outdated
@drunkwcodes
Copy link
Copy Markdown

drunkwcodes commented May 29, 2019

Can it specify files to be excluded in certain format too?

@sdispater sdispater force-pushed the per-format-packages-support branch from 7576bad to 0102fa4 Compare May 29, 2019 18:28
@sdispater sdispater merged commit 93b5128 into develop May 29, 2019
@sdispater sdispater deleted the per-format-packages-support branch May 29, 2019 19:33
@YDX-2147483647 YDX-2147483647 mentioned this pull request Jan 28, 2023
2 tasks
YDX-2147483647 added a commit to YDX-2147483647/poetry that referenced this pull request Jan 28, 2023
The link to [`/docs/pyproject/#build`](https://python-poetry.org/docs/pyproject/#build) does not exist.

Reason:
- There was no “build” section from the beginning (python-poetry#1133).
- If this is really a link, then it would be `[build format](#url)` or `[a specific build format](#url)`.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/build-system Related to PEP 517 packaging (see poetry-core) kind/feature Feature requests/implementations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants