Skip to content

Commit

Permalink
Updated patterns to libphonenumber v8.13.38 (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon committed Jun 5, 2024
1 parent 497a2b3 commit 4424a99
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.37
python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.38
python -m pip install -e .
- name: Flake8
run: |
Expand Down
6 changes: 3 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ verify_ssl = true
black = "==24.4.2"
flake8 = "==7.0.0"
pep8-naming = "==0.14.1"
phonenumbers = "==8.13.37"
pytest = "==8.2.0"
phonenumbers = "==8.13.38"
pytest = "==8.2.2"
pytest-cov = "==5.0.0"
requests = "==2.31.0"
requests = "==2.32.3"

[packages]
phone-gen = {editable = true, path = "."}
Expand Down
16 changes: 8 additions & 8 deletions phone_gen/patterns.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
"""
Auto-generated file 2024-05-17 14:37:40 UTC
Resource: https://github.com/google/libphonenumber v8.13.37
Auto-generated file 2024-06-05 12:23:32 UTC
Resource: https://github.com/google/libphonenumber v8.13.38
"""


PATTERNS = {
"info": "libphonenumber v8.13.37",
"info": "libphonenumber v8.13.38",
"data": {
"AC": {
"code": "247",
Expand Down Expand Up @@ -51,7 +51,7 @@
"AO": {
"code": "244",
"pattern": "((2[\\d]([0134][25-9])|([25-9][\\d])[\\d]{5}))",
"mobile": "((9[1-59][\\d]{7}))",
"mobile": "((9[1-579][\\d]{7}))",
},
"AR": {
"code": "54",
Expand Down Expand Up @@ -385,7 +385,7 @@
},
"GB": {
"code": "44",
"pattern": "(((1(1(3([0-58][\\d][\\d])|(73[0235]))|(4(([0-5][\\d])|(70)[\\d])|(69[7-9]))|(((5[0-26-9])|([78][0-49])[\\d])|(6([0-4][\\d])|(50))[\\d]))|((2((0[024-9])|(2[3-9])|(3[3-79])|(4[1-689])|([58][02-9])|(6[0-47-9])|(7[013-9])|(9[\\d])[\\d])|(1([0-7][\\d])|(8[0-2])))|((3(0[\\d])|(1[0-8])|([25][02-9])|(3[02-579])|([468][0-46-9])|(7[1-35-79])|(9[2-578]))|(4(0[03-9])|([137][\\d])|([28][02-57-9])|(4[02-69])|(5[0-8])|([69][0-79]))|(5(0[1-35-9])|([16][\\d])|(2[024-9])|(3[015689])|(4[02-9])|(5[03-9])|(7[0-35-9])|(8[0-468])|(9[0-57-9]))|(6(0[034689])|(1[\\d])|(2[0-35689])|([38][013-9])|(4[1-467])|(5[0-69])|(6[13-9])|(7[0-8])|(9[0-24578]))|(7(0[0246-9])|(2[\\d])|(3[0236-8])|(4[03-9])|(5[0-46-9])|(6[013-9])|(7[0-35-9])|(8[024-9])|(9[02-9]))|(8(0[35-9])|(2[1-57-9])|(3[02-578])|(4[0-578])|(5[124-9])|(6[2-69])|(7[\\d])|(8[02-9])|(9[02569]))|(9(0[02-589])|([18][\\d])|(2[02-689])|(3[1-57-9])|(4[2-9])|(5[0-579])|(6[2-47-9])|(7[0-24578])|(9[2-57]))[\\d])[\\d]))|(2(0[013478])|(3[0189])|(4[017])|(8[0-46-9])|(9[0-2])[\\d]{3})[\\d]{4})|(1(2(0(46[1-4])|(87[2-9]))|(545[1-79])|(76(2[\\d])|(3[1-8])|(6[1-6]))|(9(7(2[0-4])|(3[2-5]))|(8(2[2-8])|(7[0-47-9])|(8[3-5]))))|(3(6(38[2-5])|(47[23]))|(8(47[04-9])|(64[0157-9])))|(4(044[1-7])|(20(2[23])|(8[\\d]))|(6(0(30)|(5[2-57])|(6[1-8])|(7[2-8]))|(140))|(8(052)|(87[1-3])))|(5(2(4(3[2-79])|(6[\\d]))|(76[\\d]))|(6(26[06-9])|(686)))|(6(06(4[\\d])|(7[4-79]))|(295[5-7])|(35[34][\\d])|(47(24)|(61))|(59(5[08])|(6[67])|(74))|(9(55[0-4])|(77[23])))|(7(26(6[13-9])|(7[0-7]))|((442)|(688)[\\d])|(50(2[0-3])|([3-68]2)|(76)))|(8(27[56][\\d])|(37(5[2-5])|(8[239]))|(843[2-58]))|(9(0(0(6[1-8])|(85))|(52[\\d]))|(3583)|(4(66[1-8])|(9(2[01])|(81)))|(63(23)|(3[1-4]))|(9561))[\\d]{3}))",
"pattern": "(((1(1(3([0-58][\\d][\\d])|(73[0-35]))|(4(([0-5][\\d])|(70)[\\d])|(69[7-9]))|(((5[0-26-9])|([78][0-49])[\\d])|(6([0-4][\\d])|(50))[\\d]))|((2((0[024-9])|(2[3-9])|(3[3-79])|(4[1-689])|([58][02-9])|(6[0-47-9])|(7[013-9])|(9[\\d])[\\d])|(1([0-7][\\d])|(8[0-3])))|((3(0[\\d])|(1[0-8])|([25][02-9])|(3[02-579])|([468][0-46-9])|(7[1-35-79])|(9[2-578]))|(4(0[03-9])|([137][\\d])|([28][02-57-9])|(4[02-69])|(5[0-8])|([69][0-79]))|(5(0[1-35-9])|([16][\\d])|(2[024-9])|(3[015689])|(4[02-9])|(5[03-9])|(7[0-35-9])|(8[0-468])|(9[0-57-9]))|(6(0[034689])|(1[\\d])|(2[0-35689])|([38][013-9])|(4[1-467])|(5[0-69])|(6[13-9])|(7[0-8])|(9[0-24578]))|(7(0[0246-9])|(2[\\d])|(3[0236-8])|(4[03-9])|(5[0-46-9])|(6[013-9])|(7[0-35-9])|(8[024-9])|(9[02-9]))|(8(0[35-9])|(2[1-57-9])|(3[02-578])|(4[0-578])|(5[124-9])|(6[2-69])|(7[\\d])|(8[02-9])|(9[02569]))|(9(0[02-589])|([18][\\d])|(2[02-689])|(3[1-57-9])|(4[2-9])|(5[0-579])|(6[2-47-9])|(7[0-24578])|(9[2-57]))[\\d])[\\d]))|(2(0[013478])|(3[0189])|(4[017])|(8[0-46-9])|(9[0-2])[\\d]{3})[\\d]{4})|(1(2(0(46[1-4])|(87[2-9]))|(545[1-79])|(76(2[\\d])|(3[1-8])|(6[1-6]))|(9(7(2[0-4])|(3[2-5]))|(8(2[2-8])|(7[0-47-9])|(8[3-5]))))|(3(6(38[2-5])|(47[23]))|(8(47[04-9])|(64[0157-9])))|(4(044[1-7])|(20(2[23])|(8[\\d]))|(6(0(30)|(5[2-57])|(6[1-8])|(7[2-8]))|(140))|(8(052)|(87[1-3])))|(5(2(4(3[2-79])|(6[\\d]))|(76[\\d]))|(6(26[06-9])|(686)))|(6(06(4[\\d])|(7[4-79]))|(295[5-7])|(35[34][\\d])|(47(24)|(61))|(59(5[08])|(6[67])|(74))|(9(55[0-4])|(77[23])))|(7(26(6[13-9])|(7[0-7]))|((442)|(688)[\\d])|(50(2[0-3])|([3-68]2)|(76)))|(8(27[56][\\d])|(37(5[2-5])|(8[239]))|(843[2-58]))|(9(0(0(6[1-8])|(85))|(52[\\d]))|(3583)|(4(66[1-8])|(9(2[01])|(81)))|(63(23)|(3[1-4]))|(9561))[\\d]{3}))",
"mobile": "((7(457[0-57-9])|(700[01])|(911[028])[\\d]{5})|(7([1-3][\\d][\\d])|(4([0-46-9][\\d])|(5[0-689]))|(5(0[0-8])|([13-9][\\d])|(2[0-35-9]))|(7(0[1-9])|([1-7][\\d])|(8[02-9])|(9[0-689]))|(8([014-9][\\d])|([23][0-8]))|(9([024-9][\\d])|(1[02-9])|(3[0-689]))[\\d]{6}))",
},
"GD": {
Expand Down Expand Up @@ -466,11 +466,11 @@
"GY": {
"code": "592",
"pattern": "(((2(1[6-9])|(2[0-35-9])|(3[1-4])|(5[3-9])|(6[\\d])|(7[0-79]))|(3(2[25-9])|(3[\\d]))|(4(4[0-24])|(5[56]))|(50[0-6])|(77[1-57])[\\d]{4}))",
"mobile": "(((510)|(6[\\d][\\d])|(7([013][\\d])|(2[0-25-8])|(4[0-29]))[\\d]{4}))",
"mobile": "(((510)|(6[\\d][\\d])|(7([013][\\d])|(2[0-25-8])|(4[0-29])|(5[1-9]))[\\d]{4}))",
},
"HK": {
"code": "852",
"pattern": "(((2([13-9][\\d])|(2[013-9])[\\d])|(3(([1569][0-24-9])|(4[0-246-9])|(7[0-24-69])[\\d])|(8(4[0-8])|([59][\\d])|(6[01])))|(58(0[1-9])|(1[2-9]))[\\d]{4}))",
"pattern": "(((2([13-9][\\d])|(2[013-9])[\\d])|(3(([1569][0-24-9])|(4[0-246-9])|(7[0-24-69])[\\d])|(8(4[0-8])|([59][\\d])|(6[0-2])))|(58(0[1-9])|(1[2-9]))[\\d]{4}))",
"mobile": "(((4(44[0-25-9])|(6(1[0-7])|(4[0-57-9])|(6[0-4])))|(5(73[0-6])|(95[0-8]))|(6(26[013-8])|(66[0-3]))|(70(7[1-8])|(8[0-4]))|(848[0-35-9])|(9(29[013-9])|(39[01])|(59[0-4])|(899))[\\d]{4})|((4(4[0-35-8])|(6[02357-9]))|(5([1-59][0-46-9])|(6[0-4689])|(7[0-246-9]))|(6(0[1-9])|([13-59][\\d])|([268][0-57-9])|(7[0-79]))|(70[129])|(84[0-29])|(9(0[1-9])|(1[02-9])|([2358][0-8])|([467][\\d]))[\\d]{5}))",
},
"HN": {
Expand Down Expand Up @@ -768,7 +768,7 @@
"MX": {
"code": "52",
"pattern": "((657[12][\\d]{6})|((2(0[01])|(2[\\d])|(3[1-35-8])|(4[13-9])|(7[1-689])|(8[1-578])|(9[467]))|(3(1[1-79])|([2458][1-9])|(3[\\d])|(7[1-8])|(9[1-5]))|(4(1[1-57-9])|([25-7][1-9])|(3[1-8])|(4[\\d])|(8[1-35-9])|(9[2-689]))|(5([56][\\d])|(88)|(9[1-79]))|(6(1[2-68])|([2-4][1-9])|(5[1-3689])|(6[1-57-9])|(7[1-7])|(8[67])|(9[4-8]))|(7([1346][1-9])|([27][\\d])|(5[13-9])|(8[1-69])|(9[17]))|(8(1[\\d])|(2[13-689])|(3[1-6])|(4[124-6])|(6[1246-9])|(7[0-378])|(9[12479]))|(9(1[346-9])|(2[1-4])|(3[2-46-8])|(5[1348])|([69][\\d])|(7[12])|(8[1-8]))[\\d]{7}))",
"mobile": "((657[12][\\d]{6})|((1(2(2[1-9])|(3[1-35-8])|(4[13-9])|(7[1-689])|(8[1-578])|(9[467]))|(3(1[1-79])|([2458][1-9])|(3[\\d])|(7[1-8])|(9[1-5]))|(4(1[1-57-9])|([24-7][1-9])|(3[1-8])|(8[1-35-9])|(9[2-689]))|(5([56][\\d])|(88)|(9[1-79]))|(6(1[2-68])|([2-4][1-9])|(5[1-3689])|(6[1-57-9])|(7[1-7])|(8[67])|(9[4-8]))|(7([1-467][1-9])|(5[13-9])|(8[1-69])|(9[17]))|(8(1[\\d])|(2[13-689])|(3[1-6])|(4[124-6])|(6[1246-9])|(7[1-378])|(9[12479]))|(9(1[346-9])|(2[1-4])|(3[2-46-8])|(5[1348])|([69][1-9])|(7[12])|(8[1-8])))|(2(2[\\d])|(3[1-35-8])|(4[13-9])|(7[1-689])|(8[1-578])|(9[467]))|(3(1[1-79])|([2458][1-9])|(3[\\d])|(7[1-8])|(9[1-5]))|(4(1[1-57-9])|([25-7][1-9])|(3[1-8])|(4[\\d])|(8[1-35-9])|(9[2-689]))|(5([56][\\d])|(88)|(9[1-79]))|(6(1[2-68])|([2-4][1-9])|(5[1-3689])|(6[1-57-9])|(7[1-7])|(8[67])|(9[4-8]))|(7([1346][1-9])|([27][\\d])|(5[13-9])|(8[1-69])|(9[17]))|(8(1[\\d])|(2[13-689])|(3[1-6])|(4[124-6])|(6[1246-9])|(7[0-378])|(9[12479]))|(9(1[346-9])|(2[1-4])|(3[2-46-8])|(5[1348])|([69][\\d])|(7[12])|(8[1-8]))[\\d]{7}))",
"mobile": "((657[12][\\d]{6})|((2(2[\\d])|(3[1-35-8])|(4[13-9])|(7[1-689])|(8[1-578])|(9[467]))|(3(1[1-79])|([2458][1-9])|(3[\\d])|(7[1-8])|(9[1-5]))|(4(1[1-57-9])|([25-7][1-9])|(3[1-8])|(4[\\d])|(8[1-35-9])|(9[2-689]))|(5([56][\\d])|(88)|(9[1-79]))|(6(1[2-68])|([2-4][1-9])|(5[1-3689])|(6[1-57-9])|(7[1-7])|(8[67])|(9[4-8]))|(7([1346][1-9])|([27][\\d])|(5[13-9])|(8[1-69])|(9[17]))|(8(1[\\d])|(2[13-689])|(3[1-6])|(4[124-6])|(6[1246-9])|(7[0-378])|(9[12479]))|(9(1[346-9])|(2[1-4])|(3[2-46-8])|(5[1348])|([69][\\d])|(7[12])|(8[1-8]))[\\d]{7}))",
},
"MY": {
"code": "60",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
entry_points={
"console_scripts": ["phone-gen=phone_gen.cli:main"],
},
python_requires=">=3.7",
python_requires=">=3.8",
include_package_data=True,
keywords=["testing", "test-data", "phone-number", "phone", "test-data-generator"],
classifiers=[
Expand Down

0 comments on commit 4424a99

Please sign in to comment.