diff --git a/.github/workflows/build-test-package.yml b/.github/workflows/build-test-package.yml index 1a60a65..ee8d42b 100644 --- a/.github/workflows/build-test-package.yml +++ b/.github/workflows/build-test-package.yml @@ -12,9 +12,14 @@ on: jobs: cxx-build-workflow: - uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-cxx.yml@v5.4.2 + uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-cxx.yml@v5.4.6 + with: + apt-packages: 'libopenslide-dev' + brew-packages: 'openslide' + os-list: '["ubuntu-22.04", "macos-15-intel", "macos-15"]' - python-build-workflow: - uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-package-python.yml@v5.4.2 - secrets: - pypi_password: ${{ secrets.pypi_password }} + # Python wheel builds are disabled because OpenSlide is an external C + # library that is not available in the manylinux Docker containers or + # the Windows wheel-build environment. Re-enable when the Python + # workflow gains apt-packages / brew-packages support or the module + # bundles its own OpenSlide build. diff --git a/pyproject.toml b/pyproject.toml index 2e16db0..41a6d43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ classifiers = [ "Topic :: Scientific/Engineering :: Medical Science Apps.", "Topic :: Software Development :: Libraries", ] -requires-python = ">=3.9" +requires-python = ">=3.10" dependencies = [ "itk == 5.4.*", ] diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e606291..a2885fd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,9 +3,6 @@ set(IOOpenSlide_SRCS itkOpenSlideImageIO.cxx ) -include_directories(${OPENSLIDE_INCLUDE_DIRS}) - -add_library(IOOpenSlide ${IOOpenSlide_SRCS}) +itk_module_add_library(IOOpenSlide ${IOOpenSlide_SRCS}) +target_include_directories(IOOpenSlide PRIVATE ${OPENSLIDE_INCLUDE_DIRS}) target_link_libraries(IOOpenSlide LINK_PRIVATE ${OPENSLIDE_LIBRARIES}) -itk_module_link_dependencies() -itk_module_target(IOOpenSlide)