Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Faker for openSUSE:Factory 
checked in at 2023-04-27 19:59:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Faker (Old)
 and      /work/SRC/openSUSE:Factory/.python-Faker.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Faker"

Thu Apr 27 19:59:52 2023 rev:40 rq:1083104 version:18.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Faker/python-Faker.changes        
2023-04-24 22:30:55.079405335 +0200
+++ /work/SRC/openSUSE:Factory/.python-Faker.new.1533/python-Faker.changes      
2023-04-27 19:59:53.241556184 +0200
@@ -1,0 +2,12 @@
+Wed Apr 26 06:22:03 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 18.5.1:
+  * Fix release.
+  * Add `de_DE` `swift_location_codes`. Thanks @MiloniAtal.
+
+-------------------------------------------------------------------
+Fri Apr 21 12:20:31 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- add sle15_python_module_pythons (jsc#PED-68)
+
+-------------------------------------------------------------------

Old:
----
  Faker-18.4.0.tar.gz

New:
----
  Faker-18.5.1.tar.gz

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

Other differences:
------------------
++++++ python-Faker.spec ++++++
--- /var/tmp/diff_new_pack.6JXZoL/_old  2023-04-27 19:59:53.829559641 +0200
+++ /var/tmp/diff_new_pack.6JXZoL/_new  2023-04-27 19:59:53.833559665 +0200
@@ -18,8 +18,9 @@
 
 %{?!python_module:%define python_module() python3-%{**}}
 %global skip_python2 1
+%{?sle15_python_module_pythons}
 Name:           python-Faker
-Version:        18.4.0
+Version:        18.5.1
 Release:        0
 Summary:        Python package that generates fake data
 License:        MIT

++++++ Faker-18.4.0.tar.gz -> Faker-18.5.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Faker-18.4.0/CHANGELOG.md 
new/Faker-18.5.1/CHANGELOG.md
--- old/Faker-18.4.0/CHANGELOG.md       2023-04-06 17:26:53.000000000 +0200
+++ new/Faker-18.5.1/CHANGELOG.md       2023-04-24 17:54:53.000000000 +0200
@@ -1,6 +1,14 @@
 ## Changelog
 
-### [v18.4.0- 
2023-04-06](https://github.com/joke2k/faker/compare/v18.3.4...v18.4.0)
+### [v18.5.1 - 
2023-04-24](https://github.com/joke2k/faker/compare/v18.5.1...v18.5.1)
+
+* Fix release.
+
+### [v18.5.0 - 
2023-04-24](https://github.com/joke2k/faker/compare/v18.4.0...v18.5.0)
+
+* Add `de_DE` `swift_location_codes`. Thanks @MiloniAtal.
+
+### [v18.4.0 - 
2023-04-06](https://github.com/joke2k/faker/compare/v18.3.4...v18.4.0)
 
 * Add currency symbols for all listed currencies. Thanks @evoludigit.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Faker-18.4.0/Faker.egg-info/PKG-INFO 
new/Faker-18.5.1/Faker.egg-info/PKG-INFO
--- old/Faker-18.4.0/Faker.egg-info/PKG-INFO    2023-04-06 17:27:31.000000000 
+0200
+++ new/Faker-18.5.1/Faker.egg-info/PKG-INFO    2023-04-24 17:55:26.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Faker
-Version: 18.4.0
+Version: 18.5.1
 Summary: Faker is a Python package that generates fake data for you.
 Home-page: https://github.com/joke2k/faker
 Author: joke2k
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Faker-18.4.0/PKG-INFO new/Faker-18.5.1/PKG-INFO
--- old/Faker-18.4.0/PKG-INFO   2023-04-06 17:27:34.253279700 +0200
+++ new/Faker-18.5.1/PKG-INFO   2023-04-24 17:55:29.350040400 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Faker
-Version: 18.4.0
+Version: 18.5.1
 Summary: Faker is a Python package that generates fake data for you.
 Home-page: https://github.com/joke2k/faker
 Author: joke2k
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Faker-18.4.0/VERSION new/Faker-18.5.1/VERSION
--- old/Faker-18.4.0/VERSION    2023-04-06 17:27:17.000000000 +0200
+++ new/Faker-18.5.1/VERSION    2023-04-24 17:55:02.000000000 +0200
@@ -1 +1 @@
-18.4.0
+18.5.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Faker-18.4.0/faker/__init__.py 
new/Faker-18.5.1/faker/__init__.py
--- old/Faker-18.4.0/faker/__init__.py  2023-04-06 17:27:17.000000000 +0200
+++ new/Faker-18.5.1/faker/__init__.py  2023-04-24 17:55:02.000000000 +0200
@@ -2,6 +2,6 @@
 from faker.generator import Generator
 from faker.proxy import Faker
 
-VERSION = "18.4.0"
+VERSION = "18.5.1"
 
 __all__ = ("Factory", "Generator", "Faker")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Faker-18.4.0/faker/providers/bank/de_DE/__init__.py 
new/Faker-18.5.1/faker/providers/bank/de_DE/__init__.py
--- old/Faker-18.4.0/faker/providers/bank/de_DE/__init__.py     2022-02-14 
18:03:10.000000000 +0100
+++ new/Faker-18.5.1/faker/providers/bank/de_DE/__init__.py     2023-04-24 
17:53:28.000000000 +0200
@@ -2,7 +2,20 @@
 
 
 class Provider(BankProvider):
-    """Implement bank provider for ``de_DE`` locale."""
+    """Implement bank provider for ``de_DE`` locale.
+
+    Source for rules for swift location codes:
+
+    - https://www.ebics.de/de/datenformate
+    """
 
     bban_format = "##################"
     country_code = "DE"
+
+    first_place = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "23456789"
+    second_place = "ABCDEFGHIJKLMNPQRSTUVWXYZ" + "0123456789"
+    swift_location_codes = []
+    for i in first_place:
+        for j in second_place:
+            swift_location_codes.append(str(i) + str(j))
+    swift_location_codes = tuple(swift_location_codes)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Faker-18.4.0/tests/providers/test_bank.py 
new/Faker-18.5.1/tests/providers/test_bank.py
--- old/Faker-18.4.0/tests/providers/test_bank.py       2023-03-03 
17:54:56.000000000 +0100
+++ new/Faker-18.5.1/tests/providers/test_bank.py       2023-04-24 
17:53:28.000000000 +0200
@@ -271,6 +271,16 @@
             assert re.fullmatch(r"\d{2}\d{23}", iban[2:])
 
 
+class TestDeDe:
+    """Test de_DE bank provider"""
+
+    def test_swift_use_dataset(self, faker, num_samples):
+        regex = re.compile("[A-Z]{6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3})?")
+        for _ in range(num_samples):
+            code = faker.swift(use_dataset=True)
+            assert regex.fullmatch(code) is not None
+
+
 class TestEnPh:
     """Test en_PH bank provider"""
 

Reply via email to