summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Makefile: define num CPUs for parallel workersGiampaolo Rodola2023-03-311-5/+6
|/ | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2023-03-293-68/+107
|\
| * [Linux] guess `available` virtual_memory() if kernel says it's 0 (#2052)Giampaolo Rodola2023-03-293-68/+107
| | | | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* | fix C compilation warning on Linux + Python 2Giampaolo Rodola2023-03-291-1/+8
|/ | | | | | | | | | | psutil/_psutil_linux.c: In function ‘psutil_proc_cpu_affinity_set’: psutil/_psutil_linux.c:317:80: warning: unknown conversion type character ‘R’ in format [-Wformat=] 317 | return PyErr_Format(PyExc_TypeError, "sequence argument expected, got %R", Py_TYPE(py_cpu_set)); | ^ psutil/_psutil_linux.c:317:46: warning: too many arguments for format [-Wformat-extra-args] 317 | return PyErr_Format(PyExc_TypeError, "sequence argument expected, got %R", Py_TYPE(py_cpu_set)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ creating build/lib.linux-x86_64-2.7
* fix linux testsGiampaolo Rodola2023-03-281-3/+0
|
* update HISTORYGiampaolo Rodola2023-03-281-0/+2
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* update HISTORY/CREDITS for #2216 / @mayeutGiampaolo Rodola2023-03-272-1/+3
|
* When raising warning, always use stacklevel=2Giampaolo Rodola2023-03-273-6/+6
| | | | | | | | | | B028: No explicit stacklevel argument found. The warn method from the warnings module uses a stacklevel of 1 by default. This will only show a stack trace for the line on which the warn method is called. It is therefore recommended to use a stacklevel of 2 or greater to provide more information to the user. Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* Win: fix running tests in a virtual environment (#2216)Matthieu Darbois2023-03-276-72/+42
| | | | | | | | | | | | On windows, starting with python 3.7, virtual environments use a venvlauncher startup process This does not play well when counting spawned processes or when relying on the pid of the spawned process to do some checks e.g. connection check per pid This commit detects this situation and uses the base python executable to spawn processes when required. Signed-off-by: mayeut <mayeut@users.noreply.github.com>
* typo (#2055)Gerardwx2023-03-181-1/+1
| | | | Signed-off-by: Gerard Weatherby <gweatherby@uchc.edu> Co-authored-by: Gerard Weatherby <gweatherby@uchc.edu>
* Makefile: set PSUTIL_SCRIPTS_DIR for 'test' target (re. to #2211)Giampaolo Rodola2023-03-181-1/+1
|
* CI: fix TestScripts tests failing due to ambiguous SCRIPTS_DIR (#2211)Matthieu Darbois2023-03-182-12/+6
| | | | | | | | | | | | Tests are being run with psutil installed in a virtual environment within cibuildwheel builds. The scripts folder is not being found in this installation & thus, those tests are skipped. This commit allows to pass the path of the scripts folder through an environment variable & re-enables those tests. Signed-off-by: mayeut <mayeut@users.noreply.github.com>
* setup.py: on failure, give suggestion about PYPY installationGiampaolo Rodola2023-03-071-3/+5
|
* fix exec() compatibility with PYPY (closes #2198)Giampaolo Rodola2023-03-071-1/+6
|
* Fix license: extra open quote. (#2197)SnoopProject2023-01-261-1/+1
| | | The problem is that the open quote messes up the formatting of the entire document for other developers, which includes mentioning the author and his permission to freely use psutil.
* Clearer tracebacks in case of chained exceptions (#2196)Giampaolo Rodola2023-01-242-3/+36
| | | | | | In case of exception, display a cleaner error traceback by hiding the `KeyError` bit deriving from a missed cache hit. Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* disable flaky test + small Makefile refactGiampaolo Rodola2023-01-247-23/+20
|
* #2191 / disk_partitions(): if all=True, do not unnecessarily list disk ↵Giampaolo Rodola2023-01-091-10/+11
| | | | | | partitions Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* fix make test-coverage targetGiampaolo Rodola2022-12-304-5/+5
|
* update shields/badgesGiampaolo Rodola2022-12-271-2/+2
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* give CREDITS to @sunpoet for #2186Giampaolo Rodola2022-12-272-1/+2
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* Fix build with Clang 15 (#2186)Po-Chuan Hsieh2022-12-271-1/+1
| | | | | Reference: https://github.com/freebsd/freebsd-ports/commit/4131f9bfd8d3adb98d096856ee08d2ac7756d7cd Co-authored-by: Dimitry Andric <dim@FreeBSD.org>
* fix flake8 configGiampaolo Rodola2022-12-271-6/+12
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2022-12-271-1/+1
|\
| * Fixed typo in debug message (#2187)Daniel Lockyer2022-12-271-1/+1
| | | | | | - this should be referring to `sysctl`, like the statement below
* | fix CI linters run + add @robusta-dev to list of supportersGiampaolo Rodola2022-12-272-5/+1
|/
* write extensive test suite for @memoize decoratorGiampaolo Rodola2022-12-153-7/+114
|
* update build.ymlGiampaolo Rodola2022-11-142-21/+24
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* improve and rename print_wheels.py scriptGiampaolo Rodola2022-11-113-22/+47
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* use argparse module in 3 scripts/internal scriptsGiampaolo Rodola2022-11-111-1/+9
|
* fix long_description on Windows (see: #2168)Giampaolo Rodola2022-11-114-18/+12
|
* make.bat: use default 'python' exe; get rid of hard-coded python pathGiampaolo Rodola2022-11-111-9/+7
|
* fix: long-description on Windows (#2168)Matthieu Darbois2022-11-102-1/+16
|
* GH actions: update actions' deps to latest versionGiampaolo Rodola2022-11-101-15/+6
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* use argparse module in 3 scripts/internal scriptsGiampaolo Rodola2022-11-103-18/+30
|
* setup.py: provide better err msg if can't compileGiampaolo Rodola2022-11-102-34/+51
| | | | | | ...also refactor it a bit and add install instructions for Alpine Linux Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* #2164: fix compilation failures on linux < 2.6.27 / CentOS 5 (#2171)Giampaolo Rodola2022-11-105-3/+16
|
* update and fix issue/PR labeler script (CI)Giampaolo Rodola2022-11-082-14/+27
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* revert previous commitGiampaolo Rodola2022-11-071-15/+113
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* remove HTML from README so that I can build wheels on winGiampaolo Rodola2022-11-071-61/+0
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* remove HTML from README so that I can build wheels on winGiampaolo Rodola2022-11-071-54/+17
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* minor fixes to pypi upload machineryrelease-5.9.4Giampaolo Rodola2022-11-073-8/+6
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* pre releaseGiampaolo Rodola2022-11-072-5/+5
| | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* add windows test for free physical mem #2074Giampaolo Rodola2022-10-212-2/+41
|
* fix OSX tests broken by accidentGiampaolo Rodola2022-10-211-2/+2
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2022-10-211-1/+2
|\
| * build fix for Mac OS, Apple Silicon (#2010)Lawrence D'Anna2022-10-211-1/+2
| | | | | | | | | | | | On MacOS, arm64 IFM_1000_TX and IFM_1000_T are the same value, causing a build failure. Signed-off-by: Lawrence D'Anna <larry@elder-gods.org>
* | update HISTORY + give CREDITS for @arossert, @smoofra, @mayeut for #2102, ↵Giampaolo Rodola2022-10-215-6/+24
|/ | | | #2156, #2010
* Linux: fix missing SPEED_UNKNOWN definition (#2156)Amir Rossert2022-10-211-0/+5
| | | Signed-off-by: Amir Rossert <amir.rossert@gmail.com>
* Use system-level values for Windows virtual memory (#2077)Daniel Widdis2022-10-214-13/+32
| | | | | | | | | | | | | | | | | * Use system-level values for Windows virtual memory Submitting this as a draft PR as I believe it will address #2074. I do not have either a C or Python development environment to test these changes, so they are provided in the hopes someone else can test and confirm they fix the issue. There's probably some room to simplify the code with temporary variables to reduce redundancy. For background, I have implemented precisely this logic in my own (Java-based) project [here](https://github.com/oshi/oshi/blob/3bb9eafbe2062edad4108b7b12501b1f9be27361/oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsVirtualMemory.java#L110-L118) and [here](https://github.com/oshi/oshi/blob/3bb9eafbe2062edad4108b7b12501b1f9be27361/oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsGlobalMemory.java#L253-L263) following a detailed investigation in https://github.com/oshi/oshi/issues/1182 Signed-off-by: Daniel Widdis <widdis@gmail.com> * Formatting, credits, change log Signed-off-by: Daniel Widdis <widdis@gmail.com> Signed-off-by: Daniel Widdis <widdis@gmail.com>