From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/URLObject/
Date: Thu, 20 Apr 2017 09:18:19 +0000 (UTC) [thread overview]
Message-ID: <1492679893.ba8562cf64248970666a2ea217cc1f481eb8a48f.mgorny@gentoo> (raw)
commit: ba8562cf64248970666a2ea217cc1f481eb8a48f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 20 09:01:09 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Apr 20 09:18:13 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba8562cf
dev-python/URLObject: include tests
Use github-generated tarball instead of pypi because the latter lacks
test subdirectory. Run tests using nosetests.
dev-python/URLObject/Manifest | 2 +-
...{URLObject-2.4.2.ebuild => URLObject-2.4.2-r1.ebuild} | 16 +++++++++++++---
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/dev-python/URLObject/Manifest b/dev-python/URLObject/Manifest
index f7e28b4b05a..4f5cc72fcd7 100644
--- a/dev-python/URLObject/Manifest
+++ b/dev-python/URLObject/Manifest
@@ -1,2 +1,2 @@
DIST URLObject-2.4.0.tar.gz 12533 SHA256 f51272b12846db98af530b0a64f6593d2b1e8405f0aa580285b37ce8009b8d9c SHA512 1334c8d8dbb93f50fb6672ae5c2e1dbb8c880af65c18c96c7bc65bb46ae894ab0696d36236036c1e4434a6e75b692ecd0b37055ef9b55fb50ffbaf13197b1701 WHIRLPOOL 41de6cca4dccb45221d01d772ab7d5799a8ed8d797e2adc440e2b09f503f7ce324f647748318e85768f9528d75363a322e7030fd0056772443e1c18f0c52767e
-DIST URLObject-2.4.2.tar.gz 14050 SHA256 dd0f08a81d89485b1e587fd60aec4b8482859788e5ace67dd1b0d4a001515c57 SHA512 ebe92f2c2b32dcaee2121f07c2fdb6177df721bc3b14f3b85ce0b52a0222364a8436a964e93326e8ae178dafb17431879f36d3322a7f9c9ae12bfc23b748bdae WHIRLPOOL 3edbd17ba52e1603311ad3c78bf84c1d4316783e1776281fcfb7b3e302f3f8e00d193e412fb298df7d4d28c5498a1295d3ab55ea6778469cc3418c0676dbdf76
+DIST urlobject-2.4.2.tar.gz 25457 SHA256 6ea091b1a9e2500c2bdaf1201c8169529a7170a26f6fe6932648751ecd4209ac SHA512 970c5900171fa64624cd2ed2ba7f3a761057eda5c1fc07f881e8b7c74bde0cbbb7fc6c7c8694d8b8be0e991322da148528d99ff6fb2d4b75e1ddd1c2f474b4f3 WHIRLPOOL c8c6d3856169d796a87847d5e21c6f9a97ae82b248c0cf809aacca38bb49715837bbf67885ff216da205291b069ff98802aadb5358592fb74c8f14ee441efe72
diff --git a/dev-python/URLObject/URLObject-2.4.2.ebuild b/dev-python/URLObject/URLObject-2.4.2-r1.ebuild
similarity index 52%
rename from dev-python/URLObject/URLObject-2.4.2.ebuild
rename to dev-python/URLObject/URLObject-2.4.2-r1.ebuild
index d42f11db1d1..1e98b597b70 100644
--- a/dev-python/URLObject/URLObject-2.4.2.ebuild
+++ b/dev-python/URLObject/URLObject-2.4.2-r1.ebuild
@@ -1,23 +1,33 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=6
PYTHON_COMPAT=( python{2_7,3_4} )
inherit distutils-r1
+GITHUB_P=${P,,}
DESCRIPTION="A utility class for manipulating URLs"
HOMEPAGE="https://pypi.python.org/pypi/URLObject"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+# note: pypi tarball lacks tests
+# https://github.com/zacharyvoase/urlobject/issues/39
+SRC_URI="https://github.com/zacharyvoase/urlobject/archive/v${PV}.tar.gz -> ${GITHUB_P}.tar.gz"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
SLOT="0"
-IUSE=""
+IUSE="test"
RDEPEND=""
DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
"
+
+S=${WORKDIR}/${GITHUB_P}
+
+python_test() {
+ nosetests -v || die "Tests fail with ${EPYTHON}"
+}
next reply other threads:[~2017-04-20 9:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-20 9:18 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-08-16 5:21 [gentoo-commits] repo/gentoo:master commit in: dev-python/URLObject/ Slawek Lis
2019-08-16 5:21 Slawek Lis
2017-04-20 9:18 Michał Górny
2017-04-20 9:18 Michał Górny
2016-11-29 12:05 Slawek Lis
2016-06-20 13:05 Slawek Lis
2016-06-20 13:05 Slawek Lis
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=1492679893.ba8562cf64248970666a2ea217cc1f481eb8a48f.mgorny@gentoo \
--to=mgorny@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