diff -pruN 1.10-5/debian/changelog 1.10-6/debian/changelog
--- 1.10-5/debian/changelog	2025-09-09 04:56:04.000000000 +0000
+++ 1.10-6/debian/changelog	2025-10-22 08:01:39.000000000 +0000
@@ -1,3 +1,13 @@
+python-async-generator (1.10-6) unstable; urgency=medium
+
+  * watch: fix typo in switch to format version 5.
+  * Mark the python package as Multi-Arch: foreign.
+  * Switch to dh-sequence-zz-debputy-rrr.
+  * Add upstream/metadata.
+  * Update setup.py to pyproject.toml.
+
+ -- Nicolas Boulenguez <nicolas@debian.org>  Wed, 22 Oct 2025 10:01:39 +0200
+
 python-async-generator (1.10-5) unstable; urgency=medium
 
   * Update standards version
diff -pruN 1.10-5/debian/control 1.10-6/debian/control
--- 1.10-5/debian/control	2025-09-09 04:56:04.000000000 +0000
+++ 1.10-6/debian/control	2025-10-22 08:01:39.000000000 +0000
@@ -4,8 +4,10 @@ Priority: optional
 Maintainer: Nicolas Boulenguez <nicolas@debian.org>
 Build-Depends:
  debhelper-compat (= 13),
+ dh-sequence-zz-debputy-rrr,
  dh-sequence-python3,
  dh-sequence-sphinxdoc,
+ pybuild-plugin-pyproject,
  python3-doc,
 # debian/patches/sphinx-no-network.diff.
  python3-all,
@@ -24,7 +26,7 @@ Testsuite: autopkgtest-pkg-python
 
 Package: python3-async-generator
 Architecture: all
-Depends: ${python3:Depends}, ${misc:Depends}
+Multi-Arch: foreign
 Description: extensions to asynchronous generators for Python3
  The python3 language provides some structures to process streaming
  data with an interface similar to the iteration structures.  This
@@ -34,8 +36,6 @@ Description: extensions to asynchronous
 Package: python3-async-generator-doc
 Section: doc
 Architecture: all
-Depends: ${misc:Depends}, ${sphinxdoc:Depends}
-Built-Using: ${sphinxdoc:Built-Using}
 Multi-Arch: foreign
 Description: extensions to asynchronous generators for Python3 (documentation)
  The python3 language provides some structures to process streaming
diff -pruN 1.10-5/debian/patches/pyproject.diff 1.10-6/debian/patches/pyproject.diff
--- 1.10-5/debian/patches/pyproject.diff	1970-01-01 00:00:00.000000000 +0000
+++ 1.10-6/debian/patches/pyproject.diff	2025-10-22 08:01:39.000000000 +0000
@@ -0,0 +1,74 @@
+Description: add pyproject.toml for recent setuptools
+Author: Nicolas Boulenguez <nicolas@debian.org>
+
+--- /dev/null
++++ b/pyproject.toml
+@@ -0,0 +1,32 @@
++[build-system]
++requires = ["setuptools >= 77.0.3"]
++build-backend = "setuptools.build_meta"
++
++[project]
++name = "async_generator"
++description = "Async generators and context managers for Python 3.5+"
++readme = "README.rst"
++authors = [
++  {name = "Nathaniel J. Smith", email = "njs@pobox.com"},
++]
++license = "MIT OR Apache-2.0"
++license-files = ["LICENSE", "LICENSE.APACHE2", "LICENSE.MIT"]
++requires-python = ">= 3.5"
++keywords = ["async"]
++classifiers = [
++  "Development Status :: 5 - Production/Stable",
++  "Intended Audience :: Developers",
++  "Programming Language :: Python :: Implementation :: CPython",
++  "Programming Language :: Python :: Implementation :: PyPy",
++  "Programming Language :: Python :: 3 :: Only",
++  "Programming Language :: Python :: 3.5",
++  "Programming Language :: Python :: 3.6",
++  "Framework :: AsyncIO",
++]
++dynamic = ["version"]
++
++[project.urls]
++Homepage = "https://github.com/python-trio/async_generator"
++
++[tool.setuptools.dynamic]
++version = {attr = "async_generator._version.__version__"}
+--- a/setup.py
++++ /dev/null
+@@ -1,33 +0,0 @@
+-from pathlib import Path
+-
+-from setuptools import setup, find_packages
+-
+-exec(open("async_generator/_version.py", encoding="utf-8").read())
+-
+-setup(
+-    name="async_generator",
+-    version=__version__,
+-    description="Async generators and context managers for Python 3.5+",
+-    # Just in case the cwd is not the root of the source tree, or python is
+-    # not set to use utf-8 by default:
+-    long_description=Path(__file__).with_name("README.rst").read_text('utf-8'),
+-    author="Nathaniel J. Smith",
+-    author_email="njs@pobox.com",
+-    license="MIT -or- Apache License 2.0",
+-    packages=find_packages(),
+-    url="https://github.com/python-trio/async_generator",
+-    python_requires=">=3.5",
+-    keywords=["async"],
+-    classifiers=[
+-        'Development Status :: 5 - Production/Stable',
+-        "Intended Audience :: Developers",
+-        "License :: OSI Approved :: MIT License",
+-        "License :: OSI Approved :: Apache Software License",
+-        "Programming Language :: Python :: Implementation :: CPython",
+-        "Programming Language :: Python :: Implementation :: PyPy",
+-        "Programming Language :: Python :: 3 :: Only",
+-        "Programming Language :: Python :: 3.5",
+-        "Programming Language :: Python :: 3.6",
+-        "Framework :: AsyncIO",
+-    ]
+-)
diff -pruN 1.10-5/debian/patches/series 1.10-6/debian/patches/series
--- 1.10-5/debian/patches/series	2025-09-09 04:56:04.000000000 +0000
+++ 1.10-6/debian/patches/series	2025-10-22 08:01:39.000000000 +0000
@@ -1 +1,2 @@
 sphinx-no-network.diff
