[gentoo-commits] repo/gentoo:master commit in: dev-python/OutputCheck/

2024-04-14 Thread Maciej Barć
commit: 601ff8e7c43f665f613c7130dfc67e5695f2667a
Author: Maciej Barć  gentoo  org>
AuthorDate: Sun Apr 14 14:52:53 2024 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Sun Apr 14 15:33:41 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=601ff8e7

dev-python/OutputCheck: enable py3.12 compat

Closes: https://bugs.gentoo.org/929474
Signed-off-by: Maciej Barć  gentoo.org>

 ...heck-0.4.2-r1.ebuild => OutputCheck-0.4.2-r2.ebuild} | 17 -
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild 
b/dev-python/OutputCheck/OutputCheck-0.4.2-r2.ebuild
similarity index 56%
rename from dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild
rename to dev-python/OutputCheck/OutputCheck-0.4.2-r2.ebuild
index 814333b341ff..01ac4eea4db6 100644
--- a/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild
+++ b/dev-python/OutputCheck/OutputCheck-0.4.2-r2.ebuild
@@ -1,16 +1,17 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{9..12} )
 
 inherit distutils-r1
 
 DESCRIPTION="A tool for checking the output of console programs inspired by 
LLVM's FileCheck"
 HOMEPAGE="https://github.com/stp/OutputCheck/;
-SRC_URI="https://github.com/stp/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+SRC_URI="https://github.com/stp/${PN}/archive/${PV}.tar.gz
+   -> ${P}.gh.tar.gz"
 
 LICENSE="BSD"
 SLOT="0"
@@ -20,20 +21,18 @@ RESTRICT="!test? ( test )"
 
 BDEPEND="test? ( dev-python/lit[${PYTHON_USEDEP}] )"
 
-PATCHES=( "${FILESDIR}"/${P}-Driver.patch )
+PATCHES=( "${FILESDIR}/${PN}-0.4.2-Driver.patch" )
 
 src_prepare() {
distutils-r1_src_prepare
 
# Remove bad tests.
-   rm "${S}"/tests/invalid-regex-syntax.smt2 ||
-   die "failed to remove bad tests"
+   rm "${S}/tests/invalid-regex-syntax.smt2" || die "failed to remove bad 
tests"
 
# Create RELEASE-VERSION file.
-   echo ${PV} > "${S}"/RELEASE-VERSION ||
-   die "failed to write RELEASE-VERSION"
+   echo "${PV}" > "${S}/RELEASE-VERSION" || die "failed to write 
RELEASE-VERSION"
 }
 
 python_test() {
-   lit --verbose "${S}"/tests || die "running test with ${EPYTHON} failed"
+   lit --verbose "${S}/tests" || die "running test with ${EPYTHON} failed"
 }



[gentoo-commits] repo/gentoo:master commit in: dev-python/OutputCheck/

2023-03-03 Thread Arthur Zamarin
commit: d6efcd56238ef0e9a2911d28c9391556c5b43aa9
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar  4 06:16:47 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar  4 06:16:47 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6efcd56

dev-python/OutputCheck: Stabilize 0.4.2-r1 amd64, #899200

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild 
b/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild
index fc9ebef88ec2..814333b341ff 100644
--- a/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild
+++ b/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/stp/${PN}/archive/${PV}.tar.gz -> 
${P}.gh.tar.gz"
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/OutputCheck/files/, dev-python/OutputCheck/

2023-01-16 Thread Maciej Barć
commit: 0da42baa6d35192b7edcc12ef961502e56faf1ca
Author: Maciej Barć  gentoo  org>
AuthorDate: Mon Jan 16 13:55:53 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Mon Jan 16 13:56:22 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0da42baa

dev-python/OutputCheck: fix Driver

remove deprecated open 'U' option

Closes: https://bugs.gentoo.org/891035
Signed-off-by: Maciej Barć  gentoo.org>

 .../{OutputCheck-0.4.2.ebuild => OutputCheck-0.4.2-r1.ebuild} |  4 +++-
 dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch   | 11 +++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild 
b/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild
similarity index 87%
rename from dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
rename to dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild
index ca2d32009cbe..fc9ebef88ec2 100644
--- a/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
+++ b/dev-python/OutputCheck/OutputCheck-0.4.2-r1.ebuild
@@ -20,6 +20,8 @@ RESTRICT="!test? ( test )"
 
 BDEPEND="test? ( dev-python/lit[${PYTHON_USEDEP}] )"
 
