Skip to content

Commit

Permalink
Merge pull request #10 from mxmehl/python-3.9
Browse files Browse the repository at this point in the history
Add Python 3.9 and 3.10
  • Loading branch information
mxmehl authored Mar 13, 2024
2 parents e7c1a02 + dc2442a commit 01e59f2
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/actions/poetrybuild/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name: "Reusable Poetry build workflow"
inputs:
python:
default: "3.11"
default: "3.9"
description: "Value for 'python-version'"
required: false
type: string
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
# do not abort the whole test job if one combination in the matrix fails
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-22.04]
include:
- python-version: "3.11"
- python-version: "3.9"
os: macos-latest
- python-version: "3.11"
- python-version: "3.9"
os: windows-latest

steps:
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
python-version: "3.9"
- name: Install poetry
run: pip install poetry
- name: Build package
Expand Down
102 changes: 61 additions & 41 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages = [{ include = "recordmaster" }]
inwx-dnsrm = "recordmaster.main:main"

[tool.poetry.dependencies]
python = "^3.11"
python = "^3.9"
inwx-domrobot = "^3.1.0"
pyyaml = "^6.0.1"
platformdirs = "^4.2.0"
Expand Down
2 changes: 2 additions & 0 deletions recordmaster/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

"""Dataclasses for domains and their records"""

from __future__ import annotations # support "int | None"

import json
import logging
from dataclasses import asdict, dataclass, field
Expand Down

0 comments on commit 01e59f2

Please sign in to comment.