From 5190aec1f0a631fc7eddbf1e241374fd81fafc4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 12 Jul 2024 12:19:52 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 saltbundlepy-iniconfig revision 20600c9804a0a5ef3096f4e7b0555a88 --- .gitattributes | 23 +++++++++ _multibuild | 3 ++ iniconfig-2.0.0-tests.tar.gz | 3 ++ iniconfig-2.0.0.tar.gz | 3 ++ saltbundlepy-iniconfig.changes | 31 ++++++++++++ saltbundlepy-iniconfig.spec | 90 ++++++++++++++++++++++++++++++++++ 6 files changed, 153 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 iniconfig-2.0.0-tests.tar.gz create mode 100644 iniconfig-2.0.0.tar.gz create mode 100644 saltbundlepy-iniconfig.changes create mode 100644 saltbundlepy-iniconfig.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/_multibuild b/_multibuild new file mode 100644 index 0000000..83bd4e9 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/iniconfig-2.0.0-tests.tar.gz b/iniconfig-2.0.0-tests.tar.gz new file mode 100644 index 0000000..b34d3fb --- /dev/null +++ b/iniconfig-2.0.0-tests.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee33adf27310b0fc9b41abc504ca95925083762bcd7bec28cdbaf42fb215bcb3 +size 8077 diff --git a/iniconfig-2.0.0.tar.gz b/iniconfig-2.0.0.tar.gz new file mode 100644 index 0000000..1b557bc --- /dev/null +++ b/iniconfig-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3 +size 4646 diff --git a/saltbundlepy-iniconfig.changes b/saltbundlepy-iniconfig.changes new file mode 100644 index 0000000..6c7858c --- /dev/null +++ b/saltbundlepy-iniconfig.changes @@ -0,0 +1,31 @@ +------------------------------------------------------------------- +Sun Jan 29 18:27:24 UTC 2023 - Dirk Müller + +- update to 2.0.0: + * Drop Python 3.6 + * Add Python 3.11 support + * type hints added +- use gh tarball for tests + +------------------------------------------------------------------- +Mon Dec 5 12:45:15 UTC 2022 - Daniel Garcia + +- Add python-py as test dependency + +------------------------------------------------------------------- +Wed Jul 20 12:01:45 UTC 2022 - Steve Kowalik + +- BuildRequire itself when building test flavour. + +------------------------------------------------------------------- +Tue Nov 10 08:00:10 UTC 2020 - Dirk Mueller + +- update to 1.1.1: + * fix version determination (thanks @florimondmanca) + * typing stubs (thanks @bluetech) + +------------------------------------------------------------------- +Mon Aug 24 13:03:36 UTC 2020 - Marketa Calabkova + +- Initial packaging (v1.0.1) +- Build the tests separately because it deadlocks with pytest diff --git a/saltbundlepy-iniconfig.spec b/saltbundlepy-iniconfig.spec new file mode 100644 index 0000000..69ca9e5 --- /dev/null +++ b/saltbundlepy-iniconfig.spec @@ -0,0 +1,90 @@ +# +# spec file for package saltbundlepy-iniconfig +# +# 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/ +# + + +%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}} +%define pythons saltbundlepy + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -%{flavor} +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: saltbundlepy-iniconfig%{psuffix} +Version: 2.0.0 +Release: 0 +Summary: iniconfig: brain-dead simple config-ini parsing +License: MIT +Group: Development/Languages/Python +URL: https://github.com/RonnyPfannschmidt/iniconfig +Source: https://files.pythonhosted.org/packages/source/i/iniconfig/iniconfig-%{version}.tar.gz +Source1: https://github.com/pytest-dev/iniconfig/archive/refs/tags/v%{version}.tar.gz#/iniconfig-%{version}-tests.tar.gz +BuildRequires: %{saltbundlepy_module base >= 3.7} +BuildRequires: %{saltbundlepy_module hatch-vcs} +BuildRequires: %{saltbundlepy_module hatchling} +BuildRequires: %{saltbundlepy_module pip} +BuildRequires: %{saltbundlepy_module wheel} +BuildRequires: fdupes +BuildRequires: saltbundlepy-rpm-macros +BuildArch: noarch +%if %{with test} +BuildRequires: %{saltbundlepy_module iniconfig} +BuildRequires: %{saltbundlepy_module pytest} +BuildRequires: %{saltbundlepy_module py} +%endif +%python_subpackages + +%description +iniconfig is a small and simple INI-file parser module +having a unique set of features: + +* tested against Python2.4 across to Python3.2, Jython, PyPy +* maintains order of sections and entries +* supports multi-line values with or without line-continuations +* supports "#" comments everywhere +* raises errors with proper line-numbers +* no bells and whistles like automatic substitutions +* iniconfig raises an Error if two sections have the same name. + +%prep +%setup -q -n iniconfig-%{version} -a1 + +%build +%pyproject_wheel + +%install +%if !%{with test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +%pytest +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/* +%endif + +%changelog