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
I have a pyproject.toml:
[tool.poetry.scripts]
# aka entry points or console scripts for setup.py usersmerge = 'mypackage.__main__:main'
mypackage contains some assert statements that I do not want run in production, but I would like to run these scripts in "optimized" mode, aka python -O mypackage.__main__.
Feature Request
I have a
pyproject.toml
:mypackage
contains someassert
statements that I do not want run in production, but I would like to run these scripts in "optimized" mode, akapython -O mypackage.__main__
.Is this possible to do with a poetry script? If not, is this easy to add?
Originally asked on StackOverflow
The text was updated successfully, but these errors were encountered: