diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 680d8b20..ccadd66a 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/devcontainers/python:3.14-trixie@sha256:99bf0ccea2570de791b53370bf17d0aa103a4faf396b5fb968462f65267bc6a5 +FROM mcr.microsoft.com/devcontainers/python:3.13-trixie@sha256:c3a082525f51bb81e3d952d5ec12c2bed3525179a45ef3a09d48993ebc871133 # Remove yarn source to avoid conflicts (https://github.com/devcontainers/images/issues/1752) RUN rm -f /etc/apt/sources.list.d/yarn.list \ @@ -35,7 +35,7 @@ RUN useradd -m dev && chown -R dev:dev /workspaces/dfetch USER dev ENV PATH="/home/dev/.local/bin:${PATH}" -ENV PYTHONPATH="/home/dev/.local/lib/python3.14" +ENV PYTHONPATH="/home/dev/.local/lib/python3.13" ENV PYTHONUSERBASE="/home/dev/.local" COPY --chown=dev:dev . . diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d91c3e4..08aa066b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,7 +35,7 @@ jobs: - name: Setup Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.14' + python-version: '3.13' - name: Install Zig (Windows) if: runner.os == 'Windows' @@ -188,7 +188,7 @@ jobs: - name: Set up Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.14' + python-version: '3.13' - name: Install dependencies run: python -m pip install --upgrade pip build --user - name: Build a binary wheel and a source tarball diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d1812f8f..c8ea943f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,7 +21,7 @@ jobs: - name: Install Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.14' + python-version: '3.13' - name: Install documentation requirements run: | @@ -45,7 +45,7 @@ jobs: - name: Setup Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: "3.14" + python-version: "3.13" - name: Install dependencies run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acf8190a..cba66151 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.14' + python-version: '3.13' - name: Determine release info id: release_info diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e9cbf4b..9504a5d2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - name: Setup Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.14' + python-version: '3.13' - name: Install Subversion (SVN) run: | diff --git a/.readthedocs.yml b/.readthedocs.yml index 37ff647e..39519437 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -16,7 +16,7 @@ formats: build: os: ubuntu-22.04 tools: - python: "3.14" + python: "3.13" # Optionally set the version of Python and requirements required to build your docs python: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5e8100eb..b9b7688a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,8 +1,3 @@ -Release 0.13.0 (unreleased) -==================================== - -* Use python 3.14 for development (#890) - Release 0.12.0 (released 2026-02-21) ==================================== diff --git a/action.yml b/action.yml index 2d9fbfd4..1df60af2 100644 --- a/action.yml +++ b/action.yml @@ -24,7 +24,7 @@ runs: - name: Setup Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.14' + python-version: '3.13' # Install dfetch from main if NOT running on a branch in the dfetch repo - name: Install dfetch from GitHub diff --git a/dfetch/reporting/check/code_climate_reporter.py b/dfetch/reporting/check/code_climate_reporter.py index 4e6af3b8..2e4c1146 100644 --- a/dfetch/reporting/check/code_climate_reporter.py +++ b/dfetch/reporting/check/code_climate_reporter.py @@ -38,7 +38,7 @@ .. code-block:: yaml dfetch: - image: "python:3.14" + image: "python:3.13" script: - pip install dfetch - dfetch check --code-climate dfetch.json diff --git a/dfetch/reporting/sbom_reporter.py b/dfetch/reporting/sbom_reporter.py index 64ac3da9..f5b352fc 100644 --- a/dfetch/reporting/sbom_reporter.py +++ b/dfetch/reporting/sbom_reporter.py @@ -22,7 +22,7 @@ .. code-block:: yaml dfetch: - image: "python:3.14" + image: "python:3.13" script: - pip install dfetch - dfetch report -t sbom -o dfetch.cdx.json @@ -50,7 +50,7 @@ - uses: actions/checkout@v5 - uses: actions/setup-python@v6 with: - python-version: '3.14' + python-version: '3.13' - name: Install dfetch from GitHub run: pip install git+https://github.com/dfetch-org/dfetch.git@main#egg=dfetch shell: bash diff --git a/dfetch/util/util.py b/dfetch/util/util.py index 6104f7a0..b5f83b20 100644 --- a/dfetch/util/util.py +++ b/dfetch/util/util.py @@ -1,12 +1,12 @@ """Generic python utilities.""" -import contextlib import fnmatch import hashlib import os import shutil import stat from collections.abc import Generator, Iterator, Sequence +from contextlib import contextmanager from pathlib import Path from typing import Any @@ -62,7 +62,7 @@ def safe_rmtree(path: str) -> None: ) from exc -@contextlib.contextmanager +@contextmanager def in_directory(path: str | Path) -> Generator[str, None, None]: """Work temporarily in a given directory.""" pwd = os.getcwd() @@ -75,7 +75,7 @@ def in_directory(path: str | Path) -> Generator[str, None, None]: os.chdir(pwd) -@contextlib.contextmanager +@contextmanager def catch_runtime_exceptions( exc_list: list[str] | None = None, ) -> Generator[list[str], None, None]: @@ -87,7 +87,7 @@ def catch_runtime_exceptions( exc_list += [str(exc)] -@contextlib.contextmanager +@contextmanager def prefix_runtime_exceptions( prefix: str, ) -> Generator[None, None, None]: diff --git a/doc/contributing.rst b/doc/contributing.rst index fbfe5858..e1f2004f 100644 --- a/doc/contributing.rst +++ b/doc/contributing.rst @@ -19,7 +19,7 @@ and install all runtime dependencies from ``pyproject.toml``. script/create_venv.py -.. important :: *dfetch* is primarily developed with python 3.14 +.. important :: *dfetch* is primarily developed with python 3.13 Running in Github Codespaces ----------------------------