1
0

Accepting request 720044 from home:pgajdos

- version update to 1.0.2
    #123: Rely on a recent version of setuptools to handle VERSION
    #120: Don't delete _generated modules on ffi_build import
    Drop Python 2.6, 2.7 and 3.4 support
    Test with Python 3.7
    Clean code, tests and packaging
- do not build for python2
- run tests

OBS-URL: https://build.opensuse.org/request/show/720044
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cairocffi?expand=0&rev=28
This commit is contained in:
Tomáš Chvátal 2019-07-31 12:43:56 +00:00 committed by Git OBS Bridge
parent f29287a9c4
commit cbcc6ea293
4 changed files with 29 additions and 9 deletions

View File

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

3
cairocffi-1.0.2.tar.gz Normal file
View File

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

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Jul 31 12:12:15 UTC 2019 - pgajdos@suse.com
- version update to 1.0.2
#123: Rely on a recent version of setuptools to handle VERSION
#120: Don't delete _generated modules on ffi_build import
Drop Python 2.6, 2.7 and 3.4 support
Test with Python 3.7
Clean code, tests and packaging
- do not build for python2
- run tests
-------------------------------------------------------------------
Fri Jan 25 10:10:32 UTC 2019 - mvetter@suse.com

View File

@ -12,29 +12,32 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-cairocffi
Version: 0.9.0
Version: 1.0.2
Release: 0
Summary: Python cairo bindings based on cffi
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/SimonSapin/cairocffi
URL: https://github.com/Kozea/cairocffi
Source: https://files.pythonhosted.org/packages/source/c/cairocffi/cairocffi-%{version}.tar.gz
BuildRequires: %{python_module cffi >= 1.1.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module setuptools >= 39.2.0}
BuildRequires: %{python_module xcffib >= 0.3.2}
BuildRequires: cairo
BuildRequires: dejavu-fonts
BuildRequires: fdupes
BuildRequires: gdk-pixbuf
BuildRequires: python-rpm-macros
Requires: cairo
Requires: python
Requires: python-cffi >= 0.6
Requires: python-cffi >= 1.1.0
Requires: python-xcffib >= 0.3.2
BuildArch: noarch
%python_subpackages
@ -69,9 +72,14 @@ This package provides the optional gdk-pixbuf image loader module.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
sed -i '/^addopts/d' setup.cfg
sed -i -e '/pytest-flake8/d' -e '/pytest-isort/d' -e '/pytest-cov/d' setup.cfg
%python_expand $python setup.py test
%files %{python_files}
%license LICENSE
%doc CHANGES README.rst
%doc README.rst
%{python_sitelib}/cairocffi-%{version}-py*.egg-info
%{python_sitelib}/cairocffi/
%exclude %{python_sitelib}/cairocffi/test_pixbuf.py*