diff -pruN 0.17.4-2/PKG-INFO 0.17.5-1/PKG-INFO
--- 0.17.4-2/PKG-INFO	2025-03-07 06:37:57.264429600 +0000
+++ 0.17.5-1/PKG-INFO	2025-07-09 15:22:31.408878600 +0000
@@ -1,31 +1,9 @@
-Metadata-Version: 2.2
+Metadata-Version: 2.4
 Name: sphinx-codeautolink
-Version: 0.17.4
+Version: 0.17.5
 Summary: Automatic links from code examples to reference documentation.
 Author-email: Felix Hildén <felix.hilden@gmail.com>
 Maintainer-email: Felix Hildén <felix.hilden@gmail.com>
-License: MIT License
-        
-        Copyright (c) 2021-2025 Felix Hildén
-        
-        Permission is hereby granted, free of charge, to any person obtaining a copy
-        of this software and associated documentation files (the "Software"), to deal
-        in the Software without restriction, including without limitation the rights
-        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-        copies of the Software, and to permit persons to whom the Software is
-        furnished to do so, subject to the following conditions:
-        
-        The above copyright notice and this permission notice shall be included in all
-        copies or substantial portions of the Software.
-        
-        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-        SOFTWARE.
-        
 Project-URL: homepage, https://pypi.org/project/sphinx-codeautolink
 Project-URL: download, https://pypi.org/project/sphinx-codeautolink
 Project-URL: source, https://github.com/felix-hilden/sphinx-codeautolink
@@ -51,6 +29,7 @@ Requires-Dist: sphinx>=3.2.0
 Requires-Dist: beautifulsoup4>=4.8.1
 Provides-Extra: ipython
 Requires-Dist: ipython!=8.7.0; extra == "ipython"
+Dynamic: license-file
 
 sphinx-codeautolink
 ===================
diff -pruN 0.17.4-2/debian/changelog 0.17.5-1/debian/changelog
--- 0.17.4-2/debian/changelog	2025-05-17 19:26:24.000000000 +0000
+++ 0.17.5-1/debian/changelog	2025-08-22 21:15:12.000000000 +0000
@@ -1,3 +1,13 @@
+python-sphinx-codeautolink (0.17.5-1) unstable; urgency=medium
+
+  * Team upload.
+  * New upstream release.
+  * Bump required python3-setuptools version to 77.0.
+  * Refresh 0002-Mark-tests-needing-internet-access.patch.
+  * Upload to unstable.
+
+ -- Dmitry Shachnev <mitya57@debian.org>  Sat, 23 Aug 2025 00:15:12 +0300
+
 python-sphinx-codeautolink (0.17.4-2) experimental; urgency=medium
 
   * Team upload.
diff -pruN 0.17.4-2/debian/control 0.17.5-1/debian/control
--- 0.17.4-2/debian/control	2025-05-17 19:26:24.000000000 +0000
+++ 0.17.5-1/debian/control	2025-08-22 21:15:12.000000000 +0000
@@ -5,7 +5,7 @@ Maintainer: Debian Python Team <team+pyt
 Uploaders: Michael R. Crusoe <crusoe@debian.org>
 Build-Depends: debhelper-compat (= 13),
                pybuild-plugin-pyproject,
-               python3-setuptools,
+               python3-setuptools (>= 77.0),
                python3-all,
                python3-sphinx,
                python3-bs4,
diff -pruN 0.17.4-2/debian/patches/0002-Mark-tests-needing-internet-access.patch 0.17.5-1/debian/patches/0002-Mark-tests-needing-internet-access.patch
--- 0.17.4-2/debian/patches/0002-Mark-tests-needing-internet-access.patch	2025-05-17 19:26:24.000000000 +0000
+++ 0.17.5-1/debian/patches/0002-Mark-tests-needing-internet-access.patch	2025-08-22 21:15:12.000000000 +0000
@@ -8,10 +8,10 @@ Forwarded: not-needed
  1 file changed, 7 insertions(+), 1 deletion(-)
 
 diff --git a/tests/extension/__init__.py b/tests/extension/__init__.py
-index bf3613c..63784aa 100644
+index 0279bee..eed5007 100644
 --- a/tests/extension/__init__.py
 +++ b/tests/extension/__init__.py
