From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dbfread/
Date: Tue, 22 Jun 2021 03:21:30 +0000 (UTC) [thread overview]
Message-ID: <1624331894.63890c82da54646f07ea58c92e86d51961e9f445.zmedico@gentoo> (raw)
commit: 63890c82da54646f07ea58c92e86d51961e9f445
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 22 03:16:31 2021 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Jun 22 03:18:14 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63890c82
dev-python/dbfread: Enable unit tests (bug 797310)
dbfread/test_field_parser.py::test_0 PASSED [ 6%]
dbfread/test_field_parser.py::test_C PASSED [ 12%]
dbfread/test_field_parser.py::test_D PASSED [ 18%]
dbfread/test_field_parser.py::test_F PASSED [ 25%]
dbfread/test_field_parser.py::test_I PASSED [ 31%]
dbfread/test_field_parser.py::test_L PASSED [ 37%]
dbfread/test_field_parser.py::test_M PASSED [ 43%]
dbfread/test_field_parser.py::test_B PASSED [ 50%]
dbfread/test_field_parser.py::test_N PASSED [ 56%]
dbfread/test_field_parser.py::test_O PASSED [ 62%]
dbfread/test_field_parser.py::test_T PASSED [ 68%]
dbfread/test_field_parser.py::test_Y PASSED [ 75%]
dbfread/test_field_parser.py::test_hex_field PASSED [ 81%]
dbfread/test_invalid_value.py::test_repr PASSED [ 87%]
dbfread/test_invalid_value.py::test_type PASSED [ 93%]
dbfread/test_memo.py::test_missing_memofile PASSED [100%]
Reported-py: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://bugs.gentoo.org/797310
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
dev-python/dbfread/Manifest | 1 +
dev-python/dbfread/dbfread-2.0.7.ebuild | 25 ++++++++++++++++++++++++-
2 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/dev-python/dbfread/Manifest b/dev-python/dbfread/Manifest
index f6f5ebe70b1..0d551756ca3 100644
--- a/dev-python/dbfread/Manifest
+++ b/dev-python/dbfread/Manifest
@@ -1 +1,2 @@
+DIST dbfread-2.0.7-src.tar.gz 33045 BLAKE2B 96798f00aba4c30e7e83b468f368ca6730a7e095c9fec5bf5515ac6a152022adbf5339cd9e68e85f4eccac211ed4e307b9abf22249ef6420d722fa213210d7d7 SHA512 cf591fa5800e5471025175a4bbbb54cb26dc2a83bf328776e4386860370d9421edd9edd62cb9e3d463794d526c561a0f4744bb67b5e376edd471dc95100bc2c7
DIST dbfread-2.0.7.tar.gz 33212 BLAKE2B 03c9a0d93b13c7573b5bcec6c5af1ac43bd00ead2b3e83638f45344b2344062e86d764b095e699afdaea2405176ee15122c975a2f72b25bd167f5faaaf33043b SHA512 86c3a29e351b985984be67401a6dfe3e39cd92451a122788ade83d65313dde37a3706ce36c4365bd36ba1df62ee057b625f1e0f077aa4a248c7456258189f548
diff --git a/dev-python/dbfread/dbfread-2.0.7.ebuild b/dev-python/dbfread/dbfread-2.0.7.ebuild
index f9a2f585866..a2df9605710 100644
--- a/dev-python/dbfread/dbfread-2.0.7.ebuild
+++ b/dev-python/dbfread/dbfread-2.0.7.ebuild
@@ -9,9 +9,32 @@ inherit distutils-r1
DESCRIPTION="Read DBF Files with Python"
HOMEPAGE="https://github.com/olemb/dbfread https://pypi.org/project/dbfread/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
+ test? ( https://github.com/olemb/dbfread/archive/refs/tags/${PV}.tar.gz -> ${P}-src.tar.gz )"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND=""
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ sed -e 's|\[pytest\]|[tool:pytest]|' -i setup.cfg || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ local pytest_args test_name xfails
+
+ xfails=(
+ dbfread/test_read_and_length.py::test_len
+ dbfread/test_read_and_length.py::test_list
+ )
+
+ for test_name in "${xfails[@]}"; do
+ pytest_args+=(--deselect "${test_name}")
+ done
+
+ epytest "${pytest_args[@]}" || die
+}
next reply other threads:[~2021-06-22 3:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-22 3:21 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-17 14:31 [gentoo-commits] repo/gentoo:master commit in: dev-python/dbfread/ Michał Górny
2023-05-31 16:05 Michał Górny
2023-03-17 5:32 Michał Górny
2022-11-14 4:36 Michał Górny
2022-06-17 8:10 Arthur Zamarin
2022-06-17 8:10 Arthur Zamarin
2021-08-08 20:32 Louis Sautier
2021-06-21 7:14 Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1624331894.63890c82da54646f07ea58c92e86d51961e9f445.zmedico@gentoo \
--to=zmedico@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox