Repository: twisted/twisted

Issue:
Release 22.10.0
This is the ticket to track the release of 22.10.0


Discussion:

Resolving patch:
diff --git a/src/twisted/_version.py b/src/twisted/_version.py
--- a/src/twisted/_version.py
+++ b/src/twisted/_version.py
@@ -7,5 +7,5 @@
 
 from incremental import Version
 
-__version__ = Version("Twisted", 22, 8, 0, post=0)
+__version__ = Version("Twisted", 22, 10, 0, post=0)
 __all__ = ["__version__"]
diff --git a/src/twisted/python/deprecate.py b/src/twisted/python/deprecate.py
--- a/src/twisted/python/deprecate.py
+++ b/src/twisted/python/deprecate.py
@@ -10,14 +10,14 @@
     from incremental import Version
     from twisted.python.deprecate import deprecated
 
-    @deprecated(Version("Twisted", "NEXT", 0, 0))
+    @deprecated(Version("Twisted", 22, 10, 0))
     def badAPI(self, first, second):
         '''
         Docstring for badAPI.
         '''
         ...
 
-    @deprecated(Version("Twisted", "NEXT", 0, 0))
+    @deprecated(Version("Twisted", 22, 10, 0))
     class BadClass:
         '''
         Docstring for BadClass.
@@ -34,7 +34,7 @@ class BadClass:
 
     class OtherwiseUndeprecatedClass:
 
-        @deprecatedProperty(Version("Twisted", "NEXT", 0, 0))
+        @deprecatedProperty(Version("Twisted", 22, 10, 0))
         def badProperty(self):
             '''
             Docstring for badProperty.
@@ -54,7 +54,7 @@ def badProperty(self, value):
     ...
 
     deprecatedModuleAttribute(
-        Version("Twisted", "NEXT", 0, 0),
+        Version("Twisted", 22, 10, 0),
         "Use goodAttribute instead.",
         "your.full.module.name",
         "badAttribute")
@@ -68,7 +68,7 @@ def badProperty(self, value):
 To mark an optional, keyword parameter of a function or method as deprecated
 without deprecating the function itself, you can use::
 
-    @deprecatedKeywordParameter(Version("Twisted", "NEXT", 0, 0), "baz")
+    @deprecatedKeywordParameter(Version("Twisted", 22, 10, 0), "baz")
     def someFunction(foo, bar=0, baz=None):
         ...
 
diff --git a/src/twisted/web/resource.py b/src/twisted/web/resource.py
--- a/src/twisted/web/resource.py
+++ b/src/twisted/web/resource.py
@@ -299,7 +299,7 @@ class _UnsafeErrorPage(Resource):
     (parameterized) status and a body consisting of HTML containing some
     descriptive text.  This is useful for rendering simple error pages.
 
-    Deprecated in Twisted NEXT because it permits HTML injection; use
+    Deprecated in Twisted 22.10.0 because it permits HTML injection; use
     L{twisted.web.pages.errorPage} instead.
 
     @ivar template: A native string which will have a dictionary interpolated
@@ -359,7 +359,7 @@ class _UnsafeNoResource(_UnsafeErrorPage):
     C{NoResource}, is a specialization of L{_UnsafeErrorPage} which
     returns the HTTP response code I{NOT FOUND}.
 
-    Deprecated in Twisted NEXT because it permits HTML injection; use
+    Deprecated in Twisted 22.10.0 because it permits HTML injection; use
     L{twisted.web.pages.notFound} instead.
     """
 
@@ -373,7 +373,7 @@ class _UnsafeForbiddenResource(_UnsafeErrorPage):
     C{ForbiddenResource} is a specialization of L{_UnsafeErrorPage} which
     returns the I{FORBIDDEN} HTTP response code.
 
-    Deprecated in Twisted NEXT because it permits HTML injection; use
+    Deprecated in Twisted 22.10.0 because it permits HTML injection; use
     L{twisted.web.pages.forbidden} instead.
     """
 
@@ -387,21 +387,21 @@ def __init__(self, message="Sorry, resource is forbidden."):
 ForbiddenResource = _UnsafeForbiddenResource
 
 deprecatedModuleAttribute(
-    Version("Twisted", "NEXT", 0, 0),
+    Version("Twisted", 22, 10, 0),
     "Use twisted.web.pages.errorPage instead, which properly escapes HTML.",
     __name__,
     "ErrorPage",
 )
 
 deprecatedModuleAttribute(
-    Version("Twisted", "NEXT", 0, 0),
+    Version("Twisted", 22, 10, 0),
     "Use twisted.web.pages.notFound instead, which properly escapes HTML.",
     __name__,
     "NoResource",
 )
 
 deprecatedModuleAttribute(
-    Version("Twisted", "NEXT", 0, 0),
+    Version("Twisted", 22, 10, 0),
     "Use twisted.web.pages.forbidden instead, which properly escapes HTML.",
     __name__,
     "ForbiddenResource",


Test patch: