- Notifications
You must be signed in to change notification settings - Fork5.7k
Open
Description
What kind of feature are you missing? Where do you notice a shortcoming of PTB?
Now thatuv
is well known and established in python community and adopted by many projects, we should consider using some more uv features in our repository.
Describe the solution you'd like
Here's what we can initially change:
- The CI for unit tests can use
uv
built python's, along with using uv commands to setup the job and install dependencies. - Commiting the
uv.lock
file to the repo to increase reproduciblity across different machines. - Using
uv build
instead of thebuild
package in the CI. - Using
uv publish
to release to pypi. They mention that it works through GH actions too, but I don't know how it plays with our specific setup, maybe@Bibo-Joshi can determine if it's a good enough fit. - In the future, we could try using the uvbuild-backend too.
Another idea I had would be to provide a "demo" app, so one could do something like:
uvx python-telegram-bot echobot
and this would run echobot.py (we'd have to read the bot token from stdin or env var).
Describe alternatives you've considered
Not using uv and staying outdated
Additional context
I don't think it's worth replacing all mentions ofpip install
with something likeuv add
, but I think we should at least acknowledge the existence ofuv
in the readme/docs somewhere to encourage more adoption. What do you think?