Accepting request 1061934 from devel:languages:python

- update to 2.0.0:
  * Drop Python 3.6
  * Add Python 3.11 support
  * type hints added
- use gh tarball for tests

OBS-URL: https://build.opensuse.org/request/show/1061934
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-iniconfig?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2023-02-25 18:54:42 +00:00 committed by Git OBS Bridge
commit 175727bee6
5 changed files with 27 additions and 10 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32
size 8104

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.

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
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> Mon Dec 5 12:45:15 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file # spec file
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -26,14 +26,19 @@
%bcond_with test %bcond_with test
%endif %endif
Name: python-iniconfig%{psuffix} Name: python-iniconfig%{psuffix}
Version: 1.1.1 Version: 2.0.0
Release: 0 Release: 0
Summary: iniconfig: brain-dead simple config-ini parsing Summary: iniconfig: brain-dead simple config-ini parsing
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/RonnyPfannschmidt/iniconfig URL: https://github.com/RonnyPfannschmidt/iniconfig
Source: https://files.pythonhosted.org/packages/source/i/iniconfig/iniconfig-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/i/iniconfig/iniconfig-%{version}.tar.gz
BuildRequires: %{python_module setuptools} 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: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@ -57,14 +62,14 @@ having a unique set of features:
* iniconfig raises an Error if two sections have the same name. * iniconfig raises an Error if two sections have the same name.
%prep %prep
%setup -q -n iniconfig-%{version} %setup -q -n iniconfig-%{version} -a1
%build %build
%python_build %pyproject_wheel
%install %install
%if !%{with test} %if !%{with test}
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
@ -76,7 +81,7 @@ having a unique set of features:
%if !%{with test} %if !%{with test}
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.txt %doc README.rst
%{python_sitelib}/* %{python_sitelib}/*
%endif %endif