Skip to content

Commit 50c4fe3

Browse files
committed
update 3.4 from master
2 parents 22e5ae8 + dfc59fe commit 50c4fe3

File tree

8 files changed

+130
-113
lines changed

8 files changed

+130
-113
lines changed

.travis.yml

Lines changed: 86 additions & 71 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Linux and MacOS wheels ship with [Qt 4.8.7](http://doc.qt.io/qt-4.8/lgpl.html) l
134134

135135
### Releases
136136

137-
A release is made and uploaded to PyPI when a new tag is pushed to the repo. These tags differentiate packages (this repo might have modifications but OpenCV version stays same) and should be incremented sequentially. In practice, release version numbers look like this:
137+
A release is made and uploaded to PyPI when a new tag is pushed to master branch. These tags differentiate packages (this repo might have modifications but OpenCV version stays same) and should be incremented sequentially. In practice, release version numbers look like this:
138138

139139
``cv_major.cv_minor.cv_revision.package_revision`` e.g. ``3.1.0.0``
140140

@@ -158,12 +158,12 @@ The default ``manylinux`` images have been extended with some OpenCV dependencie
158158

159159
Python 2.7 is the only supported version in 2.x series. Python 2.7 support will be dropped in the end of 2019.
160160

161-
Python 3.x releases follow Numpy releases. For example Python 3.3 is no longer supported by Numpy so support for it has been dropped in ``opencv-python``, too.
161+
Python 3.x releases are provided for officially supported versions (not in EOL).
162162

163163
Currently, builds for following Python versions are provided:
164164

165165
- 2.7
166-
- 3.4
167166
- 3.5
168167
- 3.6
169168
- 3.7
169+
- 3.8

appveyor.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ environment:
1414
ENABLE_CONTRIB: 0
1515
ENABLE_HEADLESS: 0
1616

17-
- PYTHON: "C:/Python34"
18-
ENABLE_CONTRIB: 0
19-
ENABLE_HEADLESS: 0
20-
21-
- PYTHON: "C:/Python34-x64"
22-
ENABLE_CONTRIB: 0
23-
ENABLE_HEADLESS: 0
24-
2517
- PYTHON: "C:/Python35"
2618
ENABLE_CONTRIB: 0
2719
ENABLE_HEADLESS: 0
@@ -46,19 +38,19 @@ environment:
4638
ENABLE_CONTRIB: 0
4739
ENABLE_HEADLESS: 0
4840

49-
- PYTHON: "C:/Python27"
50-
ENABLE_CONTRIB: 1
41+
- PYTHON: "C:/Python38"
42+
ENABLE_CONTRIB: 0
5143
ENABLE_HEADLESS: 0
5244

53-
- PYTHON: "C:/Python27-x64"
54-
ENABLE_CONTRIB: 1
45+
- PYTHON: "C:/Python38-x64"
46+
ENABLE_CONTRIB: 0
5547
ENABLE_HEADLESS: 0
5648

57-
- PYTHON: "C:/Python34"
49+
- PYTHON: "C:/Python27"
5850
ENABLE_CONTRIB: 1
5951
ENABLE_HEADLESS: 0
6052

61-
- PYTHON: "C:/Python34-x64"
53+
- PYTHON: "C:/Python27-x64"
6254
ENABLE_CONTRIB: 1
6355
ENABLE_HEADLESS: 0
6456

@@ -86,19 +78,19 @@ environment:
8678
ENABLE_CONTRIB: 1
8779
ENABLE_HEADLESS: 0
8880

89-
- PYTHON: "C:/Python27"
90-
ENABLE_CONTRIB: 0
91-
ENABLE_HEADLESS: 1
81+
- PYTHON: "C:/Python38"
82+
ENABLE_CONTRIB: 1
83+
ENABLE_HEADLESS: 0
9284

93-
- PYTHON: "C:/Python27-x64"
94-
ENABLE_CONTRIB: 0
95-
ENABLE_HEADLESS: 1
85+
- PYTHON: "C:/Python38-x64"
86+
ENABLE_CONTRIB: 1
87+
ENABLE_HEADLESS: 0
9688

97-
- PYTHON: "C:/Python34"
89+
- PYTHON: "C:/Python27"
9890
ENABLE_CONTRIB: 0
9991
ENABLE_HEADLESS: 1
10092

101-
- PYTHON: "C:/Python34-x64"
93+
- PYTHON: "C:/Python27-x64"
10294
ENABLE_CONTRIB: 0
10395
ENABLE_HEADLESS: 1
10496

@@ -126,19 +118,19 @@ environment:
126118
ENABLE_CONTRIB: 0
127119
ENABLE_HEADLESS: 1
128120

129-
- PYTHON: "C:/Python27"
130-
ENABLE_CONTRIB: 1
121+
- PYTHON: "C:/Python38"
122+
ENABLE_CONTRIB: 0
131123
ENABLE_HEADLESS: 1
132124

133-
- PYTHON: "C:/Python27-x64"
134-
ENABLE_CONTRIB: 1
125+
- PYTHON: "C:/Python38-x64"
126+
ENABLE_CONTRIB: 0
135127
ENABLE_HEADLESS: 1
136128

137-
- PYTHON: "C:/Python34"
129+
- PYTHON: "C:/Python27"
138130
ENABLE_CONTRIB: 1
139131
ENABLE_HEADLESS: 1
140132

141-
- PYTHON: "C:/Python34-x64"
133+
- PYTHON: "C:/Python27-x64"
142134
ENABLE_CONTRIB: 1
143135
ENABLE_HEADLESS: 1
144136

@@ -166,6 +158,14 @@ environment:
166158
ENABLE_CONTRIB: 1
167159
ENABLE_HEADLESS: 1
168160

161+
- PYTHON: "C:/Python38"
162+
ENABLE_CONTRIB: 1
163+
ENABLE_HEADLESS: 1
164+
165+
- PYTHON: "C:/Python38-x64"
166+
ENABLE_CONTRIB: 1
167+
ENABLE_HEADLESS: 1
168+
169169
matrix:
170170
fast_finish: true
171171

opencv

Submodule opencv updated 1805 files

opencv_contrib

Submodule opencv_contrib updated 857 files

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def main():
2828
minimum_supported_numpy = "1.11.3"
2929
if sys.version_info[:2] >= (3, 7):
3030
minimum_supported_numpy = "1.14.5"
31+
if sys.version_info[:2] >= (3, 8):
32+
minimum_supported_numpy = "1.17.3"
3133

3234
numpy_version = get_or_install("numpy", minimum_supported_numpy)
3335
get_or_install("scikit-build")
@@ -76,14 +78,14 @@ def main():
7678
# Path regexes with forward slashes relative to CMake install dir.
7779
rearrange_cmake_output_data = {
7880

79-
'cv2': ([r'bin/opencv_ffmpeg\d{3}%s\.dll' % ('_64' if x64 else '')] if os.name == 'nt' else []) +
81+
'cv2': ([r'bin/opencv_videoio_ffmpeg\d{3}%s\.dll' % ('_64' if x64 else '')] if os.name == 'nt' else []) +
8082
# In Windows, in python/X.Y/<arch>/; in Linux, in just python/X.Y/.
8183
# Naming conventions vary so widely between versions and OSes
8284
# had to give up on checking them.
8385
['python/cv2[^/]*%(ext)s' % {'ext': re.escape(sysconfig.get_config_var('SO'))}],
8486

8587
'cv2.data': [ # OPENCV_OTHER_INSTALL_PATH
86-
('etc' if os.name == 'nt' else 'share/OpenCV') +
88+
('etc' if os.name == 'nt' else 'share/opencv4') +
8789
r'/haarcascades/.*\.xml'
8890
]
8991
}
@@ -138,7 +140,7 @@ def main():
138140
cmake_args.append("-DWITH_LAPACK=OFF") # Some OSX LAPACK fns are incompatible, see
139141
# https://github.com/skvark/opencv-python/issues/21
140142
cmake_args.append("-DCMAKE_CXX_FLAGS=-stdlib=libc++")
141-
cmake_args.append("-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.8")
143+
cmake_args.append("-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9")
142144

143145
if sys.platform == 'darwin' and build_contrib:
144146
cmake_args.append("-DCMAKE_CXX_FLAGS=-stdlib=libc++ -std=c++11 -Wno-c++11-narrowing")
@@ -201,10 +203,10 @@ def main():
201203
'Programming Language :: Python :: 2',
202204
'Programming Language :: Python :: 2.7',
203205
'Programming Language :: Python :: 3',
204-
'Programming Language :: Python :: 3.4',
205206
'Programming Language :: Python :: 3.5',
206207
'Programming Language :: Python :: 3.6',
207208
'Programming Language :: Python :: 3.7',
209+
'Programming Language :: Python :: 3.8',
208210
'Programming Language :: C++',
209211
'Programming Language :: Python :: Implementation :: CPython',
210212
'Topic :: Scientific/Engineering',

travis_config.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ if [ -n "$IS_OSX" ]; then
6464
if (!$found_blank && /^$/) {$_.="conflicts_with \"ffmpeg\"\n\n"; $found_blank=1; next;}
6565
if (!$bottle_block && /^\s*bottle do$/) { $bottle_block=1; next; }
6666
if ($bottle_block) { if (/^\s*end\s*$/) { $bottle_block=0} elsif (/^\s*sha256\s/) {$_=""} next; }
67-
if (/^\s*depends_on "(x264|x265|xvid|frei0r|rubberband)"$/) {$_=""; next;}
68-
if (/^\s*--enable-(gpl|libx264|libx265|libxvid|frei0r|librubberband)$/) {$_=""; next;}
67+
if (/^\s*depends_on "(x264|x265|xvid|frei0r|rubberband|libvidstab)"$/) {$_=""; next;}
68+
if (/^\s*--enable-(gpl|libx264|libx265|libxvid|frei0r|librubberband|libvidstab)$/) {$_=""; next;}
6969
' <"$FF_FORMULA" >"$LFF_FORMULA"
7070
diff -u "$FF_FORMULA" "$LFF_FORMULA" || test $? -le 1
7171

@@ -86,7 +86,7 @@ function pre_build {
8686

8787
if [ -n "$IS_OSX" ]; then
8888
echo "Running for OSX"
89-
89+
9090
local CACHE_STAGE; (echo "$TRAVIS_BUILD_STAGE_NAME" | grep -qiF "final") || CACHE_STAGE=1
9191

9292
#after the cache stage, all bottles and Homebrew metadata should be already cached locally
@@ -117,7 +117,7 @@ function pre_build {
117117
brew_go_bootstrap_mode 0
118118
return 0
119119
fi
120-
120+
121121
# Have to install macpython late to avoid conflict with Homebrew Python update
122122
before_install
123123

0 commit comments

Comments
 (0)