From 2f439e63a609cde43b2f2cf7006973f4351c72e6 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 24 Sep 2023 19:50:47 +0200 Subject: [PATCH 1/2] Deprecate Python 3.7. --- .github/workflows/main.yml | 18 ++++++++++++------ CHANGES.md | 4 ++++ setup.cfg | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 89b8c3f..7ab431a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,16 +27,22 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v3 - - uses: conda-incubator/setup-miniconda@v2 + - uses: mamba-org/setup-micromamba@v1 with: - auto-update-conda: false - python-version: ${{ matrix.python-version }} - channels: conda-forge,nodefaults - miniforge-variant: Mambaforge + environment-name: gha-testing + condarc: | + channels: + - nodefaults + - conda-forge + create-args: >- + python=${{ matrix.python-version }} + mamba + tox-conda + cache-environment: true - name: Install core dependencies. shell: bash -l {0} diff --git a/CHANGES.md b/CHANGES.md index 5aa58d3..98490fe 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,10 @@ chronological order. Releases follow [semantic versioning](https://semver.org/) releases are available on [PyPI](https://pypi.org/project/pytask-parallel) and [Anaconda.org](https://anaconda.org/conda-forge/pytask-parallel). +## 0.4.0 - 2023-xx-xx + +- {pull}`62` deprecates Python 3.7. + ## 0.3.1 - 2023-05-27 - {pull}`56` refactors the `ProcessPoolExecutor`. diff --git a/setup.cfg b/setup.cfg index 1152a9b..02e7648 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,7 +29,7 @@ install_requires = loky pybaum>=0.1.1 pytask>=0.3 -python_requires = >=3.7 +python_requires = >=3.8 include_package_data = True package_dir = =src zip_safe = False From ab58f201af5cb1e99f71c05397a94c3c884fe502 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Tue, 26 Sep 2023 08:48:15 +0200 Subject: [PATCH 2/2] fix. --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 22a2bf6..130eaef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: rev: v3.11.0 hooks: - id: reorder-python-imports - args: [--py37-plus, --add-import, 'from __future__ import annotations'] + args: [--py38-plus, --add-import, 'from __future__ import annotations'] - repo: https://github.com/asottile/setup-cfg-fmt rev: v2.4.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index 24f0479..71ea451 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ ignore_errors = true [tool.ruff] -target-version = "py37" +target-version = "py38" select = ["ALL"] fix = true extend-ignore = [