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
I have searched the issues of this repo and believe that this is not a duplicate.
I have searched the documentation and believe that my question is not covered.
Feature Request
Can poetry support development/debugging in a better way, especially for consumers who use pyc wheels for deployment and source code for development?
Consider the below examples/pyproject.toml:
The current behavior of poetry install --no-dev is to error out with a conflict. If deps is has a caret i.e., ^2.1.0, it installs from the source code.
It would have been more sensible for --no-dev to ignore the tool.poetry.dependencies.So, in scenario 1 and 2 it should have just installed Flask 2.1.0 and 2.1.2 (the latest available as on date) respectively.
The current behavior or poetry install is to error out with the same conflict as above. With caret, it installs Flask from source code; but without deps. When the section is removed from tool.dependencies, it installs from source code with deps.
It would have been more sensible to override the Flask key in tool.poetry.dev-dependencies over tool.poetry.dependencies. So, in scenario 1, 2 and 3 it should have just installed Flask from source code with all its deps.
This is quite similar to #2837; but I thought I will explain why it is good to have that feature.
Also, is it possible to activate a package that I am interested in (like mr.developer and pip install -e)? This is similar to #34, but I am trying to reuse an existing deployment environment for development/debugging. It should activate the package in development mode, using poetry.lock wherever possible.
Eventual goal is to have a single pyproject.toml file that can be used for development/deployment/debugging without much hassle.
Note: pip install -e . seems to works, but is there a recommended way?
Feature Request
Can poetry support development/debugging in a better way, especially for consumers who use
pyc
wheels for deployment and source code for development?Consider the below examples/
pyproject.toml
:The current behavior of
poetry install --no-dev
is to error out with a conflict. If deps is has a caret i.e.,^2.1.0
, it installs from the source code.It would have been more sensible for
--no-dev
to ignore thetool.poetry.dependencies
.So, in scenario 1 and 2 it should have just installed Flask 2.1.0 and 2.1.2 (the latest available as on date) respectively.The current behavior or
poetry install
is to error out with the same conflict as above. With caret, it installs Flask from source code; but without deps. When the section is removed fromtool.dependencies
, it installs from source code with deps.It would have been more sensible to override the
Flask
key intool.poetry.dev-dependencies
overtool.poetry.dependencies
. So, in scenario 1, 2 and 3 it should have just installed Flask from source code with all its deps.This is quite similar to #2837; but I thought I will explain why it is good to have that feature.
Also, is it possible to activate a package that I am interested in (like
mr.developer
andpip install -e
)? This is similar to #34, but I am trying to reuse an existing deployment environment for development/debugging. It should activate the package in development mode, usingpoetry.lock
wherever possible.Eventual goal is to have a single
pyproject.toml
file that can be used for development/deployment/debugging without much hassle.Note:
pip install -e .
seems to works, but is there a recommended way?The text was updated successfully, but these errors were encountered: