Sync from SUSE:SLFO:Main python-iniconfig revision f3adb3fa5f345a892ea9b355b6928902

This commit is contained in:
Adrian Schröter 2024-05-03 21:04:11 +02:00
commit 0c129faac9
6 changed files with 167 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

BIN
iniconfig-2.0.0-tests.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
iniconfig-2.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

47
python-iniconfig.changes Normal file
View File

@ -0,0 +1,47 @@
-------------------------------------------------------------------
Mon May 1 19:02:20 UTC 2023 - Benjamin Greiner <code@bnavigator.de>
- Don't catchall filelist
- Clean dependencies
-------------------------------------------------------------------
Fri Apr 21 12:26:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:42:05 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Sun Jan 29 18:27:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <daniel.garcia@suse.com>
- Add python-py as test dependency
-------------------------------------------------------------------
Wed Jul 20 12:01:45 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- BuildRequire itself when building test flavour.
-------------------------------------------------------------------
Tue Nov 10 08:00:10 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 1.1.1:
* fix version determination (thanks @florimondmanca)
* typing stubs (thanks @bluetech)
-------------------------------------------------------------------
Mon Aug 24 13:03:36 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Initial packaging (v1.0.1)
- Build the tests separately because it deadlocks with pytest

88
python-iniconfig.spec Normal file
View File

@ -0,0 +1,88 @@
#
# spec file
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -%{flavor}
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-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: %{python_module base >= 3.7}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module iniconfig}
BuildRequires: %{python_module pytest}
%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
%if !%{with test}
%build
%pyproject_wheel
%install
%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}/iniconfig
%{python_sitelib}/iniconfig-%{version}.dist-info
%endif
%changelog