-
Notifications
You must be signed in to change notification settings - Fork 6k
Optional 3rd Party dependencies #3267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Looks like you edited README.rst or README_RAW.rst. I'm just a friendly reminder to apply relevant changes to both of those files :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Looks like you edited the (optional) requirements or the pre-commit hooks. I'm just a friendly reminder to keep the additional dependencies for the hooks in sync with the requirements :)
# Conflicts: # telegram/ext/_extbot.py # telegram/ext/_jobqueue.py # tests/test_callbackdatacache.py
harshil21
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# Conflicts: # telegram/ext/_jobqueue.py
Poolitzer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good to me.
I just realized we could make an optional version with 0 dependencies if we remove the httpx implementation for this version, allowing people to use their own httpx version. Might be nice so they can do whatever they want with no version conflicts.
|
@Poolitzer at that point there won't really be any difference between PTB and ptb-raw, I strongly think httpx should not be optional. I think having aps optional will also be quite annoying to most |
|
@harshil21 yes, I think people will have to change their setup a lot. |
|
Two things that I forgot so far:
|
# Conflicts: # .github/workflows/test.yml
Poolitzer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great change
# Conflicts: # tests/test_bot.py
Makes all 3rd party dependencies optional, i.e. addresses https://github.com/python-telegram-bot/python-telegram-bot/projects/7#card-77767364.
Currently based against the
read-only-cdcbranch, b/c that must be merged first and the diff is better readible this way.Checklist for PRs
.. versionadded:: version,.. versionchanged:: versionor.. deprecated:: versionto the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)Added myself alphabetically toAUTHORS.rst(optional)Added new classes & modules to the docs and all suitable__all__s