diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 38b53e7..fefa6cd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -27,7 +27,7 @@ jobs: - name: Install project with test dependencies run: hatch env create - name: Test with pytest and coverage - run: hatch run test:pytest test/ --cov=ibutsu_client --cov-report=term-missing --cov-report=xml --cov-report=html --cov-branch + run: hatch test --cover --cover-quiet - name: Upload coverage to Codecov if: matrix.python-version == '3.12' uses: codecov/codecov-action@v5 diff --git a/README.md b/README.md index 8564aa6..470d19f 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,9 @@ A system to store and query test results This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.3.0 -- Package version: 2.3.0 +- API version: 3.0.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen -## Requirements. - -Python >=3.6 - ## Installation & Usage ### pip install @@ -215,31 +210,6 @@ Class | Method | HTTP request | Description ## Documentation For Authorization -## jwt +## Authorization with JWT - **Type**: Bearer authentication (JWT) - - -## Author - - - - -## Notes for Large OpenAPI documents -If the OpenAPI document is large, imports in ibutsu_client.apis and ibutsu_client.models may fail with a -RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: - -Solution 1: -Use specific imports for apis and models like: -- `from ibutsu_client.api.default_api import DefaultApi` -- `from ibutsu_client.model.pet import Pet` - -Solution 2: -Before importing the package, adjust the maximum recursion limit as shown below: -``` -import sys -sys.setrecursionlimit(1500) -import ibutsu_client -from ibutsu_client.apis import * -from ibutsu_client.models import * -``` diff --git a/pyproject.toml b/pyproject.toml index 64e9028..f216eb7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,8 @@ dependencies = [ description = "A system to store and query test results" dynamic = ["version"] license = "MIT" -maintainers = [{name = "OpenAPI Generator community"}, {name = "Ibutsu Team"}] +authors = [{name = "Raoul Snyman"}] +maintainers = [{name = "Mike Shriver", email = "mshriver@redhat.com"}] name = "ibutsu-client" readme = "README.md" requires-python = ">=3.11" @@ -79,12 +80,6 @@ extra-dependencies = [ "pytest-xdist", ] -[tool.hatch.envs.test.scripts] -test = "pytest {args:test}" -cov = "pytest --cov=ibutsu_client {args:test}" -# Alias for the hatch test command that looks for tests/ instead of test/ -run = "pytest {args:test}" - [tool.mypy] # Enable strict mode for maximum type safety strict = true