You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of my projects uses a transpilation system to add things such as links to its documentation before building and publishing new versions. The output of this transpilation system is added to .gitignore, as it is intended to be created from the main source code before running poetry build. However, as a consequence, all of the packages which should be included in the build are ignored, with no warning that this has happened.
I believe that it is a good idea to give an error if all contents from a package listed in [tool.poetry].packages have been ignored, as this will help others avoid the same pitfall. I don't believe that making this an error will break any valid package builds, as I cannot think of any reason that a package would be explicitly included but then also entirely excluded simultaneously.
To reproduce
Bug is reproduced in this commit in the fl-studio-api-stubs library.
sdists are source distributions, it is correct that build artifacts should not be included in source distributions
if you want to get into built artifacts for your wheels then you are entering the undocumented and unsupported territory of #2740: which mostly works but you will have to work your way through it yourself.
Description
One of my projects uses a transpilation system to add things such as links to its documentation before building and publishing new versions. The output of this transpilation system is added to
.gitignore
, as it is intended to be created from the main source code before runningpoetry build
. However, as a consequence, all of the packages which should be included in the build are ignored, with no warning that this has happened.I believe that it is a good idea to give an error if all contents from a package listed in
[tool.poetry].packages
have been ignored, as this will help others avoid the same pitfall. I don't believe that making this an error will break any valid package builds, as I cannot think of any reason that a package would be explicitly included but then also entirely excluded simultaneously.To reproduce
Bug is reproduced in this commit in the
fl-studio-api-stubs
library.Note that
build_lib/
is contained in the.gitignore
, meaning all files for all packages are ignored when building.Workarounds
No workaround to the lack of warning, but the overall issue can be avoided by explicitly including desired files, as per this commit.
Poetry Installation Method
pipx
Operating System
Windows 11
Poetry Version
Poetry (version 1.8.3)
Poetry Configuration
Python Sysconfig
Poetry Runtime Logs
poetry.txt
The text was updated successfully, but these errors were encountered: