Sync from SUSE:SLFO:Main python-orjson revision 2bbd311227964854923c91f9db5bd60f
This commit is contained in:
commit
4435ef5926
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
9
_service
Normal file
9
_service
Normal file
@ -0,0 +1,9 @@
|
||||
<services>
|
||||
<service name="cargo_vendor" mode="disabled">
|
||||
<param name="srctar">orjson-*.tar.gz</param>
|
||||
<param name="compression">xz</param>
|
||||
<param name="update">true</param>
|
||||
</service>
|
||||
<service name="cargo_audit" mode="disabled"></service>
|
||||
</services>
|
||||
|
5
cargo_config
Normal file
5
cargo_config
Normal file
@ -0,0 +1,5 @@
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
BIN
orjson-3.8.10.tar.gz
(Stored with Git LFS)
Normal file
BIN
orjson-3.8.10.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
42
python-orjson.changes
Normal file
42
python-orjson.changes
Normal file
@ -0,0 +1,42 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 19:01:31 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
- 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 <yarunachalam@suse.com>
|
||||
|
||||
- Update to 3.8.1
|
||||
- Build maintenance for Python 3.11.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 21 12:11:03 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- 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 <jayvdb@gmail.com>
|
||||
|
||||
- Activate test suite
|
||||
- Tidy spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 13 07:52:11 UTC 2022 - Adrian Schröter <adrian@suse.de>
|
||||
|
||||
- initial package of version 3.7.7
|
||||
|
74
python-orjson.spec
Normal file
74
python-orjson.spec
Normal file
@ -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
|
BIN
vendor.tar.xz
(Stored with Git LFS)
Normal file
BIN
vendor.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user