commit c4a3cb2a12bc213c3434878e5085aabc791904da019d771ab731048263c7c6d0 Author: OBS User buildservice-autocommit Date: Wed Feb 14 08:45:45 2018 +0000 Accepting request 575577 from devel:languages:python baserev update by copy to link target OBS-URL: https://build.opensuse.org/request/show/575577 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-msgpack?expand=0&rev=8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/msgpack-0.5.4.tar.gz b/msgpack-0.5.4.tar.gz new file mode 100644 index 0000000..9bdd3f7 --- /dev/null +++ b/msgpack-0.5.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00517e3d3a214b23ab8c892c85fbbb9a48130267a9dad6dce1bc1186855e938d +size 142763 diff --git a/python-msgpack.changes b/python-msgpack.changes new file mode 100644 index 0000000..c19db88 --- /dev/null +++ b/python-msgpack.changes @@ -0,0 +1,175 @@ +------------------------------------------------------------------- +Mon Feb 12 10:27:18 UTC 2018 - dmueller@suse.com + +- fix typo in obsoletes + +------------------------------------------------------------------- +Tue Feb 6 06:29:43 UTC 2018 - tbechtold@suse.com + +- update to version 0.5.4 + * packer: Use PyUnicode_AsUTF8AndSize() for utf-8 (#272) + * Fix encoding and unicode_errors (#277) + * Undeprecate unicode_errors (#278) + * Packer.pack() reset buffer on exception (#274) + * Use cython's cast for converting encoding and errors (#279) + * 0.5.4 + * Add raw_as_bytes option to Unpacker. (#265) + * s/raw_as_bytes/raw/g (#276) + +------------------------------------------------------------------- +Tue Jan 30 23:11:03 UTC 2018 - jengelh@inai.de + +- Strip rheotrics from descriptions. + +------------------------------------------------------------------- +Sat Jan 27 10:32:32 UTC 2018 - dmueller@suse.com + +- update to 0.5.1: + * Package name on PyPI was changed to msgpack from 0.5. +- rename from msgpack-python + +------------------------------------------------------------------- +Wed Apr 19 17:35:24 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + +------------------------------------------------------------------- +Tue Nov 15 10:08:12 UTC 2016 - dmueller@suse.com + +- update to 0.4.8 + +------------------------------------------------------------------- +Sat Oct 17 11:24:41 UTC 2015 - mc@suse.com + +- build conditionally without tests + +------------------------------------------------------------------- +Mon Mar 16 21:03:15 UTC 2015 - hpj@urpla.net + +- Update to version 0.4.6 + * fallback.Unpacker: Fix Data corruption when OutOfData. This bug + only affects "Streaming unpacking." +- Changes from version 0.4.5 + * Fix test failure on pytest 2.3. + * Fix typos in ChangeLog. + * Improve README.rst +- Changes from version 0.4.4 + * Fix compile error. +- Changes from version 0.4.3 + * Unpacker may unpack wrong uint32 value on 32bit or LLP64 + environment. (#101) + * Build failed on Windows Python 2.7. + +------------------------------------------------------------------- +Tue Nov 18 13:14:12 UTC 2014 - toddrme2178@gmail.com + +- Update to 0.4.2 + Bugfixes + - Unpacker doesn't increment refcount of ExtType hook. + - Packer raises no exception for inputs doesn't fit to msgpack format. +- Update to 0.4.1 + Changes + - fallback.Unpacker.feed() supports bytearray. + Bugs fixed + - Unpacker doesn't increment refcount of hooks. Hooks may be GCed while unpacking. + - Unpacker may read unfilled internal buffer. + +------------------------------------------------------------------- +Sun Dec 8 15:02:40 UTC 2013 - p.drouand@gmail.com + +- Update to version 0.4.0 + + Raises TypeError instead of ValueError when packer receives + unsupported type. + + Support New msgpack spec. +- Use download Url as source +- Add python-argparse requirement for SLE11SP3 to get tests working + +------------------------------------------------------------------- +Thu Oct 24 11:08:59 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Thu May 2 10:29:24 UTC 2013 - speilicke@suse.com + +- Package COPYING and README.rst +- Run testsuite + +------------------------------------------------------------------- +Mon Feb 18 03:47:18 UTC 2013 - alexandre@exatati.com.br + +- Update to 0.3.0: + Incompatible Changes + - Default value of use_list is True for now. (It was False for + 0.2.x) You should pass it explicitly for compatibility to 0.2.x. + Changes + - Pure Python fallback module is added. (thanks to bwesterb) + - Add .skip() method to Unpacker (thanks to jnothman) + - Add capturing feature. You can pass the writable object to + Unpacker.unpack() as a second parameter. + - Add Packer.pack_array_header and Packer.pack_map_header. These + methods only pack header of each type. + - Add autoreset option to Packer (default: True). Packer doesn't + return packed bytes and clear internal buffer. + - Add Packer.pack_map_pairs. It packs sequence of pair to map type. + +------------------------------------------------------------------- +Mon Jan 14 09:53:10 UTC 2013 - saschpe@suse.de + +- Simplify macro usage + +------------------------------------------------------------------- +Fri Jan 11 15:24:59 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Sat Dec 22 12:02:57 UTC 2012 - alexandre@exatati.com.br + +- Update to 0.2.4: + - Fix SEGV when object_hook or object_pairs_hook raise Exception. (#39) + +------------------------------------------------------------------- +Tue Dec 11 15:31:58 UTC 2012 - alexandre@exatati.com.br + +- Update to 0.2.3: + - Warn when use_list is not specified. It's default value will be + changed in 0.3. + - Can't pack subclass of dict. + +------------------------------------------------------------------- +Fri Sep 21 19:23:50 UTC 2012 - alexandre@exatati.com.br + +- Update to 0.2.2: + - Add use_single_float option to Packer. When it is true, packs + float object in single precision format. + - unpack() didn't restores gc state when it called with gc + disabled. unpack() doesn't control gc now instead of restoring + gc state collectly. User can control gc state when gc cause + performance issue. + - Unpacker's read_size option didn't used. + +------------------------------------------------------------------- +Mon Aug 20 01:13:03 UTC 2012 - alexandre@exatati.com.br + +- Update to 0.2.1: + - Add max_buffer_size parameter to Unpacker. It limits internal + buffer size and allows unpack data from untrusted source safely. + - Unpacker's buffer reallocation algorithm is less greedy now. It + cause perforamce derease in rare case but memory efficient and + don't allocate than max_buffer_size. + - Fix msgpack didn't work on SPARC Solaris. It was because + choosing wrong byteorder on compilation time. Use sys.byteorder + to get correct byte order. Very thanks to Chris Casey for giving + test environment to me. + +------------------------------------------------------------------- +Wed Jun 27 14:58:58 UTC 2012 - alexandre@exatati.com.br + +- Update to 0.2.0: + - Sorry, no changelog. + +------------------------------------------------------------------- +Fri Jun 22 20:48:50 UTC 2012 - alexandre@exatati.com.br + +- Initial package (0.1.13) for openSUSE. diff --git a/python-msgpack.spec b/python-msgpack.spec new file mode 100644 index 0000000..3fc8d93 --- /dev/null +++ b/python-msgpack.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-msgpack +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%bcond_without test + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-msgpack +Version: 0.5.4 +Release: 0 +Summary: MessagePack (de)serializer +License: Apache-2.0 +Group: Development/Languages/Python +Url: http://msgpack.org/ +Source: https://files.pythonhosted.org/packages/source/m/msgpack/msgpack-%{version}.tar.gz +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: python-rpm-macros +# was renamed at 0.5.0 +Provides: python-msgpack-python = 0.5.0 +Obsoletes: python-msgpack-python < 0.5.0 +%if %{with test} +# Test requirements: +BuildRequires: %{python_module pytest} +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages + +%description +MessagePack (de)serializer for Python. + +MessagePack is a binary-based efficient data interchange format that is +focused on high performance. It is like JSON, but very fast and small. + +%prep +%setup -q -n msgpack-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%if %{with test} +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +py.test-%{$python_bin_suffix} +} +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc COPYING README.rst +%{python_sitearch}/* + +%changelog