Skip to content

Commit

Permalink
Update psutil requirement from ~=5.9.8 to ~=6.0.0 (#112)
Browse files Browse the repository at this point in the history
Updates the requirements on
[psutil](https://github.com/giampaolo/psutil) to permit the latest
version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/giampaolo/psutil/blob/master/HISTORY.rst">psutil's
changelog</a>.</em></p>
<blockquote>
<h1>6.0.0</h1>
<p>2024-06-18</p>
<p><strong>Enhancements</strong></p>
<ul>
<li>2109_: <code>maxfile</code> and <code>maxpath</code> fields were
removed from the namedtuple
returned by <code>disk_partitions()</code>_. Reason: on network
filesystems (NFS) this
can potentially take a very long time to complete.</li>
<li>2366_, [Windows]: log debug message when using slower process
APIs.</li>
<li>2375_, [macOS]: provide arm64 wheels. (patch by Matthieu
Darbois)</li>
<li>2396_: <code>process_iter()</code>_ no longer pre-emptively checks
whether PIDs have
been reused. This makes <code>process_iter()</code>_ around 20x times
faster.</li>
<li>2396_: a new <code>psutil.process_iter.cache_clear()</code> API can
be used the clear
<code>process_iter()</code>_ internal cache.</li>
<li>2401_, Support building with free-threaded CPython 3.13. (patch by
Sam Gross)</li>
<li>2407_: <code>Process.connections()</code>_ was renamed to
<code>Process.net_connections()</code>_.
The old name is still available, but it's deprecated (triggers a
<code>DeprecationWarning</code>) and will be removed in the future.</li>
<li>2425_: [Linux]: provide aarch64 wheels. (patch by Matthieu Darbois /
Ben Raz)</li>
</ul>
<p><strong>Bug fixes</strong></p>
<ul>
<li>2250_, [NetBSD]: <code>Process.cmdline()</code>_ sometimes fail with
EBUSY. It usually
happens for long cmdlines with lots of arguments. In this case retry
getting
the cmdline for up to 50 times, and return an empty list as last
resort.</li>
<li>2254_, [Linux]: offline cpus raise NotImplementedError in cpu_freq()
(patch
by Shade Gladden)</li>
<li>2272_: Add pickle support to psutil Exceptions.</li>
<li>2359_, [Windows], [CRITICAL]: <code>pid_exists()</code>_ disagrees
with <code>Process</code>_ on
whether a pid exists when ERROR_ACCESS_DENIED.</li>
<li>2360_, [macOS]: can't compile on macOS &lt; 10.13. (patch by Ryan
Schmidt)</li>
<li>2362_, [macOS]: can't compile on macOS 10.11. (patch by Ryan
Schmidt)</li>
<li>2365_, [macOS]: can't compile on macOS &lt; 10.9. (patch by Ryan
Schmidt)</li>
<li>2395_, [OpenBSD]: <code>pid_exists()</code>_ erroneously return True
if the argument is
a thread ID (TID) instead of a PID (process ID).</li>
<li>2412_, [macOS]: can't compile on macOS 10.4 PowerPC due to missing
<code>MNT_</code>
constants.</li>
</ul>
<p><strong>Porting notes</strong></p>
<p>Version 6.0.0 introduces some changes which affect backward
compatibility:</p>
<ul>
<li>2109_: the namedtuple returned by <code>disk_partitions()</code>_'
no longer has
<code>maxfile</code> and <code>maxpath</code> fields.</li>
<li>2396_: <code>process_iter()</code>_ no longer pre-emptively checks
whether PIDs have
been reused. If you want to check for PID reusage you are supposed to
use
<code>Process.is_running()</code>_ against the yielded
<code>Process</code>_ instances. That will
also automatically remove reused PIDs from <code>process_iter()</code>_
internal cache.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/giampaolo/psutil/commit/3d5522aafb6c9cbcbcf4edfa11348f755af97d96"><code>3d5522a</code></a>
release</li>
<li><a
href="https://github.com/giampaolo/psutil/commit/5b30ef4796f7d0a1c4cd31a3b74b7405105331d0"><code>5b30ef4</code></a>
Add aarch64 manylinux wheels (<a
href="https://redirect.github.com/giampaolo/psutil/issues/2425">#2425</a>)</li>
<li><a
href="https://github.com/giampaolo/psutil/commit/1d092e728abddb628738d2f0a110b74152969771"><code>1d092e7</code></a>
test subprocesses: sleep() with an interval of 0.1 to make the test
process m...</li>
<li><a
href="https://github.com/giampaolo/psutil/commit/5f80c123d2497af404639669049213a48531e2fe"><code>5f80c12</code></a>
Fix <a
href="https://redirect.github.com/giampaolo/psutil/issues/2412">#2412</a>,
[macOS]: can't compile on macOS 10.4 PowerPC due to missing
<code>MNT_</code>...</li>
<li><a
href="https://github.com/giampaolo/psutil/commit/89b6096f2a026ec85f2a188920877371d4515b60"><code>89b6096</code></a>
process_iter(): use another global var to keep track of reused PIDs</li>
<li><a
href="https://github.com/giampaolo/psutil/commit/9421bf8e81994b511d39c70f3bf68ccf69cf6567"><code>9421bf8</code></a>
openbsd: skip test if cmdline() returns [] due to EBUSY</li>
<li><a
href="https://github.com/giampaolo/psutil/commit/4b1a05419df6101c43ce327ae97ea9154f8aa0f9"><code>4b1a054</code></a>
Fix <a
href="https://redirect.github.com/giampaolo/psutil/issues/2250">#2250</a>
/ NetBSD / cmdline: retry on EBUSY. (<a
href="https://redirect.github.com/giampaolo/psutil/issues/2421">#2421</a>)</li>
<li><a
href="https://github.com/giampaolo/psutil/commit/20be5ae95a4a01f734ba0692bc38c35df4e434d3"><code>20be5ae</code></a>
ruff: enable and fix 'unused variable' rule</li>
<li><a
href="https://github.com/giampaolo/psutil/commit/553098524de5367c04a3e057b88208dc4b86aba4"><code>5530985</code></a>
chore(ci): update actions (<a
href="https://redirect.github.com/giampaolo/psutil/issues/2417">#2417</a>)</li>
<li><a
href="https://github.com/giampaolo/psutil/commit/1c7cb0aaf24f135e4ffded5a39387514f862c92e"><code>1c7cb0a</code></a>
Don't build with limited API for 3.13 free-threaded build (<a
href="https://redirect.github.com/giampaolo/psutil/issues/2402">#2402</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/giampaolo/psutil/compare/release-5.9.8...release-6.0.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually 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>
  • Loading branch information
DefinetlyNotAI authored Sep 23, 2024
2 parents a42b7a4 + 5f98d3e commit 07ab720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requests~=2.32.3
psutil~=5.9.8
psutil~=6.0.0
DateTime~=5.5
pathlib~=1.0.1
colorlog~=6.8.2

0 comments on commit 07ab720

Please sign in to comment.