forked from pool/python-simplejson
* Updated test & build matrix to include Python 3.12
more strict, by default simplejson will now only consume
- Update to v3.18.0
adding wheels for Python 3.9.
* Fix implicit cast compiler warning in _speedups.c
* simplejson is now available as wheels for OS X and Windows thanks to Travis-CI
and AppVeyor respectively! Many thanks to @aebrahim for getting this party
started.
* Fix issue with iterable_as_array and indent option
* Fix typo in keyword argument name introduced in 3.8.0
* New iterable_as_array encoder option to perform lazy serialization of
any iterable objects, without having to convert to tuple or list.
* Fix typo introduced in 3.7.0 (behavior should be indistinguishable)
e18cc09b68 (commitcomment-11443842)
* Do not cache Decimal class in encoder, only reference the decimal module.
This may make reload work in more common scenarios.
* Fix compilation with MSVC
https://github.com/simplejson/simplejson/pull/119
* simplejson no longer trusts custom str/repr methods for int, long, float
subclasses. These instances are now formatted as if they were exact
instances of those types.
https://github.com/simplejson/simplejson/issues/118
https://github.com/simplejson/simplejson/issues/62
* New item_sort_key option for encoder to allow fine grained
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplejson?expand=0&rev=98
61 lines
1.9 KiB
RPMSpec
61 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-simplejson
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-simplejson
|
|
Version: 3.19.2
|
|
Release: 0
|
|
Summary: Extensible JSON encoder/decoder for Python
|
|
License: AFL-2.1 OR MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/simplejson/simplejson
|
|
Source: https://files.pythonhosted.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
%python_subpackages
|
|
|
|
%description
|
|
simplejson is an 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 speed boost.
|
|
|
|
%prep
|
|
%setup -q -n simplejson-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand rm -rf %{buildroot}%{$python_sitearch}/simplejson/tests/
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%pytest_arch
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc CHANGES.txt README.rst
|
|
%{python_sitearch}/simplejson*
|
|
|
|
%changelog
|