Skip to content

Commit c364168

Browse files
committed
Python 3.13
1 parent e1d544f commit c364168

File tree

6 files changed

+34
-29
lines changed

6 files changed

+34
-29
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12
1+
FROM python:3.13
22

33
RUN apt-get remove -yq docker.io docker-doc docker-compose podman-docker containerd runc 2>&1 || true
44

.github/workflows/ci.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ jobs:
176176
id: python
177177
uses: actions/setup-python@v5
178178
with:
179-
python-version: "3.12"
179+
python-version: "3.13"
180180

181181
- name: "Setup Python environment"
182182
run: |
183183
pipx install -f poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }}
184184
poetry config virtualenvs.create true --local
185-
poetry env use 3.12
185+
poetry env use 3.13
186186
env:
187187
PIPX_DEFAULT_PYTHON: ${{ steps.python.outputs.python-path }}
188188

@@ -235,7 +235,7 @@ jobs:
235235
- name: Set up Python
236236
uses: actions/setup-python@v5
237237
with:
238-
python-version: '3.12'
238+
python-version: '3.13'
239239
- name: "Setup git credentials"
240240
run: "git config --global user.name 'Infrahub' && \
241241
git config --global user.email '[email protected]' && \
@@ -245,7 +245,7 @@ jobs:
245245
- name: "Setup Python environment"
246246
run: |
247247
poetry config virtualenvs.create true --local
248-
poetry env use 3.12
248+
poetry env use 3.13
249249
- name: "Install dependencies"
250250
run: "poetry install --no-interaction --no-ansi"
251251
- name: "Unit Tests"
@@ -288,7 +288,7 @@ jobs:
288288
- name: Set up Python
289289
uses: actions/setup-python@v5
290290
with:
291-
python-version: '3.12'
291+
python-version: '3.13'
292292
- name: "Setup git credentials"
293293
run: "git config --global user.name 'Infrahub' && \
294294
git config --global user.email '[email protected]' && \
@@ -298,7 +298,7 @@ jobs:
298298
- name: "Setup Python environment"
299299
run: |
300300
poetry config virtualenvs.create true --local
301-
poetry env use 3.12
301+
poetry env use 3.13
302302
- name: "Install dependencies"
303303
run: "poetry install --no-interaction --no-ansi"
304304
- name: "Mypy Tests"
@@ -334,7 +334,7 @@ jobs:
334334
- name: Set up Python
335335
uses: actions/setup-python@v5
336336
with:
337-
python-version: '3.12'
337+
python-version: '3.13'
338338
- name: "Setup git credentials"
339339
run: "git config --global user.name 'Infrahub' && \
340340
git config --global user.email '[email protected]' && \
@@ -344,7 +344,7 @@ jobs:
344344
- name: "Setup Python environment"
345345
run: |
346346
poetry config virtualenvs.create true --local
347-
poetry env use 3.12
347+
poetry env use 3.13
348348
- name: "Install dependencies"
349349
run: "poetry install --no-interaction --no-ansi"
350350
- name: "Mypy Tests"
@@ -383,7 +383,7 @@ jobs:
383383
- name: Set up Python
384384
uses: actions/setup-python@v5
385385
with:
386-
python-version: '3.12'
386+
python-version: '3.13'
387387
- name: Install tini
388388
run: "apt-get update && apt-get install -y tini"
389389
- name: "Setup git credentials"
@@ -406,7 +406,7 @@ jobs:
406406
- name: "Setup Python environment"
407407
run: |
408408
poetry config virtualenvs.create true --local
409-
poetry env use 3.12
409+
poetry env use 3.13
410410
- name: "Install dependencies"
411411
run: "poetry install --no-interaction --no-ansi"
412412
- name: "Run tests"
@@ -450,7 +450,7 @@ jobs:
450450
# - name: Set up Python
451451
# uses: actions/setup-python@v5
452452
# with:
453-
# python-version: '3.12'
453+
# python-version: '3.13'
454454
# - name: "Setup git credentials"
455455
# run: "git config --global user.name 'Infrahub' && \
456456
# git config --global user.email '[email protected]' && \
@@ -460,7 +460,7 @@ jobs:
460460
# - name: "Setup Python environment"
461461
# run: |
462462
# poetry config virtualenvs.create true --local
463-
# poetry env use 3.12
463+
# poetry env use 3.13
464464
# - name: "Install dependencies"
465465
# run: "poetry install --no-interaction --no-ansi"
466466
# - name: "Unit Tests"
@@ -484,12 +484,13 @@ jobs:
484484
id: python
485485
uses: actions/setup-python@v5
486486
with:
487-
python-version: 3.12
487+
python-version: 3.13
488488
- name: "Setup environment"
489489
run: |
490490
pipx install -f poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }}
491491
poetry config virtualenvs.create true --local
492-
poetry env use 3.12
492+
poetry env use 3.13
493+
pip install invoke toml
493494
env:
494495
PIPX_DEFAULT_PYTHON: ${{ steps.python.outputs.python-path }}
495496
- name: "Install Package"
@@ -563,12 +564,12 @@ jobs:
563564
id: python
564565
uses: actions/setup-python@v5
565566
with:
566-
python-version: 3.12
567+
python-version: 3.13
567568
- name: "Setup python environment"
568569
run: |
569570
pipx install -f poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }}
570571
poetry config virtualenvs.create true --local
571-
poetry env use 3.12
572+
poetry env use 3.13
572573
env:
573574
PIPX_DEFAULT_PYTHON: ${{ steps.python.outputs.python-path }}
574575
- name: "Install Poetry packages"
@@ -603,12 +604,12 @@ jobs:
603604
id: python
604605
uses: actions/setup-python@v5
605606
with:
606-
python-version: "3.12"
607+
python-version: "3.13"
607608
- name: "Setup Python environment"
608609
run: |
609610
pipx install -f poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }}
610611
poetry config virtualenvs.create true --local
611-
poetry env use 3.12
612+
poetry env use 3.13
612613
env:
613614
PIPX_DEFAULT_PYTHON: ${{ steps.python.outputs.python-path }}
614615
- name: "Install dependencies"
@@ -720,7 +721,7 @@ jobs:
720721
- name: Set up Python
721722
uses: actions/setup-python@v5
722723
with:
723-
python-version: 3.12
724+
python-version: 3.13
724725

