Permalink
Browse files

Prep for 5.9 release

  • Loading branch information...
1 parent a950af3 commit d9bb97ccff17ed91bb90ff5b1261d595bca042c4 @daviddrysdale committed Nov 15, 2013
Showing with 15 additions and 2 deletions.
  1. +12 −0 python/HISTORY
  2. +1 −1 python/phonenumbers/__init__.py
  3. +2 −1 tools/python/README
View
@@ -3,12 +3,24 @@
What's new in 5.9b1
=====================
+The codebase now supports Python 2.5-2.7 and Python 3.x out of the box, without
+needing 2to3 conversion.
+
The top-level module no longer exports the following functions:
- country_name_for_number
- description_for_number
- description_for_valid_number
These functions now need to be imported via the phonenumbers.geocoder submodule.
+The short number functions have been renamed:
+ - is_possible_short_number_object becomes is_possible_short_number
+ - is_possible_short_number becomes is_possible_short_number_for_object
+ - is_valid_short_number_object becomes is_valid_short_number
+ - is_valid_short_number becomes is_valid_short_number_for_object
+ - expected_cost becomes expected_cost_for_region, and there's a new expected_cost
+ function that takes a PhoneNumber object.
+
+Merge up to upstream Subversion revision 622.
=====================
@@ -132,7 +132,7 @@
# Version number is taken from the upstream libphonenumber version
# together with an indication of the version of the Python-specific code.
-__version__ = "5.8b1"
+__version__ = "5.9b1"
__all__ = ['PhoneNumber', 'CountryCodeSource', 'FrozenPhoneNumber',
'REGION_CODE_FOR_NON_GEO_ENTITY', 'NumberFormat', 'PhoneNumberDesc', 'PhoneMetadata',
View
@@ -34,9 +34,10 @@ from the master metadata under resources/:
- python/phonenumbers/shortdata is generated from resources/ShortNumberMetadata.xml.
- python/phonenumbers/geodata is generated from files under resources/geocoding/.
- python/phonenumbers/carrierdata is generated from files under resources/carrier/.
+ - python/phonenumbers/tzdata is generated from files under resources/timezones/.
The script tools/buildmetadatafromxml.py performs the first pair of autogenerations.
-The script tools/buildgeocodingdata.py performs the second pair of autogenerations.
+The script tools/buildprefixdata.py performs the latter 3 sets of autogenerations.
This approach results in a large set of Python files, but makes it easy
to apply local fixes to the formatting metadata.

0 comments on commit d9bb97c

Please sign in to comment.