17
0

Compare commits

4 Commits

Author SHA256 Message Date
7b77ac7495 Accepting request 1296835 from devel:languages:python
Forwarded request #1295955 from glaubitz

- Update to 0.14.2
    * Use hatch (#205)
    * style: fmt
    * fix: fix for lint
    * chore: refine github actions (#206)
    * Typing (#207)
    * Create AGENTS.md for jules (#210)
    * Refactor: Migrate to src layout (#211)
    * feat: Add English docstrings to public APIs (#212)
    * Update AGENTS.md
    * Add docstrings to public APIs in dictknife.loading
      and submodules (#213)
    * fix: fix type, loading module
    * chore: bump version
  - Drop support-python-310.patch, fixed upstream
  - Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/1296835
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dictknife?expand=0&rev=8
2025-08-01 22:41:06 +00:00
8bbbf1b33f Accepting request 1295955 from home:glaubitz:branches:devel:languages:python
- Update to 0.14.2
  * Use hatch (#205)
  * style: fmt
  * fix: fix for lint
  * chore: refine github actions (#206)
  * Typing (#207)
  * Create AGENTS.md for jules (#210)
  * Refactor: Migrate to src layout (#211)
  * feat: Add English docstrings to public APIs (#212)
  * Update AGENTS.md
  * Add docstrings to public APIs in dictknife.loading
    and submodules (#213)
  * fix: fix type, loading module
  * chore: bump version
- Drop support-python-310.patch, fixed upstream
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/1295955
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dictknife?expand=0&rev=15
2025-07-31 15:37:46 +00:00
91058e7401 Accepting request 1282970 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1282970
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dictknife?expand=0&rev=7
2025-06-05 18:34:39 +00:00
1f853f7e79 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dictknife?expand=0&rev=13
2025-06-05 06:06:54 +00:00
5 changed files with 35 additions and 41 deletions

View File

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

3
dictknife-0.14.2.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Sun Jul 27 12:37:16 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.14.2
* Use hatch (#205)
* style: fmt
* fix: fix for lint
* chore: refine github actions (#206)
* Typing (#207)
* Create AGENTS.md for jules (#210)
* Refactor: Migrate to src layout (#211)
* feat: Add English docstrings to public APIs (#212)
* Update AGENTS.md
* Add docstrings to public APIs in dictknife.loading
and submodules (#213)
* fix: fix type, loading module
* chore: bump version
- Drop support-python-310.patch, fixed upstream
- Update BuildRequires from pyproject.toml
-------------------------------------------------------------------
Thu Jun 5 06:01:36 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Mar 18 10:48:41 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dictknife
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,21 +18,23 @@
%{?sle15_python_module_pythons}
Name: python-dictknife
Version: 0.14.1
Version: 0.14.2
Release: 0
Summary: Army knife of handling data
License: MIT
URL: https://github.com/podhmo/dictknife
Source: https://github.com/podhmo/dictknife/archive/%{version}.tar.gz#/dictknife-%{version}.tar.gz
Patch0: support-python-310.patch
BuildRequires: %{python_module google-api-python-client}
BuildRequires: %{python_module google-auth-oauthlib}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module jsonpatch}
BuildRequires: %{python_module magicalimport}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module prestring}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module ruamel.yaml}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
@@ -57,10 +59,10 @@ JSON pointer syntax.
%autosetup -p1 -n dictknife-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/dictknife
%python_clone -a %{buildroot}%{_bindir}/jsonknife
%python_clone -a %{buildroot}%{_bindir}/swaggerknife

View File

@@ -1,33 +0,0 @@
Index: dictknife-0.14.0/dictknife/tests/cliutils/test_extraarguments.py
===================================================================
--- dictknife-0.14.0.orig/dictknife/tests/cliutils/test_extraarguments.py
+++ dictknife-0.14.0/dictknife/tests/cliutils/test_extraarguments.py
@@ -1,3 +1,4 @@
+import sys
import textwrap
import unittest
@@ -22,18 +23,21 @@ class Tests(unittest.TestCase):
return target
def test_help_message(self):
+ ending = "al arguments"
+ if sys.version_info >= (3, 10):
+ ending = "s"
target = self._makeOne()
expected = textwrap.dedent(
"""
usage: cmd [-h]
- options:
+ option%s:
-h, --help show this help message and exit
extra arguments: (with --extra<option>)
for --format=json:
--sort-keys sort keys
- """
+ """ % (ending, )
).strip()
actual = target.parser.format_help().strip()