From a2048f3ee8be2129c815e278f2d2ed2275545287 Mon Sep 17 00:00:00 2001 From: rodent Date: Thu, 12 Jan 2017 00:52:25 +0000 Subject: What's new in 8.0.0 Merge to upstream commit 1eb06f31e1dd; relevant code changes: Removing the ability for .._for_region methods in shortnumberinfo.py to work on strings, as well of phone number objects. These have been marked deprecated for months. Any users of these methods should call phonenumbers.parse first to create a PhoneNumber object, and pass this in. Support semicolon as extension character while parsing phone numbers. This is not applicable when you are trying to find the phone numbers. What's new in 7.7.5 Merge to upstream commit e905483f87cf; relevant code changes: Removing all references to possible_number_pattern other than in the metadata itself. What's new in 7.7.4 Merge to upstream commit fedbc7020703; code changes: GitHub project changes: Changed tag to vX.Y.Z from release-X.Y.Z; this may affect ports and derived projects. Metadata structure changes in XML file: Mobile and Fixed-Line blocks are no longer assumed to inherit missing data from the GeneralDesc, but are treated like every other phone number type. This means that for the non-geographical country codes, like +800, the example number has been moved from generalDesc to the relevant number types, and the code in getExampleNumberForNonGeoEntity has been changed to look at these sub-types for an example number. This also means that the "NA" and "-1" blocks present in the metadata to indicate that no mobile or fixed-line numbers appear for the entity have been removed. There should no longer be an exampleNumber at the generalDesc level, but it should be present at every PhoneNumberDesc with data. Code changes: Using new possibleLengthInfo to decide whether a short number is the right length or not. This could result in more specific results; whereas before, a number from length 3 to length 6 may have been deemed possible, now we may exclude a number of length 5. Add hash (#) as a diallable character. Numbers with # in them will no longer have formatting applied in format_n_original_format, and normalize_diallable_chars_only now retains the # symbol. example_number_for_non_geo_entity has been changed to look at the specific number types, not just the generalDesc, for the example numbers; this is a necessary change after the metadata structure change detailed above. What's new in 7.7.3 Merge to upstream commit ad0ce0c94501; code changes: Fixed phonemetadata.py not to merge from a NumberFormat's unset bool national_prefix_optional_when_formatting. What's new in 7.7.2 Merge to upstream commit 2d0d216f6032; code changes: Stop setting empty preferred_domestic_carrier_code, and if we are passed such a number then treat the empty field as if unset. What's new in 7.7.1 Merge to upstream commit 8c37310deb49; code changes: Switching the internal implementation of is_possible_number and related functions to use the new possibleLengths metadata. This affects a lot of countries, making is_possible_number more restrictive as more precise data is available. It also affects parsing ambiguous and invalid numbers, as we decide whether to strip a possible national prefix (1) or country code based on the length of the number and whether it is possible before or after this. Formatting, naming and comment tweaks to follow style guide Removal of unneeded _can_be_geocoded method in the timezone.py file, using phonenumberutil.py instead What's new in 7.7.0 Merge to upstream commit 1ec4d341c3cd; no code changes that affect the Python version so this is just a version bump to stay in sync with upstream. What's new in 7.6.1 Merge to upstream commit 7cc500f588db; code changes: phonemetadata.py has two more fields to represent possible lengths of phone numbers. Changed buildmetadatafromxml.py to alter the way that metadata about possible-lengths information is consumed when constructing metadata to populate these. Discussion list email What's new in 7.6.0 Merge to upstream commit ddf60b1c175e; code changes: Made is_number_geographical() public and added is_number_type_geographical(), and changed the geocoder to use this when checking whether to give a detailed answer or country-level only. What's new in 7.5.0 Merge to upstream commit 3f83454ed62b; no code changes that affect the Python version so this is just a version bump to stay in sync with upstream. --- textproc/py-phonenumbers/Makefile | 4 ++-- textproc/py-phonenumbers/PLIST | 32 +++++++++++++++++++++++++++++++- textproc/py-phonenumbers/distinfo | 10 +++++----- 3 files changed, 38 insertions(+), 8 deletions(-) (limited to 'textproc') diff --git a/textproc/py-phonenumbers/Makefile b/textproc/py-phonenumbers/Makefile index 3361e2374b9..769f1c5dbe3 100644 --- a/textproc/py-phonenumbers/Makefile +++ b/textproc/py-phonenumbers/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.7 2016/06/08 17:43:42 wiz Exp $ +# $NetBSD: Makefile,v 1.8 2017/01/12 00:52:25 rodent Exp $ -DISTNAME= phonenumbers-7.0.4 +DISTNAME= phonenumbers-8.0.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= comms textproc python MASTER_SITES= ${MASTER_SITE_PYPI:=p/phonenumbers/} diff --git a/textproc/py-phonenumbers/PLIST b/textproc/py-phonenumbers/PLIST index b7fe1eb16b0..0393fe9762b 100644 --- a/textproc/py-phonenumbers/PLIST +++ b/textproc/py-phonenumbers/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2014/12/03 22:41:09 rodent Exp $ +@comment $NetBSD: PLIST,v 1.5 2017/01/12 00:52:25 rodent Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt @@ -21,6 +21,9 @@ ${PYSITELIB}/phonenumbers/carrierdata/data0.pyo ${PYSITELIB}/phonenumbers/carrierdata/data1.py ${PYSITELIB}/phonenumbers/carrierdata/data1.pyc ${PYSITELIB}/phonenumbers/carrierdata/data1.pyo +${PYSITELIB}/phonenumbers/carrierdata/data2.py +${PYSITELIB}/phonenumbers/carrierdata/data2.pyc +${PYSITELIB}/phonenumbers/carrierdata/data2.pyo ${PYSITELIB}/phonenumbers/data/__init__.py ${PYSITELIB}/phonenumbers/data/__init__.pyc ${PYSITELIB}/phonenumbers/data/__init__.pyo @@ -960,6 +963,15 @@ ${PYSITELIB}/phonenumbers/geodata/data2.pyo ${PYSITELIB}/phonenumbers/geodata/data20.py ${PYSITELIB}/phonenumbers/geodata/data20.pyc ${PYSITELIB}/phonenumbers/geodata/data20.pyo +${PYSITELIB}/phonenumbers/geodata/data21.py +${PYSITELIB}/phonenumbers/geodata/data21.pyc +${PYSITELIB}/phonenumbers/geodata/data21.pyo +${PYSITELIB}/phonenumbers/geodata/data22.py +${PYSITELIB}/phonenumbers/geodata/data22.pyc +${PYSITELIB}/phonenumbers/geodata/data22.pyo +${PYSITELIB}/phonenumbers/geodata/data23.py +${PYSITELIB}/phonenumbers/geodata/data23.pyc +${PYSITELIB}/phonenumbers/geodata/data23.pyo ${PYSITELIB}/phonenumbers/geodata/data3.py ${PYSITELIB}/phonenumbers/geodata/data3.pyc ${PYSITELIB}/phonenumbers/geodata/data3.pyo @@ -1122,6 +1134,12 @@ ${PYSITELIB}/phonenumbers/shortdata/region_CC.pyo ${PYSITELIB}/phonenumbers/shortdata/region_CD.py ${PYSITELIB}/phonenumbers/shortdata/region_CD.pyc ${PYSITELIB}/phonenumbers/shortdata/region_CD.pyo +${PYSITELIB}/phonenumbers/shortdata/region_CF.py +${PYSITELIB}/phonenumbers/shortdata/region_CF.pyc +${PYSITELIB}/phonenumbers/shortdata/region_CF.pyo +${PYSITELIB}/phonenumbers/shortdata/region_CG.py +${PYSITELIB}/phonenumbers/shortdata/region_CG.pyc +${PYSITELIB}/phonenumbers/shortdata/region_CG.pyo ${PYSITELIB}/phonenumbers/shortdata/region_CH.py ${PYSITELIB}/phonenumbers/shortdata/region_CH.pyc ${PYSITELIB}/phonenumbers/shortdata/region_CH.pyo @@ -1194,6 +1212,9 @@ ${PYSITELIB}/phonenumbers/shortdata/region_EG.pyo ${PYSITELIB}/phonenumbers/shortdata/region_EH.py ${PYSITELIB}/phonenumbers/shortdata/region_EH.pyc ${PYSITELIB}/phonenumbers/shortdata/region_EH.pyo +${PYSITELIB}/phonenumbers/shortdata/region_ER.py +${PYSITELIB}/phonenumbers/shortdata/region_ER.pyc +${PYSITELIB}/phonenumbers/shortdata/region_ER.pyo ${PYSITELIB}/phonenumbers/shortdata/region_ES.py ${PYSITELIB}/phonenumbers/shortdata/region_ES.pyc ${PYSITELIB}/phonenumbers/shortdata/region_ES.pyo @@ -1341,6 +1362,9 @@ ${PYSITELIB}/phonenumbers/shortdata/region_KM.pyo ${PYSITELIB}/phonenumbers/shortdata/region_KN.py ${PYSITELIB}/phonenumbers/shortdata/region_KN.pyc ${PYSITELIB}/phonenumbers/shortdata/region_KN.pyo +${PYSITELIB}/phonenumbers/shortdata/region_KP.py +${PYSITELIB}/phonenumbers/shortdata/region_KP.pyc +${PYSITELIB}/phonenumbers/shortdata/region_KP.pyo ${PYSITELIB}/phonenumbers/shortdata/region_KR.py ${PYSITELIB}/phonenumbers/shortdata/region_KR.pyc ${PYSITELIB}/phonenumbers/shortdata/region_KR.pyo @@ -1461,6 +1485,9 @@ ${PYSITELIB}/phonenumbers/shortdata/region_NA.pyo ${PYSITELIB}/phonenumbers/shortdata/region_NC.py ${PYSITELIB}/phonenumbers/shortdata/region_NC.pyc ${PYSITELIB}/phonenumbers/shortdata/region_NC.pyo +${PYSITELIB}/phonenumbers/shortdata/region_NE.py +${PYSITELIB}/phonenumbers/shortdata/region_NE.pyc +${PYSITELIB}/phonenumbers/shortdata/region_NE.pyo ${PYSITELIB}/phonenumbers/shortdata/region_NF.py ${PYSITELIB}/phonenumbers/shortdata/region_NF.pyc ${PYSITELIB}/phonenumbers/shortdata/region_NF.pyo @@ -1584,6 +1611,9 @@ ${PYSITELIB}/phonenumbers/shortdata/region_SM.pyo ${PYSITELIB}/phonenumbers/shortdata/region_SN.py ${PYSITELIB}/phonenumbers/shortdata/region_SN.pyc ${PYSITELIB}/phonenumbers/shortdata/region_SN.pyo +${PYSITELIB}/phonenumbers/shortdata/region_SO.py +${PYSITELIB}/phonenumbers/shortdata/region_SO.pyc +${PYSITELIB}/phonenumbers/shortdata/region_SO.pyo ${PYSITELIB}/phonenumbers/shortdata/region_SR.py ${PYSITELIB}/phonenumbers/shortdata/region_SR.pyc ${PYSITELIB}/phonenumbers/shortdata/region_SR.pyo diff --git a/textproc/py-phonenumbers/distinfo b/textproc/py-phonenumbers/distinfo index f8ca56d92a5..120f2734056 100644 --- a/textproc/py-phonenumbers/distinfo +++ b/textproc/py-phonenumbers/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.6 2015/11/04 02:00:04 agc Exp $ +$NetBSD: distinfo,v 1.7 2017/01/12 00:52:25 rodent Exp $ -SHA1 (phonenumbers-7.0.4.tar.gz) = 41a4982cc4b40317cb0e37ba2ed073a74dc63a02 -RMD160 (phonenumbers-7.0.4.tar.gz) = 64e21e635b4adbde2c7230513c571f3a863adca2 -SHA512 (phonenumbers-7.0.4.tar.gz) = 434dfd133dd981a87256e35ae3f863246c36e5913ac5e6d0be4822d23e1d5c7141fd3fad09d1e6aef0566e2c2f70635ab09133c229b63faf188fa5f0ba5d2de5 -Size (phonenumbers-7.0.4.tar.gz) = 2066425 bytes +SHA1 (phonenumbers-8.0.0.tar.gz) = f29f64a92163195175773767d0d3a83e226c6656 +RMD160 (phonenumbers-8.0.0.tar.gz) = 78146b997f4e500d40e83e57e072c2a90b7d73a7 +SHA512 (phonenumbers-8.0.0.tar.gz) = d33837dabe3c3ec91f86764a5ba1d2c9dd1b94ae70bcddf8e39fc31bef096236d54271b0145ddb44c7872b425e15f7a0cdd8d656f5d8c841e4b519034684fbf8 +Size (phonenumbers-8.0.0.tar.gz) = 2320029 bytes -- cgit v1.2.3