Open haplo opened 2 weeks ago
rye init async_call
cd async_call
echo -e 'async def hello():\n print("Hi!")' > src/async_call/main.py
echo -e '[tool.rye.scripts]\nhello = { call = "src.async_call.main:hello" }' >> pyproject.toml
rye run hello
$ rye run hello Hi!
$ rye run hello <coroutine object hello at 0x7c7ac106cac0> sys:1: RuntimeWarning: coroutine 'hello' was never awaited RuntimeWarning: Enable tracemalloc to get the object allocation traceback
rye 0.39.0 commit: 0.39.0 (bf3ccf818 2024-08-21) platform: linux (x86_64) self-python: cpython@3.12.5 symlink support: true uv enabled: true
No response
Steps to Reproduce
rye init async_call
cd async_call
echo -e 'async def hello():\n print("Hi!")' > src/async_call/main.py
echo -e '[tool.rye.scripts]\nhello = { call = "src.async_call.main:hello" }' >> pyproject.toml
rye run hello
Expected Result
Actual Result
Version Info
Stacktrace
No response