Skip to content

Commit

Permalink
Prep for 5.9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale committed Nov 15, 2013
1 parent a950af3 commit d9bb97c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions python/HISTORY
Expand Up @@ -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.


=====================
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/__init__.py
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion tools/python/README
Expand Up @@ -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.
Expand Down

0 comments on commit d9bb97c

Please sign in to comment.