Skip to content

Commit

Permalink
release v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
shapiromatron committed Nov 4, 2020
1 parent f786695 commit c05e761
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
11 changes: 10 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
History
=======

v0.6.0 (2020-11-04)
-------------------

New features:

* Add new optional `strict=True` parameter to rispy.load/loads to allow parsing of RIS files with comments or additional metadata which aren't allowed/forbidden in spec (@ShreyRavi)
* Allow pathlib.Path objects in rispy.load in addition to file objects
* Enable multiple python environments in github test matrix (python 3.6, 3.7, and 3.8)

v0.5.1 (2020-09-29)
-----------------
-------------------

New features:

Expand Down
23 changes: 23 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,29 @@ Writing:
... rispy.dump(entries, bibliography_file)
Some RIS files contain additional metadata that by default will raise an exception in the parsing. To ignore metadata which is not officially part of the RIS spec, you can use the optional `strict` flag:

.. code:: python
>>> from pathlib import Path
>>> import rispy
>>> p = Path('tests/data/example_extraneous_data.ris')
>>> print("\n".join(p.read_text().splitlines()[:10]))
Record #1 of 2
Provider: Provider
Content: text/plain; charset="UTF-8"
1.
TY - JOUR
ID - 12345
T1 - Title of reference
A1 - Marx, Karl
A1 - Lindgren, Astrid
A2 - Glattauer, Daniel
>>> entries = rispy.load(p, strict=False)
>>> print(entries[0]['id'])
12345
Example RIS entry
-----------------

Expand Down
2 changes: 1 addition & 1 deletion rispy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Read and write RIS and WOK files"""

__version__ = "0.5.1"
__version__ = "0.6.0"

from .config import LIST_TYPE_TAGS, TAG_KEY_MAPPING # noqa
from .parser import RisImplementation, load, loads # noqa
Expand Down

0 comments on commit c05e761

Please sign in to comment.