-@@ -30,7 +30,13 @@ codeautolink_warn_on_failed_resolve = True
+@@ -31,7 +31,13 @@ codeautolink_warn_on_no_backreference = False
  
  any_whitespace = re.compile(r"\s*")
  ref_tests = [(p.name, p) for p in Path(__file__).with_name("ref").glob("*.txt")]
diff -pruN 0.17.4-2/docs/src/release_notes.rst 0.17.5-1/docs/src/release_notes.rst
--- 0.17.4-2/docs/src/release_notes.rst	2025-03-07 06:33:21.000000000 +0000
+++ 0.17.5-1/docs/src/release_notes.rst	2025-07-09 15:17:54.000000000 +0000
@@ -8,6 +8,10 @@ These release notes are based on
 sphinx-codeautolink adheres to
 `Semantic Versioning <https://semver.org>`_.
 
+0.17.5 (2025-07-09)
+-------------------
+- Add ``Python`` to default lexers (:issue:`194`)
+
 0.17.4 (2025-03-07)
 -------------------
 - Fix backreference links using relative URIs (:issue:`190`)
diff -pruN 0.17.4-2/pyproject.toml 0.17.5-1/pyproject.toml
--- 0.17.4-2/pyproject.toml	2025-03-07 06:29:03.000000000 +0000
+++ 0.17.5-1/pyproject.toml	2025-07-09 15:14:56.000000000 +0000
@@ -1,12 +1,12 @@
 [build-system]
-requires = ["setuptools>=61.0", "wheel"]
+requires = ["setuptools>=77.0", "wheel"]
 build-backend = "setuptools.build_meta"
 
 [project]
 name = "sphinx-codeautolink"
 description = "Automatic links from code examples to reference documentation."
 readme = "readme_pypi.rst"
-license = {file = "LICENSE"}
+license-files = ["LICENSE"]
 dynamic = ["version"]
 
 requires-python = ">=3.10"
diff -pruN 0.17.4-2/src/sphinx_codeautolink/__init__.py 0.17.5-1/src/sphinx_codeautolink/__init__.py
--- 0.17.4-2/src/sphinx_codeautolink/__init__.py	2025-03-07 06:33:03.000000000 +0000
+++ 0.17.5-1/src/sphinx_codeautolink/__init__.py	2025-07-09 15:18:02.000000000 +0000
@@ -8,7 +8,7 @@ from .extension import SphinxCodeAutoLin
 from .extension.block import clean_ipython, clean_pycon
 from .extension.translation import MESSAGE_CATALOG_NAME
 
-__version__ = "0.17.4"
+__version__ = "0.17.5"
 
 
 def setup(app: Sphinx):
