Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ini2toml for openSUSE:Factory 
checked in at 2022-11-25 14:08:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ini2toml (Old)
 and      /work/SRC/openSUSE:Factory/.python-ini2toml.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ini2toml"

Fri Nov 25 14:08:05 2022 rev:4 rq:1037972 version:0.11.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ini2toml/python-ini2toml.changes  
2022-08-05 19:52:35.345701716 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-ini2toml.new.1597/python-ini2toml.changes    
    2022-11-25 14:08:06.577184402 +0100
@@ -1,0 +2,11 @@
+Thu Nov 24 18:40:31 UTC 2022 - Daniel Garcia <[email protected]>
+
+- Update to 0.11.3:
+  * Fix dependency problems by requiring pyproject-fmt>=0.4.0
+- 0.11.2:
+  * Adapt to changes in pyproject-fmt 0.4.0
+- 0.11.1:
+  * Internal test fixes, minor CI and doc improvements
+  * Only list pyproject-fmt as an experimental dependency on Python 3.7+
+
+-------------------------------------------------------------------

Old:
----
  ini2toml-0.11.tar.gz

New:
----
  ini2toml-0.11.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-ini2toml.spec ++++++
--- /var/tmp/diff_new_pack.gYqdpz/_old  2022-11-25 14:08:07.061186780 +0100
+++ /var/tmp/diff_new_pack.gYqdpz/_new  2022-11-25 14:08:07.065186800 +0100
@@ -46,12 +46,12 @@
 
 %define skip_python2 1
 Name:           python-ini2toml%{psuffix}
-Version:        0.11
+Version:        0.11.3
 Release:        0
 Summary:        Automatic conversion of .ini/cfg files to TOML equivalents
 License:        MPL-2.0
 URL:            https://github.com/abravalheri/ini2toml/
-Source:         
https://files.pythonhosted.org/packages/source/i/ini2toml/ini2toml-0.11.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/i/ini2toml/ini2toml-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
@@ -123,7 +123,7 @@
 %package experimental
 Summary:        Python ini2toml[experimental] extra requirement
 Requires:       python-ini2toml = %{version}
-Requires:       python-pyproject-fmt >= 0.32
+Requires:       python-pyproject-fmt >= 0.4.0
 
 %description experimental
 The ini2toml[experimental] extra requirements for %{python_flavor}-ini2toml

++++++ ini2toml-0.11.tar.gz -> ini2toml-0.11.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/.github/workflows/ci.yml 
new/ini2toml-0.11.3/.github/workflows/ci.yml
--- old/ini2toml-0.11/.github/workflows/ci.yml  2022-06-24 20:52:43.000000000 
+0200
+++ new/ini2toml-0.11.3/.github/workflows/ci.yml        2022-11-23 
17:03:38.000000000 +0100
@@ -27,7 +27,7 @@
     steps:
       - uses: actions/checkout@v3
         with: {fetch-depth: 0}  # deep clone for setuptools-scm
-      - uses: actions/setup-python@v3
+      - uses: actions/setup-python@v4
         with: {python-version: "3.10"}
       - name: Run static analysis and format checkers
         run: pipx run --python python3.10 tox -e lint,typecheck
@@ -60,7 +60,7 @@
     runs-on: ${{ matrix.platform }}
     steps:
       - uses: actions/checkout@v3
-      - uses: actions/setup-python@v3
+      - uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python }}
       - name: Retrieve pre-built distribution files
@@ -97,7 +97,7 @@
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
-      - uses: actions/setup-python@v3
+      - uses: actions/setup-python@v4
         with: {python-version: "3.10"}
       - name: Retrieve pre-built distribution files
         uses: actions/download-artifact@v3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/.pre-commit-config.yaml 
new/ini2toml-0.11.3/.pre-commit-config.yaml
--- old/ini2toml-0.11/.pre-commit-config.yaml   2022-06-24 20:52:43.000000000 
+0200
+++ new/ini2toml-0.11.3/.pre-commit-config.yaml 2022-11-23 17:03:38.000000000 
+0100
@@ -18,8 +18,8 @@
   - id: mixed-line-ending
     args: ['--fix=lf']
 