725726
- name: Install Invoke
726727
run: pip install invoke toml
@@ -892,7 +893,7 @@ jobs:
892893
- name: Set up Python
893894
uses: actions/setup-python@v5
894895
with:
895-
python-version: "3.12"
896+
python-version: "3.13"
896897

897898
- name: Install Invoke
898899
run: |
@@ -983,7 +984,7 @@ jobs:
983984
- name: Set up Python
984985
uses: actions/setup-python@v5
985986
with:
986-
python-version: '3.12'
987+
python-version: '3.13'
987988
- name: "Setup git credentials"
988989
run: "git config --global user.name 'Infrahub' && \
989990
git config --global user.email '[email protected]' && \
@@ -993,7 +994,7 @@ jobs:
993994
- name: "Setup Python environment"
994995
run: |
995996
poetry config virtualenvs.create true --local
996-
poetry env use 3.12
997+
poetry env use 3.13
997998
- name: "Install dependencies"
998999
run: "poetry install --no-interaction --no-ansi"
9991000
- name: Update PATH

development/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ****************************************************************
22
# STAGE : Base Python Image
33
# ****************************************************************
4-
ARG PYTHON_VER=3.12
4+
ARG PYTHON_VER=3.13
55
ARG POETRY_VER
66
FROM docker.io/python:${PYTHON_VER}-slim AS base
77

poetry.lock

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ classifiers = [
1212
"Intended Audience :: Developers",
1313
"Programming Language :: Python :: 3",
1414
"Programming Language :: Python :: 3.12",
15+
"Programming Language :: Python :: 3.13",
1516
]
1617

1718
packages = [
@@ -21,7 +22,7 @@ packages = [
2122
]
2223

2324
[tool.poetry.dependencies]
24-
python = "^3.12, < 3.13"
25+
python = "^3.12, < 3.14"
2526
neo4j = "~5.28"
2627
neo4j-rust-ext = "~5.28"
2728
pydantic = "~2.10"

tasks/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Namespace(str, Enum):
5454
here = Path(__file__).parent.resolve()
5555
TOP_DIRECTORY_NAME = here.parent.name
5656
BUILD_NAME = os.getenv("INFRAHUB_BUILD_NAME", re.sub(r"[^a-zA-Z0-9_/.]", "", str(TOP_DIRECTORY_NAME)))
57-
PYTHON_VER = os.getenv("PYTHON_VER", "3.12")
57+
PYTHON_VER = os.getenv("PYTHON_VER", "3.13")
5858

5959
PWD = Path.cwd()
6060

0 commit comments

Comments
 (0)