question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing `develop` option is not reflected

See original GitHub issue
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

TLDR; changing develop of a dependency field and poetry update don’t have any effect.

I have a project consists of two poetry project:

. --  foo/
  |     |- pyproject.toml
  |-- bar/
        |- pyproject.toml

foo depends on bar as follows:

# pyproject.toml
...
[tool.poetry.dependencies]
python = "^3.8"
bar = {path="../bar"}
...

(Full example here: https://github.com/tamuhey/poetry111_bug_mvce/blob/master/foo/pyproject.toml)

Since the editable mode is false by default from poetry v1.1, bar is copied into another directory. It’s ok.

But, after changing the dependency of bar to editable (develop = true) as follows and running poetry update don’t change anything, as I expected that bar is changed to editable dependency.

# pyproject.toml
...
[tool.poetry.dependencies]
python = "^3.8"
bar = {path="../bar", develop=true}
...

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
kkuriatacommented, Apr 11, 2022

Yeah. I can confirm that it is really annoying. It’s hard to develop anything when you have to poetry update after changes… And it takes much time to do that.

5reactions
lochshcommented, Dec 7, 2021

I am still seeing this issue on poetry 1.1.12. To be explicit:

  • pyproject.toml has dep = {path = "/path/to/dep"}
  • I run poetry update
  • /path/to/dep is copied into the venv, as expected
  • I edit pyproject.toml to have dep = {path = "/path/to/dep", develop=true}
  • I run poetry update
  • Instead of the dep in the venv being replaced by dep.pth file, it is not replaced and so I do not have an editable dependency.

Issues such as this and https://github.com/python-poetry/poetry/issues/3958 make it hard to feel confident that poetry update has done the right thing – it’s a shame to spend time cautiously deleting venvs just in case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show the Developer tab - Microsoft Support
The Developer tab isn't displayed by default, but you can add it to the ribbon. On the File tab, go to Options >...
Read more >
Configure on-device developer options - Android Developers
Enable developer options and USB debugging​​ On Android 4.1 and lower, the Developer options screen is available by default. On Android 4.2 and...
Read more >
How to Enable the Develop Menu in Safari for Mac | OSXDaily
The Developer menu in Safari for Mac OS and Mac OS X is disabled by default, but it can be quickly turned on...
Read more >
Use the developer tools in the Develop menu in Safari on Mac
If you don't see the Develop menu in the menu bar, choose Safari > Settings, click Advanced, then select “Show Develop menu in...
Read more >
How do you programmatically enable the "Develop" menu in ...
Safari IncludeDevelopMenu -bool true. Then open Safari and the Develop menu will appear. ... Did you restart the browser to reflect changes?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found