Skip to content

Commit

Permalink
Fixed a bug + prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe committed Oct 18, 2024
1 parent 4c5d361 commit b6a1a03
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.16.4 (2024-10-18)
--------------------

- Fixed a recently introduced bug that made Pandas required for the library to work.

v0.16.3 (2024-10-18)
--------------------

Expand Down
3 changes: 1 addition & 2 deletions dwca/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from typing import List, Optional, Dict, Any, IO, Tuple
from xml.etree.ElementTree import Element

from pandas.io.parsers import TextFileReader

import dwca.vendor
from dwca.descriptors import ArchiveDescriptor, DataFileDescriptor, shorten_term
from dwca.exceptions import (
Expand Down Expand Up @@ -229,6 +227,7 @@ def pd_read(self, relative_path, **kwargs):
raise ImportError("Pandas is missing.")

from pandas import read_csv
from pandas.io.parsers import TextFileReader

kwargs["delimiter"] = datafile_descriptor.fields_terminated_by
kwargs["skiprows"] = datafile_descriptor.lines_to_ignore
Expand Down
2 changes: 1 addition & 1 deletion dwca/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.16.3"
__version__ = "0.16.4"

0 comments on commit b6a1a03

Please sign in to comment.