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-06-26 18:15:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Faker (Old) and /work/SRC/openSUSE:Factory/.python-Faker.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Faker" Mon Jun 26 18:15:31 2023 rev:45 rq:1095231 version:18.11.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Faker/python-Faker.changes 2023-06-21 22:37:36.045555680 +0200 +++ /work/SRC/openSUSE:Factory/.python-Faker.new.15902/python-Faker.changes 2023-06-26 18:15:32.766324352 +0200 @@ -1,0 +2,7 @@ +Sun Jun 25 18:47:55 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 18.11.1: + * Update Ukraine Country Code in `phone_number` + * Add digit-above-two type to numerify function + +------------------------------------------------------------------- Old: ---- Faker-18.10.1.tar.gz New: ---- Faker-18.11.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Faker.spec ++++++ --- /var/tmp/diff_new_pack.B15qx8/_old 2023-06-26 18:15:33.462327444 +0200 +++ /var/tmp/diff_new_pack.B15qx8/_new 2023-06-26 18:15:33.466327462 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-Faker -Version: 18.10.1 +Version: 18.11.1 Release: 0 Summary: Python package that generates fake data License: MIT ++++++ Faker-18.10.1.tar.gz -> Faker-18.11.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Faker-18.10.1/CHANGELOG.md new/Faker-18.11.1/CHANGELOG.md --- old/Faker-18.10.1/CHANGELOG.md 2023-06-02 21:06:49.000000000 +0200 +++ new/Faker-18.11.1/CHANGELOG.md 2023-06-20 22:33:37.000000000 +0200 @@ -1,5 +1,13 @@ ## Changelog +### [v18.11.1 - 2023-06-20](https://github.com/joke2k/faker/compare/v18.11.0...v18.11.1) + +* Update Ukraine Country Code in `phone_number`. Thanks @lexxai. + +### [v18.11.0 - 2023-06-20](https://github.com/joke2k/faker/compare/v18.10.1...v18.11.0) + +* Add digit-above-two type to numerify function. Thanks @dlwrnc. + ### [v18.10.1 - 2023-06-02](https://github.com/joke2k/faker/compare/v18.10.0...v18.10.1) * Fix handling leap year in `en_US` Passport provider. Thanks @mgorny. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Faker-18.10.1/Faker.egg-info/PKG-INFO new/Faker-18.11.1/Faker.egg-info/PKG-INFO --- old/Faker-18.10.1/Faker.egg-info/PKG-INFO 2023-06-02 21:07:23.000000000 +0200 +++ new/Faker-18.11.1/Faker.egg-info/PKG-INFO 2023-06-20 22:34:12.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Faker -Version: 18.10.1 +Version: 18.11.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.10.1/PKG-INFO new/Faker-18.11.1/PKG-INFO --- old/Faker-18.10.1/PKG-INFO 2023-06-02 21:07:24.435199000 +0200 +++ new/Faker-18.11.1/PKG-INFO 2023-06-20 22:34:13.420035400 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Faker -Version: 18.10.1 +Version: 18.11.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.10.1/VERSION new/Faker-18.11.1/VERSION --- old/Faker-18.10.1/VERSION 2023-06-02 21:07:06.000000000 +0200 +++ new/Faker-18.11.1/VERSION 2023-06-20 22:33:49.000000000 +0200 @@ -1 +1 @@ -18.10.1 +18.11.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Faker-18.10.1/faker/__init__.py new/Faker-18.11.1/faker/__init__.py --- old/Faker-18.10.1/faker/__init__.py 2023-06-02 21:07:06.000000000 +0200 +++ new/Faker-18.11.1/faker/__init__.py 2023-06-20 22:33:49.000000000 +0200 @@ -2,6 +2,6 @@ from faker.generator import Generator from faker.proxy import Faker -VERSION = "18.10.1" +VERSION = "18.11.1" __all__ = ("Factory", "Generator", "Faker") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Faker-18.10.1/faker/providers/__init__.py new/Faker-18.11.1/faker/providers/__init__.py --- old/Faker-18.10.1/faker/providers/__init__.py 2023-02-09 21:33:45.000000000 +0100 +++ new/Faker-18.11.1/faker/providers/__init__.py 2023-06-20 18:30:16.000000000 +0200 @@ -10,6 +10,7 @@ _re_hash = re.compile(r"#") _re_perc = re.compile(r"%") +_re_dol = re.compile(r"\$") _re_excl = re.compile(r"!") _re_at = re.compile(r"@") _re_qm = re.compile(r"\?") @@ -325,6 +326,11 @@ return self.generator.random.randint(1, 9) + def random_digit_above_two(self) -> int: + """Generate a random digit above value two (2 to 9).""" + + return self.generator.random.randint(2, 9) + def random_digit_or_empty(self) -> Union[int, str]: """Generate a random digit (0 to 9) or an empty string. @@ -603,6 +609,7 @@ - Number signs ('#') are replaced with a random digit (0 to 9). - Percent signs ('%') are replaced with a random non-zero digit (1 to 9). + - Dollar signs ('$') are replaced with a random digit above two (2 to 9). - Exclamation marks ('!') are replaced with a random digit or an empty string. - At symbols ('@') are replaced with a random non-zero digit or an empty string. @@ -617,6 +624,7 @@ """ text = _re_hash.sub(lambda x: str(self.random_digit()), text) text = _re_perc.sub(lambda x: str(self.random_digit_not_null()), text) + text = _re_dol.sub(lambda x: str(self.random_digit_above_two()), text) text = _re_excl.sub(lambda x: str(self.random_digit_or_empty()), text) text = _re_at.sub(lambda x: str(self.random_digit_not_null_or_empty()), text) return text diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Faker-18.10.1/faker/providers/phone_number/en_US/__init__.py new/Faker-18.11.1/faker/providers/phone_number/en_US/__init__.py --- old/Faker-18.10.1/faker/providers/phone_number/en_US/__init__.py 2023-04-27 17:10:29.000000000 +0200 +++ new/Faker-18.11.1/faker/providers/phone_number/en_US/__init__.py 2023-06-20 18:30:16.000000000 +0200 @@ -4,45 +4,45 @@ class Provider(PhoneNumberProvider): formats = ( # Standard 10-digit phone number formats - "##########", - "##########", - "###-###-####", - "###-###-####", + "$##$######", + "$##$######", + "$##-$##-####", + "$##-$##-####", # Optional 10-digit local phone number format - "(###)###-####", - "(###)###-####", + "($##)$##-####", + "($##)$##-####", # Non-standard 10-digit phone number format - "###.###.####", - "###.###.####", + "$##.$##.####", + "$##.$##.####", # Standard 10-digit phone number format with extensions - "###-###-####x###", - "###-###-####x####", - "###-###-####x#####", + "$##-$##-####x###", + "$##-$##-####x####", + "$##-$##-####x#####", # Optional 10-digit local phone number format with extensions - "(###)###-####x###", - "(###)###-####x####", - "(###)###-####x#####", + "($##)$##-####x###", + "($##)$##-####x####", + "($##)$##-####x#####", # Non-standard 10-digit phone number format with extensions - "###.###.####x###", - "###.###.####x####", - "###.###.####x#####", + "$##.$##.####x###", + "$##.$##.####x####", + "$##.$##.####x#####", # Standard 11-digit phone number format - "+1-###-###-####", - "001-###-###-####", + "+1-$##-$##-####", + "001-$##-$##-####", # Standard 11-digit phone number format with extensions - "+1-###-###-####x###", - "+1-###-###-####x####", - "+1-###-###-####x#####", - "001-###-###-####x###", - "001-###-###-####x####", - "001-###-###-####x#####", + "+1-$##-$##-####x###", + "+1-$##-$##-####x####", + "+1-$##-$##-####x#####", + "001-$##-$##-####x###", + "001-$##-$##-####x####", + "001-$##-$##-####x#####", ) basic_formats = ( # basic 10-digit phone number format with no extensions - "##########", - "###-###-####", - "(###)###-####", + "$##$######", + "$##-$##-####", + "($##)$##-####", ) def basic_phone_number(self) -> str: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Faker-18.10.1/faker/providers/phone_number/uk_UA/__init__.py new/Faker-18.11.1/faker/providers/phone_number/uk_UA/__init__.py --- old/Faker-18.10.1/faker/providers/phone_number/uk_UA/__init__.py 2022-02-14 18:03:11.000000000 +0100 +++ new/Faker-18.11.1/faker/providers/phone_number/uk_UA/__init__.py 2023-06-20 22:32:35.000000000 +0200 @@ -7,8 +7,8 @@ "### ## ##", "0## ### ## ##", "0## ###-##-##", - "+38 0## ###-##-##", - "+38 0## ###-##-##", - "+38 (0##) ###-##-##", - "+38 0## ### ## ##", + "+380 ## ###-##-##", + "+380 ## ###-##-##", + "+380 (##) ###-##-##", + "+380 ## ### ## ##", ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Faker-18.10.1/tests/providers/__init__.py new/Faker-18.11.1/tests/providers/__init__.py --- old/Faker-18.10.1/tests/providers/__init__.py 2022-02-14 18:03:11.000000000 +0100 +++ new/Faker-18.11.1/tests/providers/__init__.py 2023-06-20 18:30:16.000000000 +0200 @@ -35,6 +35,10 @@ samples = [faker.random_digit_not_null() for _ in range(num_samples * 10)] assert set(samples) == set(range(1, 10)) + def test_random_digit_above_two(self, faker, num_samples): + samples = [faker.random_digit_above_two() for _ in range(num_samples * 10)] + assert set(samples) == set(range(2, 10)) + def test_random_digit_or_empty(self, faker, num_samples): expected = set(range(10)) expected.add("") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Faker-18.10.1/tests/providers/test_address.py new/Faker-18.11.1/tests/providers/test_address.py --- old/Faker-18.10.1/tests/providers/test_address.py 2023-06-01 18:15:54.000000000 +0200 +++ new/Faker-18.11.1/tests/providers/test_address.py 2023-06-20 22:32:35.000000000 +0200 @@ -872,7 +872,7 @@ assert isinstance(postcode, str) assert len(postcode) == 5 assert ( - postcode[:3] in department_numbers # for 3 digits deparments number + postcode[:3] in department_numbers # for 3 digits departments number or postcode[:2] == "20" # for Corsica : "2A" or "2B" or postcode[:2] in department_numbers # any other )