Skip to content

Commit 1a1cc57

Browse files
committed
make package, add poetry
Signed-off-by: Maciej Pijanowski <[email protected]>
1 parent 154426d commit 1a1cc57

File tree

7 files changed

+227
-12
lines changed

7 files changed

+227
-12
lines changed

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ target is to use this class as a library in the
1111
* Run test commands one by one
1212

1313
```bash
14-
python3 ./pikvm_test_cli.py --login admin --password admin --ip 192.168.10.45 --test single-key
15-
python3 ./pikvm_test_cli.py --login admin --password admin --ip 192.168.10.45 --test key-series
16-
python3 ./pikvm_test_cli.py --login admin --password admin --ip 192.168.10.45 --test key-combination
17-
python3 ./pikvm_test_cli.py --login admin --password admin --ip 192.168.10.45 --test write-text
18-
python3 ./pikvm_test_cli.py --login admin --password admin --ip 192.168.10.45 --test write-cmd
14+
poetry shell
15+
poetry install
16+
python3 ./tests/cli.py --login admin --password admin --ip 192.168.10.45 --test img-mount
17+
python3 ./tests/cli.py --login admin --password admin --ip 192.168.10.45 --test single-key
18+
python3 ./tests/cli.py --login admin --password admin --ip 192.168.10.45 --test key-series
19+
python3 ./tests/cli.py --login admin --password admin --ip 192.168.10.45 --test key-combination
20+
python3 ./tests/cli.py --login admin --password admin --ip 192.168.10.45 --test write-text
21+
python3 ./tests/cli.py --login admin --password admin --ip 192.168.10.45 --test write-cmd
1922
wget http://tinycorelinux.net/15.x/x86/release/Core-15.0.iso
20-
python3 ./pikvm_test_cli.py --login admin --password admin --ip 192.168.10.45 --test img-upload-url
21-
python3 ./pikvm_test_cli.py --login admin --password admin --ip 192.168.10.45 --test img-upload-file
22-
python3 ./pikvm_test_cli.py --login admin --password admin --ip 192.168.10.45 --test img-mount
23+
python3 ./tests/cli.py --login admin --password admin --ip 192.168.10.45 --test img-upload-url
24+
python3 ./tests/cli.py --login admin --password admin --ip 192.168.10.45 --test img-upload-file
25+
python3 ./tests/cli.py --login admin --password admin --ip 192.168.10.45 --test img-mount
2326
```
2427

2528
* Observe the results in PiKVM WEB UI

pikvm/__init__.py

Whitespace-only changes.
File renamed without changes.

poetry.lock

Lines changed: 197 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[tool.poetry]
2+
name = "pikvm"
3+
version = "0.1.0"
4+
description = "Client library for PiKVM REST API"
5+
authors = ["Maciej Pijanowski <[email protected]>"]
6+
license = "MIT"
7+
readme = "README.md"
8+
9+
[tool.poetry.dependencies]
10+
python = "^3.8"
11+
requests = "^2.31.0"
12+
websocket-client = "^1.8.0"
13+
robotframework = "^5.0"
14+
15+
16+
[build-system]
17+
requires = ["poetry-core"]
18+
build-backend = "poetry.core.masonry.api"

requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

pikvm_test_cli.py renamed to tests/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import argparse
22
import sys
33

4-
from pikvm_client import PiKVMClient
4+
from pikvm.client import PiKVMClient
55

66

77
class PiKVMTests:

0 commit comments

Comments
 (0)