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 663c509..874f854 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 = [
diff --git a/pyproject.toml b/pyproject.toml
index 6dbf3f5..51d601c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [project]
 name = "pyrate-limiter"
-dynamic = ["version"]
+version = "REPLACE"
 description = "Python Rate-Limiter using Leaky-Bucket Algorithm"
 authors = [{ name = "vutr", email = "me@vutr.io" }]
 requires-python = ">=3.10"
@@ -94,12 +94,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",