-- repo: https://github.com/myint/autoflake
-  rev: v1.4
+- repo: https://github.com/PyCQA/autoflake
+  rev: v1.7.7
   hooks:
   - id: autoflake
     args: [
@@ -34,7 +34,7 @@
   - id: isort
 
 - repo: https://github.com/psf/black
-  rev: 22.3.0
+  rev: 22.10.0
   hooks:
   - id: black
     language_version: python3
@@ -45,8 +45,20 @@
   - id: blacken-docs
     additional_dependencies: [black]
 
+- repo: https://github.com/codespell-project/codespell
+  rev: v2.2.2
+  hooks:
+  - id: codespell  # See setup.cfg for args
+
 - repo: https://github.com/PyCQA/flake8
-  rev: 4.0.1
+  rev: 5.0.4
   hooks:
   - id: flake8
     additional_dependencies: [flake8-bugbear]
+
+- repo: https://github.com/asottile/pyupgrade
+  rev: v3.2.2
+  hooks:
+  - id: pyupgrade
+    args:
+    - --py37-plus
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/CHANGELOG.rst 
new/ini2toml-0.11.3/CHANGELOG.rst
--- old/ini2toml-0.11/CHANGELOG.rst     2022-06-24 20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/CHANGELOG.rst   2022-11-23 17:03:38.000000000 +0100
@@ -2,6 +2,22 @@
 Changelog
 =========
 
+Version 0.11.3
+==============
+
+* Fix dependency problems by requiring ``pyproject-fmt>=0.4.0``
+
+Version 0.11.2
+==============
+
+* Adapt to changes in ``pyproject-fmt`` 0.4.0
+
+Version 0.11.1
+==============
+
+* Internal test fixes, minor CI and doc improvements
+* Only list ``pyproject-fmt`` as an experimental dependency on Python 3.7+
+
 Version 0.11
 ============
 
@@ -153,7 +169,7 @@
   when using the ``full_toml`` adapter.
 - Improve heuristic to remove superfluous empty tables in the generated TOML 
string.
 - ``distutils.commands``-related sections in ``setup.cfg`` are now better
-  recognised and transfered to the ``tool.distutils`` table in the generated
+  recognised and transferred to the ``tool.distutils`` table in the generated
   TOML (previously they were placed under ``tool.setuptools.commands``).
   The normalisation of the command names using ``kebab-case`` is no longer
   performed.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/CONTRIBUTING.rst 
new/ini2toml-0.11.3/CONTRIBUTING.rst
--- old/ini2toml-0.11/CONTRIBUTING.rst  2022-06-24 20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/CONTRIBUTING.rst        2022-11-23 17:03:38.000000000 
+0100
@@ -261,7 +261,7 @@
    uploaded to PyPI_ correctly.
 
 
-.. <-- strart -->
+.. <-- start -->
 .. |the repository service| replace:: GitHub
 .. |contribute button| replace:: "Create pull request"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/PKG-INFO new/ini2toml-0.11.3/PKG-INFO
--- old/ini2toml-0.11/PKG-INFO  2022-06-24 20:54:24.553360200 +0200
+++ new/ini2toml-0.11.3/PKG-INFO        2022-11-23 17:04:54.142139400 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: ini2toml
-Version: 0.11
+Version: 0.11.3
 Summary: Automatically conversion of .ini/.cfg files to TOML equivalents
 Home-page: https://github.com/abravalheri/ini2toml/
 Author: Anderson Bravalheri
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/docs/dev-guide.rst 
new/ini2toml-0.11.3/docs/dev-guide.rst
--- old/ini2toml-0.11/docs/dev-guide.rst        2022-06-24 20:52:43.000000000 
+0200
+++ new/ini2toml-0.11.3/docs/dev-guide.rst      2022-11-23 17:03:38.000000000 
+0100
@@ -203,7 +203,7 @@
 
 The implementation requirement for a ``ini2toml`` plugin is a function that
 accepts a ``Translator`` object. Using this object it is possible to register
-new processors for different profiles, as shown in the example bellow.
+new processors for different profiles, as shown in the example below.
 
 .. code-block:: python
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/docs/setuptools_pep621.rst 
new/ini2toml-0.11.3/docs/setuptools_pep621.rst
--- old/ini2toml-0.11/docs/setuptools_pep621.rst        2022-06-24 
20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/docs/setuptools_pep621.rst      2022-11-23 
17:03:38.000000000 +0100
@@ -43,7 +43,7 @@
 
   Note, however, that these directives are not allowed to be used directly
   under the ``project`` table. Instead, ``ini2toml`` will rely on ``dynamic``,
-  as explained bellow.
+  as explained below.
   Also note that for some fields (e.g. ``readme``), ``ini2toml``
   might try to automatically convert the directive into values accepted by
   :pep:`621` (for complex scenarios ``dynamic`` might still be used).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/setup.cfg new/ini2toml-0.11.3/setup.cfg
--- old/ini2toml-0.11/setup.cfg 2022-06-24 20:54:24.553360200 +0200
+++ new/ini2toml-0.11.3/setup.cfg       2022-11-23 17:04:54.146139600 +0100
@@ -46,7 +46,7 @@
        tomlkit>=0.10.0,<2
        tomli-w>=0.4.0,<2
 experimental = 
-       pyproject-fmt>=0.3.2
+       pyproject-fmt>=0.4.0; python_version>="3.7"
 testing = 
        setuptools
        tomli
@@ -81,6 +81,9 @@
 no_vcs = 1
 formats = bdist_wheel
 
+[codespell]
+skip = tests/examples/*
+
 [flake8]
 max_line_length = 88
 extend_ignore = E203, W503, W291
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/src/ini2toml/cli.py 
new/ini2toml-0.11.3/src/ini2toml/cli.py
--- old/ini2toml-0.11/src/ini2toml/cli.py       2022-06-24 20:52:43.000000000 
+0200
+++ new/ini2toml-0.11.3/src/ini2toml/cli.py     2022-11-23 17:03:38.000000000 
+0100
@@ -95,7 +95,7 @@
 
     def apply_auto_formatting(text: str) -> str:
         try:
-            return format_pyproject(Config(text))
+            return format_pyproject(Config(Path("pyproject.toml"), text))
         except Exception as ex:  # pragma: no cover
             _logger.debug(f"pyproject-fmt failed: {ex}", exc_info=True)
             _logger.warning("Auto-formatting failed, falling back to original 
text")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/src/ini2toml/drivers/full_toml.py 
new/ini2toml-0.11.3/src/ini2toml/drivers/full_toml.py
--- old/ini2toml-0.11/src/ini2toml/drivers/full_toml.py 2022-06-24 
20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/src/ini2toml/drivers/full_toml.py       2022-11-23 
17:03:38.000000000 +0100
@@ -277,7 +277,7 @@
     - max_len(int): Rough (and definitely not precise) estimative of the 
number of
       chars the TOML representation for the largest element would be.
     - total_len(int): Rough (and definitely not precise) estimate of the total 
number of
-      chars in the TOML representation if it was a sinlge line
+      chars in the TOML representation if it was a single line
     - has_nl(bool): if any TOML representation for the elements has a ``\\n`` 
char.
     - has_nested(bool): if any element has a nested table or array
     - num_elements(int): number of elements in the list.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/src/ini2toml/drivers/plain_builtins.py 
new/ini2toml-0.11.3/src/ini2toml/drivers/plain_builtins.py
--- old/ini2toml-0.11/src/ini2toml/drivers/plain_builtins.py    2022-06-24 
20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/src/ini2toml/drivers/plain_builtins.py  2022-11-23 
17:03:38.000000000 +0100
@@ -1,5 +1,5 @@
 """The purpose of this module is to "collapse" the intermediate representation 
of a TOML
-document into Python buitin data types (mainly a composition of :class:`dict`,
+document into Python builtin data types (mainly a composition of :class:`dict`,
 :class:`list`, :class:`int`, :class:`float`, :class:`bool`, :class:`str`).
 
 This is **not a loss-less** process, since comments are not preserved.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ini2toml-0.11/src/ini2toml/plugins/setuptools_pep621.py 
new/ini2toml-0.11.3/src/ini2toml/plugins/setuptools_pep621.py
--- old/ini2toml-0.11/src/ini2toml/plugins/setuptools_pep621.py 2022-06-24 
20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/src/ini2toml/plugins/setuptools_pep621.py       
2022-11-23 17:03:38.000000000 +0100
@@ -124,7 +124,7 @@
         """Value type processing, as defined in:
         https://setuptools.pypa.io/en/stable/userguide/declarative_config.html
         """
-        # If not present bellow will be transformed via split_comment by 
default
+        # If not present below will be transformed via split_comment by default
         return {
             ("metadata", "version"): directive("file", "attr"),
             ("metadata", "classifiers"): directive("file", 
orelse=split_list_comma),
@@ -479,7 +479,7 @@
         return doc
 
     def fix_extras_require(self, doc: R) -> R:
-        """`extras-require` can have markers embeded in the extra group
+        """`extras-require` can have markers embedded in the extra group
         they need to be removed and added to the dependencies themselves
         """
         if "project:optional-dependencies" not in doc:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/src/ini2toml/translator.py 
new/ini2toml-0.11.3/src/ini2toml/translator.py
--- old/ini2toml-0.11/src/ini2toml/translator.py        2022-06-24 
20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/src/ini2toml/translator.py      2022-11-23 
17:03:38.000000000 +0100
@@ -10,7 +10,7 @@
 
 class Translator(BaseTranslator[str]):
     """``Translator`` is the main public Python API exposed by the 
``ini2toml``,
-    to convert strings represeting ``.ini/.cfg`` files into the ``TOML`` 
syntax.
+    to convert strings representing ``.ini/.cfg`` files into the ``TOML`` 
syntax.
 
     It follows the public API defined in :class:`ini2toml.types.Translator`, 
and is very
     similar to :class:`~ini2toml.base_translator.BaseTranslator`.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/src/ini2toml.egg-info/PKG-INFO 
new/ini2toml-0.11.3/src/ini2toml.egg-info/PKG-INFO
--- old/ini2toml-0.11/src/ini2toml.egg-info/PKG-INFO    2022-06-24 
20:54:23.000000000 +0200
+++ new/ini2toml-0.11.3/src/ini2toml.egg-info/PKG-INFO  2022-11-23 
17:04:54.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: ini2toml
-Version: 0.11
+Version: 0.11.3
 Summary: Automatically conversion of .ini/.cfg files to TOML equivalents
 Home-page: https://github.com/abravalheri/ini2toml/
 Author: Anderson Bravalheri
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/src/ini2toml.egg-info/requires.txt 
new/ini2toml-0.11.3/src/ini2toml.egg-info/requires.txt
--- old/ini2toml-0.11/src/ini2toml.egg-info/requires.txt        2022-06-24 
20:54:24.000000000 +0200
+++ new/ini2toml-0.11.3/src/ini2toml.egg-info/requires.txt      2022-11-23 
17:04:54.000000000 +0100
@@ -6,7 +6,9 @@
 tomli-w<2,>=0.4.0
 
 [experimental]
-pyproject-fmt>=0.3.2
+
+[experimental:python_version >= "3.7"]
+pyproject-fmt>=0.4.0
 
 [full]
 configupdater<4,>=3.0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/tests/drivers/test_full_toml.py 
new/ini2toml-0.11.3/tests/drivers/test_full_toml.py
--- old/ini2toml-0.11/tests/drivers/test_full_toml.py   2022-06-24 
20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/tests/drivers/test_full_toml.py 2022-11-23 
17:03:38.000000000 +0100
@@ -1,4 +1,5 @@
 from ini2toml.drivers import full_toml as lib
+from ini2toml.plugins.profile_independent_tasks import 
remove_empty_table_headers
 from ini2toml.types import Commented, CommentedKV, CommentedList, CommentKey
 from ini2toml.types import IntermediateRepr as IR
 from ini2toml.types import WhitespaceKey
@@ -27,7 +28,6 @@
 c = 3
 d = 4 # 2nd line comment
 
-[section3]
 [section3.nested]
 x = "y"
 z = "w" # nested
@@ -64,4 +64,5 @@
 
 
 def test_convert():
-    assert lib.convert(example_parsed) == example_toml
+    converted = lib.convert(example_parsed)
+    assert remove_empty_table_headers(converted) == example_toml.strip()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ini2toml-0.11/tests/plugins/test_setuptools_pep621.py 
new/ini2toml-0.11.3/tests/plugins/test_setuptools_pep621.py
--- old/ini2toml-0.11/tests/plugins/test_setuptools_pep621.py   2022-06-24 
20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/tests/plugins/test_setuptools_pep621.py 2022-11-23 
17:03:38.000000000 +0100
@@ -1,5 +1,6 @@
 import pytest
 
+from ini2toml.plugins.profile_independent_tasks import 
remove_empty_table_headers
 from ini2toml.plugins.setuptools_pep621 import Directive, SetuptoolsPEP621, 
activate
 from ini2toml.translator import Translator
 
@@ -175,13 +176,9 @@
 """
 
 expected_split_subtables = """\
-[tool]
-[tool.setuptools]
-[tool.setuptools.packages]
 [tool.setuptools.packages.find]
 where = "src"
 
-[project]
 [project.entry-points]
 # For example:
 
@@ -197,7 +194,8 @@
     doc = plugin.split_subtables(doc)
     print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
     print(doc)
-    assert convert(doc).strip() == expected_split_subtables.strip()
+    converted = convert(doc).strip()
+    assert remove_empty_table_headers(converted) == 
expected_split_subtables.strip()
 
 
 # ----
@@ -217,13 +215,9 @@
 """
 
 expected_entrypoints_and_split_subtables = """\
-[tool]
-[tool.setuptools]
-[tool.setuptools.packages]
 [tool.setuptools.packages.find]
 where = "src"
 
-[project]
 [project.entry-points]
 # For example:
 
@@ -248,7 +242,9 @@
     doc = plugin.split_subtables(doc)
     print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
     print(doc)
-    assert convert(doc).strip() == 
expected_entrypoints_and_split_subtables.strip()
+    converted = convert(doc).strip()
+    expected = expected_entrypoints_and_split_subtables.strip()
+    assert remove_empty_table_headers(converted) == expected
 
 
 # ----
@@ -607,7 +603,6 @@
 [project]
 dynamic = ["version"]
 
-[tool]
 [tool.setuptools]
 include-package-data = false
 """
@@ -621,7 +616,8 @@
     doc = plugin.pep621_transform(doc)
     print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
     print(doc)
-    assert convert(doc).strip() == expected_empty.strip()
+    converted = convert(doc).strip()
+    assert remove_empty_table_headers(converted) == expected_empty.strip()
 
     # Same thing but with the higher level API:
     text = translator.translate("", profile_name="setup.cfg")
@@ -645,7 +641,6 @@
 [project]
 dynamic = ["version"]
 
-[tool]
 [tool.setuptools]
 data-files = {a = ["b"]}
 include-package-data = false
@@ -656,7 +651,7 @@
     # Same thing but with the higher level API:
     with pytest.warns(DeprecationWarning, match="'data-files' is deprecated"):
         text = translator.translate(example_data_files, 
profile_name="setup.cfg")
-        assert text.strip() == expected_data_files.strip()
+        assert remove_empty_table_headers(text.strip()) == 
expected_data_files.strip()
 
 
 # ----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ini2toml-0.11/tests/test_cli.py 
new/ini2toml-0.11.3/tests/test_cli.py
--- old/ini2toml-0.11/tests/test_cli.py 2022-06-24 20:52:43.000000000 +0200
+++ new/ini2toml-0.11.3/tests/test_cli.py       2022-11-23 17:03:38.000000000 
+0100
@@ -105,6 +105,10 @@
     assert expected in text
 
 
[email protected](
+    sys.version_info < (3, 7),
+    reason="pyproject-fmt is only available on Python 3.7+",
+)
 def test_auto_formatting(tmp_path, capsys):
     setupcfg = """
     [metadata]

Reply via email to