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,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