diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-03-05 12:36:11 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-03-05 12:36:11 +0100 |
commit | 5357f94010f49bed052046ff07bb534d569bff64 (patch) | |
tree | d760880e1a78de26358131c63ce4e45772b2a176 | |
parent | 95244de84f59f4793bc806196b383fbd217aa639 (diff) | |
download | psutil-5357f94010f49bed052046ff07bb534d569bff64.tar.gz |
pre-release
-rw-r--r-- | HISTORY.rst | 7 | ||||
-rw-r--r-- | INSTALL.rst | 54 | ||||
-rw-r--r-- | MANIFEST.in | 3 | ||||
-rw-r--r-- | docs/index.rst | 6 | ||||
-rwxr-xr-x | scripts/internal/download_exes.py | 36 |
5 files changed, 54 insertions, 52 deletions
diff --git a/HISTORY.rst b/HISTORY.rst index 5f3c38f2..18bd4833 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,7 +3,7 @@ 5.6.0 ===== -XXXX-XX-XX +2019-03-05 **Enhancements** @@ -24,7 +24,7 @@ XXXX-XX-XX **Bug fixes** - 1353_: process_iter() is now thread safe (it rarely raised TypeError). -- 1394_: [Windows] Process name() and exe() may erronously return "Registry". +- 1394_: [Windows] Process name() and exe() may erroneously return "Registry". QueryFullProcessImageNameW is now used instead of GetProcessImageFileNameW in order to prevent that. - 1411_: [BSD] lack of Py_DECREF could cause segmentation fault on process @@ -33,6 +33,9 @@ XXXX-XX-XX a 64-bit process in 32-bit-WoW mode. Now it raises AccessDenied. - 1427_: [OSX] Process cmdline() and environ() may erroneously raise OSError on failed malloc(). +- 1429_: [Windows] SE DEBUG was not properly set for current process. It is + now, and it should result in less AccessDenied exceptions for low-pid + processes. - 1432_: [Windows] Process.memory_info_ex()'s USS memory is miscalculated because we're not using the actual system PAGESIZE. - 1439_: [NetBSD] Process.connections() may return incomplete results if using diff --git a/INSTALL.rst b/INSTALL.rst index 567758c9..68c63917 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -20,43 +20,43 @@ Permission issues (UNIX) ======================== The commands below assume you're running as root. -If you're not or you bump into permission errors you can either install psutil +If you aren't or you bump into permission errors you can either install psutil for your user only:: - pip install --user psutil + pip3 install --user psutil -...or prepend ``sudo``, e.g.:: +...or prepend ``sudo`` and install it globally, e.g.:: - sudo pip install psutil + sudo pip3 install psutil Linux ===== Ubuntu / Debian:: - sudo apt-get install gcc python-dev python-pip - pip install psutil + sudo apt-get install gcc python3-dev + pip3 install psutil RedHat / CentOS:: - sudo yum install gcc python-devel python-pip - pip install psutil + sudo yum install gcc python3-devel + pip3 install psutil -If you're on Python 3 use ``python3-dev`` and ``python3-pip`` instead. +If you're on Python 2 use ``python-dev`` instead. macOS ===== Install `Xcode <https://developer.apple.com/downloads/?name=Xcode>`__ then run:: - pip install psutil + pip3 install psutil Windows ======= Open a cmd.exe shell and run:: - python -m pip install psutil + python3 -m pip install psutil This assumes "python" is in your PATH. If not, specify the full python.exe path. @@ -76,16 +76,16 @@ Once installed run `vcvars64.bat` (see `here <http://stackoverflow.com/questions/11072521/>`__). Once VS is setup open a cmd.exe shell, cd into psutil directory and run:: - python setup.py build - python setup.py install + python3 setup.py build + python3 setup.py install FreeBSD ======= :: - pkg install python gcc - python -m pip install psutil + pkg install python3 gcc + python -m pip3 install psutil OpenBSD @@ -94,35 +94,32 @@ OpenBSD :: export PKG_PATH="http://ftp.openbsd.org/pub/OpenBSD/`uname -r`/packages/`arch -s`/" - pkg_add -v python gcc - python -m pip install psutil + pkg_add -v python3 gcc + python3 -m pip install psutil NetBSD ====== :: + export PKG_PATH="ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/`uname -m`/`uname -r`/All" pkg_add -v pkgin - pkgin install python gcc - python -m pip install psutil + pkgin install python3 gcc + python3 -m pip install psutil Solaris ======= -If ``cc`` compiler is not installed create a symlink to ``gcc``: - -:: +If ``cc`` compiler is not installed create a symlink to ``gcc``:: sudo ln -s /usr/bin/gcc /usr/local/bin/cc -Install: - -:: +Install:: pkg install gcc - python -m pip install psutil + python3 -m pip install psutil Install from sources @@ -132,11 +129,10 @@ Install from sources git clone https://github.com/giampaolo/psutil.git cd psutil - python setup.py install + python3 setup.py install Dev Guide ========= -If you wan to hacking or contribute on psutil continue reading the -`dev guide <https://github.com/giampaolo/psutil/blob/master/docs/DEVGUIDE.rst>`__ +See: `dev guide <https://github.com/giampaolo/psutil/blob/master/docs/DEVGUIDE.rst>`__. diff --git a/MANIFEST.in b/MANIFEST.in index 321684c1..3e7b5e7d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,4 @@ include .coveragerc -include .git-pre-commit include .gitignore include CREDITS include HISTORY.rst @@ -20,7 +19,6 @@ include docs/conf.py include docs/index.rst include docs/make.bat include make.bat -include psutil/DEVNOTES include psutil/__init__.py include psutil/_common.py include psutil/_compat.py @@ -102,6 +100,7 @@ include scripts/disk_usage.py include scripts/fans.py include scripts/free.py include scripts/ifconfig.py +include scripts/internal/.git-pre-commit include scripts/internal/README include scripts/internal/bench_oneshot.py include scripts/internal/bench_oneshot_2.py diff --git a/docs/index.rst b/docs/index.rst index 23a72543..6be1dc7b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2629,11 +2629,15 @@ take a look at the Timeline ======== + +- 2019-03-05: + `5.6.0 <https://pypi.org/project/psutil/5.6.0/#files>`__ - + `what's new <https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#560>`__ - + `diff <https://github.com/giampaolo/psutil/compare/release-5.5.1...release-5.6.0#files_bucket>` - 2019-02-15: `5.5.1 <https://pypi.org/project/psutil/5.5.1/#files>`__ - `what's new <https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#551>`__ - `diff <https://github.com/giampaolo/psutil/compare/release-5.5.0...release-5.5.1#files_bucket>` - - 2019-01-23: `5.5.0 <https://pypi.org/project/psutil/5.5.0/#files>`__ - `what's new <https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#550>`__ - diff --git a/scripts/internal/download_exes.py b/scripts/internal/download_exes.py index 3d84b500..41e303f8 100755 --- a/scripts/internal/download_exes.py +++ b/scripts/internal/download_exes.py @@ -83,25 +83,25 @@ def download_file(url): def get_file_urls(options): - session = requests.Session() - data = session.get( - BASE_URL + '/projects/' + options.user + '/' + options.project, - timeout=TIMEOUT) - data = data.json() - - urls = [] - for job in (job['jobId'] for job in data['build']['jobs']): - job_url = BASE_URL + '/buildjobs/' + job + '/artifacts' - data = session.get(job_url, timeout=TIMEOUT) + with requests.Session() as session: + data = session.get( + BASE_URL + '/projects/' + options.user + '/' + options.project, + timeout=TIMEOUT) data = data.json() - for item in data: - file_url = job_url + '/' + item['fileName'] - urls.append(file_url) - if not urls: - exit("no artifacts found") - else: - for url in sorted(urls, key=lambda x: os.path.basename(x)): - yield url + + urls = [] + for job in (job['jobId'] for job in data['build']['jobs']): + job_url = BASE_URL + '/buildjobs/' + job + '/artifacts' + data = session.get(job_url, timeout=TIMEOUT) + data = data.json() + for item in data: + file_url = job_url + '/' + item['fileName'] + urls.append(file_url) + if not urls: + exit("no artifacts found") + else: + for url in sorted(urls, key=lambda x: os.path.basename(x)): + yield url def rename_27_wheels(): |