Skip to content

Commit 1d49bcc

Browse files
howethomasclaude
andcommitted
Fix CI workflow - require Python 3.12+
The vcon-lib dependency requires Python 3.12+, so update: - GitHub Actions workflow to test only on Python 3.12 - pyproject.toml requires-python to >=3.12 - README badges and requirements section - Pin Black version in CI to match local formatting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b2b9196 commit 1d49bcc

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
python-version: ["3.10", "3.11", "3.12"]
16-
12+
# Note: vcon-lib requires Python 3.12+
1713
steps:
1814
- uses: actions/checkout@v4
1915

20-
- name: Set up Python ${{ matrix.python-version }}
16+
- name: Set up Python 3.12
2117
uses: actions/setup-python@v5
2218
with:
23-
python-version: ${{ matrix.python-version }}
19+
python-version: "3.12"
2420

2521
- name: Install dependencies
2622
run: |
@@ -34,7 +30,6 @@ jobs:
3430
3531
- name: Upload coverage to Codecov
3632
uses: codecov/codecov-action@v4
37-
if: matrix.python-version == '3.12'
3833
with:
3934
files: ./coverage.xml
4035
fail_ci_if_error: false
@@ -52,7 +47,7 @@ jobs:
5247
- name: Install dependencies
5348
run: |
5449
python -m pip install --upgrade pip
55-
pip install ruff black
50+
pip install "ruff>=0.1.0" "black>=24.0.0"
5651
5752
- name: Check formatting with Black
5853
run: black --check .

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# vCon Telephony Adapters
22

33
[![PyPI version](https://badge.fury.io/py/vcon-telephony-adapters.svg)](https://pypi.org/project/vcon-telephony-adapters/)
4-
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
4+
[![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/)
55
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
66

77
A monorepo of webhook-based adapters that convert telephony platform recordings into vCon (Virtual Conversation) format and post them to a vCon conserver.
@@ -38,7 +38,7 @@ vcon-telephony-adapters/
3838

3939
## Requirements
4040

41-
- Python 3.10+
41+
- Python 3.12+
4242
- [vcon-lib](https://github.com/vcon-dev/vcon-lib) - The vCon library for creating vCon objects
4343

4444
## Installation

core/poster.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
class HttpPoster:
1212
"""Posts vCons to HTTP conserver endpoint."""
1313

14-
def __init__(
15-
self, url: str, headers: dict[str, str], ingress_lists: list[str] | None = None
16-
):
14+
def __init__(self, url: str, headers: dict[str, str], ingress_lists: list[str] | None = None):
1715
"""Initialize HTTP poster.
1816
1917
Args:

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.2.0"
88
description = "Telephony adapters for converting recordings to vCon format - supports Twilio and more"
99
readme = "README.md"
1010
license = {text = "MIT"}
11-
requires-python = ">=3.10"
11+
requires-python = ">=3.12"
1212
authors = [
1313
{name = "vCon Community"}
1414
]
@@ -19,8 +19,6 @@ classifiers = [
1919
"License :: OSI Approved :: MIT License",
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.10",
23-
"Programming Language :: Python :: 3.11",
2422
"Programming Language :: Python :: 3.12",
2523
"Topic :: Communications :: Telephony",
2624
"Topic :: Multimedia :: Sound/Audio",

twilio_adapter/poster.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
class HttpPoster:
1212
"""Posts vCons to HTTP conserver endpoint."""
1313

14-
def __init__(
15-
self, url: str, headers: dict[str, str], ingress_lists: list[str] | None = None
16-
):
14+
def __init__(self, url: str, headers: dict[str, str], ingress_lists: list[str] | None = None):
1715
"""Initialize HTTP poster.
1816
1917
Args:

0 commit comments

Comments
 (0)