17 Commits

Author SHA256 Message Date
4d6fe9c149 Accepting request 1317439 from devel:languages:python
- It's using pytest and we need pytest_arch.
- disable testsuite atm as it can not find ijson itself in the
  testsuite run
- Update to 3.4.0.post0:
  - Added support for PEP 489 multi-phase initialisation and
    per-module state for our C extension, allowing us to support
    sub-interpreters with per-interpreter GIL.
  - Advertise support for free-threading python mode.
  - Removed support for Python < 3.9.
  - Enhanced generators so they yield all possible results to users
    before errors are raised (#123).
  - Added `ijson.ALL_BACKENDS` constant listing all supported
    backends (which might or not be available at runtime).
  - Added a `capabilities` constant to each backend describing
    which capabilities it supports.
  - Exposing backend's name under ``<backend>.backend_name``, and
    default backend's name under ``ijson.backend_name``. This is
    similar to the already existing ``name`` constant, only
    slightly better named to hopefully avoid confusion.
  - Restructured source code so all code lives under `src/`, and
    the `ijson.backends._yajl2` extension under
    `src/ijson/backends/ext/_yajl2`. This allows C backend tests to
    actually run on cibuildwheel.
  - Improved performance of `parse` routine in C backend by ~4%.
  - Fixed several potential stability issues in C backend around
    correct error handling.
  - Fixed corner-case wrong behaviour of `yajl2_c` backend, which
    didn't work correctly with user-provided event names.
  - Pointing to our own fork of yajl (for when we build it
    ourselves) that contains fixes for all known CVEs (#126).
  - Removed leftover compatibility bits in the C backend.
  - Fixed potential issue with `yajl` and `yajl2` backends where
    crashes could occur at interpreter shutdown.
  - Removed tox.
  - Moved static project metadata to `pyproject.toml`.

OBS-URL: https://build.opensuse.org/request/show/1317439
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ijson?expand=0&rev=8
2025-11-13 16:26:42 +00:00
2bb7554737 - It's using pytest and we need pytest_arch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=15
2025-11-12 20:49:30 +00:00
b195c5b90b - disable testsuite atm as it can not find ijson itself in the
testsuite run

- Update to 3.4.0.post0:
  - Added support for PEP 489 multi-phase initialisation and
    per-module state for our C extension, allowing us to support
    sub-interpreters with per-interpreter GIL.
  - Advertise support for free-threading python mode.
  - Removed support for Python < 3.9.
  - Enhanced generators so they yield all possible results to users
    before errors are raised (#123).
  - Added `ijson.ALL_BACKENDS` constant listing all supported
    backends (which might or not be available at runtime).
  - Added a `capabilities` constant to each backend describing
    which capabilities it supports.
  - Exposing backend's name under ``<backend>.backend_name``, and
    default backend's name under ``ijson.backend_name``. This is
    similar to the already existing ``name`` constant, only
    slightly better named to hopefully avoid confusion.
  - Restructured source code so all code lives under `src/`, and
    the `ijson.backends._yajl2` extension under
    `src/ijson/backends/ext/_yajl2`. This allows C backend tests to
    actually run on cibuildwheel.
  - Improved performance of `parse` routine in C backend by ~4%.
  - Fixed several potential stability issues in C backend around
    correct error handling.
  - Fixed corner-case wrong behaviour of `yajl2_c` backend, which
    didn't work correctly with user-provided event names.
  - Pointing to our own fork of yajl (for when we build it
    ourselves) that contains fixes for all known CVEs (#126).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=14
2025-11-12 20:47:55 +00:00
f981a0406c Accepting request 1280858 from devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1280858
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ijson?expand=0&rev=7
2025-05-30 12:34:07 +00:00
e2eff0b12f - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=12
2025-05-28 12:13:01 +00:00
7e6ed8bddc Accepting request 1181244 from devel:languages:python
- update to 3.3.0:
  * Removed support for Python 2.7 and 3.4, 3.5+ is still
    supported.
  * Distribute the existing `benchmark.py` script
    as ``ijson.benchmark``.

  * Adapted ``yajl2_c`` async generators to work against PyPy
    when building ijson to force/skip building the
- update to 3.1.4

OBS-URL: https://build.opensuse.org/request/show/1181244
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ijson?expand=0&rev=6
2024-06-17 17:30:14 +00:00
82566f6142 - update to 3.3.0:
* Removed support for Python 2.7 and 3.4, 3.5+ is still
    supported.
  * Distribute the existing `benchmark.py` script
    as ``ijson.benchmark``.
  * Adapted ``yajl2_c`` async generators to work against PyPy
    when building ijson to force/skip building the
- update to 3.1.4

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=10
2024-06-17 06:33:17 +00:00
49194e3b5e Accepting request 1100746 from devel:languages:python
- 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/request/show/1100746
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ijson?expand=0&rev=5
2023-07-26 11:24:30 +00:00
d5488909b2 - 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
e5350a3556 Accepting request 1092288 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1092288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ijson?expand=0&rev=4
2023-06-11 17:56:13 +00:00
08d3b98f8d Accepting request 1092286 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1092286
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=6
2023-06-11 12:56:23 +00:00
1bb4e13f49 Accepting request 934416 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/934416
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ijson?expand=0&rev=3
2021-11-28 20:30:22 +00:00
559ca9bf2d Accepting request 934410 from home:darix:apps
- update to 3.1.4 
  * Fixed bug in ``yajl2_c`` backend introduced in 3.1.0
    where ``ijson.items`` didn't work correctly
    against member names containing ``.`` (#41).
  * Python backend raises errors on incomplete JSON content
    that previously wasn't recognised as such,
    aligning itself with the rest of the backends (#42).
  
  Contains 3.1.3:
  
  * Python backed correctly raises errors
    when JSON numbers with leading zeros
    are found in the stream (#40).
  * Likewise, JSON numbers with fractions
    where the decimal point is not surrounded
    by at least one digit on both sides
    also produce an error now
    on the python backend.
  * Fixed detection of file objects
    with generator-based ``read`` coroutines
    (i.e., a ``read`` generator decorated with ``@types.coroutine``)
    for the purpose of automatically routing user calls
    done through the main entry points.
    For example, when using ``aiofiles`` objects
    users could invoke ``async for item in ijson.parse_async(f)``
    but not ``async for item in ijson.parse(f)``,
    while the latter has been possible since 3.1
    for native coroutines.
  
  Contains 3.1.2.post0:

OBS-URL: https://build.opensuse.org/request/show/934410
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=5
2021-11-28 19:13:31 +00:00
ae14d5361c Accepting request 793337 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/793337
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ijson?expand=0&rev=2
2020-04-13 10:53:07 +00:00
Tomáš Chvátal
c53ce13d8f Accepting request 792735 from home:mcalabkova:branches:devel:languages:python
- update to 3.0
  * Exposing backend's name under ``<backend>.backend``,
  and default backend's name under ``ijson.backend``.
  * Exposing ``ijson.sendable_list`` to users in case it comes in handy.
  * Improved the protocol for user-facing coroutines,
  where instead of having to send a final, empty bytes string
  to finish the parsing process
  users can simply call ``.close()`` on the coroutine.
  * Including C code in coverage measurements,
  and increased overall code coverage up to 99%.
  * Full re-design of ijson.
  * Initial support for ``asyncio`` in python 3.5+.
  * Exposure of underlying infrastructure implementing the push model.
  * C extension broken down into separate source files
  for easier understanding and maintenance.
  * Fixed a deprecation warning in the C backend
  present in python 3.8 when parsing Decimal values.
  * New `kvitems` method in all backends.
  Like `items`, it takes a prefix,
  and iterates over the key/value pairs of matching objects
  (instead of iterating over objects themselves, like in `items`).
  * When using python 2, all backends now return
  `map_key` values as `unicode` objects, not `str`.
  * Including more files in source distributions (#14).
  * Adjusting python backend to avoid reading off the input stream
  too eagerly (#15).

OBS-URL: https://build.opensuse.org/request/show/792735
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=3
2020-04-12 07:31:19 +00:00
a7595c9fe8 Accepting request 741418 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/741418
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ijson?expand=0&rev=1
2019-10-21 10:32:04 +00:00
Tomáš Chvátal
d3ced8170c Accepting request 741332 from home:jayvdb:py-new
60000+ downloads per day
https://pypistats.org/packages/ijson

OBS-URL: https://build.opensuse.org/request/show/741332
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=1
2019-10-21 07:31:09 +00:00