Skip to content

Add werkzeug version in tests/requirements.txt file#396

Merged
moy merged 1 commit into
MechanicalSoup:mainfrom
maximino-dev:main
Apr 6, 2022
Merged

Add werkzeug version in tests/requirements.txt file#396
moy merged 1 commit into
MechanicalSoup:mainfrom
maximino-dev:main

Conversation

@maximino-dev

Copy link
Copy Markdown
Contributor

In the continuous integration workflow, when pytest runs and calls httpbin, there was an incompatibility issue because httpbin imports a class called 'BaseResponse' from the werkzeug library. Werkzeug recently released a new version (2.1.0) removing this class because it's deprecated. Adding the condition werkzeug < 2.1.0 in the tests/requierements.txt file will temporarly solve the problem.
I requested a PR in the httpbin library, but this little modification will avoid issues in the workflow.

@hemberger

Copy link
Copy Markdown
Contributor

Can you provide a link to the httpbin PR? Thanks!

@maximino-dev

maximino-dev commented Apr 4, 2022

Copy link
Copy Markdown
Contributor Author

Of course, here it is : postmanlabs/httpbin#674

@hemberger hemberger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks! Once a new version of httpbin is released, we should probably remove this requirement though.

@moy moy merged commit 41262fb into MechanicalSoup:main Apr 6, 2022
@moy

moy commented Apr 6, 2022

Copy link
Copy Markdown
Collaborator

Merged. It may deserve a quick release, to avoid issues for people trying to install MechanicalSoup, but I won't have time to make it shortly.

@hemberger

Copy link
Copy Markdown
Contributor

It only affects the dev requirements, and I would expect anyone installing it in dev mode to be using the main branch instead of a release version. However, if you still think this warrants a release, I can make one.

@moy

moy commented Apr 6, 2022

Copy link
Copy Markdown
Collaborator

It only affects the dev requirements

Ah, indeed, I forgot about that. Forget about the release, sure.

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.

3 participants