From 28ed049c58048adff822a684792aa2a9c6df0d38 Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Sat, 2 Feb 2019 23:38:31 +0100 Subject: [PATCH 1/2] Update readme with info on wheel releases --- README.md | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index df656e0..b08b72b 100644 --- a/README.md +++ b/README.md @@ -2,23 +2,23 @@ OpenImageIO Python 3.x package. -| Build pipeline | R&D Status | CI Status | -| ------------- | ------------- | ------------- | -| Windows Server 2016 | Wheels are building | [![Build Status](https://fredrikaverpil.visualstudio.com/oiio-python/_apis/build/status/oiio-python-win2016?branchName=master)](https://fredrikaverpil.visualstudio.com/oiio-python/_build/latest?definitionId=5?branchName=master) | -| Ubuntu 16.04 | Wheels are building | [![Build Status](https://fredrikaverpil.visualstudio.com/oiio-python/_apis/build/status/oiio-python-ubuntu16.04?branchName=master)](https://fredrikaverpil.visualstudio.com/oiio-python/_build/latest?definitionId=6?branchName=master) | -| macOS 10.13 | Wheels are building | [![Build Status](https://fredrikaverpil.visualstudio.com/oiio-python/_apis/build/status/oiio-python-macOS-10.13?branchName=master)](https://fredrikaverpil.visualstudio.com/oiio-python/_build/latest?definitionId=7&branchName=master) | +| Build pipeline | CI Status | +| ------------- | ------------- | +| Windows Server 2016 | [![Build Status](https://fredrikaverpil.visualstudio.com/oiio-python/_apis/build/status/oiio-python-win2016?branchName=master)](https://fredrikaverpil.visualstudio.com/oiio-python/_build/latest?definitionId=5?branchName=master) | +| Ubuntu 16.041 | [![Build Status](https://fredrikaverpil.visualstudio.com/oiio-python/_apis/build/status/oiio-python-ubuntu16.04?branchName=master)](https://fredrikaverpil.visualstudio.com/oiio-python/_build/latest?definitionId=6?branchName=master) | +| macOS 10.13 | [![Build Status](https://fredrikaverpil.visualstudio.com/oiio-python/_apis/build/status/oiio-python-macOS-10.13?branchName=master)](https://fredrikaverpil.visualstudio.com/oiio-python/_build/latest?definitionId=7&branchName=master) | + +1 Should also work on CentOS 7 for example. ## About the project -OpenImageIO is built using [vcpkg](https://github.com/Microsoft/vcpkg) and packaged into Python wheels on Windows, Linux and macOS platforms (provided by [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/)). +OpenImageIO is built using [vcpkg](https://github.com/Microsoft/vcpkg) and packaged into Python wheels on Windows, Linux and macOS platforms (thanks to [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/)). To make this work, some customization of the vcpkg port files were necessary and thus these modifications are stored in this repository. ## Download wheels -Since the project is still in a research phase, no releases have been made just yet. Instead, look at the Azure Pipeline CI builds corresponding to your platform and Python version, where wheels are stored as build artifacts. - -When browsing an Azure Pipelines build, click the "Summary" link, and you will see the build artifacts (zipped Python wheels). +Download the wheels under "Releases". CI jobs produce wheels and they can be downloaded from the respective CI job. ## Usage @@ -34,8 +34,7 @@ See the `tests` folder for code examples used to test the built wheels' function - The vcpkg files for oiio at [vcpkg/ports/openimageio](https://github.com/Microsoft/vcpkg/tree/master/ports/openimageio) - Get SHA512 of file: - macOS: `openssl dgst -sha512 [FILE]` -- Create release: - 1. Commit changes: `git commit -am "My changes"` - 2. Create tag: `git tag [oiio-version]+[yyyymmdd]` (e.g. `2.0.4+20190202`) - 3. Push tag: `git push origin [oiio-version]+[yyyymmdd]` - 4. Push changes: `git push` \ No newline at end of file +- A new release is automatically performed when a commit is performed on the `master` branch. +- Updating to a newer OpenImageIO version: + 1. Update the `oiio.version` variable in the .yml files + 2. Update the version and SHA512 in the OpenImageIO port files. \ No newline at end of file From 55b32262a69315dc7679470bc041ee590ed6a979 Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Sat, 2 Feb 2019 23:39:13 +0100 Subject: [PATCH 2/2] Update to oiio 2.0.5 --- macOS-10.13-azure-pipelines.yml | 2 +- src/vcpkg/ports/openimageio-py3.6/portfile.cmake | 4 ++-- src/vcpkg/ports/openimageio-py3.7/portfile.cmake | 4 ++-- ubuntu16.04-azure-pipelines.yml | 2 +- win2016-azure-pipelines.yml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/macOS-10.13-azure-pipelines.yml b/macOS-10.13-azure-pipelines.yml index 90e3167..8527fb6 100644 --- a/macOS-10.13-azure-pipelines.yml +++ b/macOS-10.13-azure-pipelines.yml @@ -25,7 +25,7 @@ jobs: src.vcpkg: '$(Agent.BuildDirectory)/s/src/vcpkg' tests: '$(Agent.BuildDirectory)/s/tests' install.vcpkg: $(Agent.BuildDirectory)/s/vcpkg - oiio.version: '2.0.4' + oiio.version: '2.0.5' pypackage.os_name: 'Microsoft :: MacOS' pool: diff --git a/src/vcpkg/ports/openimageio-py3.6/portfile.cmake b/src/vcpkg/ports/openimageio-py3.6/portfile.cmake index a26596e..8fb5bb5 100644 --- a/src/vcpkg/ports/openimageio-py3.6/portfile.cmake +++ b/src/vcpkg/ports/openimageio-py3.6/portfile.cmake @@ -3,8 +3,8 @@ include(vcpkg_common_functions) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO OpenImageIO/oiio - REF bb2c617e83b3b264c9f4b7503d3c01c16570fdb7 - SHA512 5c198bd53ebc84847df3f8c40c0eedcb16d9e45ad9627d2e69faa44ba0966f74cac29cb3e93af5df7162ef4af82101770118e10695e25b287d05d499932fab0f + REF Release-2.0.5 + SHA512 2bf6b3d998e9b7bda90b9dfd3e30702c3c857f6f90ab8be10fd3dc9617ecccc62464a8198a7804d130bdb39b2475c1ce14af129b8ccc371a21e92c2e637a5413 HEAD_REF master PATCHES # fix_libraw: replace 'LibRaw_r_LIBRARIES' occurences by 'LibRaw_LIBRARIES' diff --git a/src/vcpkg/ports/openimageio-py3.7/portfile.cmake b/src/vcpkg/ports/openimageio-py3.7/portfile.cmake index 95f2539..cc5fe76 100644 --- a/src/vcpkg/ports/openimageio-py3.7/portfile.cmake +++ b/src/vcpkg/ports/openimageio-py3.7/portfile.cmake @@ -3,8 +3,8 @@ include(vcpkg_common_functions) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO OpenImageIO/oiio - REF bb2c617e83b3b264c9f4b7503d3c01c16570fdb7 - SHA512 5c198bd53ebc84847df3f8c40c0eedcb16d9e45ad9627d2e69faa44ba0966f74cac29cb3e93af5df7162ef4af82101770118e10695e25b287d05d499932fab0f + REF Release-2.0.5 + SHA512 2bf6b3d998e9b7bda90b9dfd3e30702c3c857f6f90ab8be10fd3dc9617ecccc62464a8198a7804d130bdb39b2475c1ce14af129b8ccc371a21e92c2e637a5413 HEAD_REF master PATCHES # fix_libraw: replace 'LibRaw_r_LIBRARIES' occurences by 'LibRaw_LIBRARIES' diff --git a/ubuntu16.04-azure-pipelines.yml b/ubuntu16.04-azure-pipelines.yml index 1932a76..6a17505 100644 --- a/ubuntu16.04-azure-pipelines.yml +++ b/ubuntu16.04-azure-pipelines.yml @@ -24,7 +24,7 @@ jobs: src.vcpkg: '$(Agent.BuildDirectory)/s/src/vcpkg' tests: '$(Agent.BuildDirectory)/s/tests' install.vcpkg: $(Agent.BuildDirectory)/s/vcpkg - oiio.version: '2.0.4' + oiio.version: '2.0.5' pypackage.os_name: 'Microsoft :: POSIX :: Linux' pool: diff --git a/win2016-azure-pipelines.yml b/win2016-azure-pipelines.yml index 8485c8d..560c427 100644 --- a/win2016-azure-pipelines.yml +++ b/win2016-azure-pipelines.yml @@ -23,7 +23,7 @@ jobs: src.python: '$(Agent.BuildDirectory)/s/src/python' src.vcpkg: '$(Agent.BuildDirectory)/s/src/vcpkg' tests: '$(Agent.BuildDirectory)/s/tests' - oiio.version: '2.0.4' + oiio.version: '2.0.5' pypackage.os_name: 'Microsoft :: Windows' pool: