-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot reload does not work within poetry scripts #329
Comments
If you need an example of my Quart project: https://github.com/healplease/qrt |
This seems like something that needs to be reported to Poetry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When creating a Quart app using Poetry as a dependency manager and using Poetry to run a server with scripts, how reload fails to restart the app.
pyproject.toml
[tool.poetry.scripts]
section that points to your app or app factory, likedev = helloworld:app
. Make sure that app uses reloader, with snippet like this:in
app/serve.py
and in
pyproject.toml
poetry install
poetry run dev
Expected result:
Project reloads, allowing you to see your changes immidiately
Observed result:
Project fails to reload with the next stacktrace
dev.cmd
is a file created in your virtual environment by Poetry onpoetry install
(name of file same as the name of script inpyproject.toml
) it tells poetry how to run the command and runs on hot reload, but it seems that file is treated as a Python script, while it should be treated as a Windows command-line script.It seems as important bug to me since you recommend using Poetry for project management.
Environment:
The text was updated successfully, but these errors were encountered: