commit 4435ef5926477ab90791b033ff937b6f35f95f99fbda21aa83ae8fab0484d1c7 Author: Adrian Schröter Date: Fri May 3 21:44:31 2024 +0200 Sync from SUSE:SLFO:Main python-orjson revision 2bbd311227964854923c91f9db5bd60f diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..f0b22d8 --- /dev/null +++ b/_service @@ -0,0 +1,9 @@ + + + orjson-*.tar.gz + xz + true + + + + diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/orjson-3.8.10.tar.gz b/orjson-3.8.10.tar.gz new file mode 100644 index 0000000..978a0d4 --- /dev/null +++ b/orjson-3.8.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcf6adb4471b69875034afab51a14b64f1026bc968175a2bb02c5f6b358bd413 +size 836541 diff --git a/python-orjson.changes b/python-orjson.changes new file mode 100644 index 0000000..e1054d0 --- /dev/null +++ b/python-orjson.changes @@ -0,0 +1,42 @@ +------------------------------------------------------------------- +Thu Apr 13 19:01:31 UTC 2023 - Matej Cepl + +- Update to 3.8.10: + - Fix compatibility with CPython 3.12.0a7. + - Fix compatibility with big-endian architectures. + - Fix crash in serialization. + - Fix parallel initialization of orjson. + +------------------------------------------------------------------- +Mon Jan 2 20:07:26 UTC 2023 - Dirk Müller + +- update to 3.8.3: + * `orjson.dumps()` accepts `option=None` per `Optional[int]` type. + * Fix tests on 32-bit for `numpy.intp` and `numpy.uintp`. + * Build now depends on rustc 1.60 or later. + * Support building with maturin 0.13 or 0.14. + +------------------------------------------------------------------- +Fri Oct 28 18:35:24 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 3.8.1 + - Build maintenance for Python 3.11. + +------------------------------------------------------------------- +Wed Sep 21 12:11:03 UTC 2022 - Matej Cepl + +- Update to 3.8.0: + - Support serializing numpy.int16 and numpy.uint16. + - Fix datetime regression tests with tzinfo 2022b. + +------------------------------------------------------------------- +Wed Sep 21 00:35:02 UTC 2022 - John Vandenberg + +- Activate test suite +- Tidy spec + +------------------------------------------------------------------- +Wed Jul 13 07:52:11 UTC 2022 - Adrian Schröter + +- initial package of version 3.7.7 + diff --git a/python-orjson.spec b/python-orjson.spec new file mode 100644 index 0000000..e184925 --- /dev/null +++ b/python-orjson.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-orjson +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-orjson +Version: 3.8.10 +Release: 0 +Summary: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy +License: Apache-2.0 OR MIT +URL: https://github.com/ijl/orjson +Source: https://files.pythonhosted.org/packages/source/o/orjson/orjson-%{version}.tar.gz +Source1: vendor.tar.xz +Source2: cargo_config +BuildRequires: %{python_module maturin >= 0.12.19} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: cargo-packaging +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pendulum} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module xxhash} +BuildRequires: timezone +# /SECTION +%python_subpackages + +%description +orjson is a fast JSON library for Python. +It benchmarks as the fastest Python library for JSON. + +%prep +%autosetup -a1 -n orjson-%{version} +mkdir .cargo +cp %{SOURCE2} .cargo/config + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +# test_numpy_array_d1_uintp and test_numpy_array_d1_intp fail on 32bit +# test_memory_loads_keys occasionally fails on crashes on ppc64le +%pytest_arch -k "not (test_numpy_array_d1_intp or test_numpy_array_d1_uintp or test_memory_loads_keys)" + +%files %{python_files} +%doc README.md CHANGELOG.md +%license LICENSE-APACHE LICENSE-MIT +%{python_sitearch}/orjson* + +%changelog diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..e9e47b7 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4212333980ea33f43d2d9713e375d4a5dca888b1908ee3ced90d6d3b1dd8e21e +size 1641596