This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
forked from giampaolo/psutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/giampaolo/psutil
* 'master' of https://github.com/giampaolo/psutil: pre-release give CREDIT to @JeremyGrosser and @getsentry for sponsorship (thanks\!) fix error in test_contracts.py on win chore: update GHA workflows (giampaolo#2315) fix giampaolo#2195 / linux: no longer print exception at import time Add ruff Python linter, remove flake8 (giampaolo#2312) Add toml-sort linting tool for pyproject.toml (giampaolo#2311) new RTD config new RTD config new RTD config Fix giampaolo#2308, OpenBSD: Process.threads() always fail with AccessDenied. Win: fix OpenProcess not recognizing when proc is gone. refact assertProcessGone refact assertProcessGone Add RsT linter (giampaolo#2292) Make _raise_if_pid_reused() raise NSP only if pid has been reused. fix DEVGUIDE.rst PID reusage is not checked for different set methods (giampaolo#2291)
- Loading branch information
Showing
83 changed files
with
786 additions
and
737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
# * https://github.com/actions/checkout | ||
# * https://github.com/actions/setup-python | ||
# * https://github.com/actions/upload-artifact | ||
# * https://github.com/marketplace/actions/cancel-workflow-action | ||
|
||
on: | ||
pull_request: | ||
|
@@ -21,6 +20,9 @@ on: | |
permissions: | ||
contents: write | ||
name: build | ||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }} | ||
cancel-in-progress: true | ||
jobs: | ||
tag: | ||
# additionally create a release for every commit to master | ||
|
@@ -47,12 +49,7 @@ jobs: | |
- {os: windows-2019, archs: "AMD64 x86"} | ||
|
||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
@@ -62,7 +59,7 @@ jobs: | |
if: matrix.archs == 'aarch64' | ||
|
||
- name: Create wheels + run tests | ||
uses: pypa/cibuildwheel@v2.11.2 | ||
uses: pypa/cibuildwheel@v2.16.2 | ||
with: | ||
config-file: "./cibuildwheel.toml" | ||
env: | ||
|
@@ -107,12 +104,7 @@ jobs: | |
CIBW_BUILD: 'cp27-*' | ||
|
||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
@@ -163,25 +155,21 @@ jobs: | |
linters: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- name: 'Run linters' | ||
run: | | ||
# py3 | ||
python3 -m pip install flake8 isort | ||
python3 -m flake8 . | ||
python3 -m isort . | ||
# clinter | ||
find . -type f \( -iname "*.c" -o -iname "*.h" \) | xargs python3 scripts/internal/clinter.py | ||
python3 -m pip install ruff rstcheck toml-sort sphinx | ||
make lint-all | ||
# Check sanity of .tar.gz + wheel files | ||
check-dist: | ||
needs: [py2, py3] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.