Skip to content

Commit

Permalink
minor cleaups, switch to package namespace, reduce dependencies (#44)
Browse files Browse the repository at this point in the history
* reduce dependencies to the minimum
* report has information in the short version (7 chars)
* Update README.md
* adds the new updatecheck command to the api.json
* adds 3.13 support
* update test
  • Loading branch information
cav71 authored Oct 14, 2024
1 parent ebb4235 commit d998217
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-python-luxos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}

steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ lint: ## Runs the linter (mypy) and report errors.


.PHONY: test
test: ## Run test suite
test: ## Run test suite (make test MINER=IP.ADDRESS will run against a miner)
@pytest -vvs \
--cov-report=html:build/coverage --cov-report=xml:build/coverage.xml \
--junitxml=build/junit.xml --html=build/junit.html --self-contained-html \
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

dependencies = [
Expand Down
3 changes: 3 additions & 0 deletions src/luxos/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@
"uninstallluxos": {
"logon_required": true
},
"updatecheck" : {
"logon_required": false
},
"updaterun": {
"logon_required": true
},
Expand Down
2 changes: 1 addition & 1 deletion tests/test_luxos.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_import():
assert (Path(api.__file__).parent / "api.json").exists()

### number of API tests hardcoded here
assert len(api.COMMANDS) == 72
assert len(api.COMMANDS) == 73


def test_logon_required():
Expand Down

0 comments on commit d998217

Please sign in to comment.