Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
404 commits
Select commit Hold shift + click to select a range
bf4e056
fix sdist upload
skvark Jul 17, 2020
a464c98
fix find_version bug and clean up README
skvark Jul 17, 2020
f411d56
fix find_version bug and clean up README
skvark Jul 17, 2020
40042cd
update multibuild
skvark Jul 20, 2020
0727f01
fix the CI build flag
skvark Jul 20, 2020
914404d
fix typo
skvark Jul 21, 2020
61a4bf2
Disable Java wrapper build by default.
Aug 2, 2020
83acfc9
Merge pull request #368 from tedski/master
skvark Aug 3, 2020
f2f717b
qt 5.13 test
skvark Jul 29, 2020
39198ec
add ld lib path
skvark Jul 29, 2020
5a8776a
fix typo, try without xcb helpers
skvark Aug 3, 2020
19ecd16
qt5.15 again
skvark Aug 3, 2020
96be62b
change path
skvark Aug 3, 2020
3a85591
fix patch
skvark Aug 3, 2020
5152069
try to whitelist libxcb.so.1
skvark Aug 5, 2020
aa791f1
auditwheel is installed under py37
skvark Aug 5, 2020
b9b07a5
fix patch location
skvark Aug 5, 2020
9271f1a
Install azure-cli from Ubuntu repo because latest update broke batch …
skvark Aug 5, 2020
2bcf6a4
use pip
skvark Aug 5, 2020
3ec8958
use py27 compatible version
skvark Aug 5, 2020
eaa3ca7
azure-cli should work now
skvark Aug 6, 2020
902a94e
add fonts to the package
skvark Aug 6, 2020
fa463c1
set QT_QPA_FONTDIR
skvark Aug 6, 2020
8ca25e7
copy fonts
skvark Aug 6, 2020
98d210d
update patch
skvark Aug 7, 2020
e2f2a87
update patch
skvark Aug 7, 2020
c7f3271
update patch
skvark Aug 7, 2020
6ef230b
wrong dir
skvark Aug 7, 2020
a3f6314
update license info
skvark Aug 7, 2020
a115f4b
update licenses
skvark Aug 7, 2020
8e4ef80
merge
skvark Aug 7, 2020
a49fdc6
fix windows builds
skvark Aug 8, 2020
2ff5f25
fix windows builds
skvark Aug 8, 2020
2bc7540
patch only on linux
skvark Aug 8, 2020
70988b9
patch only on linux
skvark Aug 8, 2020
689a9e1
reduce verbosity
skvark Aug 9, 2020
8660b61
reduce verbosity
skvark Aug 9, 2020
e0ff6f9
fix min numpy version for 3.6
skvark Aug 9, 2020
52bc698
fix min numpy version for 3.6
skvark Aug 9, 2020
4049947
fix sdist upload
skvark Aug 9, 2020
bad5cb1
fix sdist upload
skvark Aug 9, 2020
4690367
fix twine upload command
skvark Aug 9, 2020
8d5aa2b
fix twine upload command
skvark Aug 9, 2020
80e63d4
fix the travis USER issue
skvark Aug 10, 2020
54b7720
OpenCV 3.4.11
skvark Aug 10, 2020
a70c89a
add minimum supported Python version
skvark Aug 10, 2020
8dc7a8d
fix the travis USER issue
skvark Aug 10, 2020
633e1cf
add minimum supported Python version
skvark Aug 10, 2020
f073b00
OpenCV 4.4.0
skvark Aug 10, 2020
f78c6a5
Add note about manylinux2014
skvark Aug 11, 2020
8a23c55
Add note about manylinux2014
skvark Aug 11, 2020
b68716e
fix typo in version
skvark Aug 11, 2020
e29f6f4
fix typo in version
skvark Aug 11, 2020
3c332df
another typo
skvark Aug 11, 2020
d356af1
another typo
skvark Aug 11, 2020
0c34909
add aarch64 Dockerfile
skvark Aug 14, 2020
24d5804
force Qt 5.13
skvark Aug 14, 2020
a055e92
add aarch64 Dockerfile
skvark Aug 14, 2020
207e183
force Qt 5.13
skvark Aug 14, 2020
436e8f2
5.13.2
skvark Aug 14, 2020
4e5ea42
5.13.2
skvark Aug 14, 2020
f9b4c3b
direct link
skvark Aug 14, 2020
67699a2
direct link
skvark Aug 14, 2020
72f10b4
no auto update, use extract
skvark Aug 14, 2020
0fca542
no auto update, use extract
skvark Aug 14, 2020
21be118
just use the raw url directly
skvark Aug 14, 2020
e3cc9a8
just use the raw url directly
skvark Aug 14, 2020
ebfac6b
unlink and reinstall
skvark Aug 16, 2020
d53115c
unlink and reinstall
skvark Aug 16, 2020
798a689
force qt uninstall
skvark Aug 16, 2020
b0225dd
force qt uninstall
skvark Aug 16, 2020
8dc0f4d
use switch instead
skvark Aug 16, 2020
97642d5
use switch instead
skvark Aug 16, 2020
6454d36
drop Python 3.5 support
skvark Aug 17, 2020
928952d
drop Python 3.5 support
skvark Aug 17, 2020
a82d7dd
test aarch64 build
skvark Aug 17, 2020
5373fcc
aarch64 needs to be rebuilt with cmake
skvark Aug 17, 2020
ab36745
add ccache and cmake to aarch64 Dockerfile (requires rebuild)
skvark Aug 17, 2020
e4893f2
update README [skip ci]
skvark Aug 17, 2020
099ed15
Make the README more clear
skvark Aug 26, 2020
893430f
add more guidance, fix typos, drop Python 3.5
skvark Sep 5, 2020
4ee3929
disable nodelete, see #381
skvark Sep 20, 2020
c001042
update openssl, no-pinshared, see #381
skvark Sep 20, 2020
7a0c346
merge master to 3.4
skvark Sep 22, 2020
22086f8
remove file
skvark Sep 22, 2020
f179cd1
Python 3.9 preparations
skvark Oct 6, 2020
b743f47
fix typo
skvark Oct 6, 2020
5e46e96
fix pyproject.toml
skvark Oct 7, 2020
f9934e2
Merge branch 'feat/python39' into 3.4
skvark Oct 7, 2020
69a8f4c
.gitignore: Ignore cv2/version.py
stweil Oct 11, 2020
2ce6d97
Merge pull request #402 from stweil/gitignore
skvark Oct 11, 2020
58f0105
Python 3.9 preparations
skvark Oct 6, 2020
c4f8e26
fix typo
skvark Oct 6, 2020
2d445e7
fix pyproject.toml
skvark Oct 7, 2020
69df18e
Merge branch 'master' into 3.4
skvark Oct 11, 2020
1180f1e
Merge branch 'feat/python39' of https://github.com/skvark/opencv-pyth…
skvark Oct 11, 2020
6ee82a3
fix line endings
skvark Oct 11, 2020
602c6b8
fix conflicts
skvark Oct 11, 2020
e225c61
fix auditwheel patching
skvark Oct 30, 2020
20753af
Merge branch 'feat/python39' into 3.4
skvark Oct 30, 2020
ed8acbc
fix py39 entry
skvark Oct 30, 2020
649cfc1
fix py39 entry
skvark Oct 30, 2020
7e10464
fix min numpy version
skvark Nov 1, 2020
285348b
fix min numpy version
skvark Nov 1, 2020
ea7c416
download Python 3.9 manually
skvark Nov 1, 2020
23d3a09
download Python 3.9 manually
skvark Nov 1, 2020
86414ec
fix slashes
skvark Nov 1, 2020
603e2a3
fix slashes
skvark Nov 1, 2020
6f8c817
another fix for slashes
skvark Nov 1, 2020
6b377ba
another fix for slashes
skvark Nov 1, 2020
e983793
update README
skvark Nov 2, 2020
98fa4b1
update README
skvark Nov 2, 2020
83ace3c
try with new images
skvark Aug 21, 2020
58920f6
add env markers for aarch64
skvark Aug 21, 2020
0fc0d4b
add numpy version to setup.py
skvark Aug 21, 2020
8cc5da8
test depends, more specific pyproject.toml
skvark Aug 21, 2020
16ac6e7
add test image
skvark Nov 12, 2020
37a96da
add arm64 matrix entries and update Dockerfile
skvark Nov 16, 2020
e9aabcd
Merge branch 'feat/aarch64' into 3.4
skvark Nov 16, 2020
f767942
fix py version
skvark Nov 16, 2020
36fb52e
Merge branch 'feat/aarch64' into 3.4
skvark Nov 16, 2020
39ca0fd
use numpy 1.19.3
skvark Nov 16, 2020
7701ec7
use numpy 1.19.3
skvark Nov 16, 2020
a5fc295
fix min supported numpy
skvark Nov 17, 2020
54294dd
fix min supported numpy
skvark Nov 17, 2020
1e85f5e
update OpenCV licensing
skvark Nov 28, 2020
bb77a8a
OpenCV 3.4.12
skvark Nov 28, 2020
f33e65d
OpenCV 4.5.0
skvark Nov 28, 2020
3137b3e
update OpenCV licensing
skvark Nov 28, 2020
9c8ebec
check if there is enough time to build FFmpeg without cache
skvark Dec 2, 2020
b023344
fix syntax
skvark Dec 2, 2020
e83bc13
Add docs for debug build
ApproximateIdentity Dec 11, 2020
bbaa777
Merge pull request #428 from ApproximateIdentity/debug-build-document…
skvark Dec 11, 2020
7d1e48c
arm64 azure cli does not work
skvark Dec 28, 2020
d3580ef
merge 3.4 changes
skvark Dec 28, 2020
0279efb
Merge branch 'master' of https://github.com/skvark/opencv-python
skvark Dec 28, 2020
fed2178
fix paths
skvark Dec 28, 2020
5f56caf
OpenCV 4.5.1
skvark Dec 28, 2020
fd4e604
disable Qt on macOS for now due to multiple issues
skvark Dec 28, 2020
89ca6a4
Add GitHub actions setup for CI instead of Travis & Appveyour (where …
sergregory Apr 30, 2021
4262df8
Update opencv to 4.5.2
sergregory Apr 30, 2021
aa26990
make it possible to compile from sources against numpy on macOS aarch…
skvark May 1, 2021
42baf3c
Documentation update after migration to OpenCV organization on Github.
asmorkalov May 6, 2021
88c1735
Fixed if condition for release job (#478)
asenyaev May 6, 2021
c34cbfa
Added arm build
May 11, 2021
5d27451
Changed the label for a runner
May 12, 2021
6336ca8
Split workflows according to platforms
May 18, 2021
ffd6b4b
Merge pull request #479 from asmorkalov/as/docs_update
sergregory May 26, 2021
2bab1f5
Split builds and tests for linux, update submodules only when a PR, t…
May 27, 2021
83deed8
Extracted build and install+test steps into two different scripts and…
Jun 3, 2021
7a751f7
Merge pull request #483 from asenyaev/asen/arm_build
asmorkalov Jun 4, 2021
4fe9a58
Include software distributions when uploading to PyPI
williamjacksn Jun 9, 2021
9136e86
Added MacOS with M1 build
Jun 30, 2021
2ff0d0e
Updated submodules to 4.5.3 release
Jul 7, 2021
2344814
Merge pull request #507 from asenyaev/asen/macos_m1
sergregory Jul 7, 2021
b683e08
Merge pull request #510 from asenyaev/asen/master_update
sergregory Jul 8, 2021
86c3d2a
Merge pull request #500 from williamjacksn/upload-sdist-to-pypi
asmorkalov Jul 9, 2021
eb0efe2
Readme update after migration to Github Actions for CI.
asmorkalov Jul 16, 2021
c1cc7e5
Merge pull request #515 from asmorkalov/as/docs_update_actions
sergregory Jul 23, 2021
ecd163d
fix typo in Readme
Skylion007 Sep 17, 2021
f07201c
Merge pull request #545 from Skylion007/patch-1
asmorkalov Sep 20, 2021
5fedf82
Added the lapack installation
asenyaev Sep 21, 2021
3c1ea44
Changed blas to openblas and fixed flow to a proper installation
Oct 1, 2021
40e0e3b
Fixed aarch64 openblas installation
Oct 1, 2021
1d6e034
Fixed an issue when machine:X86 was defined on Windows x64
Oct 1, 2021
76a6fb2
Added fix for MacOS with M1
Oct 6, 2021
3f01089
Removed env variables and defined CI_BUILD variable globally
Oct 6, 2021
4b49e0b
Merge pull request #555 from asenyaev/asen/fix_macos_m1
asenyaev Oct 7, 2021
80f0790
Merge pull request #547 from asenyaev/asen/lapack_issue
asenyaev Oct 7, 2021
d82a270
Updated Github Actions to python 3.10 and fixed following issues
Oct 7, 2021
0114953
Fixed the version of numpy for linux aarch64 and python3.6
Oct 8, 2021
9f43c0b
Changed the image for tests on linux arm
Oct 8, 2021
4d0f6d2
Fixed if condition for numpy test version on linux arm and renamed nu…
Oct 9, 2021
fdcbcb1
Added lowest numpy version support instead of latest
Oct 9, 2021
51226a7
Travis CI seems to be on vacation
cclauss Oct 11, 2021
5c81cda
Fix typo in Readme
andruekonst Oct 13, 2021
69be49c
Merge pull request #556 from asenyaev/asen/upgrade_to_python_3_10
asenyaev Oct 15, 2021
85b9bc5
Merge pull request #558 from cclauss/patch-2
asenyaev Oct 15, 2021
6a1f61b
Updated submodules to the release 4.5.4, added python loader support,…
asenyaev Oct 15, 2021
545fe24
Added comments for new changes
asenyaev Oct 15, 2021
7e67ab5
"Programming Language :: Python :: 3.10",
cclauss Oct 16, 2021
851182f
Removed useless lines and added replacing lines into init file
asenyaev Oct 18, 2021
a0f47e9
Merge pull request #563 from asenyaev/asen/python_loader_support
asenyaev Oct 20, 2021
3cd06d9
Merge pull request #565 from cclauss/patch-2
asenyaev Oct 20, 2021
84bfd76
Merge pull request #561 from andruekonst/patch-1
asenyaev Oct 20, 2021
810ca4e
Fixed a build from the source
asenyaev Nov 1, 2021
28eb5bf
Updated attached commit for opencv repository
asenyaev Nov 1, 2021
012f556
Added 3.10 python version in the description
asenyaev Nov 1, 2021
a25a2a8
Added lines for a proper work using pylint and an autocomplete in IDE
Nov 3, 2021
e7ce051
Use PEP-508 compliant dependency specifiers
amyreese Nov 3, 2021
f46eabb
Moving to auditwheel==5.0.0 (default in the latest manylinux image)
asenyaev Nov 7, 2021
2188a44
Fix typos
kianmeng Nov 8, 2021
9a7af2a
Changed defining path to scripts/__init__.py file
asenyaev Nov 8, 2021
e231f08
Merge pull request #578 from asenyaev/asen/update_submodules_for_release
asenyaev Nov 8, 2021
7052ed7
Merge pull request #582 from kianmeng/fix-typos
asenyaev Nov 8, 2021
69a9a93
Merge pull request #581 from asenyaev/asen/upgrade_auditwheel
asenyaev Nov 9, 2021
b6e1ec8
Fixed imports for a proper package work
Nov 9, 2021
7319276
Merge pull request #577 from asenyaev/asen/fix_build_from_source
asenyaev Nov 10, 2021
8cb031a
Changed a string substitution to os.path.join
asenyaev Nov 12, 2021
053e8cc
Merge pull request #579 from asenyaev/asen/fix_pylin_and_pycharm
asenyaev Nov 17, 2021
8f763b1
Delete appveyor.yml
cclauss Nov 26, 2021
53e5ed3
Merge pull request #580 from jreese/patch-1
asenyaev Nov 29, 2021
d0ebd71
Merge pull request #590 from cclauss/patch-4
asenyaev Dec 3, 2021
040dc8d
Added python limited API support
asenyaev Dec 15, 2021
fd3bf88
Merge pull request #595 from asenyaev/asen/python_limited_api
asenyaev Dec 15, 2021
edd6b14
Changed a path to config-X.py file after python limited API support, …
asenyaev Dec 15, 2021
c1ca98c
Merge pull request #596 from asenyaev/asen/config_version
asenyaev Dec 16, 2021
cc12af6
Updated commits to 4.5.5 release
asenyaev Dec 25, 2021
ec7b7e4
Added openexr build flag
asenyaev Dec 26, 2021
569acce
Merge pull request #598 from asenyaev/asen/4.5.5_release
asenyaev Dec 27, 2021
0a17e6c
Updated dependencies to the latest releases (openssl and ffmpeg) in a…
asenyaev Jan 24, 2022
0066feb
Added versions of dependecies as arguments in dockerfiles
asenyaev Jan 25, 2022
209d32e
Merge pull request #617 from asenyaev/asen/update_dockerfile
asenyaev Jan 25, 2022
700cb00
Defined static version of windows server
asenyaev Mar 3, 2022
141a763
Updated MSBuild action
asenyaev Mar 3, 2022
602a8be
Defined ffmpeg version for macos (4.4.1) and fixed MacOS build
asenyaev Mar 3, 2022
8880543
Merge pull request #632 from asenyaev/asen/fix_current_builds
asenyaev Mar 4, 2022
9de011e
Added pylint test
asenyaev Mar 22, 2022
1e26c5d
Pinned pylint version
asenyaev Mar 23, 2022
ed16e8e
Changed using custom test for pylint to opencv sample
asenyaev Mar 23, 2022
623401a
Merge pull request #638 from asenyaev/asen/pylint_test
asenyaev Mar 24, 2022
3a4c30e
Added pre-downloaded 3rdparty files to source packages
asenyaev Mar 24, 2022
65f12d9
Merge pull request #639 from asenyaev/asen/pre_downloaded_files
asenyaev Mar 25, 2022
7ba53fc
Revert changes for pre-downloaded files
asenyaev Mar 25, 2022
ad01042
Skip only gapi if it was not found
asenyaev Mar 25, 2022
9ad778e
Merge pull request #641 from asenyaev/asen/revert_pre_downloaded_files
asenyaev Mar 25, 2022
f68be38
Skip only gapi if it was not found
asenyaev Mar 25, 2022
cd0476f
Merge branch 'asen/skip_gapi' of https://github.com/asenyaev/opencv-p…
asenyaev Mar 25, 2022
96cffde
Synchronize with scikit-build
Mar 21, 2022
0eb6c12
Merge pull request #642 from asenyaev/asen/skip_gapi
asenyaev Mar 28, 2022
7419f58
add support for building windows/arm64 package
niyas-sait Mar 28, 2022
056f900
Merge pull request #637 from orbisvicis/master
asenyaev Apr 7, 2022
4b068fc
Pinned versions for dependencies
asenyaev Apr 7, 2022
f89dca7
Downgraded cmake version
asenyaev Apr 8, 2022
443b747
Downgraded cmake version to 3.1
asenyaev Apr 8, 2022
8f2049e
Merge pull request #652 from asenyaev/asen/pinned_dependencies
asenyaev Apr 8, 2022
5de8d66
Merge pull request #644 from nsait-linaro/windows-arm64
asmorkalov Apr 12, 2022
3ac27ad
Updated dependecies for the next release
asenyaev May 30, 2022
4f8289d
Updated dependecies for the next release
asenyaev May 31, 2022
f2f924c
Merge pull request #666 from asenyaev/asen/update_all_dependencies
asmorkalov May 31, 2022
9ec924e
Updated submodules to the latest commits
asenyaev May 31, 2022
df365e5
Check changes on 3.4 branch in PRs
asenyaev May 31, 2022
5633cf3
Removed unused lines
asenyaev May 31, 2022
04b1a52
Updated submodules to 4.6.0 release
asenyaev Jun 5, 2022
b45a6a9
Merge pull request #668 from asenyaev/asen/check_latest_commits_4.x
asenyaev Jun 6, 2022
8d04505
Changed format of an archive for source packages
asenyaev Jun 8, 2022
009743d
Merge pull request #672 from asenyaev/asen/change_format_for_source_p…
asmorkalov Jun 10, 2022
54473f1
Updated multibuild to upgrade default 64-bit test image to focal
radarhere Jun 24, 2022
fcc900e
Merge pull request #684 from radarhere/multibuild
asenyaev Jun 24, 2022
4638ce5
Changed labeles for macOS ARM64 and Linux ARM64 builds (#681)
asenyaev Jul 4, 2022
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
27 changes: 27 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,30 @@ Write here what went wrong.
- architecture (e.g. x86)
- opencv-python version

##### Issue submission checklist

- [ ] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
<!--

Use Q&A forums such as https://answers.opencv.org/questions/ and https://stackoverflow.com/ and other communities
to discuss problems. Tickets without real issue statements related to this build toolchain will be closed.

-->
- [ ] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
<!--

If you have some OpenCV bug report which needs to fixed in the C++ code,
please report issue to the OpenCV repository:

https://github.com/opencv/opencv/issues

See also:

* OpenCV documentation: https://docs.opencv.org
* OpenCV FAQ page: https://github.com/opencv/opencv/wiki/FAQ
* OpenCV forum: https://answers.opencv.org
* Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv

-->
- [ ] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
- [ ] I'm using the latest version of ``opencv-python``
224 changes: 224 additions & 0 deletions .github/workflows/build_wheels_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
name: Build PYPI wheels for opencv-python on Linux x86_64

on:
pull_request:
branches:
- master
- 3.4
paths-ignore:
- '.github/workflows/build_wheels_linux_arm.yml'
- '.github/workflows/build_wheels_windows*'
- '.github/workflows/build_wheels_macos*'
release:
types: [published, edited]


jobs:
build:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
python-version: ['3.6']
platform: [x64]
with_contrib: [0, 1]
without_gui: [0, 1]
build_sdist: [0]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
REPO_DIR: .
BUILD_COMMIT: master
PROJECT_SPEC: opencv-python
MB_PYTHON_VERSION: ${{ matrix.python-version }}
TRAVIS_PYTHON_VERSION: ${{ matrix.python-version }}
MB_ML_VER: 2014
TRAVIS_BUILD_DIR: ${{ github.workspace }}
CONFIG_PATH: travis_config.sh
DOCKER_IMAGE: quay.io/opencv-ci/opencv-python-manylinux2014-x86-64:20220628
USE_CCACHE: 0
UNICODE_WIDTH: 32
PLAT: x86_64
SDIST: ${{ matrix.build_sdist || 0 }}
ENABLE_HEADLESS: ${{ matrix.without_gui }}
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
steps:
- name: Cleanup
run: find . -mindepth 1 -delete
working-directory: ${{ github.workspace }}
- name: Checkout
uses: actions/checkout@v2
with:
submodules: false
fetch-depth: 0
- name: Update submodules
if: github.event_name == 'pull_request'
run: git submodule update --remote
- name: Build a package
run: source scripts/build.sh
- name: Saving all wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: wheelhouse/opencv*.whl
- name: Saving a wheel accordingly to matrix
uses: actions/upload-artifact@v2
with:
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
path: wheelhouse/opencv*.whl

test:
needs: [build]
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
platform: [x64]
with_contrib: [0, 1]
without_gui: [0, 1]
build_sdist: [0]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
MB_PYTHON_VERSION: ${{ matrix.python-version }}
NP_TEST_DEP: numpy==1.19.4
NP_TEST_DEP_LATEST: numpy==1.21.2
CONFIG_PATH: travis_config.sh
PLAT: x86_64
steps:
- name: Cleanup
run: find . -mindepth 1 -delete
working-directory: ${{ github.workspace }}
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup Environment variables
run: if [ "3.10" == "${{ matrix.python-version }}" ]; then echo "TEST_DEPENDS=$(echo $NP_TEST_DEP_LATEST)" >> $GITHUB_ENV; else echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV; fi
- name: Download a wheel accordingly to matrix
uses: actions/download-artifact@v2
with:
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
path: wheelhouse/
- name: Package installation and run tests
run: source scripts/install.sh

build_sdist:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
python-version: [3.8]
platform: [x64]
with_contrib: [0, 1]
without_gui: [0, 1]
build_sdist: [1]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
REPO_DIR: .
BUILD_COMMIT: master
PROJECT_SPEC: opencv-python
PLAT: x86_64
MB_PYTHON_VERSION: ${{ matrix.python-version }}
TRAVIS_PYTHON_VERSION: ${{ matrix.python-version }}
MB_ML_VER: 2014
NP_TEST_DEP: numpy==1.19.4
TRAVIS_BUILD_DIR: ${{ github.workspace }}
CONFIG_PATH: travis_config.sh
DOCKER_IMAGE: quay.io/opencv-ci/opencv-python-manylinux2014-x86-64:20220628
USE_CCACHE: 1
UNICODE_WIDTH: 32
SDIST: ${{ matrix.build_sdist || 0 }}
ENABLE_HEADLESS: ${{ matrix.without_gui || 0 }}
ENABLE_CONTRIB: ${{ matrix.with_contrib || 0 }}
steps:
- name: Cleanup
run: find . -mindepth 1 -delete
working-directory: ${{ github.workspace }}
- name: Checkout
uses: actions/checkout@v2
with:
submodules: false
fetch-depth: 0
- name: Update submodules
if: github.event_name == 'pull_request'
run: git submodule update --remote
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.platform }}
- name: Build a package
run: |
set -e
# Build and package
set -x
python -m pip install --upgrade pip
python -m pip install scikit-build
python setup.py sdist --formats=gztar
set +x
# Install and run tests
set -x
echo "skipping tests because of sdist"
- name: saving artifacts
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist/opencv*.tar.gz

test_release_opencv_python:
if: github.event_name == 'release' && github.event.release.prerelease
needs: [build, build_sdist, test]
runs-on: ubuntu-20.04
environment: test-opencv-python-release
defaults:
run:
shell: bash
steps:
- uses: actions/download-artifact@v2
with:
name: wheels
path: wheelhouse/
- name: Upload all 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_* wheelhouse/opencv-*

release_opencv_python:
if: github.event_name == 'release' && !github.event.release.prerelease
needs: [build, build_sdist, test]
runs-on: ubuntu-20.04
environment: opencv-python-release
defaults:
run:
shell: bash
steps:
- uses: actions/download-artifact@v2
with:
name: wheels
path: wheelhouse/
- name: Upload wheels for opencv_python
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-* wheelhouse/opencv-python-[^h]*
- 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-* wheelhouse/opencv-contrib-python-[^h]*
- 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-* wheelhouse/opencv-python-headless-*
- 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-* wheelhouse/opencv-contrib-python-headless-*
Loading