diff --git a/cairocffi-0.9.0.tar.gz b/cairocffi-0.9.0.tar.gz deleted file mode 100644 index b4b2011..0000000 --- a/cairocffi-0.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15386c3a9e08823d6826c4491eaccc7b7254b1dc587a3b9ce60c350c3f990337 -size 84652 diff --git a/cairocffi-1.0.2.tar.gz b/cairocffi-1.0.2.tar.gz new file mode 100644 index 0000000..f50d9ba --- /dev/null +++ b/cairocffi-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01ac51ae12c4324ca5809ce270f9dd1b67f5166fe63bd3e497e9ea3ca91946ff +size 68537 diff --git a/python-cairocffi.changes b/python-cairocffi.changes index df84e74..aad3468 100644 --- a/python-cairocffi.changes +++ b/python-cairocffi.changes @@ -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 diff --git a/python-cairocffi.spec b/python-cairocffi.spec index c648099..9ac8368 100644 --- a/python-cairocffi.spec +++ b/python-cairocffi.spec @@ -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*