+pyproject.diff
diff -pruN 1.10-5/debian/patches/sphinx-no-network.diff 1.10-6/debian/patches/sphinx-no-network.diff
--- 1.10-5/debian/patches/sphinx-no-network.diff	2025-09-09 04:56:04.000000000 +0000
+++ 1.10-6/debian/patches/sphinx-no-network.diff	2025-10-22 08:01:39.000000000 +0000
@@ -6,7 +6,7 @@ Forwarded: not-needed
 
 --- a/docs/source/conf.py
 +++ b/docs/source/conf.py
-@@ -49,8 +49,12 @@
+@@ -50,8 +50,12 @@
  intersphinx_mapping = {
      # 3.7 so that we can link to contextlib.asynccontextmanager
      # This URL can switch back to /3 after cpython 3.7 is released
diff -pruN 1.10-5/debian/source/lintian-overrides 1.10-6/debian/source/lintian-overrides
--- 1.10-5/debian/source/lintian-overrides	2025-09-09 04:56:04.000000000 +0000
+++ 1.10-6/debian/source/lintian-overrides	2025-10-22 08:01:39.000000000 +0000
@@ -1,2 +1,2 @@
-# #999785
-built-using-field-on-arch-all-package (in section for python3-async-generator-doc) Built-Using ${sphinxdoc:Built-Using} [debian/control:*]
+# #1067653
+debhelper-but-no-misc-depends *
diff -pruN 1.10-5/debian/upstream/metadata 1.10-6/debian/upstream/metadata
--- 1.10-5/debian/upstream/metadata	1970-01-01 00:00:00.000000000 +0000
+++ 1.10-6/debian/upstream/metadata	2025-10-22 08:01:39.000000000 +0000
@@ -0,0 +1,6 @@
+Bug-Database: https://github.com/python-trio/async_generator/issues
+Bug-Submit: https://github.com/python-trio/async_generator/issues/new
+Changelog: https://github.com/python-trio/async_generator/blob/master/CHANGES
+Repository-Browse: https://github.com/python-trio/async_generator/
+Repository: https://github.com/python-trio/async_generator.git
+Archive: PyPI
diff -pruN 1.10-5/debian/watch 1.10-6/debian/watch
--- 1.10-5/debian/watch	2025-09-09 04:56:04.000000000 +0000
+++ 1.10-6/debian/watch	2025-10-21 20:09:33.000000000 +0000
@@ -2,7 +2,6 @@ Version: 5
 
 # Upstream develops on github but releases on pypi.
 # (the tarballs on github are blindly generated from tags)
-
 # The repetition replaces - with _ to match the href.
 Uversion-Mangle: s/(rc|a|b|c)/~$1/
 Source: https://pypi.debian.net/async-generator
