Poetry 1.0.10 -> 1.1.4: Files added to local repository are not referenced
See original GitHub issueLet’s say you have an index.html
file you want to put along your Python code.
$ find .
pyproject.toml
package
package/foo.py
You do poetry install
like that, before index.html
exists.
Then you add it.
$ find .
pyproject.toml
package
package/foo.py
package/index.html
Now with 1.1.4, foo.py cannot see a index.html next to it. In 1.0.10 this worked fine. If you run poetry install
after adding the index.html file, it installs nothing new and does not do what I intend.
If the index.html
file exists before the very first poetry install
, it seems to be fine.
I presume something with the way the virtual environments are made has been changed.
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (1 by maintainers)
Top Results From Across the Web
python - Poetry trying to install everything from private repository
poetry first checks if the project is in your private-pypi and then checks public-pypi . Here the error is mostly because of 403...
Read more >poetry-dynamic-versioning - PyPI
Dynamic versioning plugin for Poetry. This is a Python 3.7+ plugin for Poetry 1.2.0+ and Poetry Core 1.0.0+ to enable dynamic versioning based...
Read more >Package List — Spack 0.20.0.dev0 documentation
Spack will search your current directory for the download files. Alternatively, add the files to a mirror so that Spack can find them....
Read more >Commands | master | Documentation | Poetry - Python ...
Commands You've already learned how to use the command-line interface to do some things. This chapter documents all the available commands.
Read more >History of Releases - Foliant - GitHub Pages
Anchors added to beginning of files are not random anymore. ... It is needed when local includes that rewrite image paths are used....
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 Free
Top 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
As the console output shows: “No dependencies to install or update”. So the new files are not installed. You would need to
poetry run python -m pip uninstall subpackage
, or bump the version number forsubpackage
.But wait…
Read this: https://python-poetry.org/docs/dependency-specification/#path-dependencies
That is what changed for you between 1.0.10 and 1.1.4. I guess you relied on the editable installation of path dependencies. But now path dependencies are not installed as editable by default any more. So you would need something like that in your
pyproject.toml
:It works!!!
Actually, the issue I noticed was in converting an existing virtualenv from non-develop to develop (or I guess vice versa). Which, admittedly could be pretty dicey.
I’ll close this out. Thank you so much for your help.