Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-PyScreeze for
openSUSE:Factory checked in at 2022-08-30 14:50:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyScreeze (Old)
and /work/SRC/openSUSE:Factory/.python-PyScreeze.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyScreeze"
Tue Aug 30 14:50:34 2022 rev:9 rq:1000173 version:0.1.28
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyScreeze/python-PyScreeze.changes
2020-01-16 18:21:28.416982713 +0100
+++
/work/SRC/openSUSE:Factory/.python-PyScreeze.new.2083/python-PyScreeze.changes
2022-08-30 14:51:21.148407094 +0200
@@ -1,0 +2,7 @@
+Mon Aug 29 02:58:53 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- update to 0.1.28
+ * Fix for DC Release error that happened when calling pixel()
+ after calling screenshot() on Windows.
+
+-------------------------------------------------------------------
Old:
----
PyScreeze-0.1.26.tar.gz
New:
----
PyScreeze-0.1.28.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-PyScreeze.spec ++++++
--- /var/tmp/diff_new_pack.jb0bnY/_old 2022-08-30 14:51:21.784408718 +0200
+++ /var/tmp/diff_new_pack.jb0bnY/_new 2022-08-30 14:51:21.788408727 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-PyScreeze
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyScreeze
-Version: 0.1.26
+Version: 0.1.28
Release: 0
Summary: A screenshot Python module
License: BSD-3-Clause
++++++ PyScreeze-0.1.26.tar.gz -> PyScreeze-0.1.28.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyScreeze-0.1.26/AUTHORS.txt
new/PyScreeze-0.1.28/AUTHORS.txt
--- old/PyScreeze-0.1.26/AUTHORS.txt 1970-01-01 01:00:00.000000000 +0100
+++ new/PyScreeze-0.1.28/AUTHORS.txt 2021-09-14 06:08:55.000000000 +0200
@@ -0,0 +1,21 @@
+Here is an inevitably incomplete list of MUCH-APPRECIATED CONTRIBUTORS --
+people who have submitted patches, reported bugs, added translations, helped
+answer newbie questions, and generally made PyScreeze that much better:
+
+Al Sweigart https://github.com/asweigart
+Aneesh Kumar https://github.com/anush0247
+anolir https://github.com/anolir
+Ari Lacenski https://github.com/tensory
+Brian Redmond https://github.com/bredmond
+Christopher Valles https://github.com/christophervalles
+Davee Nguyen https://github.com/daveenguyen
+David O'Gwynn https://github.com/dogwynn
+ijknabla https://github.com/ijknabla
+Jeremy R. Gray https://github.com/jeremygray
+John Hendy https://github.com/jwhendy
+Jon Winsley https://github.com/glitchassassin
+Julien Schueller https://github.com/jschueller
+Lauritz Thaulow https://github.com/LauritzThaulow
+Rob Putt https://github.com/robputt796
+vorstrelok https://github.com/vorstrelok
+zerocewl https://github.com/zerocewl
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyScreeze-0.1.26/PKG-INFO
new/PyScreeze-0.1.28/PKG-INFO
--- old/PyScreeze-0.1.26/PKG-INFO 2020-01-14 07:57:11.000000000 +0100
+++ new/PyScreeze-0.1.28/PKG-INFO 2021-09-14 06:14:02.495906600 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: PyScreeze
-Version: 0.1.26
+Version: 0.1.28
Summary: A simple, cross-platform screenshot module for Python 2 and 3.
Home-page: https://github.com/asweigart/pyscreeze
Author: Al Sweigart
@@ -132,6 +132,11 @@
>>> pyscreeze.pixelMatchesColor(100, 200, (140, 125, 134),
tolerance=10)
True
+ Support
+ -------
+
+ If you find this project helpful and would like to support its
development, [consider donating to its creator on
Patreon](https://www.patreon.com/AlSweigart).
+
Keywords: screenshot screen screencap capture scrot screencapture image
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyScreeze-0.1.26/PyScreeze.egg-info/PKG-INFO
new/PyScreeze-0.1.28/PyScreeze.egg-info/PKG-INFO
--- old/PyScreeze-0.1.26/PyScreeze.egg-info/PKG-INFO 2020-01-14
07:57:11.000000000 +0100
+++ new/PyScreeze-0.1.28/PyScreeze.egg-info/PKG-INFO 2021-09-14
06:14:01.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: PyScreeze
-Version: 0.1.26
+Version: 0.1.28
Summary: A simple, cross-platform screenshot module for Python 2 and 3.
Home-page: https://github.com/asweigart/pyscreeze
Author: Al Sweigart
@@ -132,6 +132,11 @@
>>> pyscreeze.pixelMatchesColor(100, 200, (140, 125, 134),
tolerance=10)
True
+ Support
+ -------
+
+ If you find this project helpful and would like to support its
development, [consider donating to its creator on
Patreon](https://www.patreon.com/AlSweigart).
+
Keywords: screenshot screen screencap capture scrot screencapture image
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyScreeze-0.1.26/PyScreeze.egg-info/SOURCES.txt
new/PyScreeze-0.1.28/PyScreeze.egg-info/SOURCES.txt
--- old/PyScreeze-0.1.26/PyScreeze.egg-info/SOURCES.txt 2020-01-14
07:57:11.000000000 +0100
+++ new/PyScreeze-0.1.28/PyScreeze.egg-info/SOURCES.txt 2021-09-14
06:14:01.000000000 +0200
@@ -1,7 +1,9 @@
+AUTHORS.txt
LICENSE.txt
MANIFEST.in
README.md
README.rst
+pyproject.toml
setup.py
PyScreeze.egg-info/PKG-INFO
PyScreeze.egg-info/SOURCES.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyScreeze-0.1.26/README.md
new/PyScreeze-0.1.28/README.md
--- old/PyScreeze-0.1.26/README.md 2017-01-20 00:25:53.000000000 +0100
+++ new/PyScreeze-0.1.28/README.md 2021-09-01 23:18:20.000000000 +0200
@@ -123,3 +123,8 @@
False
>>> pyscreeze.pixelMatchesColor(100, 200, (140, 125, 134), tolerance=10)
True
+
+Support
+-------
+
+If you find this project helpful and would like to support its development,
[consider donating to its creator on
Patreon](https://www.patreon.com/AlSweigart).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyScreeze-0.1.26/docs/screenshot.rst
new/PyScreeze-0.1.28/docs/screenshot.rst
--- old/PyScreeze-0.1.26/docs/screenshot.rst 2014-12-11 20:00:35.000000000
+0100
+++ new/PyScreeze-0.1.28/docs/screenshot.rst 2021-04-18 06:00:07.000000000
+0200
@@ -86,6 +86,8 @@
>>> list(pyautogui.locateAllOnScreen('someButton.png'))
[(1101, 252, 50, 50), (59, 481, 50, 50), (1395, 640, 50, 50), (1838, 676,
50, 50)]
+- `locateOnScreen(image, title)` - Returns (left, top, width, height)
coordinate of first found instance of the `image` on the window with `title` in
its title. Returns None if not found on the screen. This function requires the
PyGetWindow module to be installed.
+
Grayscale Matching
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyScreeze-0.1.26/pyproject.toml
new/PyScreeze-0.1.28/pyproject.toml
--- old/PyScreeze-0.1.26/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
+++ new/PyScreeze-0.1.28/pyproject.toml 2020-10-11 03:59:51.000000000 +0200
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["setuptools", "wheel"]
+build-backend = "setuptools.build_meta:__legacy__"
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyScreeze-0.1.26/pyscreeze/__init__.py
new/PyScreeze-0.1.28/pyscreeze/__init__.py
--- old/PyScreeze-0.1.26/pyscreeze/__init__.py 2020-01-14 07:55:42.000000000
+0100
+++ new/PyScreeze-0.1.28/pyscreeze/__init__.py 2021-09-14 06:11:04.000000000
+0200
@@ -8,7 +8,7 @@
http://ubuntuforums.org/showthread.php?t=1751455
"""
-__version__ = '0.1.26'
+__version__ = '0.1.28'
import collections
import datetime
@@ -70,6 +70,15 @@
except AttributeError:
pass # Windows XP doesn't support monitor scaling, so just do nothing.
+ try:
+ import pygetwindow
+ except ImportError:
+ _PYGETWINDOW_UNAVAILABLE = True
+ else:
+ _PYGETWINDOW_UNAVAILABLE = False
+else:
+ _PYGETWINDOW_UNAVAILABLE = True
+
GRAYSCALE_DEFAULT = False
@@ -109,6 +118,7 @@
try:
yield hDC
finally:
+ windll.user32.ReleaseDC.argtypes = [ctypes.c_ssize_t,
ctypes.c_ssize_t]
if windll.user32.ReleaseDC(hWnd, hDC) == 0:
raise WindowsError("windll.user32.ReleaseDC failed : return 0")
@@ -235,10 +245,13 @@
# TODO - We should consider renaming _locateAll_python to _locateAll_pillow,
since Pillow is the real dependency.
@requiresPillow
-def _locateAll_python(needleImage, haystackImage, grayscale=None, limit=None,
region=None, step=1):
+def _locateAll_python(needleImage, haystackImage, grayscale=None, limit=None,
region=None, step=1, confidence=None):
"""
TODO
"""
+ if confidence is not None:
+ raise NotImplementedError('The confidence keyword argument is only
available if OpenCV is installed.')
+
# setup all the arguments
if grayscale is None:
grayscale = GRAYSCALE_DEFAULT
@@ -403,6 +416,23 @@
else:
return center(coords)
+def locateOnWindow(image, title, **kwargs):
+ """
+ TODO
+ """
+ if _PYGETWINDOW_UNAVAILABLE:
+ raise PyScreezeException('locateOnWindow() failed because PyGetWindow
is not installed or is unsupported on this platform.')
+
+ matchingWindows = pygetwindow.getWindowsWithTitle(title)
+ if len(matchingWindows) == 0:
+ raise PyScreezeException('Could not find a window with %s in the
title' % (title))
+ elif len(matchingWindows) > 1:
+ raise PyScreezeException('Found multiple windows with %s in the title:
%s' % (title, [str(win) for win in matchingWindows]))
+
+ win = matchingWindows[0]
+ win.activate()
+ return locateOnScreen(image, region=(win.left, win.top, win.width,
win.height), **kwargs)
+
@requiresPillow
def showRegionOnScreen(region, outlineColor='red',
filename='_showRegionOnScreen.png'):