Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nmcli for openSUSE:Factory 
checked in at 2026-07-06 12:32:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nmcli (Old)
 and      /work/SRC/openSUSE:Factory/.python-nmcli.new.1982 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nmcli"

Mon Jul  6 12:32:03 2026 rev:5 rq:1363844 version:1.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nmcli/python-nmcli.changes        
2026-01-13 21:26:18.823510569 +0100
+++ /work/SRC/openSUSE:Factory/.python-nmcli.new.1982/python-nmcli.changes      
2026-07-06 12:34:33.256024115 +0200
@@ -1,0 +2,7 @@
+Sun Jul  5 10:21:21 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 1.8.0:
+  * feature: allow DeviceControl.wifi_connect to accept None as
+    password
+
+-------------------------------------------------------------------

Old:
----
  nmcli-1.7.0.tar.gz

New:
----
  nmcli-1.8.0.tar.gz

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

Other differences:
------------------
++++++ python-nmcli.spec ++++++
--- /var/tmp/diff_new_pack.d05Si0/_old  2026-07-06 12:34:34.976083875 +0200
+++ /var/tmp/diff_new_pack.d05Si0/_new  2026-07-06 12:34:34.992084431 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-nmcli
-Version:        1.7.0
+Version:        1.8.0
 Release:        0
 Summary:        A python wrapper library for the network-manager cli client
 License:        MIT

++++++ nmcli-1.7.0.tar.gz -> nmcli-1.8.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nmcli-1.7.0/.github/workflows/action.yml 
new/nmcli-1.8.0/.github/workflows/action.yml
--- old/nmcli-1.7.0/.github/workflows/action.yml        2026-01-03 
02:55:41.000000000 +0100
+++ new/nmcli-1.8.0/.github/workflows/action.yml        2026-06-13 
08:41:11.000000000 +0200
@@ -27,8 +27,8 @@
           - python-version: '3.13'
             os: ubuntu-latest
     steps:
-      - uses: actions/checkout@v4
-      - uses: actions/setup-python@v5
+      - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 
v4.3.1
+      - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 
v5.6.0
         with:
           python-version: ${{ matrix.python-version }}
       - name: Install dependencies
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nmcli-1.7.0/.github/workflows/release.yml 
new/nmcli-1.8.0/.github/workflows/release.yml
--- old/nmcli-1.7.0/.github/workflows/release.yml       2026-01-03 
02:55:41.000000000 +0100
+++ new/nmcli-1.8.0/.github/workflows/release.yml       2026-06-13 
08:41:11.000000000 +0200
@@ -30,8 +30,8 @@
           - python-version: '3.13'
             os: ubuntu-latest
     steps:
-      - uses: actions/checkout@v4
-      - uses: actions/setup-python@v5
+      - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 
v4.3.1
+      - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 
v5.6.0
         with:
           python-version: ${{ matrix.python-version }}
       - name: Install dependencies
@@ -50,10 +50,10 @@
     needs: test
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v4
+      - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 
v4.3.1
 
       - name: Set up Python
-        uses: actions/setup-python@v5
+        uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 
v5.6.0
         with:
           python-version: '3.10'
 
@@ -79,7 +79,7 @@
           fi
 
       - name: Create GitHub Release
-        uses: softprops/action-gh-release@v2
+        uses: 
softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2.6.2
         with:
           # Auto-generate release notes (editable after creation)
           generate_release_notes: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nmcli-1.7.0/README.md new/nmcli-1.8.0/README.md
--- old/nmcli-1.7.0/README.md   2026-01-03 02:55:41.000000000 +0100
+++ new/nmcli-1.8.0/README.md   2026-06-13 08:41:11.000000000 +0200
@@ -293,9 +293,11 @@
 
 The `wait` argument applies the same effect to the command as the `--wait` 
option. If it is omitted, the default behavior is followed.
 
+If `password` is `None`, the password option is omitted from the command. This 
allows connecting to open networks or known networks that already have 
credentials stored.
+
 ```
 nmcli.device.wifi_connect(ssid: str,
-                          password: str,
+                          password: Optional[str] = None,
                           ifname: str = None,
                           wait: int = None) -> None
 ```
@@ -509,6 +511,10 @@
 
 ## Change Log
 
+### 1.8.0
+
+- Allow `nmcli.device.wifi_connect` to accept `None` as password to connect to 
open or known networks without specifying a password.
+
 ### 1.7.0
 
 - Added `nmcli.connection.show_all` method with active filtering support
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nmcli-1.7.0/nmcli/_device.py 
new/nmcli-1.8.0/nmcli/_device.py
--- old/nmcli-1.7.0/nmcli/_device.py    2026-01-03 02:55:41.000000000 +0100
+++ new/nmcli-1.8.0/nmcli/_device.py    2026-06-13 08:41:11.000000000 +0200
@@ -1,5 +1,5 @@
 import re
-from typing import List, Tuple
+from typing import List, Optional, Tuple
 
 from ._exception import ConnectionActivateFailedException
 from ._helper import add_fields_option_if_needed, add_wait_option_if_needed
@@ -75,7 +75,7 @@
 
     def wifi_connect(self,
                      ssid: str,
-                     password: str,
+                     password: Optional[str] = None,
                      ifname: str = None,
                      wait: int = None) -> None:
         raise NotImplementedError
