15
0
Files
python-jsonpickle/python-jsonpickle.spec

101 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-jsonpickle
#
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
# Copyright (c) 2021 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 modname jsonpickle
%bcond_without python2
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
%bcond_with ringdisabled
Name: python-jsonpickle
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
Version: 2.0.0
Release: 0
Summary: Python library for serializing any arbitrary object graph into JSON
License: BSD-3-Clause
URL: https://github.com/jsonpickle/jsonpickle
Source: https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-%{version}.tar.gz
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
BuildRequires: %{python_module importlib_metadata if %python-base < 3.8}
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
BuildRequires: %{python_module setuptools}
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
BuildRequires: %{python_module toml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
%if 0%{python_version_nodots} < 38
Requires: python-importlib_metadata
%endif
Recommends: python-simplejson
Suggests: python-demjson
Suggests: python-ujson
Suggests: python-yajl
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
Suggests: python-numpy
Suggests: python-pandas
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module SQLAlchemy}
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
BuildRequires: %{python_module ecdsa}
BuildRequires: %{python_module pymongo}
BuildRequires: %{python_module pytest}
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module simplejson}
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
%if ! 0%{?_with_ringdisabled}
# Test these in a normal devel project or locally, but not when staging with Ring1
BuildRequires: %{python_module demjson}
BuildRequires: %{python_module feedparser}
BuildRequires: %{python_module ujson}
BuildRequires: %{python_module pandas if (%python-base without python36-base)}
BuildRequires: %{python_module scikit-learn if (%python-base without python36-base)}
%endif
%if %{with python2}
BuildRequires: python-enum34
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
BuildRequires: python-jsonlib
%endif
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
# /SECTION
%ifpython2
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
Suggests: python-enum34
Suggests: python-jsonlib
%endif
%python_subpackages
%description
Python library for serializing any arbitrary object graph into JSON.
It can take almost any Python object and turn the object into JSON.
Additionally, it can reconstitute the object back into Python.
%prep
%autosetup -p1 -n %{modname}-%{version}
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
sed -i 's/--flake8 --black --cov//' pytest.ini
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
python36_ignorefiles="--ignore jsonpickle/ext/numpy.py \
--ignore jsonpickle/ext/pandas.py"
%pytest -ra ${$python_ignorefiles} %{?_with_ringdisabled:--ignore jsonpickle/ext/pandas.py}
%files %{python_files}
Accepting request 872669 from home:bnavigator:branches:devel:languages:python - Update to version 2.0.0 * Major release: the serialized JSON format now preserves dictionary identity, which is a subtle change in the serialized format. (#351) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) - Changes in v1.5.2 * Patch release to avoid the change in behavior from the preservation of dict identity. The next release will be v2.0.0. (#351) * This relese does not include the performance improvements from v1.5.1. * Pandas DataFrame objects with multilevel columns are now supported. (#346) (+347) * Numpy 1.20 is now officially supported. (#336) * Python 3.9 is now officially supported. (+348) * Achieved a small speedup for _get_flattener by merging type checks. (+349) - Changes in v1.5.1 * The performance of the unpickler was drastically improved by avoiding tag checks for basic Python types. (+340) * decode() documentation improvements. (+341) * Serialization of Pandas DataFrame objects that contain timedelta64[ns] dtypes are now supported. (+330) (#331) * Dictionary identity is now preserved. For example, if the same dictionary appears twice in a list, the reconstituted list will now contain two references to the same dictionary. (#255) (+332) OBS-URL: https://build.opensuse.org/request/show/872669 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpickle?expand=0&rev=20
2021-02-16 10:37:30 +00:00
%license LICENSE
%doc README.rst CHANGES.rst
%{python_sitelib}/jsonpickle
%{python_sitelib}/jsonpickle-%{version}*-info
%changelog