From f1c5a2821b24786f418ae535aa2fbb5ae4c60d6c Mon Sep 17 00:00:00 2001 From: Kanishk Pachauri Date: Fri, 6 Dec 2024 13:05:43 +0530 Subject: [PATCH] feat: Add python 3.13 in CI matrix. (#185) Co-authored-by: Marcelo Trylesinski --- .github/workflows/main.yml | 9 +++------ pyproject.toml | 2 +- scripts/check | 1 + uv.lock | 6 +++--- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 05a5597..13495cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,21 +11,18 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v4 with: - version: "0.4.12" + python-version: ${{ matrix.python-version }} enable-cache: true - - name: Set up Python ${{ matrix.python-version }} - run: uv python install ${{ matrix.python-version }} - - name: Install dependencies - run: uv sync --python ${{ matrix.python-version }} --frozen + run: uv sync --frozen - name: Run linters run: scripts/check diff --git a/pyproject.toml b/pyproject.toml index 01a907d..48d12a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ dev-dependencies = [ "ruff==0.8.0", "mypy", "types-PyYAML", - "atheris==2.3.0; python_version != '3.12'", + "atheris==2.3.0; python_version <= '3.11'", # Documentation "mkdocs", "mkdocs-material", diff --git a/scripts/check b/scripts/check index bc37333..294cb9f 100755 --- a/scripts/check +++ b/scripts/check @@ -8,3 +8,4 @@ uvx ruff format --check --diff $SOURCE_FILES uvx ruff check $SOURCE_FILES uv run mypy $SOURCE_FILES uvx check-sdist +uv lock diff --git a/uv.lock b/uv.lock index dbdacc9..21940b3 100644 --- a/uv.lock +++ b/uv.lock @@ -718,12 +718,12 @@ wheels = [ [[package]] name = "python-multipart" -version = "0.0.17" +version = "0.0.19" source = { editable = "." } [package.dev-dependencies] dev = [ - { name = "atheris", marker = "python_full_version != '3.12.*'" }, + { name = "atheris", marker = "python_full_version < '3.12'" }, { name = "atomicwrites" }, { name = "attrs" }, { name = "coverage" }, @@ -749,7 +749,7 @@ dev = [ [package.metadata.requires-dev] dev = [ - { name = "atheris", marker = "python_full_version != '3.12.*'", specifier = "==2.3.0" }, + { name = "atheris", marker = "python_full_version < '3.12'", specifier = "==2.3.0" }, { name = "atomicwrites", specifier = "==1.4.1" }, { name = "attrs", specifier = "==23.2.0" }, { name = "coverage", specifier = "==7.4.4" },