Skip to content

Conversation

@svlandeg
Copy link
Member

@svlandeg svlandeg commented Nov 10, 2025

Fixes #15

  • Use dynamic versioning specified in __init__.py
  • Switch to pdm as uv-build doesn't support dynamic versioning as far as I can see
  • Remove license classifier as this will otherwise error with
pdm.backend.exceptions.ValidationError: project.license: Setting "project.license" to an SPDX license expression is not compatible with 'License ::' classifiers

Sanity check

Building locally, pasting here the output of the project section in the pyproject.toml extracted from the tar file:

Main

[project]
name = "annotated-doc"
version = "0.0.3"
license = "MIT"
license-files = ["LICENSE"]
description = "Document parameters, class attributes, return types, and variables inline, with Annotated."
readme = "README.md"
authors = [
    { name = "Sebastián Ramírez", email = "tiangolo@gmail.com" }
]
requires-python = ">=3.8"
classifiers = [
    "Intended Audience :: Information Technology",
    "Intended Audience :: System Administrators",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python",
    "Topic :: Internet",
    "Topic :: Software Development :: Libraries :: Application Frameworks",
    "Topic :: Software Development :: Libraries :: Python Modules",
    "Topic :: Software Development :: Libraries",
    "Topic :: Software Development",
    "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",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python :: 3.14",
]
dependencies = []

This PR

[project]
name = "annotated-doc"
dynamic = []
license = "MIT"
license-files = [
    "LICENSE",
]
description = "Document parameters, class attributes, return types, and variables inline, with Annotated."
readme = "README.md"
authors = [
    { name = "Sebastián Ramírez", email = "tiangolo@gmail.com" },
]
requires-python = ">=3.8"
classifiers = [
    "Intended Audience :: Information Technology",
    "Intended Audience :: System Administrators",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python",
    "Topic :: Internet",
    "Topic :: Software Development :: Libraries :: Application Frameworks",
    "Topic :: Software Development :: Libraries :: Python Modules",
    "Topic :: Software Development :: Libraries",
    "Topic :: Software Development",
    "Typing :: Typed",
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "Programming Language :: Python :: 3 :: Only",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python :: 3.14",
]
dependencies = []
version = "0.0.3"

@svlandeg svlandeg added the bug Something isn't working label Nov 10, 2025
Copy link
Member

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you! 🚀

I'll release this in version 0.0.4 in the next minutes.

@tiangolo tiangolo merged commit 715f1ea into fastapi:main Nov 10, 2025
20 of 21 checks passed
@svlandeg svlandeg deleted the fix/version branch November 10, 2025 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use of importlib.metadata breaks import when metadata is stripped

2 participants