python-tomli-w/python-tomli-w.spec
Matej Cepl ff33a4dda3 Accepting request 957578 from home:susnux:branches:devel:languages:python
- Update to version 1.0.0
  * Removed support for Python 3.6
  * Positional arguments of dump and dumps can no longer be passed by keyword.
  * Revised logic for when the "Array of Tables" syntax will be used.
    AoT syntax is used when at least one of the tables needs multiple
    lines, or a single line wider than 100 chars, when rendered inline.
  * A nested structure no longer alone triggers the AoT syntax.
- Update to version 0.4.0
  * Added support for formatting Python tuples as TOML arrays.
  * Fixed formatting of decimal.Decimal("inf"),
    decimal.Decimal("-inf") and decimal.Decimal("nan").
  * A list of dicts is now rendered using the "Array of Tables"
    syntax if at least one of the tables is a nested structure,
    or at least one of the tables would need a line wider than 100
    chars when rendered inline.

OBS-URL: https://build.opensuse.org/request/show/957578
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomli-w?expand=0&rev=3
2022-02-26 11:28:30 +00:00

63 lines
1.8 KiB
RPMSpec

#
# spec file for package python-tomli-w
#
# Copyright (c) 2022 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() python3-%{**}}
%define skip_python2 1
Name: python-tomli-w
Version: 1.0.0
Release: 0
Summary: A lil' TOML writer
License: MIT
URL: https://github.com/hukkin/tomli-w
# prefer github archive over pypi sdist for pacakged tests
Source: https://github.com/hukkin/tomli-w/archive/refs/tags/%{version}.tar.gz#/tomli-w-%{version}-gh.tar.gz
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-randomly}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tomli}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Tomli-W is a Python library for writing TOML. It is a write-only counterpart to Tomli,
which is a read-only TOML parser.
%prep
%setup -q -n tomli-w-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/tomli_w
%{python_sitelib}/tomli_w-%{version}*-info
%check
%pytest
%changelog