mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-06 04:42:56 +02:00
yq: update to 2.12.2.
and cleanup dependencies.
This commit is contained in:
parent
72dd0c6ad6
commit
42988a6d02
2 changed files with 20 additions and 5 deletions
15
srcpkgs/yq/patches/fix-test-on-ci.patch
Normal file
15
srcpkgs/yq/patches/fix-test-on-ci.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
https://github.com/kislyuk/yq/issues/114
|
||||||
|
|
||||||
|
diff --git a/test/test.py b/test/test.py
|
||||||
|
index f25dced..ffa7147 100755
|
||||||
|
--- a/test/test.py
|
||||||
|
+++ b/test/test.py
|
||||||
|
@@ -77,7 +77,7 @@ class TestYq(unittest.TestCase):
|
||||||
|
unusable_tty_input = mock.Mock()
|
||||||
|
unusable_tty_input.isatty = mock.Mock(return_value=True)
|
||||||
|
|
||||||
|
- self.run_yq("{}", [], expect_exit_codes={0} if sys.stdin.isatty() else {2})
|
||||||
|
+ self.run_yq("{}", [], expect_exit_codes={0})
|
||||||
|
self.run_yq("{}", ["."])
|
||||||
|
self.run_yq(unusable_non_tty_input, [".", test_doc])
|
||||||
|
self.run_yq(unusable_non_tty_input, [".", test_doc, test_doc])
|
|
@ -1,18 +1,18 @@
|
||||||
# Template file for 'yq'
|
# Template file for 'yq'
|
||||||
pkgname=yq
|
pkgname=yq
|
||||||
version=2.11.1
|
version=2.12.2
|
||||||
revision=2
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools"
|
||||||
makedepends="python3-yaml"
|
makedepends="python3-yaml"
|
||||||
depends="python3-setuptools python3-xmltodict python3-yaml python3-toml python3-argcomplete"
|
depends="${makedepends} python3-xmltodict python3-toml python3-argcomplete jq"
|
||||||
checkdepends="jq python3-xmltodict python3-toml python3-argcomplete"
|
checkdepends="${depends}"
|
||||||
short_desc="Command-line YAML processor written in Python that wraps around jq"
|
short_desc="Command-line YAML processor written in Python that wraps around jq"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="https://github.com/kislyuk/yq"
|
homepage="https://github.com/kislyuk/yq"
|
||||||
distfiles="${PYPI_SITE}/y/yq/yq-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/y/yq/yq-${version}.tar.gz"
|
||||||
checksum=74f64e3784a34d8a18efd8addc83cf5ca3478a0a69517d70fd9158a3809f99e0
|
checksum=2f156d0724b61487ac8752ed4eaa702a5737b804d5afa46fa55866951cd106d2
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
python3 test/test.py
|
python3 test/test.py
|
||||||
|
|
Loading…
Add table
Reference in a new issue