[Python-modules-commits] [python-psutil] 01/09: Import python-psutil_5.0.1.orig.tar.gz

Sandro Tosi morph at moszumanska.debian.org
Thu Jan 5 19:28:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository python-psutil.

commit 8bc102f9570a371f178b15248492a84f0f47f570
Author: Sandro Tosi <morph at debian.org>
Date:   Thu Jan 5 14:12:14 2017 -0500

    Import python-psutil_5.0.1.orig.tar.gz
---
 .ci/README                                    |   3 -
 .ci/appveyor/README                           |   2 -
 .ci/appveyor/install.ps1                      |  85 ------
 .ci/appveyor/run_with_compiler.cmd            |  88 -------
 .ci/travis/README                             |   2 -
 .ci/travis/install.sh                         |  54 ----
 .ci/travis/run.sh                             |  34 ---
 .git-pre-commit                               |  94 -------
 .gitignore                                    |  18 --
 .travis.yml                                   |  39 ---
 CREDITS                                       |   4 +
 DEVGUIDE.rst                                  |   6 +-
 HISTORY.rst                                   |  21 ++
 IDEAS                                         |  24 ++
 MANIFEST.in                                   |  31 +--
 Makefile                                      |   4 +
 PKG-INFO                                      |  55 ++--
 README.rst                                    |  53 ++--
 appveyor.yml                                  | 116 ---------
 docs/_static/copybutton.js                    |  57 ++++
 docs/_static/sidebar.js                       | 161 ++++++++++++
 docs/_themes/pydoctheme/static/pydoctheme.css |  10 +
 docs/conf.py                                  |   3 +-
 docs/index.rst                                | 357 ++++++++++++++++----------
 psutil.egg-info/PKG-INFO                      |  55 ++--
 psutil.egg-info/SOURCES.txt                   |  14 +-
 psutil/__init__.py                            |  58 ++++-
 psutil/_psbsd.py                              |  22 +-
 psutil/_psutil_bsd.c                          | 105 ++++----
 psutil/_psutil_posix.c                        |  69 +++--
 psutil/_psutil_windows.c                      |  11 +-
 psutil/_pswindows.py                          |  20 +-
 psutil/arch/bsd/netbsd.c                      |   4 +-
 psutil/arch/windows/ntextapi.h                |   9 +-
 psutil/tests/__init__.py                      |   4 +
 psutil/tests/test_linux.py                    |  16 ++
 psutil/tests/test_misc.py                     |   5 +-
 psutil/tests/test_posix.py                    |   4 +
 psutil/tests/test_process.py                  |   4 +-
 psutil/tests/test_system.py                   |   6 +-
 scripts/internal/README                       |   2 -
 scripts/internal/winmake.py                   |   3 +-
 scripts/nettop.py                             |   1 +
 scripts/procsmem.py                           |   2 +-
 setup.py                                      |  55 ++--
 45 files changed, 890 insertions(+), 900 deletions(-)

