Skip to content

Commit aba8683

Browse files
committed
Fix #4303. Declare dependencies for ifctester.
1 parent ef1a92a commit aba8683

4 files changed

Lines changed: 22 additions & 6 deletions

File tree

src/bsdd/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# bSDD - Python bSDD library
2+
# Copyright (C) 2021 Dion Moult <dion@thinkmoult.com>
3+
#
4+
# This file is part of bSDD.
5+
#
6+
# bSDD is free software: you can redistribute it and/or modify
7+
# it under the terms of the GNU Lesser General Public License as published by
8+
# the Free Software Foundation, either version 3 of the License, or
9+
# (at your option) any later version.
10+
#
11+
# bSDD is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public License
17+
# along with bSDD. If not, see <http://www.gnu.org/licenses/>.
18+
119
VERSION:=`date '+%y%m%d'`
220
SED:=sed -i
321
ifeq ($(UNAME_S),Darwin)

src/ifcopenshell-python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ classifiers = [
1515
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
1616
]
1717
[project.optional-dependencies]
18-
geometry = ["mathutils", "shapely"]
18+
geometry = ["mathutils", "shapely", "numpy"]
1919
date = ["isodate", "dateutil"]
2020
[project.urls]
2121
"Homepage" = "http://ifcopenshell.org"

src/ifctester/ifctester/reporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@
2121
import math
2222
import logging
2323
import datetime
24-
import numpy as np
2524
import ifcopenshell
2625
import ifcopenshell.util.unit
2726
import ifcopenshell.util.element
28-
import ifcopenshell.util.placement
2927

3028
cwd = os.path.dirname(os.path.realpath(__file__))
3129

@@ -431,6 +429,8 @@ def report_failed_entities(self, requirement):
431429
]
432430

433431
def to_file(self, filepath: str) -> None:
432+
import numpy as np
433+
import ifcopenshell.util.placement
434434
from bcf.v2.bcfxml import BcfXml
435435

436436
unit_scale = None

src/ifctester/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ classifiers = [
1515
"Programming Language :: Python :: 3",
1616
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
1717
]
18-
dependencies = [
19-
"ifcopenshell",
20-
]
18+
dependencies = ["ifcopenshell", "dateutil", "xmlschema", "numpy"]
2119

2220
[project.urls]
2321
Homepage = "http://ifcopenshell.org"

0 commit comments

Comments
 (0)