Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-srcinfo for openSUSE:Factory 
checked in at 2023-12-09 22:53:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-srcinfo (Old)
 and      /work/SRC/openSUSE:Factory/.python-srcinfo.new.25432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-srcinfo"

Sat Dec  9 22:53:29 2023 rev:5 rq:1132131 version:0.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-srcinfo/python-srcinfo.changes    
2022-12-15 19:26:15.288414613 +0100
+++ /work/SRC/openSUSE:Factory/.python-srcinfo.new.25432/python-srcinfo.changes 
2023-12-09 22:57:14.592401922 +0100
@@ -1,0 +2,7 @@
+Fri Dec  8 16:06:46 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 0.1.2:
+  * Revert "Don't check for prefix matches in is_array"
+  * Add test to make sure architecture-specific arrays work
+
+-------------------------------------------------------------------

Old:
----
  srcinfo-0.1.1.tar.gz

New:
----
  srcinfo-0.1.2.tar.gz

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

Other differences:
------------------
++++++ python-srcinfo.spec ++++++
--- /var/tmp/diff_new_pack.I87d0w/_old  2023-12-09 22:57:15.096420419 +0100
+++ /var/tmp/diff_new_pack.I87d0w/_new  2023-12-09 22:57:15.100420565 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-srcinfo
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           python-srcinfo
-Version:        0.1.1
+Version:        0.1.2
 Release:        0
 Summary:        Python library to parse Arch SRCINFO files
 License:        ISC

++++++ srcinfo-0.1.1.tar.gz -> srcinfo-0.1.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/srcinfo-0.1.1/PKG-INFO new/srcinfo-0.1.2/PKG-INFO
--- old/srcinfo-0.1.1/PKG-INFO  1970-01-01 01:00:00.000000000 +0100
+++ new/srcinfo-0.1.2/PKG-INFO  1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: srcinfo
-Version: 0.1.1
+Version: 0.1.2
 Summary: A small library to parse .SRCINFO files
 License: ISC
 Author: Johannes Löthberg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/srcinfo-0.1.1/pyproject.toml 
new/srcinfo-0.1.2/pyproject.toml
--- old/srcinfo-0.1.1/pyproject.toml    2022-12-14 20:54:15.830516800 +0100
+++ new/srcinfo-0.1.2/pyproject.toml    2023-01-27 13:00:04.554111500 +0100
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "srcinfo"
-version = "0.1.1"
+version = "0.1.2"
 description = "A small library to parse .SRCINFO files"
 authors = ["Johannes Löthberg <[email protected]>"]
 license = "ISC"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/srcinfo-0.1.1/setup.py new/srcinfo-0.1.2/setup.py
--- old/srcinfo-0.1.1/setup.py  1970-01-01 01:00:00.000000000 +0100
+++ new/srcinfo-0.1.2/setup.py  1970-01-01 01:00:00.000000000 +0100
@@ -15,7 +15,7 @@
 
 setup_kwargs = {
     'name': 'srcinfo',
-    'version': '0.1.1',
+    'version': '0.1.2',
     'description': 'A small library to parse .SRCINFO files',
     'long_description': "================\n 
python-srcinfo\n================\n\nThis is a small library to easily parse 
``.SRCINFO`` files in python, using the python parse_ library.\n\n.. _parse: 
https://github.com/r1chardj0n3s/parse\n\n\nInstalling\n----------\n\nIf you're 
on Arch Linux, you can install this library from the [community] 
repository.\nAlternatively, it can be installed from the PyPI using pip 
`[1]`__.\n\n.. __: https://pypi.python.org/pypi/srcinfo\n";,
     'author': 'Johannes Löthberg',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/srcinfo-0.1.1/srcinfo/parse.py 
new/srcinfo-0.1.2/srcinfo/parse.py
--- old/srcinfo-0.1.1/srcinfo/parse.py  2019-06-22 19:19:44.981263600 +0200
+++ new/srcinfo-0.1.2/srcinfo/parse.py  2023-01-27 12:58:12.216758300 +0100
@@ -14,6 +14,9 @@
 def is_array(key):
     if key in arrays:
         return True
+    for array in arrays:
+        if key.startswith(array):
+            return True
     return False
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/srcinfo-0.1.1/test/__init__.py 
new/srcinfo-0.1.2/test/__init__.py
--- old/srcinfo-0.1.1/test/__init__.py  2019-06-22 19:13:00.890884600 +0200
+++ new/srcinfo-0.1.2/test/__init__.py  2023-01-27 12:59:07.360427400 +0100
@@ -89,6 +89,25 @@
         self.assertIn('pkgbase declared after pkgname', errors[0]['error'])
 
 
+    def testArchitectureSpecificArrays(self):
+        from srcinfo.parse import parse_srcinfo
+
+        srcinfo = '''pkgbase = ponies
+    source = git+https://example.com/package.git
+    source_x86_64 = git+https://example.org/package.git
+    source_x86_64 = git+https://example.net/package.git
+pkgname = ponies'''
+
+        (parsed, errors) = parse_srcinfo(srcinfo)
+        self.assertTrue(parsed)
+        self.assertEqual(errors, [])
+        self.assertEqual(parsed['source'], 
['git+https://example.com/package.git'])
+        self.assertEqual(
+            parsed['source_x86_64'],
+            ['git+https://example.org/package.git', 
'git+https://example.net/package.git'],
+        )
+
+
     def testCoverage(self):
         from srcinfo.parse import parse_srcinfo
         from srcinfo.utils import get_variable

Reply via email to