diff --git a/src/ifcopenshell-python/Makefile b/src/ifcopenshell-python/Makefile index 1eee87f516..0810ad0181 100644 --- a/src/ifcopenshell-python/Makefile +++ b/src/ifcopenshell-python/Makefile @@ -66,7 +66,7 @@ PLATFORMTAG:=win_amd64 endif BINARY_VERSION:=0.8.4 -BUILD_COMMIT:=6924012 +BUILD_COMMIT:=c9df87f IOS_URL:=https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v$(BINARY_VERSION)-$(BUILD_COMMIT)-$(PLATFORM).zip IFCCONVERT_URL:=https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v$(BINARY_VERSION)-$(BUILD_COMMIT)-$(PLATFORM).zip diff --git a/src/ifcopenshell-python/test/test_package.py b/src/ifcopenshell-python/test/test_package.py index 89c0e4d04a..5d0e6fc719 100644 --- a/src/ifcopenshell-python/test/test_package.py +++ b/src/ifcopenshell-python/test/test_package.py @@ -18,9 +18,15 @@ import http.client from pathlib import Path +from typing import Sequence from typing_extensions import assert_never from urllib.parse import urlparse +try: + from bs4 import BeautifulSoup +except: + pass + # Where it's also reflected: # - .github/workflows/ci-ifcopenshell-python.yml # - .github/workflows/ci-ifcopenshell-python-pypi.yml @@ -91,9 +97,13 @@ class TestPackageSupportedPlatforms: required_urls.append(url) # Verify all required URLs are present in the build HTML. - missing_urls: list[str] = [] - for url in required_urls: - if url not in build_html: - missing_urls.append(url) + missing_urls: Sequence[str] + if "BeautifulSoup" in globals(): + missing_urls = set(required_urls) - set(a["href"] for a in BeautifulSoup(build_html).find_all("a")) + else: + missing_urls = [] + for url in required_urls: + if url not in build_html: + missing_urls.append(url) assert not missing_urls