+PATCHES=( "${FILESDIR}"/${P}-Driver.patch )
+
 src_prepare() {
distutils-r1_src_prepare
 
@@ -33,5 +35,5 @@ src_prepare() {
 }
 
 python_test() {
-   lit "${S}"/tests || die "running test with ${EPYTHON} failed"
+   lit --verbose "${S}"/tests || die "running test with ${EPYTHON} failed"
 }

diff --git a/dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch 
b/dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch
new file mode 100644
index ..9812bd728e0c
--- /dev/null
+++ b/dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch
@@ -0,0 +1,11 @@
+--- a/OutputCheck/Driver.py
 b/OutputCheck/Driver.py
+@@ -34,7 +34,7 @@ ExitCode = enum('SUCCESS',
+ 
+ def main(args):
+ parser = argparse.ArgumentParser(description=__doc__)
+-parser.add_argument('check_file', type=argparse.FileType('rU'), 
help='File containing check commands')
++parser.add_argument('check_file', type=argparse.FileType('r'), help='File 
containing check commands')
+ parser.add_argument('--file-to-check=', type=argparse.FileType('r'), 
default='-', help='File to check (default %(default)s)')
+ parser.add_argument('--check-prefix=', default='CHECK', help='Prefix to 
use from check_file')
+ parser.add_argument("-l","--log-level",type=str, default="INFO", 
choices=['debug','info','warning','error'])



[gentoo-commits] repo/gentoo:master commit in: dev-python/OutputCheck/

2023-01-15 Thread Maciej Barć
commit: 4c378f225c674fd01917aecd90833cbb53edb0ca
Author: Maciej Barć  gentoo  org>
AuthorDate: Mon Jan 16 01:22:03 2023 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Mon Jan 16 01:57:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c378f22

dev-python/OutputCheck: enable python 3.11

Signed-off-by: Maciej Barć  gentoo.org>

 dev-python/OutputCheck/OutputCheck-0.4.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild 
b/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
index f0240feced1f..ca2d32009cbe 100644
--- a/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
+++ b/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
 
 inherit distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/OutputCheck/

2022-10-06 Thread Maciej Barć
commit: 26f0907c36d6b76906de9f901b09b9ce9d549a2c
Author: Maciej Barć  gentoo  org>
AuthorDate: Thu Oct  6 13:44:41 2022 +
Commit: Maciej Barć  gentoo  org>
CommitDate: Thu Oct  6 14:27:35 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26f0907c

dev-python/OutputCheck: new package; add version 0.4.2

Signed-off-by: Maciej Barć  gentoo.org>

 dev-python/OutputCheck/Manifest |  1 +
 dev-python/OutputCheck/OutputCheck-0.4.2.ebuild | 37 +
 dev-python/OutputCheck/metadata.xml | 20 +
 3 files changed, 58 insertions(+)

diff --git a/dev-python/OutputCheck/Manifest b/dev-python/OutputCheck/Manifest
new file mode 100644
index ..fcdf322a8084
--- /dev/null
+++ b/dev-python/OutputCheck/Manifest
@@ -0,0 +1 @@
+DIST OutputCheck-0.4.2.gh.tar.gz 16436 BLAKE2B 
8c1678746b9fc11cf7b554da83a2e5a51c7095931894a543340e905ccff1e7240f1bb8ec12d348af9662ce7e515d70d6e8a93d1e6ab15629545aa5019a7fe648
 SHA512 
0abd1ca69c4ef683cc455c222979b313ed8b4906725cc534b80906cc4fb9a0acad855d4a6c39aa4777bbdc35309857082197a0cacdc191e4afb8a8a9a4bb2bed

diff --git a/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild 
b/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
new file mode 100644
index ..d1ec3ff584ba
--- /dev/null
+++ b/dev-python/OutputCheck/OutputCheck-0.4.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="A tool for checking the output of console programs inspired by 
LLVM's FileCheck"
+HOMEPAGE="https://github.com/stp/OutputCheck/;
+SRC_URI="https://github.com/stp/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( dev-python/lit[${PYTHON_USEDEP}] )"
+
+src_prepare() {
+   distutils-r1_src_prepare
+
+   # Remove bad tests.
+   rm "${S}"/tests/invalid-regex-syntax.smt2 ||
+   die "failed to remove bad tests"
+
+   # Create RELEASE-VERSION file.
+   echo ${PV} > "${S}"/RELEASE-VERSION ||
+   die "failed to write RELEASE-VERSION"
+}
+
+python_test() {
+   lit "${S}"/tests || die "running test with ${EPYTHON} failed"
+}

diff --git a/dev-python/OutputCheck/metadata.xml 
b/dev-python/OutputCheck/metadata.xml
new file mode 100644
index ..536c2285d052
--- /dev/null
+++ b/dev-python/OutputCheck/metadata.xml
@@ -0,0 +1,20 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+
+  
+x...@gentoo.org
+Maciej Barć
+  
+  
+OutputCheck is a tool for checking the output of console programs that is
+inspired by the FileCheck tool used by LLVM. It has its own small language
+(Check Directives) for describing the expected output of a tool that is
+considerably more convenient and more powerful than GNU grep.
+  
+  
+https://github.com/stp/OutputCheck/issues/
+stp/OutputCheck
+OutputCheck
+  
+