Releases: HEPData/hepdata-converter-ws-client
0.2.2 Release
This release fixes a long-standing bug (see #14) where an argument r:gz
is incorrectly passed to tarfile.open
as a pathname name
instead of the keyword argument mode
. This does not seem to have consequences unless the file cannot be opened, when a FileNotFoundError
exception can be returned instead of the expected ReadError
.
0.2.1 Release
This release adds a new get_data_size
method that gets the size in bytes of the JSON data that would be sent to the converter. This could be useful in checking that a maximum payload size imposed by a web server is not exceeded.
0.2.0 Release
This release ensures that only .yaml
and .json
files are sent to hepdata-converter-ws. We have experienced problems in deployment when large unnecessary files are sent to the converter, exceeding the 50 MB limit imposed by Kubernetes (see HEPData/hepdata#304). In this release, we have also dropped Python 2 compatibility and moved from Travis CI to GitHub Actions.
0.1.6 Release
This release is not strictly needed, since the only changes with respect to version 0.1.5 are in the tests, but I'm tagging it to mark the first Python 3 deployment of the hepdata-converter packages.
0.1.5 Release
Minor update to only catch exceptions from requests with status code < 500. This recovers the behaviour from before the last 0.1.4 release, where an HTML file with error details is returned for a failed conversion.
0.1.4 Release
- This release adds Python 3 compatibility, while still maintaining Python 2 compatibility.
- The tests have been improved: they no longer depend on the
hepdata_converter
module and now run outside thehepdata-converter-ws
Docker container, testing the web service connection. - A
timeout
parameter (with default of 600s) can be passed as an argument of theconvert
function. - Error handling has been added to the request to
/convert
. - Dependencies have been moved from
requirements.txt
tosetup.py
. - Documentation has been improved in the
README.md
file, in the docstring of theconvert
function, and in the metadata pushed to PyPI for tagged releases.