Pyroma outputs verbose build backend output when building metadata
See original GitHub issueI’m getting the warning:
warning: no previously-included files matching '.isort' found anywhere in distribution
I already ignored the file in MANIFEST.in
:
global-exclude .isort
However, the pyroma still keeps showing the warning. Is there any way to remove this warning?
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Issues · regebro/pyroma - GitHub
Contribute to regebro/pyroma development by creating an account on GitHub ... Pyroma outputs verbose build backend output when building metadata enhancement.
Read more >Enable Verbose Build Output when building projects under ...
Is there a way to look at which compiler is getting invoked and which flags are getting passed when building the projects under...
Read more >Defining metadata (meta.yaml) - Conda
All the metadata in the conda-build recipe is specified in the meta.yaml file. ... The source is copied to the work directory before...
Read more >Logging, verbose — sklearn-onnx 1.11 documentation
verbose is a parameter which prints messages on the standard output. It tells which converter is called. verbose=1 usually means what skl2onnx is...
Read more >TML Verbose Logs - TIBCO Product Documentation
This graph requires you to select the request_uuid from the Verbose Log Metadata table so that the following log panel displays each type...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@CAM-Gerlach thanks for your detailed explanation!
Really when I remove these two lines:
https://github.com/plone/Products.CMFPlone/blob/6.0.0b2/MANIFEST.in#L6-L7
news
folder warning goes away.I saw that the
build.ProjectBuilder
class has a runner parameter.So I changed this line:
https://github.com/regebro/pyroma/blob/2c0c3fb6e5c216d40870060d3bdda431d009fff6/pyroma/projectdata.py#L27
to
See: https://pep517.readthedocs.io/en/latest/callhooks.html#pep517.quiet_subprocess_runner
So I was able to suppress the setuptools output:
I think these outputs are more of a hindrance than a help, in the context of
pyroma
. (Or not. They can help people learn, like I learned here 😄 )Thanks for the additional information and the link to an example package on which you’re seeing this. This is helpful in confirming my previous explanation, and helping me describe what’s going on in your case with further specificity.
As mentioned, this is a valid warning produced by your build backend (Setuptools, in this case) due to your package configuration, and occurs entirely independent of
pyroma
. YourMANIFEST.in
is indeed being picked up, as these warnings are each directly about a specific respective line in that file, and would not occur otherwise. The build frontend tool (build
,pip wheel
, etc) you are using to build your package artifacts for distribution may or may not be showing you the output of your build backend (Setuptools), or it may be buried in the copious output Setuptools produces by default, but that output does indeed include these warnings. Indeed, I reproduced this myself on a fresh clone of your repo running the standard, officially-recommendedbuild
frontend:Build output
As mentioned, this warning is due to an
exclude
not matching any file that was previouslyinclude
d. In this particular example, you have a directorynews
that is in your source tree, but it is not matched by anyinclude
rule (you haveinclude *
, but that only matches top-level files, not recursive directory contents). Then,exclude news
andrecursive-exclude news *
both don’t match anything, asnews
and its contents are never included to begin with, thus the (valid) warning.To resolve it, you can simply remove the useless
exclude news
(and redundantrecursive-exclude news *
), sincenews
is never included to begin with (as the warning is telling you).You also have a warning for not matching any compiled
*.pyc
files, but that is useful to retain and can simply be ignored (unfortunately, I don’t know of a straightforward way for you to silence it, but you’ll only see it when viewing the full developer-facing build output; you could adopt a whitelist rather than blacklist approach for extensions in your code directory, but that runs the risk of not including a desired file—at that point, better to use Setuptools-SCM or a more modern build backend that just uses your.gitignore
to include all VCS-tracked files automatically).As a sidenote,
include pyproject.toml
is also redundant since you already haveinclude *
, which includes everything in the root directory anyway.Hopefully this helps further clarity what is going on for you.