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

Upgrade Werkzeug to 2.x and fix affected tests #499

Merged
merged 1 commit into from Jun 7, 2021
Merged

Upgrade Werkzeug to 2.x and fix affected tests #499

merged 1 commit into from Jun 7, 2021

Conversation

yan12125
Copy link

@yan12125 yan12125 commented Jun 5, 2021

I noticed this when I was testing klein with the latest Python packages. Someone Werkzeug is not automatically upgraded via requires.io, and several others (e.g., attrs, six) are already out-dated before the last requires.io pull request (#498), too. I guess something was wrong at their end.

@yan12125 yan12125 requested a review from a team as a code owner June 5, 2021 18:19
* A redundant space before the word "If" is remove in Werkzeug 2.0
pallets/werkzeug@5fd1386#diff-b9d6906a0da8b5a9877b17ac5ea491161a660ce7e513921738d3e284bd9e9c96L528

* A `cast()` is no longer needed as Werkzeug 2.x is properly
  type-annotated: pallets/werkzeug@967b2da
@codecov
Copy link

codecov bot commented Jun 5, 2021

Codecov Report

Merging #499 (f598a74) into master (7bb88a8) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #499   +/-   ##
=======================================
  Coverage   98.70%   98.70%           
=======================================
  Files          44       44           
  Lines        3849     3849           
  Branches      249      249           
=======================================
  Hits         3799     3799           
  Misses         33       33           
  Partials       17       17           
Impacted Files Coverage Δ
src/klein/test/test_resource.py 98.04% <ø> (ø)
src/klein/_app.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7bb88a8...f598a74. Read the comment docs.

@wsanchez
Copy link
Member

wsanchez commented Jun 7, 2021

@yan12125 Thanks for the patch. Much appreciated.

@wsanchez wsanchez merged commit a7e6c76 into twisted:master Jun 7, 2021
@yan12125 yan12125 deleted the werkzeug-2.x branch June 8, 2021 01:53
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this pull request Jun 20, 2021
Most of patches are home-grown instead of from upstream, as upstream fixes
are quite large and cannot be cleanly backported. Specifically, upstream
moves test strategies from Klein to Hyperlink [1] and drop Python 2.x
support [2,3]. The fix for Werkzeug 2.x in test_resource.py [3] is smaller,
while it cannot be cleanly backported, either.

[1] twisted/klein#393
[2] twisted/klein#328
[3] twisted/klein#355
[4] twisted/klein#499

git-svn-id: file:///srv/repos/svn-community/svn@965883 9fca08f4-af9d-4005-b8df-a31f2cc04f65
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this pull request Jun 20, 2021
Most of patches are home-grown instead of from upstream, as upstream fixes
are quite large and cannot be cleanly backported. Specifically, upstream
moves test strategies from Klein to Hyperlink [1] and drop Python 2.x
support [2,3]. The fix for Werkzeug 2.x in test_resource.py [3] is smaller,
while it cannot be cleanly backported, either.

[1] twisted/klein#393
[2] twisted/klein#328
[3] twisted/klein#355
[4] twisted/klein#499



git-svn-id: file:///srv/repos/svn-community/svn@965883 9fca08f4-af9d-4005-b8df-a31f2cc04f65
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.

None yet

2 participants