- Update to 2.0:

* Fix typos in messages
  * Accept pointer as argument in commandline utility
- Run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpointer?expand=0&rev=25
This commit is contained in:
Tomáš Chvátal 2019-03-28 14:41:15 +00:00 committed by Git OBS Bridge
parent 0f98e4839c
commit 94898c875e
4 changed files with 22 additions and 10 deletions

View File

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

3
jsonpointer-2.0.tar.gz Normal file
View File

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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Mar 28 14:38:52 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.0:
* Fix typos in messages
* Accept pointer as argument in commandline utility
- Run tests
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 4 12:49:38 UTC 2018 - Matej Cepl <mcepl@suse.com> Tue Dec 4 12:49:38 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-jsonpointer # spec file for package python-jsonpointer
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,20 +18,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jsonpointer Name: python-jsonpointer
Version: 1.14 Version: 2.0
Release: 0 Release: 0
Summary: Identify specific nodes in a JSON document Summary: Identify specific nodes in a JSON document
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/stefankoegl/python-json-pointer URL: https://github.com/stefankoegl/python-json-pointer
Source: https://pypi.io/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@ -45,8 +44,12 @@ Identify specific nodes in a JSON document (according to draft 08)
%install %install
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/jsonpointer %python_clone -a %{buildroot}%{_bindir}/jsonpointer
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests.py
%post %post
%python_install_alternative jsonpointer %python_install_alternative jsonpointer
@ -54,7 +57,8 @@ Identify specific nodes in a JSON document (according to draft 08)
%python_uninstall_alternative jsonpointer %python_uninstall_alternative jsonpointer
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %doc README.md
%license LICENSE.txt
%python_alternative %{_bindir}/jsonpointer %python_alternative %{_bindir}/jsonpointer
%{python_sitelib}/* %{python_sitelib}/*