Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-linode-metadata for 
openSUSE:Factory checked in at 2026-11-23 12:22:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-linode-metadata (Old)
 and      /work/SRC/openSUSE:Factory/.python-linode-metadata.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-linode-metadata"

Mon Nov 23 12:22:30 2026 rev:4 rq:1399672 version:0.4.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-linode-metadata/python-linode-metadata.changes
    2026-05-04 12:58:15.125172180 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-linode-metadata.new.1340718/python-linode-metadata.changes
       2026-11-23 12:25:50.119845260 +0100
@@ -1,0 +2,17 @@
+Sat Nov 21 21:16:04 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 0.4.0:
+  * support gzipped user-data decoding
+  * Add community contribution and hotfix labels
+  * Add security release label
+  * Add project guidelines and coding conventions to AGENTS.md
+  * update license from BSD-3-Clause to Apache-2.0 in
+    pyproject.toml
+  * Bump pypa/gh-action-pypi-publish from 1.13.0 to 1.14.0
+  * Bump actions/dependency-review-action from 4 to 5
+  * Bump actions/github-script from 8 to 9
+  * Bump actions/checkout from 6 to 7
+  * Bump actions/setup-python from 6 to 7
+  * Bump pypa/gh-action-pypi-publish from 1.14.0 to 1.14.2
+
+-------------------------------------------------------------------

Old:
----
  linode_metadata-0.3.5.tar.gz

New:
----
  linode_metadata-0.4.0.tar.gz

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

Other differences:
------------------
++++++ python-linode-metadata.spec ++++++
--- /var/tmp/diff_new_pack.6gVB3I/_old  2026-11-23 12:25:52.028925615 +0100
+++ /var/tmp/diff_new_pack.6gVB3I/_new  2026-11-23 12:25:52.031925741 +0100
@@ -17,10 +17,10 @@
 
 
 Name:           python-linode-metadata
-Version:        0.3.5
+Version:        0.4.0
 Release:        0
 Summary:        A client to interact with the Linode Metadata service in Python
-License:        BSD-3-Clause
+License:        Apache-2.0
 URL:            https://github.com/linode/py-metadata
 Source:         
https://files.pythonhosted.org/packages/source/l/linode-metadata/linode_metadata-%{version}.tar.gz
 BuildRequires:  %{python_module base >= 3.9}

++++++ linode_metadata-0.3.5.tar.gz -> linode_metadata-0.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linode_metadata-0.3.5/PKG-INFO 
new/linode_metadata-0.4.0/PKG-INFO
--- old/linode_metadata-0.3.5/PKG-INFO  2026-04-29 17:01:45.502345600 +0200
+++ new/linode_metadata-0.4.0/PKG-INFO  2026-09-24 17:10:48.861068700 +0200
@@ -1,15 +1,15 @@
 Metadata-Version: 2.4
 Name: linode_metadata
-Version: 0.3.5
+Version: 0.4.0
 Summary: A client to interact with the Linode Metadata service in Python.
 Author-email: Linode <[email protected]>
-License: BSD-3-Clause
+License: Apache-2.0
 Project-URL: homepage, https://github.com/linode/py-metadata
 Project-URL: repository, https://github.com/linode/py-metadata.git
 Classifier: Development Status :: 4 - Beta
 Classifier: Intended Audience :: Developers
 Classifier: Topic :: Software Development :: Libraries
-Classifier: License :: OSI Approved :: BSD License
+Classifier: License :: OSI Approved :: Apache Software License
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/linode_metadata-0.3.5/linode_metadata/metadata_client.py 
new/linode_metadata-0.4.0/linode_metadata/metadata_client.py
--- old/linode_metadata-0.3.5/linode_metadata/metadata_client.py        
2026-04-29 17:01:34.000000000 +0200
+++ new/linode_metadata-0.4.0/linode_metadata/metadata_client.py        
2026-09-24 17:10:41.276798700 +0200
@@ -6,6 +6,7 @@
 from __future__ import annotations
 
 import base64
+import gzip
 import json
 import logging
 from abc import ABC
@@ -29,6 +30,7 @@
 
 BASE_URL = "http://169.254.169.254/v1";
 DEFAULT_API_TIMEOUT = 10.0
+GZIP_MAGIC = b"\x1f\x8b\x08"
 
 
 class BaseMetadataClient(ABC):
@@ -132,6 +134,21 @@
 
         return handler()
 
