Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update psutil to 5.3.1 #131

Merged
merged 2 commits into from
Sep 10, 2017
Merged

Update psutil to 5.3.1 #131

merged 2 commits into from
Sep 10, 2017

Conversation

pyup-bot
Copy link
Contributor

There's a new version of psutil available.
You are currently using 5.2.2. I have updated it to 5.3.1

These links might come in handy: PyPI | Changelog | Repo | Docs

Changelog

5.3.0

=====

Enhancements

  • 802_: disk_io_counters() and net_io_counters() numbers no longer wrap
    (restart from 0). Introduced a new "nowrap" argument.
  • 928_: psutil.net_connections() and psutil.Process.connections() "laddr" and
    "raddr" are now named tuples.
  • 1015_: swap_memory() now relies on /proc/meminfo instead of sysinfo() syscall
    so that it can be used in conjunction with PROCFS_PATH in order to retrieve
    memory info about Linux containers such as Docker and Heroku.
  • 1022_: psutil.users() provides a new "pid" field.
  • 1025_: process_iter() accepts two new parameters in order to invoke
    Process.as_dict(): "attrs" and "ad_value". With this you can iterate over all
    processes in one shot without needing to catch NoSuchProcess and do list/dict
    comprehensions.
  • 1040_: implemented full unicode support.
  • 1051_: disk_usage() on Python 3 is now able to accept bytes.
  • 1058_: test suite now enables all warnings by default.
  • 1060_: source distribution is dynamically generated so that it only includes
    relevant files.
  • 1079_: [FreeBSD] net_connections()'s fd number is now being set for real
    (instead of -1). (patch by Gleb Smirnoff)
  • 1091_: [SunOS] implemented Process.environ(). (patch by Oleksii Shevchuk)

Bug fixes

  • 989_: [Windows] boot_time() may return a negative value.
  • 1007_: [Windows] boot_time() can have a 1 sec fluctuation between calls; the
    value of the first call is now cached so that boot_time() always returns the
    same value if fluctuation is <= 1 second.
  • 1013_: [FreeBSD] psutil.net_connections() may return incorrect PID. (patch
    by Gleb Smirnoff)
  • 1014_: [Linux] Process class can mask legitimate ENOENT exceptions as
    NoSuchProcess.
  • 1016_: disk_io_counters() raises RuntimeError on a system with no disks.
  • 1017_: net_io_counters() raises RuntimeError on a system with no network
    cards installed.
  • 1021_: [Linux] open_files() may erroneously raise NoSuchProcess instead of
    skipping a file which gets deleted while open files are retrieved.
  • 1029_: [OSX, FreeBSD] Process.connections('unix') on Python 3 doesn't
    properly handle unicode paths and may raise UnicodeDecodeError.
  • 1033_: [OSX, FreeBSD] memory leak for net_connections() and
    Process.connections() when retrieving UNIX sockets (kind='unix').
  • 1040_: fixed many unicode related issues such as UnicodeDecodeError on
    Python 3 + UNIX and invalid encoded data on Windows.
  • 1042_: [FreeBSD] psutil won't compile on FreeBSD 12.
  • 1044_: [OSX] different Process methods incorrectly raise AccessDenied for
    zombie processes.
  • 1046_: [Windows] disk_partitions() on Windows overrides user's SetErrorMode.
  • 1047_: [Windows] Process username(): memory leak in case exception is thrown.
  • 1048_: [Windows] users()'s host field report an invalid IP address.
  • 1050_: [Windows] Process.memory_maps memory() leaks memory.
  • 1055_: cpu_count() is no longer cached; this is useful on systems such as
    Linux where CPUs can be disabled at runtime. This also reflects on
    Process.cpu_percent() which no longer uses the cache.
  • 1058_: fixed Python warnings.
  • 1062_: disk_io_counters() and net_io_counters() raise TypeError if no disks
    or NICs are installed on the system.
  • 1063_: [NetBSD] net_connections() may list incorrect sockets.
  • 1064_: [NetBSD] swap_memory() may segfault in case of error.
  • 1065_: [OpenBSD] Process.cmdline() may raise SystemError.
  • 1067_: [NetBSD] Process.cmdline() leaks memory if process has terminated.
  • 1069_: [FreeBSD] Process.cpu_num() may return 255 for certain kernel
    processes.
  • 1071_: [Linux] cpu_freq() may raise IOError on old RedHat distros.
  • 1074_: [FreeBSD] sensors_battery() raises OSError in case of no battery.
  • 1075_: [Windows] net_if_addrs(): inet_ntop() return value is not checked.
  • 1077_: [SunOS] net_if_addrs() shows garbage addresses on SunOS 5.10.
    (patch by Oleksii Shevchuk)
  • 1077_: [SunOS] net_connections() does not work on SunOS 5.10. (patch by
    Oleksii Shevchuk)
  • 1079_: [FreeBSD] net_connections() didn't list locally connected sockets.
    (patch by Gleb Smirnoff)
  • 1085_: cpu_count() return value is now checked and forced to None if <= 1.
  • 1087_: Process.cpu_percent() guard against cpu_count() returning None and
    assumes 1 instead.
  • 1093_: [SunOS] memory_maps() shows wrong 64 bit addresses.
  • 1094_: [Windows] psutil.pid_exists() may lie. Also, all process APIs relying
    on OpenProcess Windows API now check whether the PID is actually running.
  • 1098_: [Windows] Process.wait() may erroneously return sooner, when the PID
    is still alive.
  • 1099_: [Windows] Process.terminate() may raise AccessDenied even if the
    process already died.
  • 1101_: [Linux] sensors_temperatures() may raise ENODEV.

Porting notes

  • 1039_: returned types consolidation:
  • Windows / Process.cpu_times(): fields 3 and 4 were int instead of float
  • Linux / FreeBSD: connections('unix'): raddr is now set to "" instead of
    None
  • OpenBSD: connections('unix'): laddr and raddr are now set to "" instead of
    None
  • 1040_: all strings are encoded by using OS fs encoding.
  • 1040_: the following Windows APIs on Python 2 now return a string instead of
    unicode:
  • Process.memory_maps().path
  • WindosService.bin_path()
  • WindosService.description()
  • WindosService.display_name()
  • WindosService.username()

2017-04-10

Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.

Happy merging! 🤖

@asvetlov asvetlov merged commit a9322ab into master Sep 10, 2017
@asvetlov asvetlov deleted the pyup-update-psutil-5.2.2-to-5.3.1 branch September 10, 2017 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants