Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Makepython-telegram-bot a little moreuv friendly #4796

Labels
@harshil21

Description

@harshil21

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:

  1. The CI for unit tests can useuv built python's, along with using uv commands to setup the job and install dependencies.
  2. Commiting theuv.lock file to the repo to increase reproduciblity across different machines.
  3. Usinguv build instead of thebuild package in the CI.
  4. Usinguv 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.
  5. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp