Sync from SUSE:SLFO:Main python-ini2toml revision 872f1ba1e68432a65ed1cd0482196321

This commit is contained in:
Adrian Schröter 2024-06-30 14:23:41 +02:00
parent 6c63c55090
commit f3140de990
4 changed files with 72 additions and 8 deletions

BIN
ini2toml-0.11.3.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
ini2toml-0.15.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,56 @@
-------------------------------------------------------------------
Tue May 14 19:03:10 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.15:
* Due to the change in API for pyproject-fmt introduce a
dependency cap.
-------------------------------------------------------------------
Fri May 3 07:41:22 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.14:
* Introduce LiteTranslator and FullTranslator as convenience
classes for more deterministic behaviour, :pr:`95`.
* setuptools plugin: Fix ValueError when setup.cfg contains
[options.packages.find] but also lists [options] packages =
... explicitly as a list of package names, :issue:`93`.
* Fix ValueError when setup.cfg contains
[options.packages.find] but also lists [options] packages =
... explicitly as a list of package names, :issue:`93`.
* pytest plugin: Remove comments when converting addopts with
multi-line values, :issue:`98`.
* Remove comments when converting addopts with multi-line
values, :issue:`98`.
-------------------------------------------------------------------
Wed Mar 20 13:18:28 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Add python-tomli requirement
-------------------------------------------------------------------
Thu Dec 7 22:06:21 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.13:
* Fix errors when ``isort`` is installed in the same
environment as ``ini2toml``
* Add support for ``file:`` directive in ``install_requires``
and ``extras_require``
-------------------------------------------------------------------
Tue May 30 06:22:39 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Remove ConfigUpdater dependency for tests when it's not building for
the -full or -all subpackage.
-------------------------------------------------------------------
Fri May 5 00:13:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.12:
* Fix logging in case of early errors while loading plugins,
* Log warning if ``flake8`` and ``devpi`` sections are
translation, prompting the user to review the output
* Fix parsing of ``filterwarnings``
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:26:55 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:26:55 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file # spec file for package python-ini2toml
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 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
@ -15,6 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test" %if "%{flavor}" == "test"
@ -49,7 +50,7 @@
%define skip_python2 1 %define skip_python2 1
Name: python-ini2toml%{psuffix} Name: python-ini2toml%{psuffix}
Version: 0.11.3 Version: 0.15
Release: 0 Release: 0
Summary: Automatic conversion of .ini/cfg files to TOML equivalents Summary: Automatic conversion of .ini/cfg files to TOML equivalents
License: MPL-2.0 License: MPL-2.0
@ -60,7 +61,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-packaging >= 20.7 Requires: python-packaging >= 20.7
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
%if %{with test} %if %{with test}
BuildRequires: %{python_module packaging >= 20.7} BuildRequires: %{python_module packaging >= 20.7}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
@ -74,6 +75,11 @@ BuildRequires: %{python_module ini2toml-full = %{version}}
%if %{with all} %if %{with all}
BuildRequires: %{python_module ini2toml-all = %{version}} BuildRequires: %{python_module ini2toml-all = %{version}}
%endif %endif
%if %{with full} || %{with all}
BuildRequires: %{python_module ConfigUpdater}
%endif
%if %{with experimental} %if %{with experimental}
BuildRequires: %{python_module ini2toml-experimental = %{version}} BuildRequires: %{python_module ini2toml-experimental = %{version}}
%endif %endif
@ -91,6 +97,7 @@ file to TOML.
%package lite %package lite
Summary: Python ini2toml[lite] extra requirement Summary: Python ini2toml[lite] extra requirement
Requires: python-ini2toml = %{version} Requires: python-ini2toml = %{version}
Requires: python-tomli
Requires: (python-importlib-metadata if python-base < 3.8) Requires: (python-importlib-metadata if python-base < 3.8)
Requires: (python-tomli-w >= 0.4.0 with python-tomli-w < 2) Requires: (python-tomli-w >= 0.4.0 with python-tomli-w < 2)
@ -113,6 +120,7 @@ The ini2toml[full] extra requirements for %{python_flavor}-ini2toml
%package all %package all
Summary: Python ini2toml[all] extra requirement Summary: Python ini2toml[all] extra requirement
Requires: python-ini2toml = %{version} Requires: python-ini2toml = %{version}
Requires: python-tomli
Requires: (python-configupdater >= 3.0.1 with python-configupdater < 4) Requires: (python-configupdater >= 3.0.1 with python-configupdater < 4)
Requires: (python-importlib-metadata if python-base < 3.8) Requires: (python-importlib-metadata if python-base < 3.8)
Requires: (python-tomli-w >= 0.4.0 with python-tomli-w < 2) Requires: (python-tomli-w >= 0.4.0 with python-tomli-w < 2)
@ -126,7 +134,7 @@ The ini2toml[all] extra requirements for %{python_flavor}-ini2toml
%package experimental %package experimental
Summary: Python ini2toml[experimental] extra requirement Summary: Python ini2toml[experimental] extra requirement
Requires: python-ini2toml = %{version} Requires: python-ini2toml = %{version}
Requires: python-pyproject-fmt >= 0.4.0 Requires: (python-pyproject-fmt >= 0.4.0 with python-pyproject-fmt < 2)
%description experimental %description experimental
The ini2toml[experimental] extra requirements for %{python_flavor}-ini2toml The ini2toml[experimental] extra requirements for %{python_flavor}-ini2toml
@ -149,6 +157,8 @@ sed -i 's/--cov ini2toml --cov-report term-missing//' setup.cfg
%if %{with test} %if %{with test}
%check %check
%if %{without all} && %{without full} %if %{without all} && %{without full}
rm -v src/ini2toml/drivers/configupdater.py
rm -v src/ini2toml/drivers/full_toml.py
ignoretests=( ignoretests=(
--ignore tests/test_examples.py --ignore tests/test_examples.py
--ignore tests/test_transformations.py --ignore tests/test_transformations.py
@ -161,6 +171,7 @@ ignoretests=(
--ignore tests/plugins/test_mypy.py --ignore tests/plugins/test_mypy.py
--ignore tests/plugins/test_pytest.py --ignore tests/plugins/test_pytest.py
--ignore tests/plugins/test_setuptools_pep621.py --ignore tests/plugins/test_setuptools_pep621.py
--ignore tests/plugins/test_toml_incompatibilities.py
) )
%endif %endif
%if %{without experimental} %if %{without experimental}