public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tim Harder" <radhermit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyte/
Date: Thu, 27 Dec 2018 06:58:23 +0000 (UTC)	[thread overview]
Message-ID: <1545893868.6407a8ffa6f7ba5242b9719c6bb633c424d826cb.radhermit@gentoo> (raw)

commit:     6407a8ffa6f7ba5242b9719c6bb633c424d826cb
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 27 06:21:50 2018 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Thu Dec 27 06:57:48 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6407a8ff

dev-python/pyte: add python3_7 support

Also, bump to EAPI 7 and use github tarball to fix tests.

Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>

 dev-python/pyte/Manifest                                 |  2 +-
 .../pyte/{pyte-0.8.0.ebuild => pyte-0.8.0-r1.ebuild}     | 16 ++++++++++------
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/dev-python/pyte/Manifest b/dev-python/pyte/Manifest
index f9b730c9b52..da77e9b99cc 100644
--- a/dev-python/pyte/Manifest
+++ b/dev-python/pyte/Manifest
@@ -1,2 +1,2 @@
 DIST pyte-0.5.2.tar.gz 42719 BLAKE2B 00995c8427ade8a44dbc6dea4bea058431adb1409fbddc90b70ecd3cf4968632d66e4f21140ca5c071ea927208d40ed55606cf2d604f931970f99128c2b2dba8 SHA512 da903b31bb67e60bc8271c162f3429871d0def039cec5f63f07764fce1994236063876eb069a88783a4c7d8b0eac0646549c00f2a51ab8630287d852f05f4b0d
-DIST pyte-0.8.0.tar.gz 50415 BLAKE2B 8e707d8dd598d4b76b281de1481d238448f6ed07daa962647e61e7f5ad62da67a08112db7e21cb3522e5719514975a9b01ec06ff1cf2222590e02d9ff434369e SHA512 b1c23206f32c49ab509ac9bd4e042b043478cae35594c52c8389f5a5ba15cd0895315c42be5a0f2992b3aaa918ae282e43e88e72798a0b600307860f6df06465
+DIST pyte-0.8.0.tar.gz 91320 BLAKE2B b973050912c7d3b67393208a5b17f382705fe78964528e003b71addc12586353a3a9c7eeb68c224dfb945b5f9d3b52823cd254885dd5ac6901be119583a71a2e SHA512 c488fd0a61c1dc34b27e12ed9ba1109bb2c331626c982da06e7540bdd168008cb5106a17c71e60e38c493f2dd9f21ba3cf05118928744dfa192d62e511b4c4e8

diff --git a/dev-python/pyte/pyte-0.8.0.ebuild b/dev-python/pyte/pyte-0.8.0-r1.ebuild
similarity index 56%
rename from dev-python/pyte/pyte-0.8.0.ebuild
rename to dev-python/pyte/pyte-0.8.0-r1.ebuild
index 7de14fd4a96..9c9700af2e5 100644
--- a/dev-python/pyte/pyte-0.8.0.ebuild
+++ b/dev-python/pyte/pyte-0.8.0-r1.ebuild
@@ -1,15 +1,17 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
 
 inherit distutils-r1
 
 DESCRIPTION="Simple VTXXX-compatible terminal emulator"
 HOMEPAGE="https://pypi.org/project/pyte/ https://github.com/selectel/pyte"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+# use github tarball as pypi is missing test data
+SRC_URI="https://github.com/selectel/pyte/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 SLOT="0"
 LICENSE="LGPL-3"
@@ -18,15 +20,17 @@ IUSE="test"
 
 RDEPEND="dev-python/wcwidth[${PYTHON_USEDEP}]"
 DEPEND="${RDEPEND}
-	dev-python/pytest-runner[${PYTHON_USEDEP}]
 	dev-python/setuptools_scm[${PYTHON_USEDEP}]
 	test? ( dev-python/pytest[${PYTHON_USEDEP}] )
 "
 
 python_prepare_all() {
+	# run pytest directly for tests
+	sed -i '/setup_requires=\["pytest-runner"\]/d' setup.py || die
+
 	distutils-r1_python_prepare_all
 }
 
 python_test() {
-	esetup.py test --verbose
+	py.test -v || die "tests failed with ${EPYTHON}"
 }


             reply	other threads:[~2018-12-27  6:58 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-27  6:58 Tim Harder [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-24 20:29 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyte/ Petr Vaněk
2024-06-24 20:29 Petr Vaněk
2023-11-29 11:04 Michał Górny
2023-11-24 14:43 Michał Górny
2023-11-12 16:00 Michał Górny
2023-06-06 17:52 Arthur Zamarin
2023-05-16  3:39 Sam James
2022-08-10 13:18 Sam James
2022-05-15 10:41 Michał Górny
2022-05-15  8:19 Jakov Smolić
2022-05-15  7:12 Michał Górny
2022-04-10 21:20 Michał Górny
2022-03-30 11:25 Jakov Smolić
2021-05-07 10:52 Michał Górny
2020-06-02 12:01 Michał Górny
2020-03-25 15:42 Agostino Sarubbo
2020-01-24 19:18 Michał Górny
2020-01-24 19:18 Michał Górny
2018-12-27  7:11 Tim Harder
2018-12-27  6:58 Tim Harder
2018-07-11 21:35 Jason Donenfeld
2018-06-24  9:40 Mikle Kolyada
2017-02-28 13:08 Andrey Grozin
2017-01-23 15:46 Agostino Sarubbo
2017-01-23 13:51 Agostino Sarubbo
2016-08-09 12:02 Andrey Grozin
2016-06-29 13:21 Patrick Lauer
2016-01-12  9:44 Justin Lecher
2015-12-20 16:35 Justin Lecher

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=1545893868.6407a8ffa6f7ba5242b9719c6bb633c424d826cb.radhermit@gentoo \
    --to=radhermit@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