From a46228a57eb9bb16569cb23e4be41ac3fd13be23 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 20 Nov 2025 21:16:57 +1100 Subject: [PATCH] Hotfix to generate IOS docs until we properly package bsdd --- src/bsdd/bsdd_json.py | 1 - src/bsdd/type_hints.py | 4 +--- src/ifcopenshell-python/docs/conf.py | 3 ++- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/bsdd/bsdd_json.py b/src/bsdd/bsdd_json.py index e5f15878ea..5edc8616fa 100644 --- a/src/bsdd/bsdd_json.py +++ b/src/bsdd/bsdd_json.py @@ -1,6 +1,5 @@ from __future__ import annotations -from pydantic import BaseModel from .type_hints import * from typing import Optional, Literal from datetime import datetime diff --git a/src/bsdd/type_hints.py b/src/bsdd/type_hints.py index ac9aa29923..b408e3b9a1 100644 --- a/src/bsdd/type_hints.py +++ b/src/bsdd/type_hints.py @@ -1,6 +1,4 @@ -from typing import Literal, Annotated -from datetime import datetime -from pydantic import BeforeValidator +from typing import Literal COUNTRY_CODE = Literal[ diff --git a/src/ifcopenshell-python/docs/conf.py b/src/ifcopenshell-python/docs/conf.py index 12311f465e..6b81633689 100644 --- a/src/ifcopenshell-python/docs/conf.py +++ b/src/ifcopenshell-python/docs/conf.py @@ -103,7 +103,8 @@ autoapi_dirs = [ # autoapi_dirs = ['../../bcf/bcf', '../../bsdd', '../../ifccsv', '../../ifcdiff', '../../ifcpatch/ifcpatch', '../../ifctester/ifctester'] # These are auto-generated based on the IFC schema, so exclude them -autoapi_ignore = ["*ifcopenshell/express/rules*"] +# Temporarily ignore bsdd files until they are packaged properly in the wheel. +autoapi_ignore = ["*ifcopenshell/express/rules*", "*bsdd/bsdd_json.py", "*bsdd/type_hints.py", "*bsdd/yml_to_classes.py"] # Custom autoapi templates to make it easier to read our docs autoapi_template_dir = "_autoapi_templates"