mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
98c28a1f30
Three defects reported against the Costing tab export: 1. XLSX export crashed with ModuleNotFoundError: xlsxwriter was never bundled with Bonsai. Port the writer to openpyxl, which ifccsv already uses and Bonsai already ships, so it works out of the box. 2. Every ODS cell was written as a string (numbers as text), and the formula branch was dead code: it compared against 'Total Price' / 'Rate Subtotal' while the headers are 'TotalPrice' / 'RateSubtotal'. Numeric columns are now typed float cells and TotalPrice becomes a real formula: Quantity*RateSubtotal on leaf items, SUM over the direct children's TotalPrice cells on sum items. 3. Internal bookkeeping columns (Id, ItemIsASum, Hierarchy, Index, Quantities) leaked into the presentation formats. ODS/XLSX now hide them; CSV keeps them since csv2ifc consumes them for the round trip. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
49 lines
1.0 KiB
TOML
49 lines
1.0 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "ifc5d"
|
|
version = "0.0.0"
|
|
authors = [
|
|
{ name="Dion Moult", email="dion@thinkmoult.com" },
|
|
]
|
|
description = "IFC 5D costing library for quantity take-off and schedule production"
|
|
readme = "README.md"
|
|
keywords = ["IFC", "5D", "BIM"]
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
|
]
|
|
dependencies = [
|
|
"ifcopenshell",
|
|
"typing_extensions",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
advanced = [
|
|
"typst",
|
|
]
|
|
spreadsheet = [
|
|
"odfpy",
|
|
"openpyxl",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "http://ifcopenshell.org"
|
|
Documentation = "https://docs.ifcopenshell.org"
|
|
Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["ifc5d*"]
|
|
exclude = ["test*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
"*" = ["*.*"]
|
|
|
|
[tool.ruff]
|
|
extend = "../../pyproject.toml"
|
|
lint.select = [
|
|
"F401", # unused imports
|
|
]
|