Skip to content

Commit

Permalink
Merge pull request #19 from matiasb/version-and-minor-updates
Browse files Browse the repository at this point in the history
Updated version/docs, updated travis.yml.
  • Loading branch information
matiasb authored Sep 8, 2019
2 parents d0a4b0d + bcf8229 commit 454eb08
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.py[co]
*.o

# Packages
*.egg
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
script: ./run_tests.sh
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.4: 2019/09/08

- Added the ability to use RarFile as a context manager.

0.3: 2015/02/15

- Added open/read methods to RarFile, extracting data into memory.
Expand Down
Binary file modified dependencies/unrar/libunrar.so
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/rarfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ RarFile Objects
Open a RAR file, where *file* should be a path to a file (a string). The *mode* parameter should be ``'r'`` to read an existing
file (only allowed mode at the moment).

RarFile is also a context manager and therefore supports the with statement.

.. versionadded:: 0.4
Added the ability to use RarFile as a context manager.

.. method:: RarFile.getinfo(name)

Expand Down
2 changes: 1 addition & 1 deletion unrar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

__author__ = 'Matias Bordese'
__email__ = '[email protected]'
__version__ = '0.3'
__version__ = '0.4'

VERSION = __version__

0 comments on commit 454eb08

Please sign in to comment.