* [gentoo-commits] repo/gentoo:master commit in: dev-python/vdf/files/, dev-python/vdf/
@ 2020-04-21 22:59 Marek Szuba
0 siblings, 0 replies; only message in thread
From: Marek Szuba @ 2020-04-21 22:59 UTC (permalink / raw
To: gentoo-commits
commit: 7742f6fca5b241186ae1360c4b319d41b0967f54
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 21 22:52:31 2020 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Tue Apr 21 22:57:58 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7742f6fc
dev-python/vdf: support pypy3, simplify test dependencies
pypy3 - builds and tests fine, as claimed by upstream
Test dependencies - Python-3.3 and newer have unittest.mock in the
standard library and this package does not support any versions older
than that, patch the relevant test file to use unittest.mock and stop
pulling in dev-python/mock (which was pulled in incorrectly anyway).
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
.../vdf/files/vdf-3.2-mock_from_stdlib.patch | 9 +++++++++
dev-python/vdf/vdf-3.2-r1.ebuild | 22 ++++++++++++++++++++++
2 files changed, 31 insertions(+)
diff --git a/dev-python/vdf/files/vdf-3.2-mock_from_stdlib.patch b/dev-python/vdf/files/vdf-3.2-mock_from_stdlib.patch
new file mode 100644
index 00000000000..511e5dd1ddc
--- /dev/null
+++ b/dev-python/vdf/files/vdf-3.2-mock_from_stdlib.patch
@@ -0,0 +1,9 @@
+--- a/tests/test_vdf.py
++++ b/tests/test_vdf.py
+@@ -1,5 +1,5 @@
+ import unittest
+-import mock
++import unittest.mock as mock
+ import sys
+
+ try:
diff --git a/dev-python/vdf/vdf-3.2-r1.ebuild b/dev-python/vdf/vdf-3.2-r1.ebuild
new file mode 100644
index 00000000000..2c3eaf316de
--- /dev/null
+++ b/dev-python/vdf/vdf-3.2-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="A module for (de)serialization to and from VDF, Valve's key-value text format"
+HOMEPAGE="https://github.com/ValvePython/vdf"
+SRC_URI="https://codeload.github.com/ValvePython/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.2-mock_from_stdlib.patch
+)
+
+distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-21 22:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-21 22:59 [gentoo-commits] repo/gentoo:master commit in: dev-python/vdf/files/, dev-python/vdf/ Marek Szuba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox