Fix #4303. Declare dependencies for ifctester.

This commit is contained in:
Dion Moult
2024-04-08 11:57:21 +10:00
parent ef1a92a9ee
commit aba8683d5e
4 changed files with 22 additions and 6 deletions
+18
View File
@@ -1,3 +1,21 @@
# bSDD - Python bSDD library
# Copyright (C) 2021 Dion Moult <dion@thinkmoult.com>
#
# This file is part of bSDD.
#
# bSDD is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# bSDD is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with bSDD. If not, see <http://www.gnu.org/licenses/>.
VERSION:=`date '+%y%m%d'` VERSION:=`date '+%y%m%d'`
SED:=sed -i SED:=sed -i
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)
+1 -1
View File
@@ -15,7 +15,7 @@ classifiers = [
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
] ]
[project.optional-dependencies] [project.optional-dependencies]
geometry = ["mathutils", "shapely"] geometry = ["mathutils", "shapely", "numpy"]
date = ["isodate", "dateutil"] date = ["isodate", "dateutil"]
[project.urls] [project.urls]
"Homepage" = "http://ifcopenshell.org" "Homepage" = "http://ifcopenshell.org"
+2 -2
View File
@@ -21,11 +21,9 @@ import sys
import math import math
import logging import logging
import datetime import datetime
import numpy as np
import ifcopenshell import ifcopenshell
import ifcopenshell.util.unit import ifcopenshell.util.unit
import ifcopenshell.util.element import ifcopenshell.util.element
import ifcopenshell.util.placement
cwd = os.path.dirname(os.path.realpath(__file__)) cwd = os.path.dirname(os.path.realpath(__file__))
@@ -431,6 +429,8 @@ class Bcf(Json):
] ]
def to_file(self, filepath: str) -> None: def to_file(self, filepath: str) -> None:
import numpy as np
import ifcopenshell.util.placement
from bcf.v2.bcfxml import BcfXml from bcf.v2.bcfxml import BcfXml
unit_scale = None unit_scale = None
+1 -3
View File
@@ -15,9 +15,7 @@ classifiers = [
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
] ]
dependencies = [ dependencies = ["ifcopenshell", "dateutil", "xmlschema", "numpy"]
"ifcopenshell",
]
[project.urls] [project.urls]
Homepage = "http://ifcopenshell.org" Homepage = "http://ifcopenshell.org"