Releases: caltechlibrary/commonpy
Release 1.13.0
Release 1.12.4
Changes in this release:
- Revise the retry algorithm in
timed_request()again. - Make
timed_request()print the response text in case of failures - Remove
extra_requiresfromsetup.pybecause it caused installation problems due to the syntax of the requirements file and I don't have patience for figuring out whatsetuptoolsneeds this time.
Release 1.12.3
This release updates the version of the dateparser package in requirements.txt, to avoid a deprecation warning when using CommonPy's parsed_datetime(...) function.
Release 1.12.2
This release updates the versions of dependencies in requirements.txt.
Release 1.12.1
This version prevents certain exceptions from being buried and ignored, and improves the network failure retry algorithm.
Release 1.12.0
Additions in this release:
- New function
networkin thenetwork_utilsmodule. It is a companion tonetand takes the same arguments, but returns only one value (the response). If an error occurs, it raises the error as an exception. This makes it possible for callers to usenetwork(...)in somewhat more Pythonic style thannet(...), by wrapping the call tonetwork(...)intry-except.
Changes in this release:
- Removed
slicefromdata_utilsmodule because it shadows a Python built-in. - Fixed
hostnameinnetwork_utilsto be more general and not hardwire a test forhttp. - Fixed a bunch of
flake8warnings.
Release 1.11.0
Additions in this release:
- New class
CaseFoldSet, which is similar toCaseFoldDictbut is (as its name implies) a set instead of a dict.
Changes in this release:
- Fixed a bug in the class documentation in the
README.mdfile. - Add missing dependency for twine in
requirements-dev.txt - Use lazy
imports in more places, for faster load times.
Release 1.10.0
Changes in this release:
data_utils.flattenednow outputs[]as the value of dict or mapping keys whose original values are an empty sequence (e.g., when the value of a dict key is[]). Previously, it would outputNoneas the value, which was an unexpected transformation of the input.
Bug fixes in this release:
- Fixed a bug in
data_utils.flattenedthat caused it to ignore theseparatorargument in some cases. - Fixed a missing import of
freezeguninrequirements-dev.txt. - Pin the imported version of regex 2022.3.2, because more recent versions cause calls to
dateparserto encounter an error ("regex._regex_core.error: bad escape \d at position 7").
Release 1.9.5
The main functional change in this release is that error objects returned by net(...) will have error message bodies returned by network services, where possible.
Internally, there has been some refactoring of the Makefile and addition of things like GitHub template files.
Release 1.9.4
This release merely changes the version of httpx required by requirements.txt. No other changes.