Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
34 changes: 2 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
mshriver marked this conversation as resolved.
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.

Python >=3.6

## Installation & Usage
### pip install

Expand Down Expand Up @@ -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 *
```
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
Loading