* [gentoo-commits] repo/gentoo:master commit in: dev-python/columnize/files/, dev-python/columnize/
@ 2015-09-28 12:26 Justin Lecher
0 siblings, 0 replies; only message in thread
From: Justin Lecher @ 2015-09-28 12:26 UTC (permalink / raw
To: gentoo-commits
commit: b1c25642401d33feefa67e3ce728d3c34afb0e1f
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 28 12:26:18 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Sep 28 12:26:24 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1c25642
dev-python/columnize: Fix setup.py to use tests_requires and correct deps to pytest
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=539818
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=561734
see Github rocky/pycolumnize#24
Package-Manager: portage-2.2.22
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
dev-python/columnize/columnize-0.3.5-r1.ebuild | 2 ++
dev-python/columnize/columnize-0.3.8.ebuild | 2 ++
dev-python/columnize/files/columnize-0.3.5-nose.patch | 15 +++++++++++++++
dev-python/columnize/files/columnize-0.3.8-nose.patch | 15 +++++++++++++++
4 files changed, 34 insertions(+)
diff --git a/dev-python/columnize/columnize-0.3.5-r1.ebuild b/dev-python/columnize/columnize-0.3.5-r1.ebuild
index 4d71319..579c0a2 100644
--- a/dev-python/columnize/columnize-0.3.5-r1.ebuild
+++ b/dev-python/columnize/columnize-0.3.5-r1.ebuild
@@ -20,6 +20,8 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
RDEPEND=""
+PATCHES=( "${FILESDIR}"/${P}-nose.patch )
+
python_test() {
nosetests || die "tests failed"
}
diff --git a/dev-python/columnize/columnize-0.3.8.ebuild b/dev-python/columnize/columnize-0.3.8.ebuild
index 54782b7..5d94ec2 100644
--- a/dev-python/columnize/columnize-0.3.8.ebuild
+++ b/dev-python/columnize/columnize-0.3.8.ebuild
@@ -22,6 +22,8 @@ DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+PATCHES=( "${FILESDIR}"/${P}-nose.patch )
+
python_test() {
py.test || die
}
diff --git a/dev-python/columnize/files/columnize-0.3.5-nose.patch b/dev-python/columnize/files/columnize-0.3.5-nose.patch
new file mode 100644
index 0000000..f09f770
--- /dev/null
+++ b/dev-python/columnize/files/columnize-0.3.5-nose.patch
@@ -0,0 +1,15 @@
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index e1035eb..bb8eaf6 100755
+--- a/setup.py
++++ b/setup.py
+@@ -26,6 +26,6 @@ setup(
+ url = web,
+ version = VERSION,
+ py_modules = py_modules,
+- setup_requires = ['nose>=1.0'],
++ tests_requires = ['nose>=1.0'],
+ zip_safe = zip_safe
+ )
diff --git a/dev-python/columnize/files/columnize-0.3.8-nose.patch b/dev-python/columnize/files/columnize-0.3.8-nose.patch
new file mode 100644
index 0000000..956e033
--- /dev/null
+++ b/dev-python/columnize/files/columnize-0.3.8-nose.patch
@@ -0,0 +1,15 @@
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 4a4b238..854d3e1 100755
+--- a/setup.py
++++ b/setup.py
+@@ -33,6 +33,6 @@ setup(
+ version = VERSION,
+ py_modules = py_modules,
+ install_requires = install_requires,
+- setup_requires = ['nose>=1.0'],
++ tests_requires = ['pytest'],
+ zip_safe = zip_safe
+ )
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-28 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-28 12:26 [gentoo-commits] repo/gentoo:master commit in: dev-python/columnize/files/, dev-python/columnize/ Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox