From: 
Subject: Debian changes

The Debian packaging of pyrate-limiter is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/pyrate-limiter
    % cd pyrate-limiter
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone pyrate-limiter`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/docs/conf.py b/docs/conf.py
index 2f08a67..493fa5d 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,7 +1,7 @@
 """Config file for Sphinx documentation"""
 
 import shutil
-from importlib.metadata import version as pkg_version
+import tomllib
 from pathlib import Path
 
 PROJECT_DIR = Path(__file__).parent.parent.absolute()
@@ -15,7 +15,11 @@ needs_sphinx = "4.0"
 source_suffix = [".rst", ".md"]
 templates_path = ["_templates"]
 project = "pyrate-limiter"
-version = release = version = pkg_version("pyrate-limiter")
+
+# Read version from pyproject.toml
+with open("../pyproject.toml", "rb") as f:
+    pyproject_data = tomllib.load(f)
+version = release = pyproject_data["project"]["version"]
 
 # Sphinx extensions
 extensions = [
@@ -38,6 +42,11 @@ myst_heading_anchors = 6
 # instead of failing under -W with an unknown-lexer warning.
 myst_fence_as_directive = ["mermaid"]
 
+# Use the D3 script provided by Debian rather than fetching it from a CDN.
+d3_use_local = "d3.min.js"
+# Debian's D3 release predates the API used by the optional fullscreen control.
+mermaid_fullscreen = False
+
 # Enable automatic links to other projects' Sphinx docs
 intersphinx_mapping = {
     "python": ("https://docs.python.org/3", None),
diff --git a/pyproject.toml b/pyproject.toml
index de057ea..fcb62a8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [project]
 name = "pyrate-limiter"
-dynamic = ["version"]
+version = "REPLACE"
 description = "Python rate limiter with pluggable algorithms and backends"
 authors = [{ name = "vutr", email = "me@vutr.io" }]
 requires-python = ">=3.10"
@@ -112,12 +112,9 @@ output = 'test-reports/coverage.xml'
 context = 7
 
 [build-system]
-requires = ["hatchling", "uv-dynamic-versioning"]
+requires = ["hatchling"]
 build-backend = "hatchling.build"
 
-[tool.hatch.version]
-source = "uv-dynamic-versioning"
-
 [tool.hatch.build.targets.sdist]
 include = [
     "pyrate_limiter",
