public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nose/
Date: Thu, 11 Nov 2021 09:12:58 +0000 (UTC)	[thread overview]
Message-ID: <1636621958.2e11d6bfd44b11613e98b9abd75b60b25037354d.arthurzam@gentoo> (raw)

commit:     2e11d6bfd44b11613e98b9abd75b60b25037354d
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 11 09:09:40 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 11 09:12:38 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e11d6bf

dev-python/nose: add 1.3.7_p20211111

As upstream is very dead, and nose is deprecated, we at Gentoo still
need it for many test suites. This is very useful package for us.

Therefore I forked it, and started fixing it to be useful again:
apply 2to3 everywhere, fix multiple tests, apply all out patches,
add new tests markers.

Closes: https://bugs.gentoo.org/812500
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/nose/Manifest                    |  1 +
 dev-python/nose/nose-1.3.7_p20211111.ebuild | 54 +++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/dev-python/nose/Manifest b/dev-python/nose/Manifest
index ea56763f947..34472553683 100644
--- a/dev-python/nose/Manifest
+++ b/dev-python/nose/Manifest
@@ -1 +1,2 @@
 DIST nose-1.3.7.tar.gz 280488 BLAKE2B 4bb479b2786f813f9e9a5fd401e30023a473a053ae013d7887be15af415422c09fb399af6058ae99ed65c5fa4da84eb274eb805e895ca74db159d952905f5be4 SHA512 e65c914f621f8da06b9ab11a0ff2763d6e29b82ce2aaed56da0e3773dc899d9deb1f20015789d44c65a5dad7214520f5b659b3f8d7695fb207ad3f78e5cf1b62
+DIST nose-1.3.7_p20211111.gh.tar.gz 327877 BLAKE2B a284275a9fdd74ebffaa425cb89735a8655f9db74e6503ebd9c0420e77006828de1f8383f9c4b4828489208ae8959aa0bd5a75f5a474b61e213e915c5c61b611 SHA512 913a536ce4aba377627a050e7fd8fa5cea843b66bf5da2778d7ce7c26e9485361d60ee09767da721813978576f6ead1219ddafffecc2955a33a0df6d2d44a48c

diff --git a/dev-python/nose/nose-1.3.7_p20211111.ebuild b/dev-python/nose/nose-1.3.7_p20211111.ebuild
new file mode 100644
index 00000000000..2af3c30e088
--- /dev/null
+++ b/dev-python/nose/nose-1.3.7_p20211111.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+PYTHON_REQ_USE="threads(+)"
+inherit distutils-r1
+
+COMMIT="a4a1710cf5a71bde82951f2ef96a6837124b74af"
+
+DESCRIPTION="Unittest extension with automatic test suite discovery and easy test authoring"
+HOMEPAGE="
+	https://pypi.org/project/nose/
+	https://nose.readthedocs.io/en/latest/
+	https://github.com/nose-devs/nose"
+SRC_URI="
+	https://github.com/arthurzam/nose/archive/${COMMIT}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="examples test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+	test? (
+		$(python_gen_cond_dep '
+			!hppa? ( dev-python/coverage[${PYTHON_USEDEP}] )
+		' python3_{8..10} pypy3)
+		$(python_gen_cond_dep '
+			dev-python/twisted[${PYTHON_USEDEP}]
+		' python3_{8..10})
+	)"
+
+src_prepare() {
+	# failing to find configuration file
+	sed -e 's/test_cover_options_config_file/_&/' \
+		-i unit_tests/test_cover_plugin.py || die
+
+	distutils-r1_src_prepare
+}
+
+python_test() {
+	"${EPYTHON}" -m nose -v -a "!network" || die "Tests fail with ${EPYTHON}"
+}
+
+src_install() {
+	distutils-r1_src_install
+	use examples && dodoc -r examples
+}


             reply	other threads:[~2021-11-11  9:13 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-11  9:12 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-11-06  7:59 [gentoo-commits] repo/gentoo:master commit in: dev-python/nose/ Michał Górny
2022-11-06  7:24 Sam James
2022-10-26 11:45 Arthur Zamarin
2022-06-10  4:18 Michał Górny
2022-06-10  3:09 Sam James
2022-05-10 10:07 Michał Górny
2021-12-11 20:30 Arthur Zamarin
2021-12-11 20:29 Arthur Zamarin
2021-11-11  9:36 Arthur Zamarin
2021-11-09 10:47 Michał Górny
2021-10-09  9:32 Arthur Zamarin
2021-06-05 21:08 Michał Górny
2021-06-05 20:35 Sam James
2021-05-05 12:48 Michał Górny
2021-05-05 12:48 Michał Górny
2021-01-01  0:14 Michał Górny
2020-11-18  8:47 Michał Górny
2020-09-28 15:53 Michał Górny
2020-09-18  9:18 Michał Górny
2020-08-01 21:00 Michał Górny
2020-07-09 13:01 Michał Górny
2020-07-09 13:01 Michał Górny
2020-07-09  8:34 Agostino Sarubbo
2020-05-25 12:44 Michał Górny
2020-05-25 12:44 Michał Górny
2020-05-25 12:44 Michał Górny
2020-03-28  9:20 Michał Górny
2020-03-28  9:20 Michał Górny
2020-03-26 17:36 Michał Górny
2020-03-26 17:36 Michał Górny
2020-03-25 14:17 Agostino Sarubbo
2020-01-27 12:20 Michał Górny
2019-12-16 14:38 Michał Górny
2019-11-16 11:02 Michał Górny
2019-11-16  8:45 Michał Górny
2019-11-16  8:45 Michał Górny
2019-11-16  8:45 Michał Górny
2019-08-10 11:56 Joonas Niilola
2018-12-29 16:29 Matt Turner
2018-09-16 20:25 Matt Turner
2018-06-30 20:45 Mikle Kolyada
2018-05-14 19:10 Sergei Trofimovich
2018-05-14 16:03 Tobias Klausmann
2018-05-04 15:37 Mart Raudsepp
2018-04-28  7:11 Mikle Kolyada
2018-04-22  1:35 Thomas Deutschmann
2018-04-21 20:11 Sergei Trofimovich
2018-04-19 19:42 Sergei Trofimovich
2018-04-18 23:31 Aaron Bauman
2017-05-03 12:18 Michał Górny
2017-04-05  0:02 Brian Dolbec
2016-10-28 18:43 Patrick Lauer
2016-06-21  2:47 Mike Frysinger
2016-04-19 17:09 Ian Delaney
2016-04-18 16:16 Ian Delaney
2016-02-03  9:42 Justin Lecher
2016-02-03  9:05 Justin Lecher
2016-01-11  9:56 Agostino Sarubbo
2016-01-10 11:22 Agostino Sarubbo
2016-01-06 15:07 Justin Lecher
2016-01-06 11:34 Justin Lecher
2016-01-06 11:34 Justin Lecher
2015-12-26 12:03 Agostino Sarubbo
2015-12-25 18:19 Agostino Sarubbo
2015-11-26 19:18 Markus Meier
2015-11-24  9:37 Jeroen Roovers
2015-11-22  5:38 Jeroen Roovers
2015-11-19 10:16 Agostino Sarubbo
2015-11-11 17:27 Justin Lecher
2015-10-22 11:09 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=1636621958.2e11d6bfd44b11613e98b9abd75b60b25037354d.arthurzam@gentoo \
    --to=arthurzam@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