Closed ClementWalter closed 2 days ago
Your entrypoint is defined as
[project.scripts]
hello = "hello:main"
So we're calling hello:main
not running hello.py
and hitting your asycnio.run
block
thanks so actually doing
import asyncio
async def _main():
print("Hello from uv-async!")
def main():
asyncio.run(_main())
if __name__ == "__main__":
main()
works for both usages
Yep! Thanks!
Just initializing a new project with
uv init
with this slightly modifiedpyproject.toml
With the default script it works
but adding
asyncio
it raises
Running the script regularly with python works as expected