diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-07 11:36:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-07 11:36:18 +0100 |
commit | 6e88bac8dd26372eea042112ad3769b1fac9ae18 (patch) | |
tree | e8694d56fbae41e2d5f4025730db56041463d94e /app-text/xlsx2csv | |
parent | c59fc2181f7402f8d0a548bcc897584a83139cc1 (diff) |
gentoo auto-resync : 07:05:2023 - 11:36:18
Diffstat (limited to 'app-text/xlsx2csv')
-rw-r--r-- | app-text/xlsx2csv/Manifest | 7 | ||||
-rw-r--r-- | app-text/xlsx2csv/files/xlsx2csv-0.7.6-tests.patch | 61 | ||||
-rw-r--r-- | app-text/xlsx2csv/xlsx2csv-0.7.6.ebuild | 35 | ||||
-rw-r--r-- | app-text/xlsx2csv/xlsx2csv-0.8.1.ebuild (renamed from app-text/xlsx2csv/xlsx2csv-0.8.0.ebuild) | 2 |
4 files changed, 3 insertions, 102 deletions
diff --git a/app-text/xlsx2csv/Manifest b/app-text/xlsx2csv/Manifest index d283db2ea3b8..53c9b7cda9f8 100644 --- a/app-text/xlsx2csv/Manifest +++ b/app-text/xlsx2csv/Manifest @@ -1,7 +1,4 @@ -AUX xlsx2csv-0.7.6-tests.patch 2180 BLAKE2B 173aa4d2650b86648a7b0897a86f49650acffd1603cb6af4f8fa603d70bc902b23cd280cba0453176e477907e7e93447693ff8ec28b531213c1aa690e9288d7b SHA512 7374e315fbe73532e91278eea825d0171642f4d4d5c412e904932c67ecde0b71291c37d8f5cf8908449663435a587f11e10f409bc82128ef9388be0c002da22e AUX xlsx2csv-0.7.8-tests.patch 252 BLAKE2B 6f8a2715c571de5330f4496e842582f01ac52668f57fd1a00ff40237bcdfb915ab675cbfa0233145545e2fc5697ee04e3b13036b2e021f2cddd56d814ded97ec SHA512 c6659b95aed1147e818bad5de5cf22da376d5a597dc9bc7bf4918776e870d70ac50de7d96e7ccd41b5eed3804b7cce7882651d83b86e281e5f3bcd6a2c1ef29e -DIST xlsx2csv-0.7.6.tar.gz 231283 BLAKE2B d0271c6a82b7ed2825e3224f0e34637db3dacda3fe99c6ef5a087cc8d248592efc169b466514abd18b50f6625e8d9743c812b46ecb6f76ce7d1fdc51dfe34fc4 SHA512 7fc8e0da0c050e12d0cfd73f16ffd9c00f19bf05925b54cc68d6a0858a75db89d52e46312956dfd149e0ec88778f68056942a090db44e6148796fad33fa26489 -DIST xlsx2csv-0.8.0.tar.gz 208842 BLAKE2B bfe69c39a8312feec35bb9a8079982f0765cbe975ce9d842ccd969d1399d03202ddf8d41c54f5129d122f535272add38c1489c0804340cc24bf1091779d76a2c SHA512 dd9ced043f347d420371aaf68f65b1ae827f231ceddbfb051174c8072dda27f989490120d0ee6bbe1fb25faf79944242144e196ccf58db5c537d5b0826cb91ee -EBUILD xlsx2csv-0.7.6.ebuild 688 BLAKE2B 1963ab2ffeb4de37811f6ffb3e47b69086010a63415179f82b59a9765dc418e3ba29914dfc24bcfe2ff3463ed774da7e5e4efdf4882f0eb5de81865d354be262 SHA512 b20496930e1dae337983dfb9dd3646e484be15213ffdc58059fe9112c39cffa6f51f98e86da0073f866271a4cb8c383267c93c485c6ab4da71232ca0609033e2 -EBUILD xlsx2csv-0.8.0.ebuild 654 BLAKE2B 0f12e139f7ab4c353fbddc03fb35da5ccfde0783f2978a2bfe7e648cb0f36fff8fb8cabe2cf144083cbc169411a2e7fb1e3fd2774a69464c93db82c57cedf669 SHA512 3d3c1744782a853967e00e785f768cd177e72926ff44fa71de5a870a367d592bc29705265d33ea1734889b769c86c05df050c715547a2c193b2ea6a9db4aec52 +DIST xlsx2csv-0.8.1.tar.gz 215741 BLAKE2B 0fcfe8177bc9d50d0986bea45373be8efb80753a53054bb254ab6fa93a4f4e038d1b7b991f1fb3850e9cd928f4aacfc3b0a927edbaacd77065eb6dc8067cc227 SHA512 0d091a3912a3c0a10837acb2bf1a4c42478a891b0c9cfaceb74a8e511425c63360f24cb08db138ec51a7c189f0b76f3901789edb45f894ab8926dd4c458c7ff5 +EBUILD xlsx2csv-0.8.1.ebuild 654 BLAKE2B 19e82d63b86d9a5aa12da72b0dfb04e32260f75a2511f71c266fc8e5dffffd3263feada051fc58b3fa4f885f98375106b17de3029acba511ef6f3d375d668073 SHA512 9a4190a1513ac40f01af77214147b113c3eab1e4df445656b563324c9603ef85569420bfb2a9bcb6d7cd4c03f8fe2e6f6598473caea0b3b834275b1feced57da MISC metadata.xml 536 BLAKE2B 709578f2ffcf82764209ae9367f0c05654a3d5d2e71cb7af621afab527256c62287015693566f8651d19ce523b346497c5292a12f224497109ad800a9990e171 SHA512 6d1b5d8e2f6827e82052a3f1cf9babbd1bfdffb51d391110772f824ad020266f5e43a3b523918e353847a622bab82bfe7e300189848ff8bc4cec4e6e76a7c7a3 diff --git a/app-text/xlsx2csv/files/xlsx2csv-0.7.6-tests.patch b/app-text/xlsx2csv/files/xlsx2csv-0.7.6-tests.patch deleted file mode 100644 index f3e04b827bd0..000000000000 --- a/app-text/xlsx2csv/files/xlsx2csv-0.7.6-tests.patch +++ /dev/null @@ -1,61 +0,0 @@ ---- xlsx2csv-0.7.6/test/run -+++ xlsx2csv-0.7.6/test/run -@@ -5,8 +5,6 @@ - import subprocess - from io import open - --PYTHON_VERSIONS = ["2.7"] -- - """ - This test uses sys.stdout. - That means this test doesn't verify: -@@ -16,31 +14,24 @@ - - def compare(case, arguments=[]): - failed = False -- for pyver in PYTHON_VERSIONS: -- ext = "xlsx" -- if os.path.exists("test/%s.xlsm" % case): -- ext = "xlsm" -- -- if os.name == 'posix':# in case of Linux -- left = subprocess.check_output(["python%s" %pyver, "./xlsx2csv.py"] + arguments + ["test/%s.%s" %(case, ext)]).decode('utf-8').replace('\r','') -- elif os.name == 'nt':# in case of Windows -- # Use py.exe http://blog.python.org/2011/07/python-launcher-for-windows_11.html on Windows -- left = subprocess.check_output(["py", "-%s" %pyver, "./xlsx2csv.py"] + arguments + ["test/%s.%s" %(case, ext)]).decode('utf-8').replace('\r','') -- else: -- print("os.name is unexpected: "+os.name) -- sys.exit(1) -- -- f = open("test/%s.csv" %case, "r", encoding="utf-8", newline="") -- right = f.read().replace('\r','') -- f.close() -- -- if left != right: -- print("FAILED: %s %s" %(case, pyver)) -- print(" actual:", left.replace("\r", "\\r").replace("\n", "\\n")) -- print(" expected:", right.replace("\r", "\\r").replace("\n", "\\n")) -- failed = True -- else: -- print("OK: %s %s" %(case, pyver)) -+ ext = "xlsx" -+ if os.path.exists("test/%s.xlsm" % case): -+ ext = "xlsm" -+ -+ left = subprocess.check_output(["./xlsx2csv.py"] + arguments + ["test/%s.%s" %(case, ext)]).decode('utf-8').replace('\r','') -+ -+ f = open("test/%s.csv" %case, "r", encoding="utf-8", newline="") -+ right = f.read().replace('\r','') -+ f.close() -+ -+ if left != right: -+ print("FAILED: %s" % (case,)) -+ print(" actual:", left.replace("\r", "\\r").replace("\n", "\\n")) -+ print(" expected:", right.replace("\r", "\\r").replace("\n", "\\n")) -+ failed = True -+ else: -+ print("OK: %s" % (case,)) -+ - if failed: - sys.exit(1) - diff --git a/app-text/xlsx2csv/xlsx2csv-0.7.6.ebuild b/app-text/xlsx2csv/xlsx2csv-0.7.6.ebuild deleted file mode 100644 index b5b221a9924d..000000000000 --- a/app-text/xlsx2csv/xlsx2csv-0.7.6.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{9..10} ) -PYTHON_REQ_USE="xml(+)" -DISTUTILS_USE_SETUPTOOLS=no - -inherit distutils-r1 - -DESCRIPTION="Convert MS Office xlsx files to CSV" -HOMEPAGE="https://github.com/dilshod/xlsx2csv/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -BDEPEND="dev-lang/perl" - -PATCHES=( "${FILESDIR}"/${P}-tests.patch ) - -python_compile_all() { - emake -C man -} - -python_test() { - "${EPYTHON}" test/run || die "tests failed with ${EPYTHON}" -} - -python_install_all() { - distutils-r1_python_install_all - doman man/${PN}.1 -} diff --git a/app-text/xlsx2csv/xlsx2csv-0.8.0.ebuild b/app-text/xlsx2csv/xlsx2csv-0.8.1.ebuild index 7b0deef9b9c3..acc1f01a79f3 100644 --- a/app-text/xlsx2csv/xlsx2csv-0.8.0.ebuild +++ b/app-text/xlsx2csv/xlsx2csv-0.8.1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{9..11} ) PYTHON_REQ_USE="xml(+)" DISTUTILS_USE_PEP517=setuptools |