Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-cloup for openSUSE:Factory 
checked in at 2023-10-19 22:50:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cloup (Old)
 and      /work/SRC/openSUSE:Factory/.python-cloup.new.1945 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cloup"

Thu Oct 19 22:50:43 2023 rev:7 rq:1119010 version:3.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cloup/python-cloup.changes        
2023-07-27 16:52:15.378305076 +0200
+++ /work/SRC/openSUSE:Factory/.python-cloup.new.1945/python-cloup.changes      
2023-10-19 22:53:42.592338564 +0200
@@ -1,0 +2,7 @@
+Thu Oct 19 14:38:42 UTC 2023 - Ondřej Súkup <[email protected]>
+
+- update to 3.0.2
+ * Truncate help text to the first form feed, like click
+ * Fix: Constraint.__getattr__ was returning None instead of raising 
AttributeError
+
+-------------------------------------------------------------------

Old:
----
  build.specials.obscpio
  cloup-3.0.0.tar.gz

New:
----
  cloup-3.0.2.tar.gz

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

Other differences:
------------------
++++++ python-cloup.spec ++++++
--- /var/tmp/diff_new_pack.IcSUR9/_old  2023-10-19 22:53:43.032354524 +0200
+++ /var/tmp/diff_new_pack.IcSUR9/_new  2023-10-19 22:53:43.032354524 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-cloup
-Version:        3.0.0
+Version:        3.0.2
 Release:        0
 Summary:        Option groups, constraints, subcommand sections and help 
themes for Click
 License:        BSD-3-Clause
@@ -34,7 +34,6 @@
 # /SECTION
 BuildRequires:  fdupes
 Requires:       python-click >= 8.0
-Suggests:       python-typing_extensions
 BuildArch:      noarch
 %python_subpackages
 

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.IcSUR9/_old  2023-10-19 22:53:43.060355539 +0200
+++ /var/tmp/diff_new_pack.IcSUR9/_new  2023-10-19 22:53:43.064355684 +0200
@@ -1,5 +1,5 @@
-mtime: 1690387434
-commit: a676d4297e9d6d282b5ba68eacaf9d3d047e5c33
-url: https://src.opensuse.org/dirkmueller/python-cloup.git
-revision: a676d4297e9d6d282b5ba68eacaf9d3d047e5c33
+mtime: 1697729011
+commit: 117fc732a80a5654c2368214ea353bf95d82fb0f
+url: https://src.opensuse.org/mimi_vx/python-cloup.git
+revision: 117fc732a80a5654c2368214ea353bf95d82fb0f
 

++++++ cloup-3.0.0.tar.gz -> cloup-3.0.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cloup-3.0.0/.github/workflows/tests.yaml 
new/cloup-3.0.2/.github/workflows/tests.yaml
--- old/cloup-3.0.0/.github/workflows/tests.yaml        2023-07-14 
16:12:47.000000000 +0200
+++ new/cloup-3.0.2/.github/workflows/tests.yaml        2023-09-07 
23:51:50.000000000 +0200
@@ -73,6 +73,6 @@
         run: python -m build . --sdist --wheel --outdir dist/
 
       - name: Upload to PyPI
