15
0
forked from pool/python-ujson
Files
python-ujson/python-ujson.spec
Tomáš Chvátal 8f8424f2ad Accepting request 783435 from home:pgajdos:python
- version update to 2.0.1
  Added
    Include license file in manifest (#288) @kszucs
    added "static" to C functions, where possible (#238) @WGH-
    bring back benchmark introduction (#234) @rdpate
    Add syntax highlighting to README (#255) @adamchainz
    Test on new Travis CPUs (#350) @hugovk
    Test on GitHub Actions (#348) @hugovk
    Test on Python 3.9-dev to avoid surprises (#349) @hugovk
    Use Release Drafter to draft releases (#365) @hugovk
    Deploy from GitHub Actions instead of Travis CI (#364) @hugovk
    Autodeploy to PyPI from Travis CI (#357) @hugovk
    Lint with pre-commit: Black, isort, Flake8 (#354) @hugovk
  Changed
    Use Google's double-conversion lib to fix floating-point precision when converting doubles to and from strings, improves double encoding by 4-5x (eb7d894) @Jahaja
    Reduce default buffer on stack size (#281) @ncopa
    Update ultrajsondec.c (#260) @markpiekarz
    Indent dict values (#217) @orivej
    Test with pytest (#363) @hugovk
    Less Travis (#361) @hugovk
    Update links (#356) @hugovk
    Tests: Remove unused, unmaintained blist (#362) @hugovk
    Only deploy sdist from Travis CI (#359) @hugovk
  Removed
    Drop EOL Python 2.5-2.6, 3.2-3.4 and add 3.7-3.8 (#298) @hugovk
    Remove serialization of date/datetime objects (50181f0) @Jahaja
    Remove double_precision encoding option and precise_float decoding option (eb7d894) @Jahaja
    Remove generic serialization of objects/iterables (53f85b1) @Jahaja
    Remove support for __json__ method on str (5f98f01) @Jahaja
    Remove blist tests (3a6ba52) @Jahaja

OBS-URL: https://build.opensuse.org/request/show/783435
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ujson?expand=0&rev=15
2020-03-10 14:38:08 +00:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package python-ujson
#
# Copyright (c) 2020 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-%{**}}
%define skip_python2 1
Name: python-ujson
Version: 2.0.1
Release: 0
Summary: JSON encoder and decoder for Python
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/esnme/ultrajson
Source: https://files.pythonhosted.org/packages/source/u/ujson/ujson-%{version}.tar.gz
# unbundle double-conversion (https://github.com/ultrajson/ultrajson/issues/375)
Patch0: python-ujson-system-double-conversion.patch
BuildRequires: %{python_module blist}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: double-conversion-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
%python_subpackages
%description
UltraJSON is a JSON encoder and decoder written in pure C with
bindings for Python 2.5+ and 3. For a different C/C++ JSON
decoder experience please checkout ujson4c_, based on UltraJSON.
%prep
%setup -q -n ujson-%{version}
%autopatch -p1
%build
rm -r deps
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch
%files %{python_files}
%doc README.rst
%{python_sitearch}/ujson.*
%{python_sitearch}/ujson-%{version}-py*.egg-info
%changelog