Commit 44d99ac
authored
Build(deps): Update marshmallow requirement from <4,>=3.0.0 to >=3.0.0,<5 (#55)
Updates the requirements on
[marshmallow](https://github.com/marshmallow-code/marshmallow) to permit
the latest version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst">marshmallow's
changelog</a>.</em></p>
<blockquote>
<p>4.0.0 (2025-04-16)</p>
<hr />
<p>See :ref:<code>upgrading_4_0</code> for a guide on updating your
code.</p>
<p>Features:</p>
<ul>
<li>Typing: Add types to all <code>Field
<marshmallow.fields.Field></code> constructor kwargs
(:issue:<code>2285</code>).
Thanks :user:<code>navignaw</code> for the suggestion.</li>
<li><code>DateTime <marshmallow.fields.DateTime></code>,
<code>Date <marshmallow.fields.Date></code>, <code>Time
<marshmallow.fields.Time></code>,
<code>TimeDelta <marshmallow.fields.TimeDelta></code>, and
<code>Enum <marshmallow.fields.Enum></code>
accept their internal value types as valid input
(:issue:<code>1415</code>).
Thanks :user:<code>bitdancer</code> for the suggestion.</li>
<li><code>@validates <marshmallow.validates></code> accepts
multiple field names (:issue:<code>1960</code>).
<em>Backwards-incompatible</em>: Decorated methods now receive
<code>data_key</code> as a keyword argument.
Thanks :user:<code>dpriskorn</code> for the suggestion and
:user:<code>dharani7998</code> for the PR.</li>
</ul>
<p>Other changes:</p>
<ul>
<li>
<p>Typing: <code>Field <marshmallow.fields.Field></code> is now a
generic type with a type argument for the internal value type.</p>
</li>
<li>
<p><code>marshmallow.fields.UUID</code> no longer subclasses
<code>marshmallow.fields.String</code>.</p>
</li>
<li>
<p><code>marshmallow.Schema.load</code> no longer silently fails to call
schema validators when a generator is passed (:issue:<code>1898</code>).
The typing of <code>data</code> is also updated to be more accurate.
Thanks :user:<code>ziplokk1</code> for reporting.</p>
</li>
<li>
<p><em>Backwards-incompatible</em>: Use
<code>datetime.date.fromisoformat</code>,
<code>datetime.time.fromisoformat</code>, and
<code>datetime.datetime.fromisoformat</code> from the standard library
to deserialize dates, times and datetimes (:pr:<code>2078</code>).
As a consequence of this change:</p>
<ul>
<li>Time with time offsets are now supported.</li>
<li>YYYY-MM-DD is now accepted as a datetime and deserialized as naive
00:00 AM.</li>
<li><code>from_iso_date</code>, <code>from_iso_time</code> and
<code>from_iso_datetime</code> are removed from
<code>marshmallow.utils</code>.</li>
</ul>
</li>
<li>
<p>Remove <code>isoformat</code>, <code>to_iso_time</code> and
<code>to_iso_datetime</code> from <code>marshmallow.utils</code>
(:pr:<code>2766</code>).</p>
</li>
<li>
<p>Remove <code>from_rfc</code>, and <code>rfcformat</code> from
<code>marshmallow.utils</code> (:pr:<code>2767</code>).</p>
</li>
<li>
<p>Remove <code>is_keyed_tuple</code> from
<code>marshmallow.utils</code> (:pr:<code>2768</code>).</p>
</li>
<li>
<p>Remove <code>get_fixed_timezone</code> from
<code>marshmallow.utils</code> (:pr:<code>2773</code>).</p>
</li>
<li>
<p><em>Backwards-incompatible</em>:
<code>marshmallow.fields.Boolean</code> no longer serializes non-boolean
values (:pr:<code>2725</code>).</p>
</li>
<li>
<p><em>Backwards-incompatible</em>: Rename <code>schema</code> parameter
to <code>parent</code> in
<code>marshmallow.fields.Field._bind_to_schema</code>
(:issue:<code>1360</code>).</p>
</li>
<li>
<p><em>Backwards-incompatible</em>: Rename <code>pass_many</code>
parameter to <code>pass_collection</code> in pre/post processing methods
(:issue:<code>1369</code>).</p>
</li>
<li>
<p><em>Backwards-incompatible</em>:
<code>marshmallow.fields.TimeDelta</code> no longer truncates float
values when
deserializing (:pr:<code>2654</code>). This allows microseconds to be
preserved, e.g.</p>
</li>
</ul>
<p>.. code-block:: python</p>
<pre><code>from marshmallow import fields
<p>field = fields.TimeDelta()</p>
<h1>Before</h1>
<p>field.deserialize(12.9)
datetime.timedelta(seconds=12)</p>
<h1>datetime.timedelta(seconds=12)</h1>
<p></code></pre></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/84b15960272c16525c945ae99749e505310612a9"><code>84b1596</code></a>
Bump version and update changelog</li>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/a715b9e4bde6c46769e8819faa21649ebec937b6"><code>a715b9e</code></a>
Bump sphinx-issues from 5.0.0 to 5.0.1 (<a
href="https://redirect.github.com/marshmallow-code/marshmallow/issues/2819">#2819</a>)</li>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/5c136b11f90f130d321ee2985bb7aaa764258fb9"><code>5c136b1</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/marshmallow-code/marshmallow/issues/2817">#2817</a>)</li>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/df1daf03fa79aae61f8aaa85de2a16f1ff63a0de"><code>df1daf0</code></a>
Bump sphinxext-opengraph from 0.9.1 to 0.10.0 (<a
href="https://redirect.github.com/marshmallow-code/marshmallow/issues/2818">#2818</a>)</li>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/2fc8207da9cf0cf1d9b9b4ab76d4d0478b588325"><code>2fc8207</code></a>
<a href="https://github.com/validates"><code>@validates</code></a>
accepts multiple field names (<a
href="https://redirect.github.com/marshmallow-code/marshmallow/issues/1965">#1965</a>)</li>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/b7026f3b2622cffc981588b647526fa9525f063d"><code>b7026f3</code></a>
Bump sphinx from 8.1.3 to 8.2.3</li>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/c495e525aeff224bf14c2996f5aecf84e4a1ed5b"><code>c495e52</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/f0c6afb430a6d032300658c898752d6c7732b188"><code>f0c6afb</code></a>
Add missing fields to <strong>all</strong> (<a
href="https://redirect.github.com/marshmallow-code/marshmallow/issues/2809">#2809</a>)</li>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/ef06fbe2e51ab6f1626c758098d4fc6ecdd8368a"><code>ef06fbe</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/marshmallow-code/marshmallow/issues/2808">#2808</a>)</li>
<li><a
href="https://github.com/marshmallow-code/marshmallow/commit/ffedbfee649d96fad7393a9cdf5ceb5118965631"><code>ffedbfe</code></a>
Merge branch '3.x-line' into dev</li>
<li>Additional commits viewable in <a
href="https://github.com/marshmallow-code/marshmallow/compare/3.0.0...4.0.0">compare
view</a></li>
</ul>
</details>
<br />
You can trigger a rebase of this PR by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
</details>
> **Note**
> Automatic rebases have been disabled on this pull request as it has
been open for over 30 days.File tree
3 files changed
+70
-47
lines changed- src/frequenz/quantities/experimental
- tests/experimental
3 files changed
+70
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
34 | 48 | | |
35 | 49 | | |
36 | 50 | | |
| |||
57 | 71 | | |
58 | 72 | | |
59 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
60 | 79 | | |
61 | | - | |
| 80 | + | |
62 | 81 | | |
63 | 82 | | |
64 | 83 | | |
65 | 84 | | |
66 | 85 | | |
67 | 86 | | |
| 87 | + | |
| 88 | + | |
68 | 89 | | |
69 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
70 | 94 | | |
71 | 95 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
76 | 101 | | |
77 | | - | |
78 | 102 | | |
79 | 103 | | |
80 | 104 | | |
| |||
177 | 201 | | |
178 | 202 | | |
179 | 203 | | |
180 | | - | |
| 204 | + | |
181 | 205 | | |
182 | 206 | | |
183 | 207 | | |
| |||
208 | 232 | | |
209 | 233 | | |
210 | 234 | | |
211 | | - | |
212 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
213 | 239 | | |
214 | 240 | | |
215 | 241 | | |
| |||
245 | 271 | | |
246 | 272 | | |
247 | 273 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
254 | 291 | | |
255 | 292 | | |
256 | 293 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 294 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | | - | |
78 | | - | |
| 80 | + | |
79 | 81 | | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
87 | | - | |
88 | | - | |
| 90 | + | |
89 | 91 | | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
99 | | - | |
| 102 | + | |
100 | 103 | | |
101 | | - | |
102 | | - | |
103 | | - | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
211 | | - | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| |||
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
236 | | - | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
0 commit comments