commit python-JsonWeb for openSUSE:Factory
Hello community, here is the log from the commit of package python-JsonWeb for openSUSE:Factory checked in at 2017-08-31 21:03:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-JsonWeb (Old) and /work/SRC/openSUSE:Factory/.python-JsonWeb.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-JsonWeb" Thu Aug 31 21:03:41 2017 rev:2 rq:519800 version:0.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-JsonWeb/python-JsonWeb.changes 2015-11-10 10:03:02.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-JsonWeb.new/python-JsonWeb.changes 2017-08-31 21:03:49.253392580 +0200 @@ -1,0 +2,5 @@ +Thu Aug 24 13:42:06 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -4,0 +10 @@ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-JsonWeb.spec ++++++ --- /var/tmp/diff_new_pack.HM4LLk/_old 2017-08-31 21:03:50.189261089 +0200 +++ /var/tmp/diff_new_pack.HM4LLk/_new 2017-08-31 21:03:50.205258842 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-JsonWeb # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,54 +16,40 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-JsonWeb Version: 0.8.2 Release: 0 -Summary: Quickly add json serialization and deserialization to your python classes +Summary: Add JSON (de)serialization to your python objects License: BSD-3-Clause Group: Development/Languages/Python Url: http://www.jsonweb.info/ -Source: https://pypi.python.org/packages/source/J/JsonWeb/JsonWeb-%{version}.tar.gz -BuildRequires: python-coverage -BuildRequires: python-devel -BuildRequires: python-nose +Source: https://files.pythonhosted.org/packages/source/J/JsonWeb/JsonWeb-%{version}.tar.gz +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages %description -JsonWeb -======== -Add JSON (de)serialization to your python objects : - - >>> from jsonweb import decode, encode - >>> @encode.to_object() - ... @decode.from_object() - ... class User(object): - ... def __init__(self, nick, email): - ... self.nick = nick - ... self.email = email - >>> json_str = encode.dumper(User("cool_user123", "cool_user123@example.com")) - >>> print json_str - {"nick": "cool_user123", "__type__": "User", "email": "cool_user123@example.com"} - >>> user = decode.loader(json_str) - >>> print user.nick - cool_user123 - >>> print user - <User object at 0x10145e390> +Quickly add json serialization and deserialization +to your python classes. %prep %setup -q -n JsonWeb-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -nosetests +%python_expand nosetests-%{$python_bin_suffix} -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst %{python_sitelib}/*
participants (1)
-
root@hilbert.suse.de