Skip to content

Commit d9bb97c

Browse files
committed
Prep for 5.9 release
1 parent a950af3 commit d9bb97c

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

python/HISTORY

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,24 @@
33
What's new in 5.9b1
44
=====================
55

6+
The codebase now supports Python 2.5-2.7 and Python 3.x out of the box, without
7+
needing 2to3 conversion.
8+
69
The top-level module no longer exports the following functions:
710
- country_name_for_number
811
- description_for_number
912
- description_for_valid_number
1013
These functions now need to be imported via the phonenumbers.geocoder submodule.
1114

15+
The short number functions have been renamed:
16+
- is_possible_short_number_object becomes is_possible_short_number
17+
- is_possible_short_number becomes is_possible_short_number_for_object
18+
- is_valid_short_number_object becomes is_valid_short_number
19+
- is_valid_short_number becomes is_valid_short_number_for_object
20+
- expected_cost becomes expected_cost_for_region, and there's a new expected_cost
21+
function that takes a PhoneNumber object.
22+
23+
Merge up to upstream Subversion revision 622.
1224

1325

1426
=====================

python/phonenumbers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132

133133
# Version number is taken from the upstream libphonenumber version
134134
# together with an indication of the version of the Python-specific code.
135-
__version__ = "5.8b1"
135+
__version__ = "5.9b1"
136136

137137
__all__ = ['PhoneNumber', 'CountryCodeSource', 'FrozenPhoneNumber',
138138
'REGION_CODE_FOR_NON_GEO_ENTITY', 'NumberFormat', 'PhoneNumberDesc', 'PhoneMetadata',

tools/python/README

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ from the master metadata under resources/:
3434
- python/phonenumbers/shortdata is generated from resources/ShortNumberMetadata.xml.
3535
- python/phonenumbers/geodata is generated from files under resources/geocoding/.
3636
- python/phonenumbers/carrierdata is generated from files under resources/carrier/.
37+
- python/phonenumbers/tzdata is generated from files under resources/timezones/.
3738

3839
The script tools/buildmetadatafromxml.py performs the first pair of autogenerations.
39-
The script tools/buildgeocodingdata.py performs the second pair of autogenerations.
40+
The script tools/buildprefixdata.py performs the latter 3 sets of autogenerations.
4041

4142
This approach results in a large set of Python files, but makes it easy
4243
to apply local fixes to the formatting metadata.

0 commit comments

Comments
 (0)