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

Updated dependencies to fix breaking changes in requests #1189

Merged
merged 6 commits into from
Jul 15, 2024

Conversation

cartertinney
Copy link
Member

@cartertinney cartertinney commented Jul 9, 2024

  • requests had critical security fixes that required updating minimum version
  • This fix broke the requests-unixsocket dependency which used monkey-patching
  • requests-unixsocket is abandoned, so switched to use the fork requests-unixsocket2
  • Also updated urllib3 dependency to be more flexible.
  • Added support for Python 3.11 and 3.12

@ryanwinter ryanwinter self-requested a review July 9, 2024 22:44
@robin-wayve
Copy link

resolves #1187?

@cartertinney
Copy link
Member Author

resolves #1187?

Yes. Also #1180

@@ -693,6 +694,10 @@ async def test_raises_error_when_message_size_greater_than_256(self, client, mqt
assert "256 KB" in e_info.value.args[0]
assert mqtt_pipeline.send_message.call_count == 0

@pytest.mark.skipif(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these python 3.12 issues? Does this impact the customer at all? Looks like if they have large messages they might not get an error?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - but honestly, this max size never actually worked in practice, so it's not an issue.

vsts/python-e2e.yaml Outdated Show resolved Hide resolved
@cartertinney
Copy link
Member Author

/azp run Python E2E

Copy link

No pipelines are associated with this pull request.

@olivakar
Copy link
Collaborator

/azp run Azure.azure-iot-sdk-python-dps-e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@cartertinney
Copy link
Member Author

/azp run Python E2E

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@cartertinney cartertinney merged commit 08922a4 into main Jul 15, 2024
16 of 18 checks passed
@cartertinney cartertinney deleted the ct-update-unixsocket branch July 15, 2024 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants