summaryrefslogtreecommitdiff
path: root/dev-python/tabulate
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/tabulate
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/tabulate')
-rw-r--r--dev-python/tabulate/Manifest3
-rw-r--r--dev-python/tabulate/files/tabulate-0.8.6-avoid-pandas-dep.patch80
-rw-r--r--dev-python/tabulate/tabulate-0.8.6.ebuild37
3 files changed, 120 insertions, 0 deletions
diff --git a/dev-python/tabulate/Manifest b/dev-python/tabulate/Manifest
index fc48d9b2aed6..401b63f46340 100644
--- a/dev-python/tabulate/Manifest
+++ b/dev-python/tabulate/Manifest
@@ -1,5 +1,8 @@
+AUX tabulate-0.8.6-avoid-pandas-dep.patch 2513 BLAKE2B afbaef53282fa6b775bd3a1a1edeca04cf11f37a86e51ac94641b9037384ca54d808adba9196d057a9007559cd6b7b9ad442e94a8ca1f7f54ac6ef609e72c47d SHA512 7fab4bd5a493c6f6831e88f8e26497b09614f6b04b651c96d5c44639ed03531c14dcee9412970cd2f24e056dc4046a3d3ea708083a14d14ab952921ae7fb7534
DIST tabulate-0.8.1.tar.gz 45666 BLAKE2B f46a0c8bed50e37a2d536d28fe822fb92fbc124c7ac4c29260b6a7ab9828588f49b7e94ec8925505ef9724b1fb4647e5e9207d29b2f3a2f526641ac7ac229ce0 SHA512 f724fbabee53c738c846a5cf645470f5f97074e2b33eb030b4859478931661dac53e5446d77a656553e2dec323230bb116d350997e1407d794382f537e6dfdf5
DIST tabulate-0.8.3.tar.gz 46234 BLAKE2B 1310de381265bf150cdef72b653175b1ab95a8339bf1934cece830ce9e644ed9d3d441eb3c3721509368334d11160054aa4d75a17751e493c47dbeee22c466e2 SHA512 7f0205a4d80ed0b426a45622a3b8ec0a9b77cf6d67c1207db7fbc20a12e83a15748e63d5f8e5e65fa348b6265fd0cac93be4d04f9c1c182476b93507e1131cbf
+DIST tabulate-0.8.6.tar.gz 39420 BLAKE2B 28cd8c175b258b56a406a78d7891919a49c867d848843365605ccdcb8ba0b307f1448967a124d57b0f6264169104c9cccc84982fea666a035a265a3c9f10cc43 SHA512 ec4d7a7f20db306be1a460276e0b1b1e63fd1ca14b208a45a297508bddbc07b034e03fcb5ff67fe5e2b9419f308900675994a6dccef755c975ad0b1e9124072f
EBUILD tabulate-0.8.1.ebuild 669 BLAKE2B f06e4ca27a9cb82f430e94d6bd420a0e68efa5849570d6949bb7f13a70470c772593d4ae6bcf94c393daa8d0c3d100eef4f6d3bcfaa94180208e3e07e1264cd7 SHA512 e68facacc2298616861d53743ad0e0141324026299f2969fb6dc7ebe34580157c5bff0a3aff3a40246db6d1a2740f1991845a4a2045ac84d9ca225f12c6095b8
EBUILD tabulate-0.8.3.ebuild 820 BLAKE2B 0906c3100855b6c01787169db035b8eaf029e275a1c7a9624255e048c55fe2270cf6ff58a5ade70e44d9d2305db44052b5f9a82f360c90e4f338a12956f4bf9f SHA512 d8ab95f8981b90ffd6fad3051839e29ad6b42ead52fabea18c85d8538f6bf63e5475b8c4c33979e6323ea8b2a5a6836ed4c1ff188b11452ce99e4b66d16c36ef
+EBUILD tabulate-0.8.6.ebuild 997 BLAKE2B cea6950674b03adfebc5364e34d66138f685f635d2771b8b41a10ba74da4289315bf1769aaa7d035995eb5c02554254aeac9f7bcbe13a6cf2db76e0c3d67cd6d SHA512 40708eaf93b47dd096540414588b2ecc9eea9df60cea721c1d2d1d7beea033ddb5b5e02c0120e9fd36ad6d6cfeb75c24e37a699f98731d67b52b2727b104fe10
MISC metadata.xml 321 BLAKE2B 8b68baf97f22e2360ba30d2a86e181492217d12162d7717d3f69dff5a51926867d5ac8a227fa93c345e3ddb80036ba97839e7ab22aab5df27ec974048b666a41 SHA512 4967ca411c6ee428e897be2be259da008f9dec1991754235f0e8f79d64b5175e69d460c3cfee72f49faa41704ebda3c46bb2f30fc157e95cec4d8d60ae7ba89d
diff --git a/dev-python/tabulate/files/tabulate-0.8.6-avoid-pandas-dep.patch b/dev-python/tabulate/files/tabulate-0.8.6-avoid-pandas-dep.patch
new file mode 100644
index 000000000000..b75df197f80e
--- /dev/null
+++ b/dev-python/tabulate/files/tabulate-0.8.6-avoid-pandas-dep.patch
@@ -0,0 +1,80 @@
+diff --git a/test/test_input.py b/test/test_input.py
+index 5443ab9..8a1d2e5 100644
+--- a/test/test_input.py
++++ b/test/test_input.py
+@@ -4,6 +4,7 @@
+
+ from __future__ import print_function
+ from __future__ import unicode_literals
++import unittest
+ from tabulate import tabulate
+ from common import assert_equal, assert_in, assert_raises, SkipTest
+
+@@ -246,6 +247,7 @@ def test_numpy_record_array_headers():
+ raise SkipTest() # this test is optional
+
+
++@unittest.skip("avoid extra unnecessary deps")
+ def test_pandas():
+ "Input: a Pandas DataFrame."
+ try:
+@@ -267,6 +269,7 @@ def test_pandas():
+ raise SkipTest() # this test is optional
+
+
++@unittest.skip("avoid extra unnecessary deps")
+ def test_pandas_firstrow():
+ "Input: a Pandas DataFrame with the first row as headers."
+ try:
+@@ -285,6 +288,7 @@ def test_pandas_firstrow():
+ raise SkipTest() # this test is optional
+
+
++@unittest.skip("avoid extra unnecessary deps")
+ def test_pandas_keys():
+ "Input: a Pandas DataFrame with keys as headers."
+ try:
+diff --git a/test/test_output.py b/test/test_output.py
+index 1eb67c1..2106c88 100644
+--- a/test/test_output.py
++++ b/test/test_output.py
+@@ -4,6 +4,7 @@
+
+ from __future__ import print_function
+ from __future__ import unicode_literals
++import unittest
+ import tabulate as tabulate_module
+ from tabulate import tabulate, simple_separated_format
+ from common import assert_equal, assert_raises, SkipTest
+@@ -1176,6 +1177,7 @@ def test_unaligned_separated():
+ assert_equal(expected, result)
+
+
++@unittest.skip("avoid extra unnecessary deps")
+ def test_pandas_with_index():
+ "Output: a pandas Dataframe with an index"
+ try:
+@@ -1199,6 +1201,7 @@ def test_pandas_with_index():
+ raise SkipTest() # this test is optional
+
+
++@unittest.skip("avoid extra unnecessary deps")
+ def test_pandas_without_index():
+ "Output: a pandas Dataframe without an index"
+ try:
+@@ -1222,6 +1225,7 @@ def test_pandas_without_index():
+ raise SkipTest() # this test is optional
+
+
++@unittest.skip("avoid extra unnecessary deps")
+ def test_pandas_rst_with_index():
+ "Output: a pandas Dataframe with an index in ReStructuredText format"
+ try:
+@@ -1247,6 +1251,7 @@ def test_pandas_rst_with_index():
+ raise SkipTest() # this test is optional
+
+
++@unittest.skip("avoid extra unnecessary deps")
+ def test_pandas_rst_with_named_index():
+ "Output: a pandas Dataframe with a named index in ReStructuredText format"
+ try:
diff --git a/dev-python/tabulate/tabulate-0.8.6.ebuild b/dev-python/tabulate/tabulate-0.8.6.ebuild
new file mode 100644
index 000000000000..a62b688f38ed
--- /dev/null
+++ b/dev-python/tabulate/tabulate-0.8.6.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
+
+inherit distutils-r1
+
+DESCRIPTION="Pretty-print tabular data"
+HOMEPAGE="https://pypi.org/project/tabulate/ https://github.com/astanin/python-tabulate"
+SRC_URI="https://github.com/astanin/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/python-${P}"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/wcwidth[${PYTHON_USEDEP}]"
+BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ $(python_gen_impl_dep 'sqlite')
+ dev-python/colorclass[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' 'python3*')
+ virtual/python-funcsigs[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/tabulate-0.8.6-avoid-pandas-dep.patch"
+)
+
+distutils_enable_tests nose