tag:github.com,2008:https://github.com/caltechlibrary/commonpy/releasesRelease notes from commonpy2023-05-02T23:20:31Ztag:github.com,2008:Repository/130128354/v1.13.02023-05-02T23:21:58ZRelease 1.13.0<p>Changes in this release:</p>
<ul>
<li>HTTP code 422 is now more accurately returned as a <code>ServiceFailure</code> error instead of a <code>NetworkFailure</code>.</li>
</ul>mhuckatag:github.com,2008:Repository/130128354/v1.12.42023-04-25T05:58:07ZRelease 1.12.4<p>Changes in this release:</p>
<ul>
<li>Revise the retry algorithm in <code>timed_request()</code> again.</li>
<li>Make <code>timed_request()</code> print the response text in case of failures</li>
<li>Remove <code>extra_requires</code> from <code>setup.py</code> because it caused installation problems due to the syntax of the requirements file and I don't have patience for figuring out what <code>setuptools</code> needs this time.</li>
</ul>mhuckatag:github.com,2008:Repository/130128354/v1.12.32023-04-09T22:24:17ZRelease 1.12.3<p>This release updates the version of the <code>dateparser</code> package in <code>requirements.txt</code>, to avoid a deprecation warning when using CommonPy's <code>parsed_datetime(...)</code> function.</p>mhuckatag:github.com,2008:Repository/130128354/v1.12.22023-04-08T03:02:19ZRelease 1.12.2<p>This release updates the versions of dependencies in <code>requirements.txt</code>.</p>mhuckatag:github.com,2008:Repository/130128354/v1.12.12023-04-08T02:51:25ZRelease 1.12.1<p>This version prevents certain exceptions from being buried and ignored, and improves the network failure retry algorithm.</p>mhuckatag:github.com,2008:Repository/130128354/v1.12.02023-03-24T18:12:25ZRelease 1.12.0<p>Additions in this release:</p>
<ul>
<li>New function <code>network</code> in the <code>network_utils</code> module. It is a companion to <code>net</code> and 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 use <code>network(...)</code> in somewhat more Pythonic style than <code>net(...)</code>, by wrapping the call to <code>network(...)</code> in <code>try</code>-<code>except</code>.</li>
</ul>
<p>Changes in this release:</p>
<ul>
<li>Removed <code>slice</code> from <code>data_utils</code> module because it shadows a Python built-in.</li>
<li>Fixed <code>hostname</code> in <code>network_utils</code> to be more general and not hardwire a test for <code>http</code>.</li>
<li>Fixed a bunch of <code>flake8</code> warnings.</li>
</ul>mhuckatag:github.com,2008:Repository/130128354/v1.11.02023-02-14T23:03:02ZRelease 1.11.0<p>Additions in this release:</p>
<ul>
<li>New class <code>CaseFoldSet</code>, which is similar to <code>CaseFoldDict</code> but is (as its name implies) a set instead of a dict.</li>
</ul>
<p>Changes in this release:</p>
<ul>
<li>Fixed a bug in the class documentation in the <code>README.md</code> file.</li>
<li>Add missing dependency for <a href="https://pypi.org/project/twine/" rel="nofollow">twine</a> in <code>requirements-dev.txt</code></li>
<li>Use lazy <code>import</code>s in more places, for faster load times.</li>
</ul>mhuckatag:github.com,2008:Repository/130128354/v1.10.02023-02-07T01:28:11ZRelease 1.10.0<p>Changes in this release:</p>
<ul>
<li><code>data_utils.flattened</code> now outputs <code>[]</code> 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 <code>[]</code>). Previously, it would output <code>None</code> as the value, which was an unexpected transformation of the input.</li>
</ul>
<p>Bug fixes in this release:</p>
<ul>
<li>Fixed a bug in <code>data_utils.flattened</code> that caused it to ignore the <code>separator</code> argument in some cases.</li>
<li>Fixed a missing import of <code>freezegun</code> in <code>requirements-dev.txt</code>.</li>
<li>Pin the imported version of regex 2022.3.2, because more recent versions cause calls to <code>dateparser</code> to encounter an error ("regex._regex_core.error: bad escape \d at position 7").</li>
</ul>mhuckatag:github.com,2008:Repository/130128354/v1.9.52022-07-07T23:27:39ZRelease 1.9.5<p>The main functional change in this release is that error objects returned by <code>net(...)</code> will have error message bodies returned by network services, where possible.</p>
<p>Internally, there has been some refactoring of the Makefile and addition of things like GitHub template files.</p>mhuckatag:github.com,2008:Repository/130128354/v1.9.42022-06-03T20:50:46ZRelease 1.9.4<p>This release merely changes the version of httpx required by <code>requirements.txt</code>. No other changes.</p>mhucka