Skip to content
Open
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
44 changes: 44 additions & 0 deletions .github/workflows/ci-aiohttp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: aiohttp

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:

permissions:
contents: read

jobs:
tests:
name: aiohttp ${{ matrix.label }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- label: minimum
aiohttp: 'aiohttp==3.13.0'
- label: latest
aiohttp: aiohttp
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev,generator]" "${{ matrix.aiohttp }}"
python -m pip check

- name: Run aiohttp tests
run: python scripts/run_tests.py -q -m aiohttp
44 changes: 44 additions & 0 deletions .github/workflows/ci-httpx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: HTTPX

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:

permissions:
contents: read

jobs:
tests:
name: HTTPX ${{ matrix.label }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- label: minimum
httpx: 'httpx==0.28.0'
- label: latest
httpx: httpx
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev,generator]" "${{ matrix.httpx }}"
python -m pip check

- name: Run HTTPX tests
run: python scripts/run_tests.py -q -m httpx
42 changes: 42 additions & 0 deletions .github/workflows/ci-openapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: OpenAPI Generator

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:

permissions:
contents: read

jobs:
generated-clients:
name: OpenAPI Generator ${{ matrix['generator-version'] }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
generator-version:
- '7.23.0'
- '7.24.0'
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.14'
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]" "openapi-generator-cli[jdk4py]==${{ matrix['generator-version'] }}"
python -m pip check

- name: Run generated-client tests
run: python scripts/run_tests.py -q -m generated
46 changes: 46 additions & 0 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Python

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:

permissions:
contents: read

jobs:
tests:
name: Python ${{ matrix['python-version'] }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: '3.12'
cryptography: 'cryptography==45.0.1'
- python-version: '3.13'
cryptography: cryptography
- python-version: '3.14'
cryptography: cryptography
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Python ${{ matrix['python-version'] }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix['python-version'] }}
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]" "${{ matrix.cryptography }}"
python -m pip check

- name: Run tests
run: python -m pytest -q tests/unit tests/integration --ignore-glob='**/test_openapi*.py'
44 changes: 44 additions & 0 deletions .github/workflows/ci-urllib3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: urllib3

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:

permissions:
contents: read

jobs:
tests:
name: urllib3 ${{ matrix.label }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- label: minimum
urllib3: 'urllib3==2.1.0'
- label: latest
urllib3: urllib3
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev,generator]" "${{ matrix.urllib3 }}"
python -m pip check

- name: Run generated urllib3 tests
run: python scripts/run_tests.py -q -m urllib3
47 changes: 47 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Quality

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:

permissions:
contents: read

jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
cache: pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev,generator]"
python -m pip check

- name: Lint
run: python -m ruff check .

- name: Type check
run: python -m mypy

- name: Build distributions
run: python -m build

- name: Check distributions
run: python -m twine check dist/*

- name: Check wheel
run: python scripts/check_wheel.py
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
__pycache__/
*.py[cod]
.coverage
.env
.env.*
!.env.example
.venv/
.idea/
.mypy_cache/
.pytest_cache/
.ruff_cache/
.cache/
build/
dist/
*.egg-info/
docs/
.github/agents/
.github/ai-framework/
.github/skills/
.github/copilot-instructions.md
tests/generated/
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2025 - 2026 Mastercard

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading