summaryrefslogtreecommitdiff
path: root/fswrap.py
Commit message (Collapse)AuthorAge
* Issue #5: Fix unicode encoding compatiblity issue.Lakshmi Narasimhan2015-09-01
| | | | | Add a helper function to perform `hash.update`, conditionally encoding the string when python 3.x is used.
* Update version and add travis.yml.Lakshmi Narasimhan2015-08-23
| | | | | | - Update version to 1.0.0 - Add travis.yml with tox-travis plugin - Add @jonafato to contributors list
* Add compatibility for both Python 2 and Python 3Jon Banafato2015-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | In order to install fswrap under the current stable version of Python (3.4.3), the following changes are needed: - Conditionally redefine `unicode`, as it has been removed in Python 3 - Explicitly use `b''` when bytes are required - Encode unicode strings before hashing In addition to these changes, installation is upgraded to the current version of distribute. distribute has been merged back into setuptools. The current version simply wraps setuptools. distribute_setup.py and distribute_setup.use_setuptools are removed to prevent old versions of distribute from being installed over the current wrapper. This should be considered a stopgap solution, and migrating to setuptools is highly recommended. Finally, tox is added to support testing under multiple versions of Python. Test environments for latest stable versions of Python 2.7, 3.3, and 3.4 are added. Note: changes were made to satisfy all tests under all environments. Test coverage is high (96% - 97% depending on environment), but no further use under Python 3 has been done so far.
* Add `child_file` method to conveniently get a `File` object.Lakshmi Vyasarajan2013-01-03
| | | | | This operation is used very often and adding this will reduce some verbosity.
* Add zip method to folder for convenient folder zipping.Lakshmi Vyasarajan2013-01-03
| | | | - Add test to verify the contents of the created zip.
* Fix spacing to match PEP validation.Lakshmi Vyasarajan2013-01-03
| | | | - Up version in preparation for the next commit.
* Added simple etag property to FileLakshmi Vyasarajan2012-03-08
|
* Extracted from hydeLakshmi Vyasarajan2012-03-08