commit: 2c9421910e24dcdb7bf42899d5e70482bde38f75
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 4 08:19:51 2019 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Mon Mar 4 08:28:09 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c942191
dev-python/cairocffi: version bump to 1.0.2
Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
dev-python/cairocffi/Manifest | 1 +
dev-python/cairocffi/cairocffi-1.0.2.ebuild | 56 ++++++++++++++++++++++
.../cairocffi/files/cairocffi-0.8.0-tests.patch | 2 +
.../files/cairocffi-1.0.2-test-deps.patch | 41 ++++++++++++++++
4 files changed, 100 insertions(+)
diff --git a/dev-python/cairocffi/Manifest b/dev-python/cairocffi/Manifest
index 6d413b4b999..7d70e1bcf90 100644
--- a/dev-python/cairocffi/Manifest
+++ b/dev-python/cairocffi/Manifest
@@ -1,2 +1,3 @@
DIST cairocffi-0.8.0.tar.gz 79217 BLAKE2B
fefcee32e486c150d089b7d13b046c864b83fcc184f7880e86cfae0afc22c1e712ad7e835d76506b4ab0cefab6629abcc5bd86cd95c417dcc64c9374a8629110
SHA512
70179e05ca4a4efeaa39ade1ee1a96d280d198ecff5ae8c8fc634c24d8922ea6a3e1eb6cf5f55c5fc9d3f5b2fc3131a53051690eb86712762d8b6400df8a630a
DIST cairocffi-0.9.0.tar.gz 84652 BLAKE2B
9f09c038619b0f44c568d6636861b0e12ffd7e9ab546f3a65bbd8e77eee7ff5f0c6f4d92a841696492b786d0067af86e25949b723ef6ef73ede370fbf2576d6d
SHA512
0d3d54e0d54b3696c8336d8b3a6d745628da51d9d9f8c50f36006c007e1432a95dd9bafd8d865923059d040cc4e9f7989b3670a5318383b357ffc979eeb920d5
+DIST cairocffi-1.0.2.tar.gz 68537 BLAKE2B
ddaf20e0d878126c86b03aa87663391fad37386b8d2dae790e26c20b9050cd3bc36783a32a5c8ee99f64acb232701316bd8308be7327ce406cd49de4df3f92dc
SHA512
0ae63be9d6ca4591d806e259ecb385086b053739de2e5098541078d4c142dd100b593a7712d5410a92ed7dbf6e9a7f7a5287f00425cd8d54ada421dae0cfd762
diff --git a/dev-python/cairocffi/cairocffi-1.0.2.ebuild
b/dev-python/cairocffi/cairocffi-1.0.2.ebuild
new file mode 100644
index 00000000000..84e56f6dcb7
--- /dev/null
+++ b/dev-python/cairocffi/cairocffi-1.0.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+PYTHON_COMPAT=( python3_{5,6,7} )
+
+inherit distutils-r1 virtualx
+
+MY_PN="${PN}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="CFFI-based drop-in replacement for Pycairo"
+HOMEPAGE="https://github.com/Kozea/cairocffi"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="doc test"
+
+RDEPEND="
+ $(python_gen_cond_dep '>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]'
'python*')
+ >=dev-python/xcffib-0.3.2[${PYTHON_USEDEP}]
+ x11-libs/cairo:0=[xcb]
+ x11-libs/gdk-pixbuf[jpeg]
+ $(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy )"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? (
+ ${RDEPEND}
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+ $(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.8.0-tests.patch
+ "${FILESDIR}"/${P}-test-deps.patch
+)
+
+S="${WORKDIR}/${MY_P}"
+
+python_compile_all() {
+ use doc && esetup.py build_sphinx
+}
+
+python_test() {
+ virtx py.test -v --pyargs cairocffi || die "testsuite failed under
${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/cairocffi/files/cairocffi-0.8.0-tests.patch
b/dev-python/cairocffi/files/cairocffi-0.8.0-tests.patch
index 04839fd08ef..88ee2b0a0d5 100644
--- a/dev-python/cairocffi/files/cairocffi-0.8.0-tests.patch
+++ b/dev-python/cairocffi/files/cairocffi-0.8.0-tests.patch
@@ -1,3 +1,5 @@
+Skip tests which interact with the root window due to permission failures.
+
--- cairocffi-0.8.0/cairocffi/test_xcb.py
+++ cairocffi-0.8.0/cairocffi/test_xcb.py
@@ -118,14 +118,14 @@
diff --git a/dev-python/cairocffi/files/cairocffi-1.0.2-test-deps.patch
b/dev-python/cairocffi/files/cairocffi-1.0.2-test-deps.patch
new file mode 100644
index 00000000000..d6da32523d7
--- /dev/null
+++ b/dev-python/cairocffi/files/cairocffi-1.0.2-test-deps.patch
@@ -0,0 +1,41 @@
+Remove unnecessary test deps.
+
+--- cairocffi-1.0.2/setup.cfg
++++ cairocffi-1.0.2/setup.cfg
+@@ -36,16 +36,10 @@
+ packages = find:
+ setup_requires =
+ cffi >= 1.1.0
+- pytest-runner
+ setuptools
+ install_requires =
+ cffi >= 1.1.0
+ setuptools >= 39.2.0
+-tests_require =
+- pytest-cov
+- pytest-flake8
+- pytest-isort
+- pytest-runner
+ python_requires = >= 3.5
+
+ [options.package_data]
+@@ -58,11 +52,6 @@
+ doc =
+ sphinx
+ sphinx_rtd_theme
+-test =
+- pytest-runner
+- pytest-cov
+- pytest-flake8
+- pytest-isort
+ xcb =
+ xcffib >= 0.3.2
+
+@@ -74,7 +63,6 @@
+ test = pytest
+
+ [tool:pytest]
+-addopts = --flake8 --isort
+ norecursedirs = build dist .cache .eggs .git
+
+ [flake8]