Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand All @@ -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",
Expand All @@ -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
Expand Down Expand Up @@ -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/",
]
4 changes: 1 addition & 3 deletions src/annotated_doc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from importlib.metadata import version

from .main import Doc as Doc

__version__ = version("annotated-doc")
__version__ = "0.0.3"
Loading