@@ -182,11 +182,13 @@
 
     def wifi_connect(self,
                      ssid: str,
-                     password: str,
+                     password: Optional[str] = None,
                      ifname: str = None,
                      wait: int = None) -> None:
         cmd = add_wait_option_if_needed(
-            wait) + ['device', 'wifi', 'connect', ssid, 'password', password]
+            wait) + ['device', 'wifi', 'connect', ssid]
+        if password is not None:
+            cmd += ['password', password]
         if ifname is not None:
             cmd += ['ifname', ifname]
         r = self._syscmd.nmcli(cmd)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nmcli-1.7.0/nmcli/dummy/_device.py 
new/nmcli-1.8.0/nmcli/dummy/_device.py
--- old/nmcli-1.7.0/nmcli/dummy/_device.py      2026-01-03 02:55:41.000000000 
+0100
+++ new/nmcli-1.8.0/nmcli/dummy/_device.py      2026-06-13 08:41:11.000000000 
+0200
@@ -1,4 +1,4 @@
-from typing import List, Tuple
+from typing import List, Optional, Tuple
 
 from .._device import DeviceControlInterface, DeviceDetails
 from ..data.device import Device, DeviceWifi
@@ -126,7 +126,7 @@
 
     def wifi_connect(self,
                      ssid: str,
-                     password: str,
+                     password: Optional[str] = None,
                      ifname: str = None,
                      wait: int = None) -> None:
         self._raise_error_if_needed()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nmcli-1.7.0/pyproject.toml 
new/nmcli-1.8.0/pyproject.toml
--- old/nmcli-1.7.0/pyproject.toml      2026-01-03 02:55:41.000000000 +0100
+++ new/nmcli-1.8.0/pyproject.toml      2026-06-13 08:41:11.000000000 +0200
@@ -4,7 +4,7 @@
 
 [project]
 name = "nmcli"
-version = "1.7.0"
+version = "1.8.0"
 description = "A python wrapper library for the network-manager cli client"
 readme = "README.md"
 authors = [{name = "ushiboy"}]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nmcli-1.7.0/tests/dummy/test_device.py 
new/nmcli-1.8.0/tests/dummy/test_device.py
--- old/nmcli-1.7.0/tests/dummy/test_device.py  2026-01-03 02:55:41.000000000 
+0100
+++ new/nmcli-1.8.0/tests/dummy/test_device.py  2026-06-13 08:41:11.000000000 
+0200
@@ -149,6 +149,20 @@
     assert c.wifi_connect_args[2] == (ssid, password, ifname, 10)
 
 
+def test_wifi_connect_without_password():
+    c = DummyDeviceControl()
+    ssid = 'ssid'
+    ifname = 'wlan0'
+    c.wifi_connect(ssid, None)
+    assert c.wifi_connect_args[0] == (ssid, None, None, None)
+    c.wifi_connect(ssid, None, ifname)
+    assert c.wifi_connect_args[1] == (ssid, None, ifname, None)
+    c.wifi_connect(ssid, None, ifname, wait=10)
+    assert c.wifi_connect_args[2] == (ssid, None, ifname, 10)
+    c.wifi_connect(ssid)
+    assert c.wifi_connect_args[3] == (ssid, None, None, None)
+
+
 def test_wifi_connect_when_raise_error():
     c = DummyDeviceControl(raise_error=Exception)
     ssid = 'ssid'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nmcli-1.7.0/tests/test_device.py 
new/nmcli-1.8.0/tests/test_device.py
--- old/nmcli-1.7.0/tests/test_device.py        2026-01-03 02:55:41.000000000 
+0100
+++ new/nmcli-1.8.0/tests/test_device.py        2026-06-13 08:41:11.000000000 
+0200
@@ -309,6 +309,27 @@
         '--wait', '10', 'device', 'wifi', 'connect', ssid, 'password', 
password]
 
 
+def test_wifi_connect_without_password():
+    s = DummySystemCommand()
+    device = DeviceControl(s)
+    ssid = 'Open AP'
+    ifname = 'wlan0'
+
+    device.wifi_connect(ssid, None)
+    assert s.passed_parameters == ['device', 'wifi', 'connect', ssid]
+
+    device.wifi_connect(ssid, None, ifname)
+    assert s.passed_parameters == [
+        'device', 'wifi', 'connect', ssid, 'ifname', ifname]
+
+    device.wifi_connect(ssid, None, wait=10)
+    assert s.passed_parameters == [
+        '--wait', '10', 'device', 'wifi', 'connect', ssid]
+
+    device.wifi_connect(ssid)
+    assert s.passed_parameters == ['device', 'wifi', 'connect', ssid]
+
+
 def test_wifi_connect_when_connection_activate_failed():
     s = DummySystemCommand(
         '''Error: Connection activation failed: (7) Secrets were required, but 
not provided.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nmcli-1.7.0/tests/test_general.py 
new/nmcli-1.8.0/tests/test_general.py
--- old/nmcli-1.7.0/tests/test_general.py       2026-01-03 02:55:41.000000000 
+0100
+++ new/nmcli-1.8.0/tests/test_general.py       2026-06-13 08:41:11.000000000 
+0200
@@ -59,7 +59,8 @@
     s = DummySystemCommand()
     general = GeneralControl(s)
     general.reload(['conf', 'dns-rc', 'dns-full'])
-    assert s.passed_parameters == ['general', 'reload', 'conf', 'dns-rc', 
'dns-full']
+    assert s.passed_parameters == ['general',
+                                   'reload', 'conf', 'dns-rc', 'dns-full']
 
 
 def test_reload_with_invalid_flag():

Reply via email to