15
0

- Update to 0.1.19:

* Fixing MANIFEST.in to include readme, which cause installation failure.
  * Adjusted setup.py to include the long description.
  * Adjusted setup.py to include the long description.
  * Fixed a bug involving the generator for locateAll().

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyScreeze?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2019-03-04 17:43:37 +00:00
committed by Git OBS Bridge
parent 0532d7d362
commit e0012ac13e
5 changed files with 29 additions and 41 deletions

View File

@@ -1,27 +0,0 @@
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 PyScreeze 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.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb3c4d50e9b1389d76648e6ea99d1bc79e7df32bd01ae4eb6bf7397e54597421
size 8843

3
PyScreeze-0.1.19.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9dfa4ff43d39538f12d4aa2ace446ede87f91a64b486cc819e5f72ba87aaa994
size 21048

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Mar 4 17:41:28 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.1.19:
* Fixing MANIFEST.in to include readme, which cause installation failure.
* Adjusted setup.py to include the long description.
* Adjusted setup.py to include the long description.
* Fixed a bug involving the generator for locateAll().
-------------------------------------------------------------------
Tue Dec 4 12:52:48 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyScreeze
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,33 +18,33 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyScreeze
Version: 0.1.14
Version: 0.1.19
Release: 0
Summary: A screenshot Python module
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/asweigart/pyscreeze
URL: https://github.com/asweigart/pyscreeze
Source: https://files.pythonhosted.org/packages/source/P/PyScreeze/PyScreeze-%{version}.tar.gz
Source99: https://raw.githubusercontent.com/asweigart/pyscreeze/master/LICENSE.txt
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module Pillow}
# /SECTION
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pillow
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-xlib}
BuildRequires: scrot
BuildRequires: xvfb-run
# /SECTION
%python_subpackages
%description
PyScreeze is a screenshot module for Python 2 and 3.
%prep
%setup -q -n PyScreeze-%{version}
cp %{S:99} .
dos2unix README.rst
%build
@@ -54,6 +54,12 @@ dos2unix README.rst
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# tests lack fixtures https://github.com/asweigart/pyscreeze/issues/44
#pushd tests/
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run py.test-%{$python_bin_suffix} -v
#popd
%files %{python_files}
%doc README.rst
%license LICENSE.txt