Accepting request 249297 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/249297 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonschema?expand=0&rev=11
This commit is contained in:
commit
e85e6888bc
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:98071d52706e30b01fbb72567fbe26e342db9d7cc89bea04bff44e9304685763
|
|
||||||
size 40963
|
|
3
jsonschema-2.4.0.tar.gz
Normal file
3
jsonschema-2.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1298a2f1b2f4c4a7b921cccd159e4e42f6d7b0fb75c86c0cdecfc71f061833fa
|
||||||
|
size 48293
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 15 10:57:54 UTC 2014 - tbechtold@suse.com
|
||||||
|
|
||||||
|
- update to version 2.4.0:
|
||||||
|
* Added a CLI (#134)
|
||||||
|
* Added absolute path and absolute schema path to errors (#120)
|
||||||
|
* Added ``relevance``
|
||||||
|
* Meta-schemas are now loaded via ``pkgutil``
|
||||||
|
* Added ``by_relevance`` and ``best_match`` (#91)
|
||||||
|
* Fixed ``format`` to allow adding formats for non-strings (#125)
|
||||||
|
* Fixed the ``uri`` format to reject URI references (#131)
|
||||||
|
- BuildRequires python-setuptools
|
||||||
|
- Install /usr/bin/jsonschema with update-alternatives support
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 13 10:27:36 UTC 2014 - dmueller@suse.com
|
Thu Feb 13 10:27:36 UTC 2014 - dmueller@suse.com
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-jsonschema
|
Name: python-jsonschema
|
||||||
Version: 2.2.0
|
Version: 2.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An implementation of JSON-Schema validation for Python
|
Summary: An implementation of JSON-Schema validation for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -25,8 +25,11 @@ Group: Development/Languages/Python
|
|||||||
Url: http://github.com/Julian/jsonschema
|
Url: http://github.com/Julian/jsonschema
|
||||||
Source: http://pypi.python.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-setuptools
|
||||||
# Test build requirements
|
# Test build requirements
|
||||||
BuildRequires: python-mock
|
BuildRequires: python-mock
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
BuildRequires: python-unittest2
|
BuildRequires: python-unittest2
|
||||||
@ -47,15 +50,31 @@ python setup.py build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-%{py_ver}
|
||||||
|
ln -s %{_bindir}/jsonschema-%{py_ver} %{buildroot}%{_bindir}/jsonschema
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1110
|
%if 0%{?suse_version} > 1110
|
||||||
%check
|
%check
|
||||||
python -m unittest jsonschema.tests.test_jsonschema_test_suite
|
python -m unittest jsonschema.tests.test_jsonschema_test_suite
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%pre
|
||||||
|
[[ ! -L %{_bindir}/jsonschema ]] && rm -f %{_bindir}/jsonschema || :
|
||||||
|
|
||||||
|
%post
|
||||||
|
update-alternatives --install \
|
||||||
|
%{_bindir}/jsonschema jsonschema %{_bindir}/jsonschema-%{py_ver} 20
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
update-alternatives --remove jsonschema %{_bindir}/jsonschema-%{py_ver}
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING README.rst
|
%doc COPYING README.rst
|
||||||
|
%ghost %{_bindir}/jsonschema
|
||||||
|
%{_bindir}/jsonschema-%{py_ver}
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user