commit c1b84bb5dc977c9981d005f65ae88cf419c974e1e8f76f9b91cfdb0557bad728 Author: Matej Cepl Date: Mon May 12 06:40:57 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyAutoGUI?expand=0&rev=14 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..8a996a9 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,27 @@ +Copyright (c) 2014, Al Sweigart +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the PyAutoGUI nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/PyAutoGUI-0.9.54.tar.gz b/PyAutoGUI-0.9.54.tar.gz new file mode 100644 index 0000000..7811eec --- /dev/null +++ b/PyAutoGUI-0.9.54.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd1d29e8fd118941cb193f74df57e5c6ff8e9253b99c7b04f39cfc69f3ae04b2 +size 61236 diff --git a/python-PyAutoGUI.changes b/python-PyAutoGUI.changes new file mode 100644 index 0000000..8c33ce3 --- /dev/null +++ b/python-PyAutoGUI.changes @@ -0,0 +1,68 @@ +------------------------------------------------------------------- +Tue May 6 12:19:50 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed Dec 27 13:46:16 UTC 2023 - Dirk Müller + +- update to 0.9.54: + * package metadata and testsuite fixes + +------------------------------------------------------------------- +Thu Sep 22 20:52:45 UTC 2022 - Yogalakshmi Arunachalam + +- v0.9.53 + -- Fixed a compatibility issue with the pystray module. +- 0.9.52 + -- Fixed hotkey() to work with PAUSE. +- v0.9.51 + -- Added the hold() context manager, several bug fixes for mac mouse functions. +- v0.9.50 + -- The 0.9.49 changes were incredibly buggy and have been reverted. +- v0.9.49 + -- Migrated from Quartz to Rubicon +- v0.9.46 + -- Added mouseinfo module. +- v0.9.45 + -- Added left-click, made mouse buttons more explicit and fixed it so that the right mouse button is 2 and middle mouse button is 3. + Added failsafe points in all corners. Added screenshot logging. Fixed _autoPause(). +- v0.9.44 + -- Adding ability to pass 4-integer box tuples to click() and other functions. +- v0.9.43 + -- Renamed getFocusedWindow to getActiveWindow to keep it up to date with pygetwindow. +- v0.9.40 + -- Created FAILSAFE_POINT constant instead of hard coding (0, 0), add move(), drag(), write() names. Adding PyGetWindow. +- v0.9.39 + -- Added tox and fixed setup.py for Python 2 compatibility. +- v0.9.38 + -- Removing non-ascii characters from readme because it causes failures when displaying on Windows. +- v0.9.37 + -- Updating setup.py +- v0.9.36 + -- Fixed Windows XP problem with the DPI scaling API call. + +------------------------------------------------------------------- +Thu Nov 7 15:12:43 UTC 2019 - Matej Cepl + +- Run through spec-cleaner + +------------------------------------------------------------------- +Tue Dec 4 12:51:55 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Tue Mar 6 07:49:37 UTC 2018 - alarrosa@suse.com + +- Added missing requires python-python-xlib + +------------------------------------------------------------------- +Mon Mar 5 19:30:23 UTC 2018 - jengelh@inai.de + +- Trim filler wording from description. + +------------------------------------------------------------------- +Mon Mar 5 18:15:55 UTC 2018 - alarrosa@suse.com + +- Initial release of python-PyAutoGUI 0.9.36 diff --git a/python-PyAutoGUI.spec b/python-PyAutoGUI.spec new file mode 100644 index 0000000..7ca4289 --- /dev/null +++ b/python-PyAutoGUI.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-PyAutoGUI +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-PyAutoGUI +Version: 0.9.54 +Release: 0 +Summary: A Python module for GUI automation that can control the keyboard and mouse +License: BSD-3-Clause +URL: https://github.com/asweigart/pyautogui +Source: https://files.pythonhosted.org/packages/source/P/PyAutoGUI/PyAutoGUI-%{version}.tar.gz +Source99: https://raw.githubusercontent.com/asweigart/pyautogui/master/LICENSE.txt +BuildRequires: %{python_module pip} +BuildRequires: %{python_module python-xlib} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: dos2unix +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Pillow +Requires: python-PyMsgBox +Requires: python-PyScreeze +Requires: python-PyTweening >= 1.0.1 +Requires: python-python-xlib +BuildArch: noarch +%python_subpackages + +%description +PyAutoGUI is a GUI automation Python module. It can be used to +programmatically control the mouse and keyboard. + +%prep +%setup -q -n PyAutoGUI-%{version} +cp %{SOURCE99} . +# pyautogui can't be imported without a DISPLAY, so we force the version on setup.py +sed -i -e "s/version=__import__('pyautogui').__version__,/version='%{version}',/" setup.py +dos2unix README.md + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.md +%license LICENSE.txt +%{python_sitelib}/pyautogui +%{python_sitelib}/[Pp]y[Aa]uto[Gg][Uu][Ii]-%{version}*-info + +%changelog