Marcel Telka
2024-04-06 7a1e91471d4b540f48a912dfcca9f65211aa599c
python/Faker: update to 24.7.1

1 files added
3 files modified
54 ■■■■ changed files
components/python/Faker/Makefile 4 ●●●● patch | view | raw | blame | history
components/python/Faker/patches/01-test-sk-phone.patch 21 ●●●●● patch | view | raw | blame | history
components/python/Faker/python-integrate-project.conf 2 ●●●●● patch | view | raw | blame | history
components/python/Faker/test/results-all.master 27 ●●●● patch | view | raw | blame | history
components/python/Faker/Makefile
@@ -19,11 +19,11 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        Faker
HUMAN_VERSION =            24.4.0
HUMAN_VERSION =            24.7.1
COMPONENT_SUMMARY =        Faker - Faker is a Python package that generates fake data for you.
COMPONENT_PROJECT_URL =        https://github.com/joke2k/faker
COMPONENT_ARCHIVE_HASH =    \
    sha256:a5ddccbe97ab691fad6bd8036c31f5697cfaa550e62e000078d1935fa8a7ec2e
    sha256:39d34c63f0d62ed574161e23fe32008917b923d18098ce94c2650fe16463b7d5
COMPONENT_LICENSE =        MIT
COMPONENT_LICENSE_FILE =    LICENSE.txt
components/python/Faker/patches/01-test-sk-phone.patch
New file
@@ -0,0 +1,21 @@
https://github.com/joke2k/faker/issues/2019
--- Faker-24.7.1/tests/providers/test_phone_number.py.orig
+++ Faker-24.7.1/tests/providers/test_phone_number.py
@@ -73,16 +73,6 @@
             assert pattern.fullmatch(phone_number)
-class TestSkSk:
-    """Test sk_SK phone number provider methods"""
-
-    def test_phone_number(self, faker, num_samples):
-        pattern: Pattern = re.compile(r"^(00421|\+421)? ?[2-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$")
-        for _ in range(num_samples):
-            phone_number = faker.phone_number()
-            assert pattern.fullmatch(phone_number)
-
-
 class TestPtBr:
     """Test pt_BR phone number provider methods"""
components/python/Faker/python-integrate-project.conf
@@ -13,6 +13,8 @@
# Copyright 2023 Marcel Telka
#
%patch% 01-test-sk-phone.patch
%include-3%
# https://github.com/pytest-dev/pytest/issues/12186
TEST_CONFLICTING_PACKAGES.python += library/python/pytest-black
components/python/Faker/test/results-all.master
@@ -5,7 +5,7 @@
cachedir: .tox/py$(PYV)/.pytest_cache
rootdir: $(@D)
configfile: setup.cfg
collecting ... collected 1893 items
collecting ... collected 1894 items
Use a separate pytest run for tests like this with the "--exclusive-
Use a separate pytest run for tests like this with the "--exclusive-
@@ -1280,6 +1280,7 @@
tests/providers/test_phone_number.py::TestAzAz::test_cellphone_number PASSED
tests/providers/test_phone_number.py::TestAzAz::test_landline_number PASSED
tests/providers/test_phone_number.py::TestAzAz::test_phone_number PASSED
tests/providers/test_phone_number.py::TestCsCz::test_phone_number PASSED
tests/providers/test_phone_number.py::TestEnPh::test_area2_landline_number PASSED
tests/providers/test_phone_number.py::TestEnPh::test_bayantel_area2_landline_number PASSED
tests/providers/test_phone_number.py::TestEnPh::test_globe_area2_landline_number PASSED
@@ -1927,7 +1928,7 @@
    warnings.warn("fr_QC locale is deprecated. Please use fr_CA.")
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======== 1862 passed, 31 skipped, 2 warnings ========
======== 1863 passed, 31 skipped, 2 warnings ========
py$(PYV): commands[1]> python -m coverage run --source=faker -a -m pytest --exclusive-faker-session tests/pytest/session_overrides
============================= test session starts ==============================
platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python
@@ -2409,8 +2410,8 @@
faker/providers/company/zh_CN/__init__.py             7      7     0%
faker/providers/company/zh_TW/__init__.py             7      7     0%
faker/providers/company/zh_TW/__init__.py             7      7     0%
faker/providers/credit_card/__init__.py              67     34    49%
faker/providers/credit_card/__init__.py              67     34    49%
faker/providers/credit_card/__init__.py              59     34    42%
faker/providers/credit_card/__init__.py              59     34    42%
faker/providers/credit_card/en_US/__init__.py         3      0   100%
faker/providers/credit_card/en_US/__init__.py         3      0   100%
faker/providers/credit_card/fa_IR/__init__.py        34     34     0%
@@ -2927,8 +2928,8 @@
faker/providers/person/no_NO/__init__.py              8      8     0%
faker/providers/person/or_IN/__init__.py             17     17     0%
faker/providers/person/or_IN/__init__.py             17     17     0%
faker/providers/person/pl_PL/__init__.py             86     86     0%
faker/providers/person/pl_PL/__init__.py             86     86     0%
faker/providers/person/pl_PL/__init__.py             84     84     0%
faker/providers/person/pl_PL/__init__.py             84     84     0%
faker/providers/person/pt_BR/__init__.py             11     11     0%
faker/providers/person/pt_BR/__init__.py             11     11     0%
faker/providers/person/pt_PT/__init__.py             12     12     0%
@@ -3083,8 +3084,8 @@
faker/providers/profile/__init__.py                  22     13    41%
faker/providers/profile/en_US/__init__.py             0      0   100%
faker/providers/profile/en_US/__init__.py             0      0   100%
faker/providers/python/__init__.py                  249    213    14%
faker/providers/python/__init__.py                  249    213    14%
faker/providers/python/__init__.py                  251    214    15%
faker/providers/python/__init__.py                  251    214    15%
faker/providers/python/en_US/__init__.py              0      0   100%
faker/providers/python/en_US/__init__.py              0      0   100%
faker/providers/sbn/__init__.py                      25     15    40%
@@ -3155,8 +3156,8 @@
faker/providers/ssn/hr_HR/__init__.py                21     21     0%
faker/providers/ssn/hu_HU/__init__.py                52     52     0%
faker/providers/ssn/hu_HU/__init__.py                52     52     0%
faker/providers/ssn/it_IT/__init__.py                89     59    34%
faker/providers/ssn/it_IT/__init__.py                89     59    34%
faker/providers/ssn/it_IT/__init__.py                84     59    30%
faker/providers/ssn/it_IT/__init__.py                84     59    30%
faker/providers/ssn/ko_KR/__init__.py                 3      3     0%
faker/providers/ssn/ko_KR/__init__.py                 3      3     0%
faker/providers/ssn/lb_LU/__init__.py                 5      5     0%
@@ -3207,8 +3208,8 @@
faker/providers/user_agent/en_US/__init__.py          0      0   100%
faker/proxy.py                                      202    112    45%
faker/proxy.py                                      202    112    45%
faker/typing.py                                      25      5    80%
faker/typing.py                                      25      5    80%
faker/typing.py                                      34      5    85%
faker/typing.py                                      34      5    85%
faker/utils/__init__.py                               0      0   100%
faker/utils/__init__.py                               0      0   100%
faker/utils/checksums.py                             15     12    20%
@@ -3224,6 +3225,6 @@
faker/utils/text.py                                  16      9    44%
faker/utils/text.py                                  16      9    44%
---------------------------------------------------------------------
TOTAL                                             19934  17494    12%
TOTAL                                             19926  17492    12%
  py$(PYV): OK
  congratulations :)