Follow our blog, Twitter, or GitHub to see future announcements.
This represents a significant amount of work, and there are quite a few changes. Be sure to carefully read the changelog, and use tools such as pip-compile and Dependabot to pin your dependencies and control your updates.
Fix type annotation for send_filemax_age callable. Don't
pass pathlib.Path to max_age. :issue:2119
Mark top-level names as exported so type checking understands
imports in user projects. :issue:2122
Fix some types that weren't available in Python 3.6.0. :issue:2123
cached_property is generic over its return type, properties
decorated with it report the correct type. :issue:2113
Version 2.0.0
Released 2021-05-11
Drop support for Python 2 and 3.5. :pr:1693
Deprecate :func:utils.format_string, use :class:string.Template
instead. :issue:1756
Deprecate :func:utils.bind_arguments and
:func:utils.validate_arguments, use :meth:Signature.bind and
:func:inspect.signature instead. :issue:1757
Deprecate :class:utils.HTMLBuilder. :issue:1761
Deprecate :func:utils.escape and :func:utils.unescape, use
MarkupSafe instead. :issue:1758
Deprecate the undocumented python -m werkzeug.serving CLI.
:issue:1834
Deprecate the environ["werkzeug.server.shutdown"] function
that is available when running the development server. :issue:1752
Deprecate the useragents module and the built-in user agent
parser. Use a dedicated parser library instead by subclassing
user_agent.UserAgent and setting Request.user_agent_class.
:issue:2078
Remove the unused, internal posixemulation module. :issue:1759
All datetime values are timezone-aware with
tzinfo=timezone.utc. This applies to anything using
http.parse_date: Request.date, .if_modified_since,
.if_unmodified_since; Response.date, .expires,
.last_modified, .retry_after; parse_if_range_header, and
IfRange.date. When comparing values, the other values must also
be aware, or these values must be made naive. When passing
parameters or setting attributes, naive values are still assumed to
be in UTC. :pr:2040
Merge all request and response wrapper mixin code into single
Request and Response classes. Using the mixin classes is no
longer necessary and will show a deprecation warning. Checking
isinstance or issubclass against BaseRequest and
... (truncated)
Commits
73ed5ef Merge pull request #2135 from pallets/release-2.0.1
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps werkzeug from 1.0.1 to 2.0.1.
Release notes
Sourced from werkzeug's releases.
Changelog
Sourced from werkzeug's changelog.
... (truncated)
Commits
73ed5ef
Merge pull request #2135 from pallets/release-2.0.1c09fe3f
release version 2.0.1f0bc6b2
Merge pull request #2134 from pallets/typeshede6305ec
Merge pull request #2133 from pallets/http-description67ef741
convertHTTPException.description
to stringca830ca
use _typeshed.wsgi instead of wsgiref.typesc2fd0f1
update 2128 changelog1b8907a
Merge pull request #2129 from bayesimpact/pascal-type-get625aaba
Enhance type of headers.get method.1104012
Merge pull request #2126 from pgjones/mpfixDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)