diff --git a/pyproject.toml b/pyproject.toml index 655ccec..ff123e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "annotated-doc" -version = "0.0.3" +dynamic = ["version"] license = "MIT" license-files = ["LICENSE"] description = "Document parameters, class attributes, return types, and variables inline, with Annotated." @@ -23,7 +23,6 @@ classifiers = [ "Typing :: Typed", "Development Status :: 4 - Beta", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", @@ -42,8 +41,8 @@ Issues = "https://github.com/fastapi/annotated-doc/issues" Changelog = "https://github.com/fastapi/annotated-doc/release-notes.md" [build-system] -requires = ["uv_build>=0.9.1,<0.10.0"] -build-backend = "uv_build" +requires = ["pdm-backend"] +build-backend = "pdm.backend" [tool.mypy] strict = true @@ -95,9 +94,13 @@ ignore = [ # Preserve types, even if a file imports `from __future__ import annotations`. keep-runtime-typing = true -[tool.uv.build-backend] -source-include = [ - "tests/**", +[tool.pdm] +version = { source = "file", path = "src/annotated_doc/__init__.py" } +distribution = true + +[tool.pdm.build] +source-includes = [ + "tests/", "requirements*.txt", - "scripts/**", -] + "scripts/", + ] diff --git a/src/annotated_doc/__init__.py b/src/annotated_doc/__init__.py index 2b27488..472440a 100644 --- a/src/annotated_doc/__init__.py +++ b/src/annotated_doc/__init__.py @@ -1,5 +1,3 @@ -from importlib.metadata import version - from .main import Doc as Doc -__version__ = version("annotated-doc") +__version__ = "0.0.3"