-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Asyncio #2731
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
Merged
Merged
Asyncio #2731
Changes from all commits
Commits
Show all changes
171 commits
Select commit
Hold shift + click to select a range
f52a96d
Single, squashed commit
Bibo-Joshi ea70388
Get CH to roughly work
Bibo-Joshi c8b114f
Merge branch 'v14' into asyncio
Bibo-Joshi 362e7b2
Start fixing some sphinx warnings
Bibo-Joshi ecd909d
More reference fixes
Bibo-Joshi d0565fc
Try fixing wrong source links on RTD
Bibo-Joshi 985d24f
Slowly get started on request tests
Bibo-Joshi 916fc20
More request tests
Bibo-Joshi c6b898a
Add two comments
Bibo-Joshi 3008aad
Rework persistence logic
Bibo-Joshi f44ec18
Change pool timeout logic in HTTPXRequest
Bibo-Joshi 6dbafc2
Handle unknown RequestResponse paramas
Bibo-Joshi 6541090
Work on TrackingDict + tests
Bibo-Joshi fb76b4f
Re-add test_callbackdatacache.py
Bibo-Joshi 70820ea
re-add test_filters.py
Bibo-Joshi 1f564e3
Try fixing stuck CI
Bibo-Joshi d3d99cf
Get started on builder tests
Bibo-Joshi ac07df1
Builder tests
Bibo-Joshi ff04f65
Builder tests
Bibo-Joshi 21c7cb7
Builder tests finished
Bibo-Joshi b7d007f
rename a file
Bibo-Joshi 683edf6
Get started on updater tests
Bibo-Joshi 01cb345
One more test & some code simplifications
Bibo-Joshi aa8ea12
Tests for Updater.start_polling
Bibo-Joshi 884eb4e
First webhook test
Bibo-Joshi f55ab05
test arbitrary callback data
Bibo-Joshi d4d28f5
test webhooks with ssl
Bibo-Joshi 29a2860
Another test
Bibo-Joshi c9180fa
adjust ssl handling in webhooks
Bibo-Joshi 8b4aa7a
Finish Updater tests
Bibo-Joshi f262457
Try fixing existing tests
Bibo-Joshi a4080a4
Try harder
Bibo-Joshi e2a3907
Get started on application tests
Bibo-Joshi 88978ff
Improve & tests logic if initializing, shutdown, start & stop
Bibo-Joshi 254a65e
Further improve & test logic if initializing, shutdown, start & stop
Bibo-Joshi f3671fe
Few more application tests
Bibo-Joshi 1ac116e
Few more application tests
Bibo-Joshi d6f95a9
fix updater tests
Bibo-Joshi af42aaf
More application tests - move tests for persistence integration into …
Bibo-Joshi 611c780
Merge remote-tracking branch 'origin/asyncio' into asyncio
Bibo-Joshi a7b5fbd
jobqueue tests - jk, it's still application tests
Bibo-Joshi 59c96fa
you guessed it: application tests
Bibo-Joshi ddf4bb3
Fix tests
Bibo-Joshi ed0ae0a
Simplify a type hint
Bibo-Joshi 30bf475
Test run_polling/updater
Bibo-Joshi 74aab4c
Merge remote-tracking branch 'origin/asyncio' into asyncio
Bibo-Joshi 24dc3e6
skip more tests on windows
Bibo-Joshi 8ab79f3
Small fix for applicationbuilder
Bibo-Joshi c97a532
Test a few more edge cases for application
Bibo-Joshi 272da63
Make test suit run on PRs against asyncio branch
Bibo-Joshi b130115
Remove doubled assertion
Bibo-Joshi 9a347ca
Slowly get started on testing persistence integration
Bibo-Joshi 83d7367
also test conversationhandler-persistence-integration
Bibo-Joshi 98d35af
Actually write some tests
Bibo-Joshi d6c8652
Small fix for persistence init
Bibo-Joshi 6bc2abd
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi 988b300
More persistence integration tests
Bibo-Joshi 5509d71
fix smaller bugs that surfaced while testing persistence integration
Bibo-Joshi 2d2a287
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi 464253f
Review + according tests
Bibo-Joshi 0094683
Merge branch 'v14' into asyncio
Bibo-Joshi 14e4277
Try fixing tests
Bibo-Joshi b2a7520
Try harder
Bibo-Joshi dd761be
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi 326117a
rename test_persistence_integration.py to test_basepersistence.py
Bibo-Joshi 037f53c
Add some basic BasePersistence tests & adjust to the dropped replace…
Bibo-Joshi 82bfb01
Try stabilizing on macOS
Bibo-Joshi cb7934e
Try again
Bibo-Joshi 8fd6659
Test drop/migrate data
Bibo-Joshi a3f15f9
Add a convenience utility to conftest
Bibo-Joshi 4122450
test Updater.start_* return value
Bibo-Joshi 9e6c4d8
Large parts of review
Bibo-Joshi cee0d3c
More review
Bibo-Joshi 7546bbf
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi 234858c
make meta-tests path-agnostic
Bibo-Joshi 3ef4d67
fix join request test
Bibo-Joshi 745bfd1
Remove a sleep
Bibo-Joshi 02940bb
revert catching cancelledError on polling stop
Bibo-Joshi baddee6
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi 257b161
Adjust tests for now bahvior of adding ConversationHandler after init
Bibo-Joshi 38df2b7
Allow App.process_update only after App. initialize was called
Bibo-Joshi 89ba4a4
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi aa864e9
adjust tests
Bibo-Joshi 27d439a
Fix run_* tests on non-windows
Bibo-Joshi 2e897f0
Review
Bibo-Joshi af8a57a
More review
Bibo-Joshi 7ae7d48
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi 0996559
Change error types
10000
Bibo-Joshi 7a60432
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi ab891d1
adjust tests
Bibo-Joshi 7672789
Two more BP tests
Bibo-Joshi 43ede97
fix a test
Bibo-Joshi bdef5fd
one more BP test
Bibo-Joshi b3564c2
review
Bibo-Joshi 79de11c
Remove remaining threading logic
Bibo-Joshi 476a68d
Add notes on testing CH-BP integration and postpone that for now
Bibo-Joshi cae4e18
Test CallbackContext
Bibo-Joshi f90cd50
Test Defaults
Bibo-Joshi 6012501
Get started on JobQueue Tests - half of them is still failing
Bibo-Joshi cc46bbf
Make JobQueue.start asyncio
Bibo-Joshi 68e3471
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi ececf9f
adjust tests
Bibo-Joshi 06ebc12
Merge remote-tracking branch 'origin/asyncio' into asyncio
Bibo-Joshi 138ba20
finish up job_queue tests
Bibo-Joshi 363bfef
some JQ tweaks
Bibo-Joshi 901b936
Merge branch 'asyncio' into asyncio-tests
Bibo-Joshi a852ec6
Test all handles except for CH
Bibo-Joshi 346ac17
fix the test suite
Bibo-Joshi 424f810
small tweak in DictPersistence
Bibo-Joshi d9e0eda
Try to improve non-blocking logic of CH
Bibo-Joshi 2fc5eeb
Remove some resolved todo items
Bibo-Joshi 737e013
some more
Bibo-Joshi d14e55d
fix a typo
Bibo-Joshi 0f69b02
Rename App.dispatch_error to App.process_error
Bibo-Joshi e31419c
fix a bug in persisting non-blocking conversations
Bibo-Joshi d189ce3
Review
Bibo-Joshi a4b37fd
Small adjustments for persistence
Bibo-Joshi a0204c6
Fix persistence of nested conversations
Bibo-Joshi 655d080
Remove unused method from webhook setup
Bibo-Joshi c99645e
Review
Bibo-Joshi 40f886b
more adjusting
Bibo-Joshi 02f3bf3
Review
Bibo-Joshi ed2a39e
Make CH.persistent immutable
Bibo-Joshi 9891fd4
Merge remote-tracking branch 'origin/asyncio' into asyncio
Bibo-Joshi 51b4044
typo
Bibo-Joshi 1a16bda
Remove falsely committed debug print
Bibo-Joshi 92e2cdd
Review
Bibo-Joshi 62fc4ff
Updating the examples (#2937)
Poolitzer 8411d62
log errors in Update.de_json in Updater
Bibo-Joshi 59e0c0a
Merge remote-tracking branch 'origin/asyncio' into asyncio
Bibo-Joshi c116f2e
Stabilize startup of App.run()
Bibo-Joshi 43ca1da
Add another warning about CH timeout not working if JQ is not running
Bibo-Joshi 87e977f
change blocking-resolution order in CH
Bibo-Joshi ef4bc43
small fix
Bibo-Joshi c46fcdd
Docs/CSI for asyncio (#2926)
harshil21 e8fdd13
Asyncio Tests (#2936)
Bibo-Joshi bafd4ed
pre-commit
Bibo-Joshi 0c9be83
some typos, wording etc
Bibo-Joshi 696e622
Apply black style to code blocks in docs
Bibo-Joshi b0605a7
avoid the term "asynchronously"
Bibo-Joshi 6938ed8
Some docstring improvements for app
Bibo-Joshi 6828757
Fix a warning on custom CC attributes
Bibo-Joshi ec784a7
Improve usage of AbstractAsyncContextManager
Bibo-Joshi 26b0dc4
Some versioning directives
Bibo-Joshi d7ff692
fix tests
Bibo-Joshi d7b9643
small edits for tests
Bibo-Joshi b6eef7e
Review
Bibo-Joshi c61afc8
Update timerbot a bit
Bibo-Joshi 70ee0ff
shutdown with signal handlers
Bibo-Joshi 54c83dc
try improving tests
Bibo-Joshi b8f41a5
try again
Bibo-Joshi 0a83834
One last try
Bibo-Joshi 193c435
fix some docs of HTTPXRequest
Bibo-Joshi 079fca1
move definition of InitAppBuilder type alias to bottom of file
harshil21 a1bf431
try to make codacy happy w.r.t hardcoded token in example
harshil21 74bf2df
add a debug print to failing test
Bibo-Joshi bd8fe9e
try fixing the failing test
Bibo-Joshi a7a11bc
create_task while not running: warn instead of log
Bibo-Joshi 9a541f0
second try for failing test
Bibo-Joshi c7677c2
tiny doc fix
Bibo-Joshi b4fa728
Another small doc fix
Bibo-Joshi 12f1322
jobqueue doc fixes
harshil21 bafe934
Rework uploading files - tests for RequestData are not yet adjusted
Bibo-Joshi f36aafb
Merge remote-tracking branch 'origin/asyncio' into asyncio
Bibo-Joshi 0086ad5
doc adjustments
Bibo-Joshi 1aa2fc1
Test RequestData
Bibo-Joshi f1f7e24
document a limit about send_document/voice
harshil21 88b8e19
Fix: Small doc fixes + improvements
Poolitzer 58c7781
forgot to commit review
Bibo-Joshi 66d9a13
fix pre-commit
Bibo-Joshi 9389bc9
finally fix certificate passing
Bibo-Joshi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/ext/_application.py | ||
|
||
telegram.ext.Application | ||
======================== | ||
|
||
.. autoclass:: telegram.ext.Application | ||
:members: | ||
:show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/ext/_applicationbuilder.py | ||
|
||
telegram.ext.ApplicationBuilder | ||
=============================== | ||
|
||
.. autoclass:: telegram.ext.ApplicationBuilder | ||
:members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/ext/_application.py | ||
|
||
telegram.ext.ApplicationHandlerStop | ||
=================================== | ||
|
||
.. autoclass:: telegram.ext.ApplicationHandlerStop | ||
:members: | ||
:show-inheritance: |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.