From df9735c89d8ed70512416e8f8dd4afc488e2f2954492fe72dccf2fe4c1f005ce Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:30:31 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytoml?expand=0&rev=15 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + b212790.tar.gz | 3 ++ python-pytoml.changes | 85 +++++++++++++++++++++++++++++++++++++++++++ python-pytoml.spec | 67 ++++++++++++++++++++++++++++++++++ pytoml-0.1.21.tar.gz | 3 ++ 6 files changed, 182 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 b212790.tar.gz create mode 100644 python-pytoml.changes create mode 100644 python-pytoml.spec create mode 100644 pytoml-0.1.21.tar.gz 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/b212790.tar.gz b/b212790.tar.gz new file mode 100644 index 0000000..38c976d --- /dev/null +++ b/b212790.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:551bae7c70d83a315a3ed092caa3fbc6b2e8d65fb52d0f555647cbc3f5eb5f3b +size 19525 diff --git a/python-pytoml.changes b/python-pytoml.changes new file mode 100644 index 0000000..f5d27db --- /dev/null +++ b/python-pytoml.changes @@ -0,0 +1,85 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:35 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Fri Apr 21 12:32:21 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Mar 12 07:31:19 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Fri Aug 9 13:30:32 UTC 2019 - Ondřej Súkup + +- update to 0.1.21 +- add "deprecation notice" to summary + * Fix incorrectly stripped new-lines at the beginning of strings + +------------------------------------------------------------------- +Thu Mar 7 11:15:41 UTC 2019 - Tomáš Chvátal + +- Fix the test call + +------------------------------------------------------------------- +Fri Dec 7 10:20:44 UTC 2018 - Tomáš Chvátal + +- Fix fdupes call +- Update to 0.1.20: + * many small bugfixes around + * Include license file +- Update the test tgz tarball from the git + +------------------------------------------------------------------- +Fri May 18 06:07:49 UTC 2018 - bruno@ioda-net.ch + +- Update to bugfix version 0.1.14 +- Packaging + + add raw source for LICENSE (next tgz will contain it) + + spec-cleaner (date,url,license) + + add %check section to run tests + + add specific author's fork tgz of toml-test + +------------------------------------------------------------------- +Tue Jun 13 07:53:17 UTC 2017 - bruno@ioda-net.ch + +- Update to bugfix version 0.1.13 +- Move to python singlespec build +- Update copyright year +- Use pythonhosted host for source download +- Use normal tar.gz source + +------------------------------------------------------------------- +Mon Aug 29 20:38:32 UTC 2016 - bruno@ioda-net.ch + +- Update to bugfix revision 0.1.11 + - Fix issues with sort_key. + - Tweak tests to handle failure correctly. +- A python3-pytoml packages is available in d:l:python3 + - Notice to packagers : if you update python2, update python3 + version too. + +------------------------------------------------------------------- +Tue Jun 28 08:47:36 UTC 2016 - kgronlund@suse.com + +- Update sourcelink + +------------------------------------------------------------------- +Tue Jun 28 00:31:19 UTC 2016 - kgronlund@suse.com + +- Updated description and license for package. + +------------------------------------------------------------------- +Wed Jun 1 20:52:56 UTC 2016 - kgronlund@suse.com + +- Update to 0.1.10 + +------------------------------------------------------------------- +Wed Jan 27 19:19:32 UTC 2016 - mvyskocil@opensuse.org + +- Initial openSUSE packaging + diff --git a/python-pytoml.spec b/python-pytoml.spec new file mode 100644 index 0000000..6e14f1d --- /dev/null +++ b/python-pytoml.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-pytoml +# +# Copyright (c) 2025 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-pytoml +Version: 0.1.21 +Release: 0 +Summary: TOML-0.4.0 parser/writer for Python +License: MIT +URL: https://github.com/avakar/pytoml +Source0: https://files.pythonhosted.org/packages/source/p/pytoml/pytoml-%{version}.tar.gz +# toml-test for tests from author's fork with specific commit +Source1: https://github.com/avakar/toml-test/archive/b212790.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python +BuildArch: noarch +%python_subpackages + +%description +A specs-conforming and strict parser and writer for TOML files. +The library currently supports version 0.4.0 of the specs. + +The pytoml project is no longer being actively maintained. +Consider using the toml package instead. + +%prep +%setup -q -n pytoml-%{version} +tar -C test -xzf%{SOURCE1} +cd test +mv toml-test-b212790a6b7367489f389411bda009e5ff765f20 toml-test + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export PYTHONDONTWRITEBYTECODE=1 +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test/test.py + +%files %{python_files} +%license LICENSE +%{python_sitelib}/pytoml/ +%{python_sitelib}/pytoml-%{version}.dist-info/ + +%changelog diff --git a/pytoml-0.1.21.tar.gz b/pytoml-0.1.21.tar.gz new file mode 100644 index 0000000..3c57d2e --- /dev/null +++ b/pytoml-0.1.21.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8eecf7c8d0adcff3b375b09fe403407aa9b645c499e5ab8cac670ac4a35f61e7 +size 8783