SHA256
14
0
forked from pool/python-yq

Accepting request 991280 from devel:languages:python

- Update to 3.1.0:
    Use configurable output grammar, compatible with YAML 1.1
- Update to 3.0.2:
  - Expand merge keys (https://yaml.org/type/merge.html). This is
    a YAML 1.1 specific behavior, but will be accommodated in yq
    due to its widespread use and low likelihood of accidental
    invocation.
- Update to 3.0.1:
  - yq now uses the YAML 1.2 grammar when parsing and rendering
    YAML documents. This means bare literals like “on”, “no”,
    and “12:34:56” are interpreted as strings. (Fix interrupted
    release)
- Removed upstreamed e37a7981b505aa0fd60d062ca81fd7b23715233e.patch

OBS-URL: https://build.opensuse.org/request/show/991280
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yq?expand=0&rev=10
This commit is contained in:
2022-07-26 17:45:35 +00:00
committed by Git OBS Bridge
5 changed files with 21 additions and 28 deletions

View File

@@ -1,22 +0,0 @@
From e37a7981b505aa0fd60d062ca81fd7b23715233e Mon Sep 17 00:00:00 2001
From: Andrey Kislyuk <kislyuk@gmail.com>
Date: Thu, 24 Feb 2022 22:54:08 -0800
Subject: [PATCH] Fix expected error
---
test/test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/test.py b/test/test.py
index 1a7b164..75d67cc 100755
--- a/test/test.py
+++ b/test/test.py
@@ -75,7 +75,7 @@ def test_yq(self):
self.assertEqual(self.run_yq("- понедельник\n- вторник\n", ["-y", "."]), "- понедельник\n- вторник\n")
def test_yq_err(self):
- err = ('yq: Error running jq: ScannerError: while scanning for the next token\nfound character that '
+ err = ('yq: Error running jq: ScannerError: while scanning for the next token\nfound character \'%\' that '
'cannot start any token\n in "<file>", line 1, column 3.')
self.run_yq("- %", ["."], expect_exit_codes={err, 2})

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Jul 26 15:58:36 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Update to 3.1.0:
Use configurable output grammar, compatible with YAML 1.1
- Update to 3.0.2:
- Expand merge keys (https://yaml.org/type/merge.html). This is
a YAML 1.1 specific behavior, but will be accommodated in yq
due to its widespread use and low likelihood of accidental
invocation.
- Update to 3.0.1:
- yq now uses the YAML 1.2 grammar when parsing and rendering
YAML documents. This means bare literals like “on”, “no”,
and “12:34:56” are interpreted as strings. (Fix interrupted
release)
- Removed upstreamed e37a7981b505aa0fd60d062ca81fd7b23715233e.patch
-------------------------------------------------------------------
Fri Feb 25 00:59:37 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>

View File

@@ -19,14 +19,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-yq
Version: 2.14.0
Version: 3.1.0
Release: 0
Summary: Command-line YAML processor - jq wrapper for YAML documents
License: Apache-2.0
URL: https://github.com/kislyuk/yq
Source: https://files.pythonhosted.org/packages/source/y/yq/yq-%{version}.tar.gz
# PATCH-FIX-UPSTREAM
Patch0: https://github.com/kislyuk/yq/commit/e37a7981b505aa0fd60d062ca81fd7b23715233e.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f4bf2b299d1e5c7ebd74cfb25d1f5d9b6401063bac07a2d09a156144c1d644e1
size 28030

3
yq-3.1.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:30a84aa22486c749ba269256bd586c0bcd370b7e2a71e76c3924ead4867e74f2
size 29627