commit 02edd310a20b8b98713b5de4c7969913689be517a156cb0a8bbf0a0bb0ddb5c7 Author: Adrian Schröter Date: Fri May 3 23:17:37 2024 +0200 Sync from SUSE:SLFO:Main python-tomli-w revision a5ee1ae27cdfe1f87fcfdbe21c47b827 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/python-tomli-w.changes b/python-tomli-w.changes new file mode 100644 index 0000000..de71d71 --- /dev/null +++ b/python-tomli-w.changes @@ -0,0 +1,40 @@ +------------------------------------------------------------------- +Fri Apr 21 12:37:35 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:45:26 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Wed Jul 13 14:15:14 UTC 2022 - Ben Greiner + +- Remove pytest-randomly from requirements for easier inclusion + into Ring1 + +------------------------------------------------------------------- +Fri Feb 25 11:48:21 UTC 2022 - Ferdinand Thiessen + +- 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. + +------------------------------------------------------------------- +Fri Oct 15 17:48:29 UTC 2021 - Ben Greiner + +- Initial specfile for version 0.3.0 +- Requirement of full flit (not flit-core) diff --git a/python-tomli-w.spec b/python-tomli-w.spec new file mode 100644 index 0000000..ef275ae --- /dev/null +++ b/python-tomli-w.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-tomli-w +# +# 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/ +# + + +%{?sle15_python_module_pythons} +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 base >= 3.7} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module pip} +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 diff --git a/tomli-w-1.0.0-gh.tar.gz b/tomli-w-1.0.0-gh.tar.gz new file mode 100644 index 0000000..e8890c4 --- /dev/null +++ b/tomli-w-1.0.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fe1fb4696899c01356ef4e028c975103abf62e5fa9472f31f1714100f1b065d +size 63862