diff --git a/.ci/README b/.ci/README
deleted file mode 100644
index 86b72af..0000000
--- a/.ci/README
+++ /dev/null
@@ -1,3 +0,0 @@
-This directory contains support scripts for Travis and Appveyor continuous
-integration services.
-Travis is used to run tests on Linux and OSX, Appveyor runs tests on Windows.
diff --git a/.ci/appveyor/README b/.ci/appveyor/README
deleted file mode 100644
index 2e092a0..0000000
--- a/.ci/appveyor/README
+++ /dev/null
@@ -1,2 +0,0 @@
-This directory contains support files for appveyor, a continuous integration
-service which runs tests on Windows on every push.
diff --git a/.ci/appveyor/install.ps1 b/.ci/appveyor/install.ps1
deleted file mode 100644
index 3f05628..0000000
--- a/.ci/appveyor/install.ps1
+++ /dev/null
@@ -1,85 +0,0 @@
-# Sample script to install Python and pip under Windows
-# Authors: Olivier Grisel and Kyle Kastner
-# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/
-
-$BASE_URL = "https://www.python.org/ftp/python/"
-$GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py"
-$GET_PIP_PATH = "C:\get-pip.py"
-
-
-function DownloadPython ($python_version, $platform_suffix) {
-    $webclient = New-Object System.Net.WebClient
-    $filename = "python-" + $python_version + $platform_suffix + ".msi"
-    $url = $BASE_URL + $python_version + "/" + $filename
-
-    $basedir = $pwd.Path + "\"
-    $filepath = $basedir + $filename
-    if (Test-Path $filename) {
-        Write-Host "Reusing" $filepath
-        return $filepath
-    }
-
-    # Download and retry up to 5 times in case of network transient errors.
-    Write-Host "Downloading" $filename "from" $url
-    $retry_attempts = 3
-    for($i=0; $i -lt $retry_attempts; $i++){
-        try {
-            $webclient.DownloadFile($url, $filepath)
-            break
-        }
-        Catch [Exception]{
-            Start-Sleep 1
-        }
-   }
-   Write-Host "File saved at" $filepath
-   return $filepath
-}
-
-
-function InstallPython ($python_version, $architecture, $python_home) {
-    Write-Host "Installing Python" $python_version "for" $architecture "bit architecture to" $python_home
-    if (Test-Path $python_home) {
-        Write-Host $python_home "already exists, skipping."
-        return $false
-    }
-    if ($architecture -eq "32") {
-        $platform_suffix = ""
-    } else {
-        $platform_suffix = ".amd64"
-    }
-    $filepath = DownloadPython $python_version $platform_suffix
-    Write-Host "Installing" $filepath "to" $python_home
-    $args = "/qn /i $filepath TARGETDIR=$python_home"
-    Write-Host "msiexec.exe" $args
-    Start-Process -FilePath "msiexec.exe" -ArgumentList $args -Wait -Passthru
-    Write-Host "Python $python_version ($architecture) installation complete"
-    return $true
-}
-
-
-function InstallPip ($python_home) {
-    $pip_path = $python_home + "/Scripts/pip.exe"
-    $python_path = $python_home + "/python.exe"
-    if (-not(Test-Path $pip_path)) {
-        Write-Host "Installing pip..."
-        $webclient = New-Object System.Net.WebClient
-        $webclient.DownloadFile($GET_PIP_URL, $GET_PIP_PATH)
-        Write-Host "Executing:" $python_path $GET_PIP_PATH
-        Start-Process -FilePath "$python_path" -ArgumentList "$GET_PIP_PATH" -Wait -Passthru
-    } else {
-        Write-Host "pip already installed."
-    }
-}
-
-function InstallPackage ($python_home, $pkg) {
-    $pip_path = $python_home + "/Scripts/pip.exe"
-    & $pip_path install $pkg
-}
-
-function main () {
-    InstallPython $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON
-    InstallPip $env:PYTHON
-    InstallPackage $env:PYTHON wheel
-}
-
-main
diff --git a/.ci/appveyor/run_with_compiler.cmd b/.ci/appveyor/run_with_compiler.cmd
deleted file mode 100644
index 5da547c..0000000
--- a/.ci/appveyor/run_with_compiler.cmd
+++ /dev/null
@@ -1,88 +0,0 @@
-:: To build extensions for 64 bit Python 3, we need to configure environment
-:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:
-:: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1)
-::
-:: To build extensions for 64 bit Python 2, we need to configure environment
-:: variables to use the MSVC 2008 C++ compilers from GRMSDKX_EN_DVD.iso of:
-:: MS Windows SDK for Windows 7 and .NET Framework 3.5 (SDK v7.0)
-::
-:: 32 bit builds, and 64-bit builds for 3.5 and beyond, do not require specific
-:: environment configurations.
-::
-:: Note: this script needs to be run with the /E:ON and /V:ON flags for the
-:: cmd interpreter, at least for (SDK v7.0)
-::
-:: More details at:
-:: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows
-:: http://stackoverflow.com/a/13751649/163740
-::
-:: Author: Olivier Grisel
-:: License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/
-::
-:: Notes about batch files for Python people:
-::
-:: Quotes in values are literally part of the values:
-::      SET FOO="bar"
-:: FOO is now five characters long: " b a r "
-:: If you don't want quotes, don't include them on the right-hand side.
-::
-:: The CALL lines at the end of this file look redundant, but if you move them
-:: outside of the IF clauses, they do not run properly in the SET_SDK_64==Y
-:: case, I don't know why.
- at ECHO OFF
-
-SET COMMAND_TO_RUN=%*
-SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows
-SET WIN_WDK=c:\Program Files (x86)\Windows Kits\10\Include\wdf
-
-:: Extract the major and minor versions, and allow for the minor version to be
-:: more than 9.  This requires the version number to have two dots in it.
-SET MAJOR_PYTHON_VERSION=%PYTHON_VERSION:~0,1%
-IF "%PYTHON_VERSION:~3,1%" == "." (
-    SET MINOR_PYTHON_VERSION=%PYTHON_VERSION:~2,1%
-) ELSE (
-    SET MINOR_PYTHON_VERSION=%PYTHON_VERSION:~2,2%
-)
-
-:: Based on the Python version, determine what SDK version to use, and whether
-:: to set the SDK for 64-bit.
-IF %MAJOR_PYTHON_VERSION% == 2 (
-    SET WINDOWS_SDK_VERSION="v7.0"
-    SET SET_SDK_64=Y
-) ELSE (
-    IF %MAJOR_PYTHON_VERSION% == 3 (
-        SET WINDOWS_SDK_VERSION="v7.1"
-        IF %MINOR_PYTHON_VERSION% LEQ 4 (
-            SET SET_SDK_64=Y
-        ) ELSE (
-            SET SET_SDK_64=N
-            IF EXIST "%WIN_WDK%" (
-                :: See: https://connect.microsoft.com/VisualStudio/feedback/details/1610302/
-                REN "%WIN_WDK%" 0wdf
-            )
-        )
-    ) ELSE (
-        ECHO Unsupported Python version: "%MAJOR_PYTHON_VERSION%"
-        EXIT 1
-    )
-)
-
-IF %PYTHON_ARCH% == 64 (
-    IF %SET_SDK_64% == Y (
-        ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture
-        SET DISTUTILS_USE_SDK=1
-        SET MSSdk=1
-        "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WINDOWS_SDK_VERSION%
-        "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release
-        ECHO Executing: %COMMAND_TO_RUN%
-        call %COMMAND_TO_RUN% || EXIT 1
-    ) ELSE (
-        ECHO Using default MSVC build environment for 64 bit architecture
-        ECHO Executing: %COMMAND_TO_RUN%
-        call %COMMAND_TO_RUN% || EXIT 1
-    )
-) ELSE (
-    ECHO Using default MSVC build environment for 32 bit architecture
-    ECHO Executing: %COMMAND_TO_RUN%
-    call %COMMAND_TO_RUN% || EXIT 1
-)
diff --git a/.ci/travis/README b/.ci/travis/README
deleted file mode 100644
index d9d5f65..0000000
--- a/.ci/travis/README
+++ /dev/null
@@ -1,2 +0,0 @@
-This directory contains support files for Travis, a continuous integration
-service which runs tests on Linux and Windows on every push.
diff --git a/.ci/travis/install.sh b/.ci/travis/install.sh
deleted file mode 100755
index 677dc46..0000000
--- a/.ci/travis/install.sh
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/bash
-
-set -e
-set -x
-
-uname -a
-python -c "import sys; print(sys.version)"
-
-if [[ "$(uname -s)" == 'Darwin' ]]; then
-    brew update || brew update
-    brew outdated pyenv || brew upgrade pyenv
-    brew install pyenv-virtualenv
-
-    if which pyenv > /dev/null; then
-        eval "$(pyenv init -)"
-    fi
-
-    case "${PYVER}" in
-        # py26)
-        #     pyenv install 2.6.9
-        #     pyenv virtualenv 2.6.9 psutil
-        #     ;;
-        py27)
-            pyenv install 2.7.10
-            pyenv virtualenv 2.7.10 psutil
-            ;;
-        # py32)
-        #     pyenv install 3.2.6
-        #     pyenv virtualenv 3.2.6 psutil
-        #     ;;
-        # py33)
-        #     pyenv install 3.3.6
-        #     pyenv virtualenv 3.3.6 psutil
-        #     ;;
-        py34)
-            pyenv install 3.4.3
-            pyenv virtualenv 3.4.3 psutil
-            ;;
-    esac
-    pyenv rehash
-    pyenv activate psutil
-fi
-
-if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]] || [[ $PYVER == 'py26' ]]; then
-    pip install -U ipaddress unittest2 argparse mock==1.0.1
-elif [[ $TRAVIS_PYTHON_VERSION == '2.7' ]] || [[ $PYVER == 'py27' ]]; then
-    pip install -U ipaddress mock
-elif [[ $TRAVIS_PYTHON_VERSION == '3.2' ]] || [[ $PYVER == 'py32' ]]; then
-    pip install -U ipaddress mock
-elif [[ $TRAVIS_PYTHON_VERSION == '3.3' ]] || [[ $PYVER == 'py33' ]]; then
-    pip install -U ipaddress
-fi
-
-pip install -U coverage coveralls flake8 pep8 setuptools
diff --git a/.ci/travis/run.sh b/.ci/travis/run.sh
deleted file mode 100755
index b3a6a4a..0000000
--- a/.ci/travis/run.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-set -e
-set -x
-
-PYVER=`python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))'`
-
-# setup OSX
-if [[ "$(uname -s)" == 'Darwin' ]]; then
-    if which pyenv > /dev/null; then
-        eval "$(pyenv init -)"
-    fi
-    pyenv activate psutil
-fi
-
-# install psutil
-python setup.py build
-python setup.py develop
-
-# run tests (with coverage)
-if [[ "$(uname -s)" != 'Darwin' ]]; then
-    coverage run psutil/tests/runner.py --include="psutil/*" --omit="test/*,*setup*"
-else
-    python psutil/tests/runner.py
-fi
-
-if [ "$PYVER" == "2.7" ] || [ "$PYVER" == "3.5" ]; then
-    # run mem leaks test
-    python psutil/tests/test_memory_leaks.py
-    # run linter (on Linux only)
-    if [[ "$(uname -s)" != 'Darwin' ]]; then
-        python -m flake8
-    fi
-fi
diff --git a/.git-pre-commit b/.git-pre-commit
deleted file mode 100755
index e15884d..0000000
--- a/.git-pre-commit
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2009 Giampaolo Rodola'. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""
-This gets executed on 'git commit' and rejects the commit in case the
-submitted code does not pass validation.
-Install it with "make install-git-hooks".
-"""
-
-from __future__ import print_function
-import os
-import subprocess
-import sys
-
-
-def term_supports_colors():
-    try:
-        import curses
-        assert sys.stderr.isatty()
-        curses.setupterm()
-        assert curses.tigetnum("colors") > 0
-    except Exception:
-        return False
-    else:
-        return True
-
-
-def hilite(s, ok=True, bold=False):
-    """Return an highlighted version of 'string'."""
-    attr = []
-    if ok is None:  # no color
-        pass
-    elif ok:   # green
-        attr.append('32')
-    else:   # red
-        attr.append('31')
-    if bold:
-        attr.append('1')
-    return '\x1b[%sm%s\x1b[0m' % (';'.join(attr), s)
-
-
-def exit(msg):
-    if term_supports_colors():
-        msg = hilite(msg, ok=False)
-    print(msg, file=sys.stderr)
-    sys.exit(1)
-
-
-def main():
-    out = subprocess.check_output("git diff --cached --name-only", shell=True)
-    py_files = [x for x in out.split(b'\n') if x.endswith(b'.py') and
-                os.path.exists(x)]
-
-    for path in py_files:
-        with open(path) as f:
-            data = f.read()
-
-        # pdb
-        if "pdb.set_trace" in data:
-            for lineno, line in enumerate(data.split('\n'), 1):
-                line = line.rstrip()
-                if "pdb.set_trace" in line:
-                    print("%s:%s %s" % (path, lineno, line))
-                    return exit(
-                        "commit aborted: you forgot a pdb in your python code")
-
-        # bare except clause
-        if "except:" in data:
-            for lineno, line in enumerate(data.split('\n'), 1):
-                line = line.rstrip()
-                if "except:" in line and not line.endswith("# NOQA"):
-                    print("%s:%s %s" % (path, lineno, line))
-                    return exit("commit aborted: bare except clause")
-
-    # flake8
-    if py_files:
-        try:
-            import flake8  # NOQA
-        except ImportError:
-            return exit("commit aborted: flake8 is not installed; "
-                        "run 'make setup-dev-env'")
-
-        # XXX: we should scape spaces and possibly other amenities here
-        ret = subprocess.call(
-            "%s -m flake8 %s" % (sys.executable, " ".join(py_files)),
-            shell=True)
-        if ret != 0:
-            return exit("commit aborted: python code is not flake8 compliant")
-
-
-main()
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 99d0d54..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,18 +0,0 @@
-syntax: glob
-*.al
-*.bak
-*.egg-info
-*.la
-*.lo
-*.o
-*.orig
-*.pyc
-*.pyd
-*.rej
-*.so
-*.swp
-.cache/
-.idea/
-.tox/
-build/
-dist/
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 17206c5..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-sudo: false
-language: python
-cache: pip
-matrix:
-    include:
-        - python: 2.6
-        - python: 2.7
-        - python: 3.3
-        - python: 3.4
-        - python: 3.5
-        - "pypy"
-        # XXX - commented because OSX builds are deadly slow
-        # - language: generic
-        #   os: osx
-        #   env: PYVER=py26
-        - language: generic
-          os: osx
-          env: PYVER=py27
-        # XXX - commented because OSX builds are deadly slow
-        # - language: generic
-        #   os: osx
-        #   env: PYVER=py33
-        - language: generic
-          os: osx
-          env: PYVER=py34
-        # XXX - not supported yet
-        # - language: generic
-        #   os: osx
-        #   env: PYVER=py35
-install:
-    - ./.ci/travis/install.sh
-script:
-    - ./.ci/travis/run.sh
-after_success:
-    # upload reports to coveralls.io
-    - |
-        if [ "$(uname -s)" != 'Darwin' ]; then
-            coveralls
-        fi
diff --git a/CREDITS b/CREDITS
index 4dcb888..ccc4515 100644
--- a/CREDITS
+++ b/CREDITS
@@ -416,3 +416,7 @@ I: 874
 N: Arcadiy Ivanov
 W: https://github.com/arcivanov
 I: 919
+
+N: Max Bélanger
+W: https://github.com/maxbelanger
+I: 936
diff --git a/DEVGUIDE.rst b/DEVGUIDE.rst
index 95bea79..93dfa69 100644
--- a/DEVGUIDE.rst
+++ b/DEVGUIDE.rst
@@ -1,6 +1,6 @@
-=====
-Setup
-=====
+=======================
+Setup and running tests
+=======================
 
 If you plan on hacking on psutil this is what you're supposed to do first:
 
diff --git a/HISTORY.rst b/HISTORY.rst
index c6388c5..2522332 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,5 +1,26 @@
 *Bug tracker at https://github.com/giampaolo/psutil/issues*
 
+5.0.1
+=====
+
+*2016-12-21*
+
+**Enhancements**
+
+- 939_: tar.gz distribution went from 1.8M to 258K.
+- 811_: [Windows] provide a more meaningful error message if trying to use
+  psutil on unsupported Windows XP.
+
+**Bug fixes**
+
+- 609_: [SunOS] psutil does not compile on Solaris 10.
+- 936_: [Windows] fix compilation error on VS 2013 (patch by Max Bélanger).
+- 940_: [Linux] cpu_percent() and cpu_times_percent() was calculated
+  incorrectly as "iowait", "guest" and "guest_nice" times were not properly
+  taken into account.
+- 944_: [OpenBSD] psutil.pids() was omitting PID 0.
+
+
 5.0.0
 =====
 
diff --git a/IDEAS b/IDEAS
index a80c9dc..015b5ff 100644
--- a/IDEAS
+++ b/IDEAS
@@ -14,9 +14,21 @@ PLATFORMS
 - DragonFlyBSD
 - HP-UX
 
+
+APIS
+====
+
+- cpu_info() (#550)
+
+
 FEATURES
 ========
 
+- #669: Windows / net_if_addrs(): return broadcast addr.
+
+- #550: CPU info (frequency, architecture, threads per core, cores per socket,
+  sockets, ...)
+
 - #772: extended net_io_counters() metrics.
 
 - #900: wheels for OSX and Linux.
@@ -146,6 +158,18 @@ FEATURES
 - Have psutil.Process().cpu_affinity([]) be an alias for "all CPUs"?
 
 
+BUGFIXES
+========
+
+- #600: windows / open_files(): support network file handles.
+
+
+REJECTED
+========
+
+- #550: threads per core
+
+
 RESOURCES
 =========
 
diff --git a/MANIFEST.in b/MANIFEST.in
index 62df08e..b0c1564 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,23 +1,18 @@
+include *.bat
+include *.rst
 include .coveragerc
-include .git-pre-commit
-include .gitignore
-include .travis.yml
-include appveyor.yml
-include CREDITS
-include DEVGUIDE.rst
-include HISTORY.rst
+include CREDITS*
 include IDEAS
-include INSTALL.rst
-include LICENSE
-include make.bat
+include INSTALL*
+include LICENSE*
+include HISTORY*
 include Makefile
-include MANIFEST.in
-include README.rst
-include setup.py
 include tox.ini
-recursive-exclude docs/_build *
-recursive-include .ci *
-recursive-include docs *
-recursive-include psutil *.py *.c *.h README*
+
+recursive-include psutil *.py *.c *.h *.rst
 recursive-include scripts *.py
-recursive-include scripts/internal *.py README*
+recursive-include README*
+
+recursive-include docs *.conf *.rst *.js *.html *.css *.py *.bat *Makefile* README*
+recursive-exclude docs/_build *
+recursive-exclude .ci *
diff --git a/Makefile b/Makefile
index c91d3b9..13ed0c0 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ ARGS =
 
 # List of nice-to-have dev libs.
 DEPS = argparse \
+	check-manifest \
 	coverage \
 	flake8 \
 	futures \
@@ -171,6 +172,9 @@ pyflakes:
 flake8:
 	@git ls-files | grep \\.py$ | xargs $(PYTHON) -m flake8
 
+check-manifest:
+	$(PYTHON) -m check_manifest -v $(ARGS)
+
 # ===================================================================
 # GIT
 # ===================================================================
diff --git a/PKG-INFO b/PKG-INFO
index d334dec..8e88c54 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: psutil
-Version: 5.0.0
+Version: 5.0.1
 Summary: psutil is a cross-platform library for retrieving information onrunning processes and system utilization (CPU, memory, disks, network)in Python.
 Home-page: https://github.com/giampaolo/psutil
 Author: Giampaolo Rodola
@@ -18,7 +18,7 @@ Description: .. image:: https://img.shields.io/travis/giampaolo/psutil/master.sv
             :target: https://coveralls.io/github/giampaolo/psutil?branch=master
             :alt: Test coverage (coverall.io)
         
-        .. image:: https://img.shields.io/pypi/v/psutil.svg?label=version
+        .. image:: https://img.shields.io/pypi/v/psutil.svg?label=pypi
             :target: https://pypi.python.org/pypi/psutil/
             :alt: Latest version
         
@@ -64,18 +64,30 @@ Description: .. image:: https://img.shields.io/travis/giampaolo/psutil/master.sv
         Example applications
         ====================
         
+        +------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+
+        | .. image:: https://github.com/giampaolo/psutil/blob/master/docs/_static/procinfo-small.png     | .. image:: https://github.com/giampaolo/psutil/blob/master/docs/_static/top-small.png      |
+        |    :target: https://github.com/giampaolo/psutil/blob/master/docs/_static/procinfo.png          |     :target: https://github.com/giampaolo/psutil/blob/master/docs/_static/top.png          |
+        +------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+
+        | .. image:: https://github.com/giampaolo/psutil/blob/master/docs/_static/procsmem-small.png     | .. image:: https://github.com/giampaolo/psutil/blob/master/docs/_static/pmap-small.png     |
+        |     :target: https://github.com/giampaolo/psutil/blob/master/docs/_static/procsmem.png         |     :target: https://github.com/giampaolo/psutil/blob/master/docs/_static/pmap.png         |
+        +------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+
+        
+        Also see https://github.com/giampaolo/psutil/tree/master/scripts.
+        
+        =====================
+        Projects using psutil
+        =====================
+        
+        At the time of writing there are over
+        `4200 open source projects <https://libraries.io/pypi/psutil/dependent_repositories?page=1>`__
+        on github which depend from psutil.
+        Here's some I find particularly interesting:
+        
+        - https://github.com/facebook/osquery/
         - https://github.com/nicolargo/glances
         - https://github.com/google/grr
         - https://github.com/Jahaja/psdash
-        - https://github.com/giampaolo/psutil/tree/master/scripts
-        
-        +------------------------------------------------+---------------------------------------------+
-        | .. image:: docs/_static/procinfo-small.png     | .. image:: docs/_static/top-small.png       |
-        |    :target: docs/_static/procinfo.png          |     :target: docs/_static/top.png           |
-        +------------------------------------------------+---------------------------------------------+
-        | .. image:: docs/_static/procsmem-small.png     | .. image:: docs/_static/pmap-small.png      |
-        |     :target: docs/_static/procsmem.png         |     :target: docs/_static/pmap.png          |
-        +------------------------------------------------+---------------------------------------------+
+        - https://github.com/ajenti/ajenti
         
         ==============
         Example usages
@@ -211,6 +223,16 @@ Description: .. image:: https://img.shields.io/travis/giampaolo/psutil/master.sv
             >>> p.cmdline()
             ['/usr/bin/python', 'main.py']
             >>>
+            >>> p.pid
+            7055
+            >>> p.ppid()
+            7054
+            >>> p.parent()
+            <psutil.Process(pid=7054, name='bash') at 140008329539408>
+            >>> p.children()
+            [<psutil.Process(pid=8031, name='python') at 14020832451977>,
+             <psutil.Process(pid=8044, name='python') at 19229444921932>]
+            >>>
             >>> p.status()
             'running'
             >>> p.username()
@@ -233,15 +255,12 @@ Description: .. image:: https://img.shields.io/travis/giampaolo/psutil/master.sv
             [0, 1, 2, 3]
             >>> p.cpu_affinity([0])  # set
             >>>
-            >>> p.memory_percent()
-            0.63423
-            >>>
             >>> p.memory_info()
             pmem(rss=10915840, vms=67608576, shared=3313664, text=2310144, lib=0, data=7262208, dirty=0)
-            >>>
             >>> p.memory_full_info()  # "real" USS memory usage (Linux, OSX, Win only)
             pfullmem(rss=10199040, vms=52133888, shared=3887104, text=2867200, lib=0, data=5967872, dirty=0, uss=6545408, pss=6872064, swap=0)
-            >>>
+            >>> p.memory_percent()
+            0.7823
             >>> p.memory_maps()
             [pmmap_grouped(path='/lib/x8664-linux-gnu/libutil-2.15.so', rss=32768, size=2125824, pss=32768, shared_clean=0, shared_dirty=0, private_clean=20480, private_dirty=12288, referenced=32768, anonymous=12288, swap=0),
              pmmap_grouped(path='/lib/x8664-linux-gnu/libc-2.15.so', rss=3821568, size=3842048, pss=3821568, shared_clean=0, shared_dirty=0, private_clean=0, private_dirty=3821568, referenced=3575808, anonymous=3821568, swap=0),
@@ -293,6 +312,10 @@ Description: .. image:: https://img.shields.io/travis/giampaolo/psutil/master.sv
             'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg', 'COLORTERM': 'gnome-terminal',
              ...}
             >>>
+            >>> p.as_dict()
+            {'status': 'running', 'num_ctx_switches': pctxsw(voluntary=63, involuntary=1), 'pid': 5457, ...}
+            >>> p.is_running()
+            True
             >>> p.suspend()
             >>> p.resume()
             >>>
diff --git a/README.rst b/README.rst
index 0a6ec01..d413f1e 100644
--- a/README.rst
+++ b/README.rst
@@ -10,7 +10,7 @@
     :target: https://coveralls.io/github/giampaolo/psutil?branch=master
     :alt: Test coverage (coverall.io)
 
-.. image:: https://img.shields.io/pypi/v/psutil.svg?label=version
+.. image:: https://img.shields.io/pypi/v/psutil.svg?label=pypi
     :target: https://pypi.python.org/pypi/psutil/
     :alt: Latest version
 
@@ -56,18 +56,30 @@ to 3.5** (users of Python 2.4 and 2.5 may use
 Example applications
 ====================
 
++------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+
+| .. image:: https://github.com/giampaolo/psutil/blob/master/docs/_static/procinfo-small.png     | .. image:: https://github.com/giampaolo/psutil/blob/master/docs/_static/top-small.png      |
+|    :target: https://github.com/giampaolo/psutil/blob/master/docs/_static/procinfo.png          |     :target: https://github.com/giampaolo/psutil/blob/master/docs/_static/top.png          |
++------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+
+| .. image:: https://github.com/giampaolo/psutil/blob/master/docs/_static/procsmem-small.png     | .. image:: https://github.com/giampaolo/psutil/blob/master/docs/_static/pmap-small.png     |
+|     :target: https://github.com/giampaolo/psutil/blob/master/docs/_static/procsmem.png         |     :target: https://github.com/giampaolo/psutil/blob/master/docs/_static/pmap.png         |
++------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+
+
+Also see https://github.com/giampaolo/psutil/tree/master/scripts.
+
+=====================
+Projects using psutil
+=====================
+
+At the time of writing there are over
+`4200 open source projects <https://libraries.io/pypi/psutil/dependent_repositories?page=1>`__
+on github which depend from psutil.
+Here's some I find particularly interesting:
+
+- https://github.com/facebook/osquery/
 - https://github.com/nicolargo/glances
 - https://github.com/google/grr
 - https://github.com/Jahaja/psdash
-- https://github.com/giampaolo/psutil/tree/master/scripts
-
-+------------------------------------------------+---------------------------------------------+
-| .. image:: docs/_static/procinfo-small.png     | .. image:: docs/_static/top-small.png       |
-|    :target: docs/_static/procinfo.png          |     :target: docs/_static/top.png           |
-+------------------------------------------------+---------------------------------------------+
-| .. image:: docs/_static/procsmem-small.png     | .. image:: docs/_static/pmap-small.png      |
-|     :target: docs/_static/procsmem.png         |     :target: docs/_static/pmap.png          |
-+------------------------------------------------+---------------------------------------------+
+- https://github.com/ajenti/ajenti
 
 ==============
 Example usages
@@ -203,6 +215,16 @@ Process management
     >>> p.cmdline()
     ['/usr/bin/python', 'main.py']
     >>>
+    >>> p.pid
+    7055
+    >>> p.ppid()
+    7054
+    >>> p.parent()
+    <psutil.Process(pid=7054, name='bash') at 140008329539408>
+    >>> p.children()
+    [<psutil.Process(pid=8031, name='python') at 14020832451977>,
+     <psutil.Process(pid=8044, name='python') at 19229444921932>]
+    >>>
     >>> p.status()
     'running'
     >>> p.username()
@@ -225,15 +247,12 @@ Process management
     [0, 1, 2, 3]
     >>> p.cpu_affinity([0])  # set
     >>>
-    >>> p.memory_percent()
-    0.63423
-    >>>
     >>> p.memory_info()
     pmem(rss=10915840, vms=67608576, shared=3313664, text=2310144, lib=0, data=7262208, dirty=0)
-    >>>
     >>> p.memory_full_info()  # "real" USS memory usage (Linux, OSX, Win only)
     pfullmem(rss=10199040, vms=52133888, shared=3887104, text=2867200, lib=0, data=5967872, dirty=0, uss=6545408, pss=6872064, swap=0)
-    >>>
+    >>> p.memory_percent()
+    0.7823
     >>> p.memory_maps()
     [pmmap_grouped(path='/lib/x8664-linux-gnu/libutil-2.15.so', rss=32768, size=2125824, pss=32768, shared_clean=0, shared_dirty=0, private_clean=20480, private_dirty=12288, referenced=32768, anonymous=12288, swap=0),
      pmmap_grouped(path='/lib/x8664-linux-gnu/libc-2.15.so', rss=3821568, size=3842048, pss=3821568, shared_clean=0, shared_dirty=0, private_clean=0, private_dirty=3821568, referenced=3575808, anonymous=3821568, swap=0),
@@ -285,6 +304,10 @@ Process management
     'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg', 'COLORTERM': 'gnome-terminal',
      ...}
     >>>
+    >>> p.as_dict()
+    {'status': 'running', 'num_ctx_switches': pctxsw(voluntary=63, involuntary=1), 'pid': 5457, ...}
+    >>> p.is_running()
+    True
     >>> p.suspend()
     >>> p.resume()
     >>>
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index 927d9cb..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,116 +0,0 @@
-os: Visual Studio 2015
-
-environment:
-
-  global:
-    # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
-    # /E:ON and /V:ON options are not enabled in the batch script intepreter
-    # See: http://stackoverflow.com/a/13751649/163740
-    WITH_COMPILER: "cmd /E:ON /V:ON /C .\\.ci\\appveyor\\run_with_compiler.cmd"
-
-  matrix:
-    # Pre-installed Python versions, which Appveyor may upgrade to
-    # a later point release.
-
-    # 32 bits
-
-    - PYTHON: "C:\\Python27"
-      PYTHON_VERSION: "2.7.x"
-      PYTHON_ARCH: "32"
-
-    - PYTHON: "C:\\Python33"
-      PYTHON_VERSION: "3.3.x"
-      PYTHON_ARCH: "32"
-
-    - PYTHON: "C:\\Python34"
-      PYTHON_VERSION: "3.4.x"
-      PYTHON_ARCH: "32"
-
-    - PYTHON: "C:\\Python35"
-      PYTHON_VERSION: "3.5.x"
-      PYTHON_ARCH: "32"
-
-    # 64 bits
-
-    - PYTHON: "C:\\Python27-x64"
-      PYTHON_VERSION: "2.7.x"
-      PYTHON_ARCH: "64"
-
-    - PYTHON: "C:\\Python33-x64"
-      PYTHON_VERSION: "3.3.x"
-      PYTHON_ARCH: "64"
-
-    - PYTHON: "C:\\Python34-x64"
-      PYTHON_VERSION: "3.4.x"
-      PYTHON_ARCH: "64"
-
-    - PYTHON: "C:\\Python35-x64"
-      PYTHON_VERSION: "3.5.x"
-      PYTHON_ARCH: "64"
-      ARCH: x86_64
-      VS_VER: "2015"
-      INSTANCENAME: "SQL2012SP1"
-
-    # Also build on a Python version not pre-installed by Appveyor.
-    # See: https://github.com/ogrisel/python-appveyor-demo/issues/10
-
-    # - PYTHON: "C:\\Python266"
-    #   PYTHON_VERSION: "2.6.6"
-    #   PYTHON_ARCH: "32"
-
-init:
-  - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
-
-install:
-  - "powershell .ci\\appveyor\\install.ps1"
-  # - ps: (new-object net.webclient).DownloadFile('https://raw.github.com/pypa/pip/master/contrib/get-pip.py', 'C:/get-pip.py')
-  - "%WITH_COMPILER% %PYTHON%/python.exe -m pip --version"
-  - "%WITH_COMPILER% %PYTHON%/python.exe -m pip install --upgrade --user unittest2 ipaddress pypiwin32 wmi wheel"
-  - "%WITH_COMPILER% %PYTHON%/python.exe -m pip freeze"
-  - "%WITH_COMPILER% %PYTHON%/python.exe setup.py build"
-  - "%WITH_COMPILER% %PYTHON%/python.exe setup.py build build_ext -i"
-  - "%WITH_COMPILER% %PYTHON%/python.exe setup.py develop"
-  # 1.0.1 is the latest release supporting python 2.6
-  - "%WITH_COMPILER% %PYTHON%/Scripts/pip.exe install mock==1.0.1"
-
-build: off
-
-test_script:
-  - "%WITH_COMPILER% %PYTHON%/python -V"
-  - "%WITH_COMPILER% %PYTHON%/python psutil/tests/runner.py"
-
-after_test:
-  - "%WITH_COMPILER% %PYTHON%/python setup.py bdist_wheel"
-  - "%WITH_COMPILER% %PYTHON%/python setup.py bdist_wininst"
-
-artifacts:
-  - path: dist\*
-
-# on_success:
-#   - might want to upload the content of dist/*.whl to a public wheelhouse
-
... 2249 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-psutil.git



More information about the Python-modules-commits mailing list