14
0
forked from pool/python-ijson
Files
python-ijson/python-ijson.spec
Dirk Mueller 6ca3282eb3 - update to 3.2.3:
* Fixed several issues in the ``yajl2_c`` backend
    and its async generators that were only made apparent
    when running it with PyPy and/or a CPython debug build (#101).
  * Adapted ``yajl2_c`` async generators to work against PyPy 
    shortcomings
  * Fixed compilation and ``async`` support
    of the ``yajl2_c`` backend in pyhthon 3.12 (#98).
  * Check ``IJSON_BUILD_YAJL2C`` environment variable
    when building ijson to force/skip building the 
    ``yajl2_c`` backend (#102).
  * Added support for Python 3.12.
  * Fixed a memory leak in the ``yajl2_c`` backend
    triggered only when the underlying ``yajl`` functions
    reported a failure (#97).
  * New ``ijson.dump`` command-line utility
  * Fixed bug in ``yajl2_c`` backend introduced in 3.1.2
    where random crashes could occur due to an unsafe reference decrement
    when constructing the parse/items/kvitems generators (#66).
  * Mark Python 3.10 and 3.11 as explicitly supported.
- drop tests_asyncio.py source - this comes in the tarball now

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=8
2023-07-26 06:49:49 +00:00

59 lines
1.6 KiB
RPMSpec

#
# spec file for package python-ijson
#
# 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-ijson
Version: 3.2.3
Release: 0
Summary: Iterative JSON parser with a standard Python iterator interface
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/ICRAR/ijson
Source: https://files.pythonhosted.org/packages/source/i/ijson/ijson-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-asyncio
BuildRequires: pkgconfig(yajl)
%python_subpackages
%description
Iterative JSON parser with a standard Python iterator interface.
%prep
%setup -q -n ijson-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pyunittest -v
%files %{python_files}
%doc README.rst
%license LICENSE.txt
%{python_sitearch}/*
%changelog