Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 74 additions & 27 deletions .github/workflows/build_wheels_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ jobs:
needs: [Build, Test]
runs-on: ubuntu-22.04
environment: opencv-python-rolling-release
permissions:
contents: read
id-token: write
defaults:
run:
shell: bash
Expand All @@ -161,28 +164,46 @@ jobs:
with:
name: wheels
path: wheelhouse/
- name: Upload wheels for opencv_python_rolling
- name: Select only OpenCV wheels
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_ROLLING_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_ROLLING_PASSWORD }} --skip-existing wheelhouse/opencv_python_rolling-*
mkdir dist dist-contrib dist-headless dist-contrib-headless
cp wheelhouse/opencv_python_rolling-* dist/
cp wheelhouse/opencv_contrib_python_rolling-* dist-contrib/
cp wheelhouse/opencv_python_headless_rolling-* dist-headless/
cp wheelhouse/opencv_contrib_python_headless_rolling-* dist-contrib-headless/
- name: Upload wheels for opencv_python_rolling
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_contrib_python_rolling
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_ROLLING_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_ROLLING_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python_rolling-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-contrib/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_python_headless_rolling
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_HEADLESS_ROLLING_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_HEADLESS_ROLLING_PASSWORD }} --skip-existing wheelhouse/opencv_python_headless_rolling-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-headless/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_contrib_python_headless_rolling
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_HEADLESS_ROLLING_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_HEADLESS_ROLLING_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python_headless_rolling-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-contrib-headless/
print-hash: true
skip-existing: true

Pre-release:
if: github.event_name == 'release' && github.event.release.prerelease
needs: [Build, Test]
runs-on: ubuntu-22.04
environment: test-opencv-python-release
permissions:
contents: read
id-token: write
defaults:
run:
shell: bash
Expand All @@ -191,16 +212,27 @@ jobs:
with:
name: wheels
path: wheelhouse/
- name: Upload all wheels
- name: Select only OpenCV wheels
run: |
python -m pip install twine
python -m twine upload --repository testpypi -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --skip-existing wheelhouse/opencv_*
mkdir dist
cp wheelhouse/opencv_* dist/
- name: Upload all wheels
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
print-hash: true
repository-url: https://test.pypi.org/legacy/
skip-existing: true
verbose: true

Release:
if: github.event_name == 'release' && !github.event.release.prerelease
needs: [Build, Test]
runs-on: ubuntu-22.04
environment: opencv-python-release
permissions:
contents: read
id-token: write
defaults:
run:
shell: bash
Expand All @@ -209,19 +241,34 @@ jobs:
with:
name: wheels
path: wheelhouse/
- name: Upload wheels for opencv_python
- name: Select only OpenCV wheels
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_PASSWORD }} --skip-existing wheelhouse/opencv_python-*
mkdir dist dist-contrib dist-headless dist-contrib-headless
cp wheelhouse/opencv_python-* dist/
cp wheelhouse/opencv_contrib_python-* dist-contrib/
cp wheelhouse/opencv_python_headless-* dist-headless/
cp wheelhouse/opencv_contrib_python_headless-* dist-contrib-headless/
- name: Upload wheels for opencv_python
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_contrib_python
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-contrib/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_python_headless
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_HEADLESS_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_HEADLESS_PASSWORD }} --skip-existing wheelhouse/opencv_python_headless-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-headless/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_contrib_python_headless
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_HEADLESS_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_HEADLESS_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python_headless-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-contrib-headless/
print-hash: true
skip-existing: true
101 changes: 74 additions & 27 deletions .github/workflows/build_wheels_macos_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ jobs:
needs: [Build, Test]
runs-on: ubuntu-22.04
environment: opencv-python-rolling-release
permissions:
contents: read
id-token: write
defaults:
run:
shell: bash
Expand All @@ -127,28 +130,46 @@ jobs:
with:
name: wheels
path: wheelhouse/
- name: Upload wheels for opencv_python_rolling
- name: Select only OpenCV wheels
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_ROLLING_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_ROLLING_PASSWORD }} --skip-existing wheelhouse/opencv_python_rolling-*
mkdir dist dist-contrib dist-headless dist-contrib-headless
cp wheelhouse/opencv_python_rolling-* dist/
cp wheelhouse/opencv_contrib_python_rolling-* dist-contrib/
cp wheelhouse/opencv_python_headless_rolling-* dist-headless/
cp wheelhouse/opencv_contrib_python_headless_rolling-* dist-contrib-headless/
- name: Upload wheels for opencv_python_rolling
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_contrib_python_rolling
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_ROLLING_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_ROLLING_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python_rolling-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-contrib/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_python_headless_rolling
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_HEADLESS_ROLLING_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_HEADLESS_ROLLING_PASSWORD }} --skip-existing wheelhouse/opencv_python_headless_rolling-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-headless/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_contrib_python_headless_rolling
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_HEADLESS_ROLLING_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_HEADLESS_ROLLING_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python_headless_rolling-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-contrib-headless/
print-hash: true
skip-existing: true

Pre-release:
if: github.event_name == 'release' && github.event.release.prerelease
needs: [Build, Test]
runs-on: ubuntu-22.04
environment: test-opencv-python-release
permissions:
contents: read
id-token: write
defaults:
run:
shell: bash
Expand All @@ -157,16 +178,27 @@ jobs:
with:
name: wheels
path: wheelhouse/
- name: Upload all wheels
- name: Select only OpenCV wheels
run: |
python -m pip install twine
python -m twine upload --repository testpypi -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --skip-existing wheelhouse/opencv_*
mkdir dist
cp wheelhouse/opencv_* dist/
- name: Upload all wheels
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
print-hash: true
repository-url: https://test.pypi.org/legacy/
skip-existing: true
verbose: true

Release:
if: github.event_name == 'release' && !github.event.release.prerelease
needs: [Build, Test]
runs-on: ubuntu-22.04
environment: opencv-python-release
permissions:
contents: read
id-token: write
defaults:
run:
shell: bash
Expand All @@ -175,19 +207,34 @@ jobs:
with:
name: wheels
path: wheelhouse/
- name: Upload wheels for opencv_python
- name: Select only OpenCV wheels
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_PASSWORD }} --skip-existing wheelhouse/opencv_python-*
mkdir dist dist-contrib dist-headless dist-contrib-headless
cp wheelhouse/opencv_python-* dist/
cp wheelhouse/opencv_contrib_python-* dist-contrib/
cp wheelhouse/opencv_python_headless-* dist-headless/
cp wheelhouse/opencv_contrib_python_headless-* dist-contrib-headless/
- name: Upload wheels for opencv_python
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_contrib_python
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-contrib/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_python_headless
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_HEADLESS_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_HEADLESS_PASSWORD }} --skip-existing wheelhouse/opencv_python_headless-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-headless/
print-hash: true
skip-existing: true
- name: Upload wheels for opencv_contrib_python_headless
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_HEADLESS_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_HEADLESS_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python_headless-*
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist-contrib-headless/
print-hash: true
skip-existing: true
Loading