mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
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@gentoo.org>
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
15
dev-python/columnize/files/columnize-0.3.5-nose.patch
Normal file
15
dev-python/columnize/files/columnize-0.3.5-nose.patch
Normal file
@@ -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
|
||||
)
|
||||
15
dev-python/columnize/files/columnize-0.3.8-nose.patch
Normal file
15
dev-python/columnize/files/columnize-0.3.8-nose.patch
Normal file
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user