Skip to content
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

Trio 0.17.0 updates #12

Closed
wants to merge 31 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7ad7734
fix typo in test_publish.py
sorcio Jan 4, 2019
8afc1e5
pytest-trio needs pytest >= 3.6
sorcio Jan 4, 2019
3077611
need pytest-cov
sorcio Jan 4, 2019
85f5ff9
expose AmqpProtocol._sock for tests
sorcio Jan 4, 2019
cb290c7
temporarily disable test_wrong_callback_argument
sorcio Jan 4, 2019
4215a9a
pyrabbit.api.Client seems to expect url
sorcio Jan 4, 2019
9fe0645
disable broken 3.5 and 3.7 travis builds
sorcio Jan 4, 2019
8fd5a6e
fix test_publish and remove merge mess
sorcio Jan 4, 2019
d855988
temporarily disable broken test_connection_wrong_login_password
sorcio Jan 4, 2019
ad0b022
Revert "pyrabbit.api.Client seems to expect url"
sorcio Jan 4, 2019
7272834
pyrabbit.api.Client seems to expect /api/ url
sorcio Jan 4, 2019
d9edc69
maybe we don't need to configure rabbitmq in travis after all?
sorcio Jan 4, 2019
2f4a3f1
reset_vhost deletes and recreates vhost
sorcio Jan 4, 2019
8858372
re-enable test_wrong_callback_argument
sorcio Jan 4, 2019
00109f6
fix BufferedReceiveStream getting stuck on closed socket
sorcio Jan 4, 2019
e761b0d
enable travis builds on 3.7 and 3.8-dev (xenial)
sorcio Jan 4, 2019
66a22e6
travis ci requires trusty for rabbitmq, so no python > 3.6
sorcio Jan 4, 2019
fecabf8
remove merge mess
sorcio Jan 4, 2019
0ada777
Merge pull request #6 from sorcio/fix-tests
smurfix Jan 8, 2019
1c47319
use trio.BrokenResourceError
sorcio Jan 3, 2019
46cd740
require trio >= 0.9.0
sorcio Jan 3, 2019
3eece4d
use trio memory channel instead of Queue
sorcio Jan 3, 2019
900009b
catch trio.ClosedResourceError
sorcio Jan 8, 2019
ecfad75
Merge pull request #5 from sorcio/trio-deprecation-warnings
smurfix Jan 8, 2019
ec9e227
whitelist_externals deprecated since tox 3.18.0
mikenerone Dec 18, 2020
f63622d
Minor test fixes/warnings
mikenerone Dec 18, 2020
692c585
Fix tox pytest command
mikenerone Dec 18, 2020
7fe2378
Update for trio 0.11.0 - open_cancel_scope() deprecated
mikenerone Dec 18, 2020
f217b5e
Update for trio 0.12.0 - Event.clear() deprecated
mikenerone Dec 18, 2020
64764f4
Update for trio 0.15.0 - Python 3.5 no longer supported (and EOL)
mikenerone Dec 18, 2020
d23ee72
Update for trio 0.15.0 - trio.hazmat renamed to trio.lowlevel
mikenerone Dec 18, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update for trio 0.12.0 - Event.clear() deprecated
mikenerone committed Dec 18, 2020
commit f217b5e2e205bdf182ed2e51164153cdb63ef071
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
'pytest-trio >= 0.3',
],
install_requires=[
'trio >= 0.11.0',
'trio >= 0.12.0',
],
packages=[
'trio_amqp',
4 changes: 2 additions & 2 deletions trio_amqp/channel.py
Original file line number Diff line number Diff line change
@@ -266,7 +266,7 @@ async def open(self):
)

async def open_ok(self, frame):
self.close_event.clear()
self.close_event = trio.Event()
fut = self._get_waiter('open')
fut.set_result(True)
logger.debug("Channel is open")
@@ -329,7 +329,7 @@ async def flow(self, active):
async def flow_ok(self, frame):
decoder = amqp_frame.AmqpDecoder(frame.payload)
active = bool(decoder.read_octet())
self.close_event.clear()
self.close_event = trio.Event()
fut = self._get_waiter('flow')
fut.set_result({'active': active})