Skip to content

Commit

Permalink
Updating patterns to libphonenumber v8.12.8 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon authored Aug 17, 2020
1 parent 91d628a commit 9d57c73
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- phone-gen --version
after_success: false
env:
- PHONENUMBERS="8.12.7" # last version
- PHONENUMBERS="8.12.8" # last version

python:
- "pypy3"
Expand All @@ -49,8 +49,8 @@ python:
- "3.9-dev"
install:
- pip install phonenumbers==$PHONENUMBERS
- pip install pytest-cov==2.10.0
- pip install pytest==5.4.3
- pip install pytest-cov==2.10.1
- pip install pytest==6.0.1
- pip install -e .
script:
- pip freeze | grep phonenumbers
Expand Down
7 changes: 3 additions & 4 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ verify_ssl = true

[dev-packages]
requests = "==2.24.0"
pytest = "==5.4.3"
pytest-cov = "==2.10.0"
phonenumbers = "==8.12.7"
pytest = "==6.0.1"
pytest-cov = "==2.10.1"
phonenumbers = "==8.12.8"
black = "==19.10b0"
flake8 = "==3.8.3"
pep8-naming = "==0.11.1"

[packages]
phone-gen = {editable = true, path = "."}

[requires]
python_version = "3.8"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Need Python 3.6 or more.

Changelog
----
* **1.3.5** Updating patterns to libphonenumber v8.12.8
* **1.3.4** Updating patterns to libphonenumber v8.12.7
* **1.3.3** Updating patterns to libphonenumber v8.12.6
* **1.3.2** Fix `MI` invalid pattern
Expand Down
8 changes: 4 additions & 4 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 2020-07-21 16:06:02 UTC
Resource: https://github.com/google/libphonenumber v8.12.7
Auto-generated file 2020-08-17 13:00:00 UTC
Resource: https://github.com/google/libphonenumber v8.12.8
"""


PATTERNS = {
"info": "libphonenumber v8.12.7",
"info": "libphonenumber v8.12.8",
"data": {
"AC": {"code": "247", "pattern": "((6[2-467][\\d]{3}))"},
"AD": {"code": "376", "pattern": "(([78][\\d]{5}))"},
Expand Down Expand Up @@ -575,7 +575,7 @@
},
"PL": {
"code": "48",
"pattern": "(((1[2-8])|(2[2-69])|(3[2-4])|(4[1-468])|(5[24-689])|(6[1-3578])|(7[14-7])|(8[1-79])|(9[145])([02-9][\\d]{6})|(1([0-8][\\d]{5})|(9[\\d]{3}([\\d]{2})?))))",
"pattern": "((47[\\d]{7})|((1[2-8])|(2[2-69])|(3[2-4])|(4[1-468])|(5[24-689])|(6[1-3578])|(7[14-7])|(8[1-79])|(9[145])([02-9][\\d]{6})|(1([0-8][\\d]{5})|(9[\\d]{3}([\\d]{2})?))))",
},
"PM": {"code": "508", "pattern": "(((4[1-3])|(50)[\\d]{4}))"},
"PR": {"code": "1", "pattern": "(((787)|(939)[2-9][\\d]{6}))"},
Expand Down

0 comments on commit 9d57c73

Please sign in to comment.