Skip to content
Draft
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
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ build-backend = "setuptools.build_meta"

[project]
name = "openstack-network-agents"
version = "2025.1"
requires-python = "~=3.12.0"
version = "2026.1"
requires-python = "~=3.14.0"
license-files = ["LICENSE"]
description = "Network agents component of OpenStack"
readme = "README.md"
Expand All @@ -26,7 +26,7 @@ classifiers = [
"Operation System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.14",
]

dependencies = [
Expand Down Expand Up @@ -74,7 +74,7 @@ log_cli_level = "INFO"
# Formatting tools configuration
[tool.black]
line-length = 99
target-version = ["py312"]
target-version = ["py314"]

[tool.isort]
profile = "black"
Expand Down
20 changes: 7 additions & 13 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,13 @@ issues:
- https://bugs.launchpad.net/snap-openstack-network-agents
source-code:
- https://github.com/canonical/snap-openstack-network-agents
base: core24
version: "2025.1"
base: core26
build-base: devel
version: "2026.1"
license: Apache-2.0
grade: stable
grade: devel
confinement: strict

package-repositories:
- type: apt
cloud: epoxy
priority: always

platforms:
amd64:
arm64:
Expand All @@ -49,7 +45,7 @@ apps:
openstack-network-agents:
environment:
# Ensure site packages are loaded first
PYTHONPATH: $SNAP/usr/lib/python3.12:$SNAP/usr/lib/python3.12/site-packages:$SNAP/lib/python3.12:$SNAP/lib/python3.12/site-packages:$SNAP/usr/lib/python3/dist-packages:$PYTHONPATH
PYTHONPATH: $SNAP/usr/lib/python3.14:$SNAP/usr/lib/python3.14/site-packages:$SNAP/lib/python3.14:$SNAP/lib/python3.14/site-packages:$SNAP/usr/lib/python3/dist-packages:$PYTHONPATH
command: bin/openstack-network-agents
plugs:
- network
Expand All @@ -59,7 +55,7 @@ apps:

parts:
openstack-network-agents:
plugin: python
plugin: uv
source: .
build-snaps: [astral-uv]
build-packages:
Expand All @@ -68,10 +64,8 @@ parts:
- rustc
stage-packages:
- openvswitch-switch
python-requirements:
- requirements.txt
- python3-venv
override-build: |
uv export --frozen --no-hashes --format=requirements-txt -o requirements.txt
craftctl default
snap-helpers write-hooks

Expand Down
Loading
Loading