Skip to content

Commit

Permalink
Merge upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion committed Jan 3, 2024
2 parents 68ff710 + bfb3362 commit 3243251
Show file tree
Hide file tree
Showing 7 changed files with 2,397 additions and 286 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pytest-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: unit-tests

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:

jobs:
Expand All @@ -16,12 +16,12 @@ jobs:
arch: ['x64', 'x86']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.arch }}
Expand Down Expand Up @@ -51,12 +51,12 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -85,12 +85,12 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
49 changes: 40 additions & 9 deletions .github/workflows/release-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
python-version: '3.11'

- name: Build sdist
run: |
python -m pip install .
python setup.py sdist
- name: Store artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: ./dist
Expand Down Expand Up @@ -102,6 +102,27 @@ jobs:
python: 312
platform_id: manylinux_x86_64
manylinux_image: manylinux2014
- os: ubuntu-latest
python: 311
platform_id: manylinux_x86_64
manylinux_image: manylinux2014

# Linux aarch64
- os: ubuntu-latest
python: 37
platform_id: manylinux_aarch64
- os: ubuntu-latest
python: 38
platform_id: manylinux_aarch64
- os: ubuntu-latest
python: 39
platform_id: manylinux_aarch64
- os: ubuntu-latest
python: 310
platform_id: manylinux_aarch64
- os: ubuntu-latest
python: 311
platform_id: manylinux_aarch64

# MacOS x86_64
- os: macos-latest
Expand All @@ -121,6 +142,9 @@ jobs:
- os: macos-latest
python: 312
platform_id: macosx_x86_64
- os: macos-latest
python: 311
platform_id: macosx_x86_64

# MacOS arm64
- os: macos-latest
Expand All @@ -140,11 +164,17 @@ jobs:
platform_id: macosx_arm64

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-python@v2
- name: Set up QEMU
if: ${{ matrix.platform_id == 'manylinux_aarch64' }}
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.9'
Expand All @@ -160,13 +190,14 @@ jobs:
CIBW_ARCHS: all
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }}
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux_image }}
CIBW_BUILD_VERBOSITY: 1
run: |
python --version
python -m cibuildwheel --output-dir dist
- name: Store artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: ./dist
Expand All @@ -183,7 +214,7 @@ jobs:

steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -229,7 +260,7 @@ jobs:

steps:
- name: Download the wheels
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: wheels
path: dist/
Expand Down
54 changes: 43 additions & 11 deletions build_tools/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ endif()
#string(TOLOWER ${OPENJPEG_NAMESPACE} OPENJPEG_LIBRARY_NAME)
set(OPENJPEG_LIBRARY_NAME openjp2)

project(${OPENJPEG_NAMESPACE})
project(${OPENJPEG_NAMESPACE} C)

# Do full dependency headers.
include_regular_expression("^.*$")

#-----------------------------------------------------------------------------
# OPENJPEG version number, useful for packaging and doxygen doc:
set(OPENJPEG_VERSION_MAJOR 2)
set(OPENJPEG_VERSION_MINOR 3)
set(OPENJPEG_VERSION_BUILD 1)
set(OPENJPEG_VERSION_MINOR 5)
set(OPENJPEG_VERSION_BUILD 0)
set(OPENJPEG_VERSION
"${OPENJPEG_VERSION_MAJOR}.${OPENJPEG_VERSION_MINOR}.${OPENJPEG_VERSION_BUILD}")
set(PACKAGE_VERSION
Expand All @@ -36,7 +36,40 @@ endif(NOT OPENJPEG_SOVERSION)
set(OPENJPEG_LIBRARY_PROPERTIES
VERSION "${OPENJPEG_VERSION_MAJOR}.${OPENJPEG_VERSION_MINOR}.${OPENJPEG_VERSION_BUILD}"
SOVERSION "${OPENJPEG_SOVERSION}"
)
)

# --------------------------------------------------------------------------
# Path to additional CMake modules
set(CMAKE_MODULE_PATH
${${OPENJPEG_NAMESPACE}_SOURCE_DIR}/cmake
${CMAKE_MODULE_PATH})

# --------------------------------------------------------------------------
# On Visual Studio 8 MS deprecated C. This removes all 1.276E1265 security
# warnings
if(WIN32)
if(NOT BORLAND)
if(NOT CYGWIN)
if(NOT MINGW)
if(NOT ITK_ENABLE_VISUAL_STUDIO_DEPRECATED_C_WARNINGS)
add_definitions(
-D_CRT_FAR_MAPPINGS_NO_DEPRECATE
-D_CRT_IS_WCTYPE_NO_DEPRECATE
-D_CRT_MANAGED_FP_NO_DEPRECATE
-D_CRT_NONSTDC_NO_DEPRECATE
-D_CRT_SECURE_NO_DEPRECATE
-D_CRT_SECURE_NO_DEPRECATE_GLOBALS
-D_CRT_SETERRORMODE_BEEP_SLEEP_NO_DEPRECATE
-D_CRT_TIME_FUNCTIONS_NO_DEPRECATE
-D_CRT_VCCLRIT_NO_DEPRECATE
-D_SCL_SECURE_NO_DEPRECATE
)
endif()
endif()
endif()
endif()
endif()


# --------------------------------------------------------------------------
# Install directories
Expand All @@ -46,22 +79,21 @@ endif()

set(OPENJPEG_INSTALL_PACKAGE_DIR "../interface")

# --------------------------------------------------------------------------
# Path to additional CMake modules
set(CMAKE_MODULE_PATH
${${OPENJPEG_NAMESPACE}_SOURCE_DIR}/cmake
${CMAKE_MODULE_PATH})

set(OPENJPEG_INSTALL_INCLUDE_DIR
"../interface"
)

option(BUILD_JPIP "Build the JPIP library and executables." OFF)
option(BUILD_JPWL off)
option(BUILD_MJ2 off)
option(BUILD_JPIP off)
option(BUILD_JP3D off)

#-----------------------------------------------------------------------------
# Big endian test:
if (NOT EMSCRIPTEN)
include (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
TEST_BIG_ENDIAN(OPJ_BIG_ENDIAN)
endif()


#-----------------------------------------------------------------------------
Expand Down
9 changes: 9 additions & 0 deletions docs/changes/v1.3.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _v1.3.0:

1.3.0
=====

Changes
.......

* Updated OpenJPEG version to 2.5.0
9 changes: 9 additions & 0 deletions docs/changes/v1.3.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _v1.3.1:

1.3.1
=====

Changes
.......

* Added wheels for Linux aarch64 architecture
9 changes: 9 additions & 0 deletions docs/changes/v1.3.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _v1.3.2:

1.3.2
=====

Changes
.......

* Added wheels for Python 3.11 (contributed by James Meakin)
Loading

0 comments on commit 3243251

Please sign in to comment.