diff -pruN 0.17.4-2/src/sphinx_codeautolink/extension/__init__.py 0.17.5-1/src/sphinx_codeautolink/extension/__init__.py
--- 0.17.4-2/src/sphinx_codeautolink/extension/__init__.py	2025-03-07 06:31:26.000000000 +0000
+++ 0.17.5-1/src/sphinx_codeautolink/extension/__init__.py	2025-07-09 15:14:56.000000000 +0000
@@ -52,7 +52,7 @@ def print_exceptions(*, append_source: b
                     source = doctree["source"]
                     msg = f"in document `{source}`"
                     if e.args:
-                        e.args = (e.args[0] + f" ({msg})",) + e.args[1:]
+                        e.args = (e.args[0] + f" ({msg})", *e.args[1:])
                     else:
                         e.args = (f"Unexpected error {msg}",)
                 raise
diff -pruN 0.17.4-2/src/sphinx_codeautolink/extension/block.py 0.17.5-1/src/sphinx_codeautolink/extension/block.py
--- 0.17.4-2/src/sphinx_codeautolink/extension/block.py	2025-03-07 06:29:03.000000000 +0000
+++ 0.17.5-1/src/sphinx_codeautolink/extension/block.py	2025-07-09 15:16:44.000000000 +0000
@@ -21,6 +21,7 @@ from .directive import ConcatMarker, Pre
 BUILTIN_BLOCKS = {
     "default": None,
     "python": None,
+    "Python": None,
     "python3": None,
     "py": None,
     "py3": None,
@@ -88,7 +89,7 @@ def _exclude_ipython_output(source: str)
 
 def clean_ipython(source: str) -> tuple[str, str]:
     """Clean up IPython magics and console syntax to pure Python."""
-    from IPython.core.inputtransformer2 import TransformerManager
+    from IPython.core.inputtransformer2 import TransformerManager  # noqa: PLC0415
 
     clean = _exclude_ipython_output(source)
     return source, TransformerManager().transform_cell(clean)
diff -pruN 0.17.4-2/src/sphinx_codeautolink.egg-info/PKG-INFO 0.17.5-1/src/sphinx_codeautolink.egg-info/PKG-INFO
--- 0.17.4-2/src/sphinx_codeautolink.egg-info/PKG-INFO	2025-03-07 06:37:57.000000000 +0000
+++ 0.17.5-1/src/sphinx_codeautolink.egg-info/PKG-INFO	2025-07-09 15:22:31.000000000 +0000
@@ -1,31 +1,9 @@
-Metadata-Version: 2.2
+Metadata-Version: 2.4
 Name: sphinx-codeautolink
-Version: 0.17.4
+Version: 0.17.5
 Summary: Automatic links from code examples to reference documentation.
 Author-email: Felix Hildén <felix.hilden@gmail.com>
 Maintainer-email: Felix Hildén <felix.hilden@gmail.com>
-License: MIT License
-        
-        Copyright (c) 2021-2025 Felix Hildén
-        
-        Permission is hereby granted, free of charge, to any person obtaining a copy
-        of this software and associated documentation files (the "Software"), to deal
-        in the Software without restriction, including without limitation the rights
-        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-        copies of the Software, and to permit persons to whom the Software is
-        furnished to do so, subject to the following conditions:
-        
-        The above copyright notice and this permission notice shall be included in all
-        copies or substantial portions of the Software.
-        
-        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-        SOFTWARE.
-        
 Project-URL: homepage, https://pypi.org/project/sphinx-codeautolink
 Project-URL: download, https://pypi.org/project/sphinx-codeautolink
 Project-URL: source, https://github.com/felix-hilden/sphinx-codeautolink
@@ -51,6 +29,7 @@ Requires-Dist: sphinx>=3.2.0
 Requires-Dist: beautifulsoup4>=4.8.1
 Provides-Extra: ipython
 Requires-Dist: ipython!=8.7.0; extra == "ipython"
+Dynamic: license-file
 
 sphinx-codeautolink
 ===================
diff -pruN 0.17.4-2/src/sphinx_codeautolink.egg-info/SOURCES.txt 0.17.5-1/src/sphinx_codeautolink.egg-info/SOURCES.txt
--- 0.17.4-2/src/sphinx_codeautolink.egg-info/SOURCES.txt	2025-03-07 06:37:57.000000000 +0000
+++ 0.17.5-1/src/sphinx_codeautolink.egg-info/SOURCES.txt	2025-07-09 15:22:31.000000000 +0000
@@ -83,6 +83,7 @@ tests/extension/ref/custom_block_importe
 tests/extension/ref/empty_project.txt
 tests/extension/ref/inventory_map_is_needed.txt
 tests/extension/ref/inventory_map_not_needed.txt
+tests/extension/ref/lexer_Python.txt
 tests/extension/ref/lexer_bazel.txt
 tests/extension/ref/lexer_default.txt
 tests/extension/ref/lexer_default_fail.txt
diff -pruN 0.17.4-2/tests/extension/ref/lexer_Python.txt 0.17.5-1/tests/extension/ref/lexer_Python.txt
--- 0.17.4-2/tests/extension/ref/lexer_Python.txt	1970-01-01 00:00:00.000000000 +0000
+++ 0.17.5-1/tests/extension/ref/lexer_Python.txt	2025-07-09 15:16:44.000000000 +0000
@@ -0,0 +1,13 @@
+test_project
+test_project.bar
+# split
+# split
+Test project
+============
+
+.. code-block:: Python
+
+   import test_project
+   test_project.bar()
+
+.. automodule:: test_project
diff -pruN 0.17.4-2/tests/extension/src/future_project.py 0.17.5-1/tests/extension/src/future_project.py
--- 0.17.4-2/tests/extension/src/future_project.py	2025-02-15 12:24:32.000000000 +0000
+++ 0.17.5-1/tests/extension/src/future_project.py	2025-07-09 15:14:56.000000000 +0000
@@ -10,7 +10,7 @@ class Foo:
     attr: str = "test"
 
 
-def optional() -> Optional[Foo]:  # noqa: UP007
+def optional() -> Optional[Foo]:  # noqa: UP045
     """Return optional type."""
 
 
