* [gentoo-commits] repo/gentoo:master commit in: dev-python/xcffib/, dev-python/xcffib/files/
@ 2016-08-21 7:59 Tim Harder
0 siblings, 0 replies; 2+ messages in thread
From: Tim Harder @ 2016-08-21 7:59 UTC (permalink / raw
To: gentoo-commits
commit: 58f47d605662bb229616a8f7e27ef359c4c06f56
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 21 07:58:07 2016 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sun Aug 21 07:58:52 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58f47d60
dev-python/xcffib: version bump to 0.4.2
dev-python/xcffib/Manifest | 1 +
.../xcffib/files/xcffib-0.4.2-test-imports.patch | 35 ++++++++++++++++++++
dev-python/xcffib/xcffib-0.4.2.ebuild | 38 ++++++++++++++++++++++
3 files changed, 74 insertions(+)
diff --git a/dev-python/xcffib/Manifest b/dev-python/xcffib/Manifest
index 7ded8d9..11994c3 100644
--- a/dev-python/xcffib/Manifest
+++ b/dev-python/xcffib/Manifest
@@ -1,2 +1,3 @@
DIST xcffib-0.3.4.tar.gz 65481 SHA256 9c54f835351a1622495322f314ee58ca5cb498fe8a2123a3905a25c1fd66850b SHA512 7c70dc6ae37531e6e9649a9055e4740872fc071620825d647525a236cad95e24e2c5f950e5f916b3742588a3c79363fe56431aba0488d939930398022c832be2 WHIRLPOOL 9b99ae6959bea33df013f21f897edba89d0b66b775ed1c019f5c2a61a23293fb26a0bf3311aa225a05e862bac95ac3d4bcad50023a56dde83a2b12b968b4a987
DIST xcffib-0.4.0.tar.gz 74715 SHA256 94a3d3d48289a7e9e0687b1f9a5f69de6e6449ac98df0f79773b286a72f79f8a SHA512 ac144ffdfb559ae2ee8d4a23c937989ca4e28f913b2d27f1240725c8398ede1a7a010a0d861998151923d235d5e04799d8df8496c9ec8005a2286825dcd59bd7 WHIRLPOOL f67aba9f217a2aa408945f4f2703853385ce8170d069660f9433410c13ca41bbf9ba5fd9729509192996d34d934626a1c0f91e08a64e44b4aef43fb4e88b5c74
+DIST xcffib-0.4.2.tar.gz 80441 SHA256 7f4210f1ee51bb6f87e747438699fcf449ece2cb354d106be474997e479cacb8 SHA512 df9d5e9500cb3ea9765d4f887bdc018a99c285eff5aa4c922cb59da89bd04640b6ba9d7a3b83cfa999bdc3749f438b1a4b336117e2885fe2e27d346439839a7e WHIRLPOOL 4670e8a2179ccf149bb91e415c5ed81a68268f898fe29a4c0918c27d1a2647736587ab5aa7ba268608defe6d4c0655a94120dbacaa3c0970faed87379412a609
diff --git a/dev-python/xcffib/files/xcffib-0.4.2-test-imports.patch b/dev-python/xcffib/files/xcffib-0.4.2-test-imports.patch
new file mode 100644
index 0000000..da33bf3
--- /dev/null
+++ b/dev-python/xcffib/files/xcffib-0.4.2-test-imports.patch
@@ -0,0 +1,35 @@
+Relative imports don't work because the test dir isn't a proper python module.
+
+--- xcffib-0.4.2/test/test_connection.py
++++ xcffib-0.4.2/test/test_connection.py
+@@ -20,7 +20,7 @@
+
+ from xcffib import ffi
+ from xcffib.testing import XvfbTest
+-from .testing import XcffibTest
++from testing import XcffibTest
+
+ from nose.tools import raises
+ from nose import SkipTest
+--- xcffib-0.4.2/test/test_fakeinput.py
++++ xcffib-0.4.2/test/test_fakeinput.py
+@@ -2,7 +2,7 @@
+ import xcffib.xproto
+ import xcffib.xtest
+
+-from .testing import XcffibTest
++from testing import XcffibTest
+
+ class TestConnection(XcffibTest):
+ def test_fakeinput(self):
+--- xcffib-0.4.2/test/test_python_code.py
++++ xcffib-0.4.2/test/test_python_code.py
+@@ -18,7 +18,7 @@
+ import struct
+ from xcffib.xproto import EventMask
+
+-from .testing import XcffibTest
++from testing import XcffibTest
+
+ class TestPythonCode(XcffibTest):
+
diff --git a/dev-python/xcffib/xcffib-0.4.2.ebuild b/dev-python/xcffib/xcffib-0.4.2.ebuild
new file mode 100644
index 0000000..3db55a8
--- /dev/null
+++ b/dev-python/xcffib/xcffib-0.4.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="A drop in replacement for xpyb, an XCB python binding"
+HOMEPAGE="https://github.com/tych0/xcffib"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+COMMON_DEPEND="x11-libs/libxcb"
+RDEPEND="
+ $(python_gen_cond_dep '>=dev-python/cffi-1.1:=[${PYTHON_USEDEP}]' 'python*')
+ $(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy )
+ dev-python/six[${PYTHON_USEDEP}]
+ ${COMMON_DEPEND}"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ${COMMON_DEPEND}
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ x11-apps/xeyes
+ )"
+
+PATCHES=( "${FILESDIR}"/${P}-test-imports.patch )
+
+python_test() {
+ nosetests -d -v || die
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/xcffib/, dev-python/xcffib/files/
@ 2020-07-21 12:39 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2020-07-21 12:39 UTC (permalink / raw
To: gentoo-commits
commit: a79b9ddd039648f50a2fce77218bc37f95251973
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 21 11:38:09 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 21 12:39:33 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a79b9ddd
dev-python/xcffib: Bump to 0.10.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/xcffib/Manifest | 1 +
.../xcffib/files/xcffib-0.10.0-testing.patch | 23 +++++++++++++
dev-python/xcffib/xcffib-0.10.0.ebuild | 40 ++++++++++++++++++++++
3 files changed, 64 insertions(+)
diff --git a/dev-python/xcffib/Manifest b/dev-python/xcffib/Manifest
index e2b88c48bce..1f7a9aa59aa 100644
--- a/dev-python/xcffib/Manifest
+++ b/dev-python/xcffib/Manifest
@@ -1 +1,2 @@
+DIST xcffib-0.10.0.tar.gz 84641 BLAKE2B 06f0ccd420437e11e1aff8d6c7111185d9ff8ed08e40ccab13fed2431134671c55722e0a7a72773cde8518a6c3d4ef14de1a99f0c61d85e9a8feff41545c626a SHA512 2d0a6e7c6b8b43e82f1621a8408ba951e67239099bc947a6da62a6735ff6584ba422e55659969093d51f6de53fe4a400b330def1e6b9eb2c698d82ffc9ff81e4
DIST xcffib-0.9.0.tar.gz 83063 BLAKE2B 898fbce1ff503a9ad64a4c34778e0b5ffef531cf2ad04327f1890c87adb5f91287465e39a981a3c5a628c048b8acbb38bac3b0b76a58c3bbe45ab34c9a5eacf5 SHA512 e5891f080fcf1df596c37bb64a70e0de4a41d83b4675dac3b1c128656ab1b09d865e3ab0bfe0e5cc523e89a75dc6127dfc455ab66ca543ba6eeae9ee5bdae168
diff --git a/dev-python/xcffib/files/xcffib-0.10.0-testing.patch b/dev-python/xcffib/files/xcffib-0.10.0-testing.patch
new file mode 100644
index 00000000000..7c075ae9811
--- /dev/null
+++ b/dev-python/xcffib/files/xcffib-0.10.0-testing.patch
@@ -0,0 +1,23 @@
+diff --git a/xcffib/testing.py b/xcffib/testing.py
+index ef0268a..0662fcf 100644
+--- a/xcffib/testing.py
++++ b/xcffib/testing.py
+@@ -31,11 +31,14 @@ def lock_path(display):
+ def find_display():
+ display = 10
+ while True:
+- f = open(lock_path(display), "w+")
+ try:
+- fcntl.flock(f.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
+- except OSError:
+- f.close()
++ f = open(lock_path(display), "w+")
++ try:
++ fcntl.flock(f.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
++ except:
++ f.close()
++ raise
++ except OSError:
+ display += 1
+ continue
+ return display, f
diff --git a/dev-python/xcffib/xcffib-0.10.0.ebuild b/dev-python/xcffib/xcffib-0.10.0.ebuild
new file mode 100644
index 00000000000..a3f9db7dd1b
--- /dev/null
+++ b/dev-python/xcffib/xcffib-0.10.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="A drop in replacement for xpyb, an XCB python binding"
+HOMEPAGE="https://github.com/tych0/xcffib"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+
+DEPEND="x11-libs/libxcb"
+RDEPEND="
+ $(python_gen_cond_dep '
+ >=dev-python/cffi-1.1:=[${PYTHON_USEDEP}]
+ ' 'python*')
+ dev-python/six[${PYTHON_USEDEP}]
+ ${DEPEND}"
+BDEPEND="
+ test? (
+ x11-base/xorg-server[xvfb]
+ x11-apps/xeyes
+ )"
+
+distutils_enable_tests nose
+
+PATCHES=(
+ "${FILESDIR}"/${P}-testing.patch
+)
+
+src_prepare() {
+ touch test/__init__.py || die
+ distutils-r1_src_prepare
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-21 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-21 12:39 [gentoo-commits] repo/gentoo:master commit in: dev-python/xcffib/, dev-python/xcffib/files/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2016-08-21 7:59 Tim Harder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox