Poetry build can't find source files
See original GitHub issueI’m trying to poetry build
a Python project, but it fails with the message:
[ValueError]
No file/folder found for package fig
poetry install
and poetry update
work fine, and I can build using the standard setup.py bdist_wheel
. I have trying adding the following to my pyproject.toml
but no luck:
[package]
include = ["src/*.py"]
Any pointers as to what I’m doing wrong would be highly appreciated.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Why does poetry build raise ModuleOrPackageNotFound ...
The reason it can't be found is most likely because the directory hierarchy is incorrect. The released package is not directly the source...
Read more >Repositories | Documentation | Poetry - Python dependency ...
Poetry treats repositories to which you publish packages as user specific and not project specific configuration unlike package sources. Poetry, today, only ...
Read more >Introduction | Documentation | Poetry - Python dependency ...
Introduction Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on...
Read more >Configuration | Documentation | Poetry - Python dependency ...
This file can typically be found in one of the following directories: macOS: ... Create a new virtual environment if one doesn't already...
Read more >Announcing Poetry 1.2.0 | Blog
If the group does not already exist, it will be created automatically. ... Warning: The file chosen for install of cryptography 37.0.3 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
I was wondering this also. By default it seems like if you call your project
example-project
it’ll make the python packageexample_project
. However, I’d rather the package be namedexampleproject
.Not exactly. Let’s say the structure of your project is a package you would need to have something like this:
If your project is a module, it would be: