Feature - store zoneinfo files in a .tar.gz archive

Bug #716818 reported by Fae Bokita on 2011-02-11
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

It would be much more convenient (for some) if pytz stored the zoneinfo files in a .tar.gz or .zip file. This would reduce the pytz number of files from 584 to 5. dateutil already does this.

The large number of files is causing some issues when updating pytz while using an online sync service like Dropbox or Windows Live Mesh.

Nelz (nelz9999) wrote :

Please see http://code.google.com/p/gae-pytz/

These people have added 2 features that facilitate using this library on GoogleAppEngine. (I agree that the 3rd feature, being a memcached layer on top of the library, is out-of-scope.)

I think it would be great if the original maintainer was able to add these features.

Thanks for all the great work anyway!

Stuart Bishop (stub) wrote :

Loading information from a zipfile rather than the standard compiled zoneinfo database seems doable. open_resource and resource_exists in pytz/__init__.py need to be modified to load resources from the zipfile if it exists at a well known location, falling back to the existing method. We need to support the existing method as that is how resources get loaded from the .egg file, and for pytz installations that make use of the system's compiled zoneinfo database rather than the one distributed with pytz. Of course we also need to build and package the zipfile containing the compiled database.

Note that for many use cases, you can simply use the .egg file instead of the expanded source tree if you want a single file rather than several hundred.

Changed in pytz:
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers