forked from pool/python-u-msgpack-python
Accepting request 593368 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/593368 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-u-msgpack-python?expand=0&rev=4
This commit is contained in:
@@ -1,9 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 3 23:19:39 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Ensure neutrality and time-agnosticness of description.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 1 22:14:43 UTC 2018 - arun@gmx.de
|
||||||
|
|
||||||
|
- remove u-msgpack-bigendian_broken.patch
|
||||||
|
|
||||||
|
- update to version 2.5.0:
|
||||||
|
* Add support for the timestamp extension type.
|
||||||
|
* Fix tests on big endian platforms
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 16 15:13:23 CET 2018 - ro@suse.de
|
Fri Mar 16 15:13:23 CET 2018 - ro@suse.de
|
||||||
|
|
||||||
- add u-msgpack-bigendian_broken.patch (bsc#1085666)
|
- add u-msgpack-bigendian_broken.patch (bsc#1085666)
|
||||||
pack_ext_handler/unpack_ext_handler are broken on bigendian,
|
pack_ext_handler/unpack_ext_handler are broken on bigendian,
|
||||||
skip them in the testsuite for now
|
skip them in the testsuite for now
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 13 18:21:56 UTC 2017 - arun@gmx.de
|
Mon Nov 13 18:21:56 UTC 2017 - arun@gmx.de
|
||||||
|
|||||||
@@ -18,38 +18,30 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-u-msgpack-python
|
Name: python-u-msgpack-python
|
||||||
Version: 2.4.1
|
Version: 2.5.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A portable, lightweight MessagePack serializer and deserializer
|
Summary: A MessagePack serializer and deserializer
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/vsergeev/u-msgpack-python
|
URL: https://github.com/vsergeev/u-msgpack-python
|
||||||
Source: https://pypi.io/packages/source/u/u-msgpack-python/u-msgpack-python-%{version}.tar.gz
|
Source: https://pypi.io/packages/source/u/u-msgpack-python/u-msgpack-python-%{version}.tar.gz
|
||||||
Patch0: u-msgpack-bigendian_broken.patch
|
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
u-msgpack-python is a lightweight MessagePack serializer and
|
u-msgpack-python is a MessagePack serializer and
|
||||||
deserializer module written in pure Python, compatible with both
|
deserializer module written in pure Python, compatible with
|
||||||
Python 2 and Python 3, as well as CPython and PyPy implementations of
|
Python 2, Python 3, in both the CPython and PyPy implementations of
|
||||||
Python. u-msgpack-python is fully compliant with the latest
|
Python. u-msgpack-python is fully compliant with the MessagePack
|
||||||
MessagePack specification. In particular, it supports the new binary,
|
2017-09-17 specification. In particular, it supports the binary,
|
||||||
UTF-8 string, and application-defined ext types.
|
UTF-8 string, and application-defined extended types.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n u-msgpack-python-%{version}
|
%setup -q -n u-msgpack-python-%{version}
|
||||||
# we are noarch, so ifarch does not work here
|
|
||||||
case "$(uname -m)" in
|
|
||||||
ppc|ppc64|s390|s390x)
|
|
||||||
%patch0 -p1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -64,7 +56,7 @@ export LANG=en_US.UTF-8
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%license LICENSE
|
||||||
%pycache_only %{python_sitelib}/__pycache__
|
%pycache_only %{python_sitelib}/__pycache__
|
||||||
%{python_sitelib}/umsgpack.py*
|
%{python_sitelib}/umsgpack.py*
|
||||||
%{python_sitelib}/u_msgpack_python-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/u_msgpack_python-%{version}-py%{python_version}.egg-info
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
--- u-msgpack-python-2.4.1/test_umsgpack.py 2018/03/16 14:11:16 1.1
|
|
||||||
+++ u-msgpack-python-2.4.1/test_umsgpack.py 2018/03/16 14:12:23
|
|
||||||
@@ -474,23 +474,23 @@
|
|
||||||
with self.assertRaises(TypeError):
|
|
||||||
_ = umsgpack.Ext(0, u"unicode string")
|
|
||||||
|
|
||||||
- def test_pack_ext_handler(self):
|
|
||||||
- for (name, obj, data) in ext_handlers_test_vectors:
|
|
||||||
- obj_repr = repr(obj)
|
|
||||||
- print("\tTesting %s: object %s" %
|
|
||||||
- (name, obj_repr if len(obj_repr) < 24 else obj_repr[0:24] + "..."))
|
|
||||||
-
|
|
||||||
- packed = umsgpack.packb(obj, ext_handlers=ext_handlers)
|
|
||||||
- self.assertEqual(packed, data)
|
|
||||||
-
|
|
||||||
- def test_unpack_ext_handler(self):
|
|
||||||
- for (name, obj, data) in ext_handlers_test_vectors:
|
|
||||||
- obj_repr = repr(obj)
|
|
||||||
- print("\tTesting %s: object %s" %
|
|
||||||
- (name, obj_repr if len(obj_repr) < 24 else obj_repr[0:24] + "..."))
|
|
||||||
-
|
|
||||||
- unpacked = umsgpack.unpackb(data, ext_handlers=ext_handlers)
|
|
||||||
- self.assertEqual(unpacked, obj)
|
|
||||||
+# def test_pack_ext_handler(self):
|
|
||||||
+# for (name, obj, data) in ext_handlers_test_vectors:
|
|
||||||
+# obj_repr = repr(obj)
|
|
||||||
+# print("\tTesting %s: object %s" %
|
|
||||||
+# (name, obj_repr if len(obj_repr) < 24 else obj_repr[0:24] + "..."))
|
|
||||||
+#
|
|
||||||
+# packed = umsgpack.packb(obj, ext_handlers=ext_handlers)
|
|
||||||
+# self.assertEqual(packed, data)
|
|
||||||
+#
|
|
||||||
+# def test_unpack_ext_handler(self):
|
|
||||||
+# for (name, obj, data) in ext_handlers_test_vectors:
|
|
||||||
+# obj_repr = repr(obj)
|
|
||||||
+# print("\tTesting %s: object %s" %
|
|
||||||
+# (name, obj_repr if len(obj_repr) < 24 else obj_repr[0:24] + "..."))
|
|
||||||
+#
|
|
||||||
+# unpacked = umsgpack.unpackb(data, ext_handlers=ext_handlers)
|
|
||||||
+# self.assertEqual(unpacked, obj)
|
|
||||||
|
|
||||||
def test_pack_force_float_precision(self):
|
|
||||||
for ((name, obj, data), precision) in zip(float_precision_test_vectors, ["single", "double"]):
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2f31fc1b6dd8632c230ea7012470e40f77119f20999274dda6f1afa9c305e590
|
|
||||||
size 12026
|
|
||||||
3
u-msgpack-python-2.5.0.tar.gz
Normal file
3
u-msgpack-python-2.5.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7ff18ae3721fa75571f9329c08f7c0120416a6ae36194bd8674f65b3b78d0702
|
||||||
|
size 16012
|
||||||
Reference in New Issue
Block a user