14
0

Accepting request 148421 from home:posophe:branches:devel:languages:python

Made required changes

OBS-URL: https://build.opensuse.org/request/show/148421
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplejson?expand=0&rev=33
This commit is contained in:
Sascha Peilicke
2013-01-15 14:15:26 +00:00
committed by Git OBS Bridge
parent de6f86147f
commit 6fff2e8e33
6 changed files with 105 additions and 5 deletions

View File

@@ -1,3 +1,37 @@
-------------------------------------------------------------------
Fri Jan 11 15:52:36 UTC 2013 - p.drouand@gmail.com
- Initial python3 support
-------------------------------------------------------------------
Fri Jan 11 15:50:05 UTC 2013 - p.drouand@gmail.com
- Update to 3.0.5:
* NOTE: this release only changes the tests, it is
not essential to upgrade
* Tests now run with deprecation warnings printed
* Fixed Python 3 syntax error in simplejson.tool
https://github.com/simplejson/simplejson/issues/49
* Fixed Python 3.3 deprecation warnings in test suite
https://github.com/simplejson/simplejson/issues/48
- Update to 3.0.4 version:
* MSVC compatibility for Python 3.3
https://github.com/simplejson/simplejson/pull/47
- Update to 3.0.3 version:
* Fixes for bugs introduced in 3.0.2
* Fixes for Python 2.5 compatibility
* MSVC compatibility for Python 2.x
https://github.com/simplejson/simplejson/pull/46
- Update to 3.0.0 version:
* Python 3.3 is now supported, thanks to Vinay Sajip
https://github.com/simplejson/simplejson/issues/8
* `sort_keys`/`item_sort_key` now sort on the stringified verison of the
key, rather than the original object. This ensures that the sort
only compares string types and makes the behavior consistent between
Python 2.x and Python 3.x.
* Like other number types, Decimal instances used as keys are now
coerced to strings when use_decimal is True.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Sep 29 19:35:09 UTC 2012 - os-dev@jacraig.com Sat Sep 29 19:35:09 UTC 2012 - os-dev@jacraig.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-simplejson # spec file for package python-simplejson
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products 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,7 +18,7 @@
%define modname simplejson %define modname simplejson
Name: python-%{modname} Name: python-%{modname}
Version: 2.6.2 Version: 3.0.5
Release: 0 Release: 0
Url: http://github.com/simplejson/simplejson Url: http://github.com/simplejson/simplejson
Summary: Simple, fast, extensible JSON encoder/decoder for Python Summary: Simple, fast, extensible JSON encoder/decoder for Python

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Fri Jan 11 15:52:52 UTC 2013 - p.drouand@gmail.com
- Initial python3 support

61
python3-simplejson.spec Normal file
View File

@@ -0,0 +1,61 @@
#
# spec file for package python3-simplejson
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#
%define modname simplejson
Name: python3-%{modname}
Version: 3.0.5
Release: 0
Url: http://github.com/simplejson/simplejson
Summary: Simple, fast, extensible JSON encoder/decoder for Python
License: MIT
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-distribute
Requires: python3-coverage
Requires: python3-nose
%description
simplejson is a simple, fast, complete, correct and extensible
JSON encoder and decoder for Python 2.5+. It is pure Python code
with no dependencies, but includes an optional C extension for a
serious speed boost.
%prep
%setup -q -n %{modname}-%{version}
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
%if 0%{?suse_version} >= 1230
python3 setup.py test
%endif
%files
%defattr(-,root,root)
%doc CHANGES.txt LICENSE.txt README.rst
%{python3_sitearch}/%{modname}/
%{python3_sitearch}/%{modname}-%{version}-py%{py3_ver}.egg-info
%changelog

View File

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

3
simplejson-3.0.5.tar.gz Normal file
View File

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