From a8c83b2670e14766f976773a6bf0813bb652bb19 Mon Sep 17 00:00:00 2001 From: Jonathan Sick Date: Tue, 28 Jul 2026 10:20:29 -0400 Subject: [PATCH] Add safir to square_pypi_package dev dependencies The generated tests/conftest.py imports safir.testing.data.Data, but the dev extra did not include safir, so a freshly generated package fails at test collection with ModuleNotFoundError. safir>=14.2.0 is the release that introduced safir.testing.data. --- project_templates/square_pypi_package/example/pyproject.toml | 1 + .../square_pypi_package/{{cookiecutter.name}}/pyproject.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/project_templates/square_pypi_package/example/pyproject.toml b/project_templates/square_pypi_package/example/pyproject.toml index 86d5e8e6..149c7618 100644 --- a/project_templates/square_pypi_package/example/pyproject.toml +++ b/project_templates/square_pypi_package/example/pyproject.toml @@ -32,6 +32,7 @@ dev = [ "pytest", "pytest-asyncio", "mypy", + "safir>=14.2.0", # Documentation "documenteer[guide]>=2,<3", "scriv", diff --git a/project_templates/square_pypi_package/{{cookiecutter.name}}/pyproject.toml b/project_templates/square_pypi_package/{{cookiecutter.name}}/pyproject.toml index 64cfd44a..64ab1dd5 100644 --- a/project_templates/square_pypi_package/{{cookiecutter.name}}/pyproject.toml +++ b/project_templates/square_pypi_package/{{cookiecutter.name}}/pyproject.toml @@ -32,6 +32,7 @@ dev = [ "pytest", "pytest-asyncio", "mypy", + "safir>=14.2.0", # Documentation "documenteer[guide]>=2,<3", "scriv",