-        uses: pypa/gh-action-pypi-publish@master
+        uses: pypa/gh-action-pypi-publish@release/v1
         with:
           password: ${{ secrets.PYPI_API_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cloup-3.0.0/PKG-INFO new/cloup-3.0.2/PKG-INFO
--- old/cloup-3.0.0/PKG-INFO    2023-07-14 16:12:58.000000000 +0200
+++ new/cloup-3.0.2/PKG-INFO    2023-09-07 23:52:06.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: cloup
-Version: 3.0.0
+Version: 3.0.2
 Summary: Adds features to Click: option groups, constraints, subcommand 
sections and help themes.
 Home-page: https://github.com/janLuke/cloup
 Author: Gianluca Gippetto
@@ -46,9 +46,9 @@
     :alt: Documentation Status (latest release)
     :target: https://cloup.readthedocs.io/en/stable/
 
-.. |downloads| image:: https://img.shields.io/pypi/dw/cloup
+.. |downloads| image:: 
https://static.pepy.tech/personalized-badge/cloup?period=week&units=international_system&left_color=grey&right_color=blue&left_text=downloads%20/%20week
     :alt: PyPI - Downloads
-    :target: https://pypistats.org/packages/cloup
+    :target: https://pepy.tech/project/cloup
 
 .. |donate| image:: https://img.shields.io/badge/Donate-PayPal-green.svg
     :alt: Donate with PayPal
@@ -177,19 +177,3 @@
 
 .. _release: https://cloup.readthedocs.io/en/stable/#user-guide
 .. _development: https://cloup.readthedocs.io/en/latest/#user-guide
-
-
-Thanks
-======
-
-.. list-table::
-
-    * - |JetBrainsLogo|
-      - A big thank to `JetBrains <https://www.jetbrains.com/>`_ for providing 
me with a free license for their IDEs.
-        If you're developing a non-commercial open-source project, you may 
consider applying for a free license too.
-        You find all details at `this link 
<https://jb.gg/OpenSourceSupport>`_. Note that this license can be used only
-        to develop non-commercial projects.
-
-.. |JetBrainsLogo| image:: 
https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png
-    :alt: JetBrains logo
-    :width: 250
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cloup-3.0.0/README.rst new/cloup-3.0.2/README.rst
--- old/cloup-3.0.0/README.rst  2023-07-14 16:12:47.000000000 +0200
+++ new/cloup-3.0.2/README.rst  2023-09-07 23:51:50.000000000 +0200
@@ -45,9 +45,9 @@
     :alt: Documentation Status (latest release)
     :target: https://cloup.readthedocs.io/en/stable/
 
-.. |downloads| image:: https://img.shields.io/pypi/dw/cloup
+.. |downloads| image:: 
https://static.pepy.tech/personalized-badge/cloup?period=week&units=international_system&left_color=grey&right_color=blue&left_text=downloads%20/%20week
     :alt: PyPI - Downloads
-    :target: https://pypistats.org/packages/cloup
+    :target: https://pepy.tech/project/cloup
 
 .. |donate| image:: https://img.shields.io/badge/Donate-PayPal-green.svg
     :alt: Donate with PayPal
@@ -176,19 +176,3 @@
 
 .. _release: https://cloup.readthedocs.io/en/stable/#user-guide
 .. _development: https://cloup.readthedocs.io/en/latest/#user-guide
-
-
-Thanks
-======
-
-.. list-table::
-
-    * - |JetBrainsLogo|
-      - A big thank to `JetBrains <https://www.jetbrains.com/>`_ for providing 
me with a free license for their IDEs.
-        If you're developing a non-commercial open-source project, you may 
consider applying for a free license too.
-        You find all details at `this link 
<https://jb.gg/OpenSourceSupport>`_. Note that this license can be used only
-        to develop non-commercial projects.
-
-.. |JetBrainsLogo| image:: 
https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png
-    :alt: JetBrains logo
-    :width: 250
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cloup-3.0.0/cloup/_version.py 
new/cloup-3.0.2/cloup/_version.py
--- old/cloup-3.0.0/cloup/_version.py   2023-07-14 16:12:58.000000000 +0200
+++ new/cloup-3.0.2/cloup/_version.py   2023-09-07 23:52:06.000000000 +0200
@@ -1,4 +1,4 @@
 # file generated by setuptools_scm
 # don't change, don't track in version control
-__version__ = version = '3.0.0'
-__version_tuple__ = version_tuple = (3, 0, 0)
+__version__ = version = '3.0.2'
+__version_tuple__ = version_tuple = (3, 0, 2)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cloup-3.0.0/cloup/constraints/_core.py 
new/cloup-3.0.2/cloup/constraints/_core.py
--- old/cloup-3.0.0/cloup/constraints/_core.py  2023-07-14 16:12:47.000000000 
+0200
+++ new/cloup-3.0.2/cloup/constraints/_core.py  2023-09-07 23:51:50.000000000 
+0200
@@ -52,12 +52,14 @@
     def __getattr__(self, attr: str) -> Any:
         removed_attrs = ('toggle_consistency_checks', 
'consistency_checks_toggled')
         if attr in removed_attrs:
-            raise Exception(
+            raise AttributeError(
                 f'attribute `{attr}` was removed in v0.9. You can now 
enable/disable '
                 f'consistency checks using the `click.Context` parameter '
                 f'`check_constraints_consistency`. '
                 f'Pass it as part of your `context_settings`.'
             )
+        else:
+            raise AttributeError(attr)
 
     @abc.abstractmethod
     def help(self, ctx: click.Context) -> str:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cloup-3.0.0/cloup/formatting/_formatter.py 
new/cloup-3.0.2/cloup/formatting/_formatter.py
--- old/cloup-3.0.0/cloup/formatting/_formatter.py      2023-07-14 
16:12:47.000000000 +0200
+++ new/cloup-3.0.2/cloup/formatting/_formatter.py      2023-09-07 
23:51:50.000000000 +0200
@@ -183,7 +183,7 @@
     def write_command_help_text(self, cmd: click.Command) -> None:
         help_text = cmd.help or ""
         if help_text and click_version_ge_8_1:
-            help_text = inspect.cleandoc(help_text)
+            help_text = inspect.cleandoc(help_text).partition("\f")[0]
         if cmd.deprecated:
             # Use the same label as Click:
             # 
https://github.com/pallets/click/blob/b0538df/src/click/core.py#L1331
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cloup-3.0.0/cloup.egg-info/PKG-INFO 
new/cloup-3.0.2/cloup.egg-info/PKG-INFO
--- old/cloup-3.0.0/cloup.egg-info/PKG-INFO     2023-07-14 16:12:58.000000000 
+0200
+++ new/cloup-3.0.2/cloup.egg-info/PKG-INFO     2023-09-07 23:52:06.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: cloup
-Version: 3.0.0
+Version: 3.0.2
 Summary: Adds features to Click: option groups, constraints, subcommand 
sections and help themes.
 Home-page: https://github.com/janLuke/cloup
 Author: Gianluca Gippetto
@@ -46,9 +46,9 @@
     :alt: Documentation Status (latest release)
     :target: https://cloup.readthedocs.io/en/stable/
 
-.. |downloads| image:: https://img.shields.io/pypi/dw/cloup
+.. |downloads| image:: 
https://static.pepy.tech/personalized-badge/cloup?period=week&units=international_system&left_color=grey&right_color=blue&left_text=downloads%20/%20week
     :alt: PyPI - Downloads
-    :target: https://pypistats.org/packages/cloup
+    :target: https://pepy.tech/project/cloup
 
 .. |donate| image:: https://img.shields.io/badge/Donate-PayPal-green.svg
     :alt: Donate with PayPal
@@ -177,19 +177,3 @@
 
 .. _release: https://cloup.readthedocs.io/en/stable/#user-guide
 .. _development: https://cloup.readthedocs.io/en/latest/#user-guide
-
-
-Thanks
-======
-
-.. list-table::
-
-    * - |JetBrainsLogo|
-      - A big thank to `JetBrains <https://www.jetbrains.com/>`_ for providing 
me with a free license for their IDEs.
-        If you're developing a non-commercial open-source project, you may 
consider applying for a free license too.
-        You find all details at `this link 
<https://jb.gg/OpenSourceSupport>`_. Note that this license can be used only
-        to develop non-commercial projects.
-
-.. |JetBrainsLogo| image:: 
https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png
-    :alt: JetBrains logo
-    :width: 250
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cloup-3.0.0/tests/constraints/test_constraints.py 
new/cloup-3.0.2/tests/constraints/test_constraints.py
--- old/cloup-3.0.0/tests/constraints/test_constraints.py       2023-07-14 
16:12:47.000000000 +0200
+++ new/cloup-3.0.2/tests/constraints/test_constraints.py       2023-09-07 
23:51:50.000000000 +0200
@@ -20,7 +20,7 @@
 )
 from cloup.constraints.exceptions import ConstraintViolated, 
UnsatisfiableConstraint
 from tests.util import (
-    make_context, make_fake_context, make_options, parametrize, should_raise
+    make_context, make_fake_context, make_options, parametrize, should_raise,
 )
 
 
@@ -31,8 +31,10 @@
 
     to create a test double with characteristics of both a mock and a fake."""
 
-    def __init__(self, satisfied=True, consistent=True, help='help',
-                 error='error', inconsistency_reason='consistency_error'):
+    def __init__(
+        self, satisfied=True, consistent=True, help='help',
+        error='error', inconsistency_reason='consistency_error'
+    ):
         self.satisfied = satisfied
         self.consistent = consistent
         self._help = help
@@ -349,3 +351,9 @@
         params = make_options('abc')
         with pytest.raises(UnsatisfiableConstraint):
             rephraser.check_consistency(params)
+
+
+def test_a_constraint_can_be_copied_and_deep_copied():
+    import copy
+    copy.copy(RequireAtLeast(1))
+    copy.deepcopy(RequireAtLeast(1))

Reply via email to