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
11 changes: 3 additions & 8 deletions .github/workflows/framework-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.10", "3.12"]
exclude:
- {python-version: "3.8", os: "macos-latest"} # macos-14 is arm64, and there's no Python 3.8 build for arm64
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -72,7 +70,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.10", "3.12"]
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -104,10 +102,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
exclude:
- {python-version: "3.8", os: "macos-latest"} # macos-14 is arm64, and there's no Python 3.8 build for arm64
- {python-version: "3.9", os: "macos-latest"} # macos-14 is arm64, and there's no Python 3.9 build for arm64
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hello-charm-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- charm-repo: juju/hello-juju-charm
commit: 046b8ce758660d5aa9cf05207e2370fcbab688d0 # 2021-12-16T10:10:24Z
steps:
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.10'

- name: Checkout the ${{ matrix.charm-repo }} repository
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-ops-scenario.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
tags:
- '2.*'
- '3.*'

permissions: {}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-ops-tracing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
tags:
- '2.*'
- '3.*'

permissions: {}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
# will likely be publishing at least three packages: ops, ops-scenario,
# and ops-harness.
- '2.*'
- '3.*'

permissions: {}

Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "ops"
description = "The Python library behind great charms"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.10"
authors = [
{name="The Charm Tech team at Canonical Ltd."},
]
Expand Down Expand Up @@ -133,6 +133,7 @@ aggressive = 3
# Linting tools configuration
[tool.ruff]
line-length = 99
# FIXME
target-version = "py38"
extend-exclude = ["docs/conf.py", "docs/.sphinx/"]

Expand Down Expand Up @@ -321,7 +322,7 @@ builtins-ignorelist = ["id", "min", "map", "range", "type", "TimeoutError", "Con
include = ["ops/*.py", "ops/_private/*.py", "test/*.py", "test/charms/*/src/*.py", "testing/src/*.py"]
exclude = ["tracing/*"]
extraPaths = ["testing", "tracing"]
pythonVersion = "3.8" # check no python > 3.8 features are used
pythonVersion = "3.10" # check no python > 3.10 features are used
pythonPlatform = "All"
typeCheckingMode = "strict"
reportIncompatibleMethodOverride = false
Expand Down
2 changes: 1 addition & 1 deletion testing/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies = [
"PyYAML>=6.0.1",
]
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.10"

classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ allowlist_externals = cp
dependency_groups = unit, static
commands = pyright {posargs}

[testenv:py{3.8,3.10,3.12}-unit]
[testenv:py{3.10,3.12}-unit]
runner = uv-venv-lock-runner
base=unit

Expand Down Expand Up @@ -151,7 +151,7 @@ commands =
{[vars]testing_tst_path}benchmark \
{posargs}

[testenv:py{3.8,3.10,3.12}-pebble]
[testenv:py{3.10,3.12}-pebble]
runner = uv-venv-lock-runner
base=pebble

Expand Down
7 changes: 3 additions & 4 deletions tracing/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "ops-tracing"
version = "3.0.0.dev0"
description = "The tracing facility for the Ops library."
requires-python = ">=3.8"
requires-python = ">=3.10"
readme = "README.md"
authors = [
{name="The Charm Tech team at Canonical Ltd."},
Expand All @@ -17,8 +17,6 @@ classifiers = [
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down Expand Up @@ -58,6 +56,7 @@ build-backend = "hatchling.build"

[tool.ruff]
line-length = 99
# FIXME
target-version = "py38"

[tool.ruff.format]
Expand Down Expand Up @@ -119,5 +118,5 @@ ignore = [
[tool.pyright]
exclude = [".tox", ".venv", "ops_tracing/vendor"]
extraPaths = ["..", "../testing"]
pythonVersion = "3.8" # check no python > 3.8 features are used
pythonVersion = "3.10" # check no python > 3.10 features are used
pythonPlatform = "All"
2 changes: 1 addition & 1 deletion tracing/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ deps =
-e ../testing
-e .

[testenv:py{3.8,3.10,3.12}-unit]
[testenv:py{3.10,3.12}-unit]
base=unit

[testenv:unit]
Expand Down
Loading
Loading