Browse Source

test env: exclude version of pygobject breaking pipeline (to keep dependabot from downgrading, see below)

```
Traceback:
/opt/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_action.py:6: in <module>
    import systemctl_mqtt
systemctl_mqtt/__init__.py:35: in <module>
    import gi.repository.GLib  # pylint-import-requirements: imports=PyGObject
../../../.local/share/virtualenvs/systemctl-mqtt-UQbfQXT6/lib/python3.10/site-packages/gi/__init__.py:42: in <module>
    from . import _gi
E   ImportError: /home/runner/.local/share/virtualenvs/systemctl-mqtt-UQbfQXT6/lib/python3.10/site-packages/gi/_gi.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyUnicode_AsStringAndSize
```

https://github.com/fphammerle/systemctl-mqtt/pull/45/commits/25b365b02e76589402bc3bc331b9ba6a8314b220
Fabian Peter Hammerle 2 years ago
parent
commit
5ddf13d9a6
2 changed files with 12 additions and 9 deletions
  1. 4 0
      Pipfile
  2. 8 9
      Pipfile.lock

+ 4 - 0
Pipfile

@@ -6,6 +6,10 @@ name = "pypi"
 [packages]
 systemctl-mqtt = {editable = true,path = "."}
 
+# > ImportError: [...]/python3.10/site-packages/gi/_gi.cpython-310-x86_64-linux-gnu.so:
+# . undefined symbol: _PyUnicode_AsStringAndSize
+PyGObject = "!=3.30.5"
+
 [dev-packages]
 black = "*"
 mypy = "*"

+ 8 - 9
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "fa9d4aea8f1278f3c8b7c1109c15ddd8c8639cabebcedbcd063b3841c7eaaefc"
+            "sha256": "e6d5f972d746be23ea2ce7dbc11ab53c6c63bd2deb4feee8d210f897257b72ab"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -49,6 +49,7 @@
             "hashes": [
                 "sha256:b9803991ec0b0b4175e81fee0ad46090fa7af438fe169348a9b18ae53447afcd"
             ],
+            "index": "pypi",
             "version": "==3.42.0"
         },
         "sanitized-package": {
@@ -108,11 +109,10 @@
         },
         "click": {
             "hashes": [
-                "sha256:353f466495adaeb40b6b5f592f9f91cb22372351c84caeb068132442a4518ef3",
-                "sha256:410e932b050f5eed773c4cda94de75971c89cdb3155a72a0831139a79e5ecb5b"
+                "sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1",
+                "sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb"
             ],
-            "markers": "python_version >= '3.6'",
-            "version": "==8.0.3"
+            "version": "==8.0.4"
         },
         "coverage": {
             "extras": [
@@ -166,11 +166,10 @@
         },
         "importlib-metadata": {
             "hashes": [
-                "sha256:6affcdb3aec542dd98df8211e730bba6c5f2bec8288d47bacacde898f548c9ad",
-                "sha256:9e5e553bbba1843cb4a00823014b907616be46ee503d2b9ba001d214a8da218f"
+                "sha256:175f4ee440a0317f6e8d81b7f8d4869f93316170a65ad2b007d2929186c8052c",
+                "sha256:e0bc84ff355328a4adfc5240c4f211e0ab386f80aa640d1b11f0618a1d282094"
             ],
-            "markers": "python_version >= '3.7'",
-            "version": "==4.11.0"
+            "version": "==4.11.1"
         },
         "iniconfig": {
             "hashes": [