Skip to content

Commit 0f995b8

Browse files
committed
feat: use pre-built psutil wheels from our release
- Add direct URLs to psutil wheels in pyproject.toml - Update workflow to build only psutil wheels - Simplify installation instructions in README.md
1 parent 176408c commit 0f995b8

File tree

3 files changed

+40
-15
lines changed

3 files changed

+40
-15
lines changed

.github/workflows/build-wheels.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build_wheels:
11-
name: Build wheels on ${{ matrix.os }}
11+
name: Build psutil wheels on ${{ matrix.os }}
1212
runs-on: ${{ matrix.os }}
1313
permissions:
1414
contents: write
@@ -49,24 +49,16 @@ jobs:
4949

5050
- name: Install build dependencies
5151
run: |
52-
python -m pip install build pip wheel
52+
python -m pip install pip wheel
5353
shell: bash
5454

55-
- name: Build wheels
55+
- name: Build psutil wheel
5656
run: |
5757
# Create dist directory
5858
mkdir -p dist
5959
60-
# First build our package wheel without dependencies
61-
pip wheel --no-deps -w dist/ .
62-
63-
# Then build all dependencies
64-
pip wheel -r requirements.txt --wheel-dir dist/
65-
shell: bash
66-
67-
- name: Build source distribution
68-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
69-
run: python -m build --sdist
60+
# Build psutil wheel
61+
pip wheel psutil==5.8.0 --wheel-dir dist/
7062
shell: bash
7163

7264
- name: Upload to GitHub Actions

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,33 @@
11
# hs-test-python
2+
3+
Python testing library for Hyperskill projects
4+
25
It is a framework that simplifies testing educational projects for [Hyperskill](https://hyperskill.org).
36

4-
It is required to use for Hyperskill projects. The main features are:
7+
The main features are:
58
* black box testing
69
* multiple types of tests in a simple unified way (without stdin, with stdin, files, Django, Flask, Matplotlib)
710
* generating learner-friendly feedback (filtering stack-traces, hints)
811

12+
## Installation
13+
14+
Install the package directly from GitHub:
15+
16+
```bash
17+
pip install https://github.com/hyperskill/hs-test-python/archive/release.tar.gz
18+
```
19+
20+
The package includes pre-built wheels for psutil, so you don't need a C++ compiler to install it.
21+
22+
## Development
23+
24+
To contribute to the project:
25+
26+
1. Clone the repository
27+
2. Install dependencies with poetry:
28+
```bash
29+
poetry install
30+
```
31+
932
To learn how to use this library you can go here:
1033
https://github.com/hyperskill/hs-test-python/wiki

pyproject.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ packages = [
1010

1111
[tool.poetry.dependencies]
1212
python = "^3.10"
13-
psutil-wheels = "^5.8.0"
13+
psutil = { version = "5.8.0", url = [
14+
"https://github.com/hyperskill/hs-test-python/releases/download/v11.0.21/psutil-5.8.0-cp310-cp310-win_amd64.whl ; sys_platform == 'win32' and python_version == '3.10'",
15+
"https://github.com/hyperskill/hs-test-python/releases/download/v11.0.21/psutil-5.8.0-cp311-cp311-win_amd64.whl ; sys_platform == 'win32' and python_version == '3.11'",
16+
"https://github.com/hyperskill/hs-test-python/releases/download/v11.0.21/psutil-5.8.0-cp312-cp312-win_amd64.whl ; sys_platform == 'win32' and python_version == '3.12'",
17+
"https://github.com/hyperskill/hs-test-python/releases/download/v11.0.21/psutil-5.8.0-cp310-cp310-manylinux2010_x86_64.whl ; sys_platform == 'linux' and python_version == '3.10'",
18+
"https://github.com/hyperskill/hs-test-python/releases/download/v11.0.21/psutil-5.8.0-cp311-cp311-manylinux2010_x86_64.whl ; sys_platform == 'linux' and python_version == '3.11'",
19+
"https://github.com/hyperskill/hs-test-python/releases/download/v11.0.21/psutil-5.8.0-cp312-cp312-manylinux2010_x86_64.whl ; sys_platform == 'linux' and python_version == '3.12'",
20+
"https://github.com/hyperskill/hs-test-python/releases/download/v11.0.21/psutil-5.8.0-cp310-cp310-macosx_10_9_universal2.whl ; sys_platform == 'darwin' and python_version == '3.10'",
21+
"https://github.com/hyperskill/hs-test-python/releases/download/v11.0.21/psutil-5.8.0-cp311-cp311-macosx_10_9_universal2.whl ; sys_platform == 'darwin' and python_version == '3.11'",
22+
"https://github.com/hyperskill/hs-test-python/releases/download/v11.0.21/psutil-5.8.0-cp312-cp312-macosx_10_13_universal2.whl ; sys_platform == 'darwin' and python_version == '3.12'"
23+
]}
1424
mypy = "1.10.1"
1525
pandas = "2.2.2"
1626
ruff = "0.6.0"

0 commit comments

Comments
 (0)