From 72ac6ae9bd4e91831ba9e614b885c93ce9ac1b80 Mon Sep 17 00:00:00 2001 From: Kanishk Pachauri Date: Wed, 20 Nov 2024 04:48:36 +0530 Subject: [PATCH 1/6] feat: Add python 3.13 in CI matrix. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c3d9d99..eeb9156 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ 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 From 599e88a76e17a880a07e78632f0f299254c6e254 Mon Sep 17 00:00:00 2001 From: Kanishk Pachauri Date: Wed, 20 Nov 2024 22:02:49 +0530 Subject: [PATCH 2/6] fix: dependency python version of a atheris --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e22ea1d..195c940 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ dev-dependencies = [ "ruff==0.3.4", "mypy", "types-PyYAML", - "atheris==2.3.0; python_version != '3.12'", + "atheris==2.3.0; python_version <= '3.11'", # Documentation "mkdocs", "mkdocs-material", From 5d4bea9ffc7157064406f8a554d8ae1e316faf4a Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 6 Dec 2024 08:14:52 +0100 Subject: [PATCH 3/6] Update lockfile --- scripts/check | 1 + uv.lock | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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" }, From feab1546676c23a550de8271323347dc73efd2ef Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 6 Dec 2024 08:26:12 +0100 Subject: [PATCH 4/6] remove cache --- .github/workflows/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8215d10..11e16ba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,13 +19,10 @@ jobs: uses: astral-sh/setup-uv@v4 with: version: "0.4.12" - enable-cache: true - - - name: Set up Python ${{ matrix.python-version }} - run: uv python install ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} - name: Install dependencies - run: uv sync --python ${{ matrix.python-version }} --frozen + run: uv sync --frozen - name: Run linters run: scripts/check From f77a78d94e12002e9374b7d0d8decbc0a582cfe0 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 6 Dec 2024 08:28:05 +0100 Subject: [PATCH 5/6] cache false --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 11e16ba..368f381 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,7 @@ jobs: with: version: "0.4.12" python-version: ${{ matrix.python-version }} + enable-cache: false - name: Install dependencies run: uv sync --frozen From 3036ac67d07d0820f7a73774450104d88db83b80 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 6 Dec 2024 08:30:35 +0100 Subject: [PATCH 6/6] remove uv version --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 368f381..13495cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,8 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v4 with: - version: "0.4.12" python-version: ${{ matrix.python-version }} - enable-cache: false + enable-cache: true - name: Install dependencies run: uv sync --frozen