+    @staticmethod
+    def _decode_user_data(encoded: Union[bytes, str]) -> str:
+        """
+        Decode user-data from base64 and gunzip it when the payload is gzipped.
+
+        :param encoded: Base64-encoded user-data from the Metadata Service.
+        :type encoded: Union[bytes, str]
+        :returns: The decoded user-data string.
+        :rtype: str
+        """
+        raw = base64.b64decode(encoded)
+        if raw.startswith(GZIP_MAGIC):
+            raw = gzip.decompress(raw)
+        return raw.decode("utf-8")
+
     def _get_http_method(
         self, method: str
     ) -> Optional[Callable[..., Union[Response, Awaitable[Response]]]]:
@@ -468,11 +485,14 @@
     def get_user_data(self) -> str:
         """
         Returns the user data configured on your running Linode instance.
+
+        NOTE: The result is automatically decoded from base64 and gunzipped
+        when needed.
         """
         response = self._api_call(
             "GET", "/user-data", content_type="text/plain"
         )
-        return base64.b64decode(response).decode("utf-8")
+        return self._decode_user_data(response)
 
     def get_instance(self) -> InstanceResponse:
         """
@@ -699,11 +719,14 @@
     async def get_user_data(self) -> str:
         """
         Returns the user data configured on your running Linode instance.
+
+        NOTE: The result is automatically decoded from base64 and gunzipped
+        when needed.
         """
         response = await self._api_call(
             "GET", "/user-data", content_type="text/plain"
         )
-        return base64.b64decode(response).decode("utf-8")
+        return self._decode_user_data(response)
 
     async def get_instance(self) -> InstanceResponse:
         """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linode_metadata-0.3.5/linode_metadata/version.py 
new/linode_metadata-0.4.0/linode_metadata/version.py
--- old/linode_metadata-0.3.5/linode_metadata/version.py        2026-04-29 
17:01:39.000000000 +0200
+++ new/linode_metadata-0.4.0/linode_metadata/version.py        2026-09-24 
17:10:45.411985600 +0200
@@ -2,4 +2,4 @@
 The version of linode_metadata.
 """
 
-__version__ = "v0.3.5"
+__version__ = "v0.4.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/linode_metadata-0.3.5/linode_metadata.egg-info/PKG-INFO 
new/linode_metadata-0.4.0/linode_metadata.egg-info/PKG-INFO
--- old/linode_metadata-0.3.5/linode_metadata.egg-info/PKG-INFO 2026-04-29 
17:01:45.000000000 +0200
+++ new/linode_metadata-0.4.0/linode_metadata.egg-info/PKG-INFO 2026-09-24 
17:10:48.849007400 +0200
@@ -1,15 +1,15 @@
 Metadata-Version: 2.4
 Name: linode_metadata
-Version: 0.3.5
+Version: 0.4.0
 Summary: A client to interact with the Linode Metadata service in Python.
 Author-email: Linode <[email protected]>
-License: BSD-3-Clause
+License: Apache-2.0
 Project-URL: homepage, https://github.com/linode/py-metadata
 Project-URL: repository, https://github.com/linode/py-metadata.git
 Classifier: Development Status :: 4 - Beta
 Classifier: Intended Audience :: Developers
 Classifier: Topic :: Software Development :: Libraries
-Classifier: License :: OSI Approved :: BSD License
+Classifier: License :: OSI Approved :: Apache Software License
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linode_metadata-0.3.5/pyproject.toml 
new/linode_metadata-0.4.0/pyproject.toml
--- old/linode_metadata-0.3.5/pyproject.toml    2026-04-29 17:01:34.000000000 
+0200
+++ new/linode_metadata-0.4.0/pyproject.toml    2026-09-24 17:10:41.276997600 
+0200
@@ -9,12 +9,12 @@
 description = "A client to interact with the Linode Metadata service in 
Python."
 readme = "README.md"
 requires-python = ">=3.9"
-license = { text = "BSD-3-Clause" }
+license = { text = "Apache-2.0" }
 classifiers = [
     "Development Status :: 4 - Beta",
     "Intended Audience :: Developers",
     "Topic :: Software Development :: Libraries",
-    "License :: OSI Approved :: BSD License",
+    "License :: OSI Approved :: Apache Software License",
     "Programming Language :: Python",
     "Programming Language :: Python :: 3",
     "Programming Language :: Python :: 3.9",

Reply via email to