From 8a34f2de0dc19f99e60a4fd264d12401f2ba225a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Ftay=20Fabry?= Date: Tue, 5 Nov 2024 13:10:13 +0100 Subject: [PATCH] add Python 3.12 to test (#896) * add Python 3.12 to tests * [ci] update micromamba version * test pydeps2env fix * unbound version * pain in the a** * Update pytest.yml * unpin python * use preview version of pydeps2env also during win testing. * update pydeps2env ref & caching * add Pyhton 3.12 to tests * py<3.13 & changelog * py<3.13 * update pytest workflow --------- Co-authored-by: Martin K. Scherer Co-authored-by: mscherer --- .github/workflows/pytest.yml | 19 +++++++++++-------- .github/workflows/static_analysis.yml | 2 +- CHANGELOG.md | 1 + pyproject.toml | 3 ++- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 3588e9b4e..1bbb74334 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -33,13 +33,13 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - py: ['3.9', '3.10', '3.11'] + py: ['3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 with: fetch-depth: '0' # Fetch all history for all tags and branches - - uses: CagtayFabry/pydeps2env@v1.2.0 + - uses: marscher/pydeps2env@v999 with: files: 'pyproject.toml' channels: 'conda-forge defaults' @@ -47,14 +47,16 @@ jobs: build_system: 'include' - name: Setup Conda Environment - uses: mamba-org/setup-micromamba@v1.9.0 + uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: "2.0.2-0" environment-file: ./environment.yml environment-name: weldx init-shell: >- bash powershell - cache-environment: true + # persist on the same day. + cache-environment-key: environment-${{ steps.date.outputs.date }} create-args: >- python=${{ matrix.py }} wheel @@ -133,13 +135,13 @@ jobs: fail-fast: false matrix: os: [windows-latest] - py: ['3.9'] + py: ['3.10'] steps: - uses: actions/checkout@v4 with: fetch-depth: '0' # Fetch all history for all tags and branches - - uses: CagtayFabry/pydeps2env@v1.2.0 + - uses: marscher/pydeps2env@v999 with: files: 'pyproject.toml' channels: 'conda-forge defaults' @@ -147,14 +149,15 @@ jobs: build_system: 'include' - name: Setup Conda Environment - uses: mamba-org/setup-micromamba@v1.9.0 + uses: mamba-org/setup-micromamba@v2 with: environment-file: ./environment.yml environment-name: weldx init-shell: >- bash powershell - cache-environment: true + # persist on the same day. + cache-environment-key: environment-${{ steps.date.outputs.date }} create-args: >- python=${{ matrix.py }} wheel diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 85288e8d4..2361c97dd 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -55,7 +55,7 @@ jobs: environment-name: weldx cache-environment: true create-args: >- - python=3.9 + python=3.10 mypy - name: activate env run: micromamba activate weldx diff --git a/CHANGELOG.md b/CHANGELOG.md index b7beeed13..598b874ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - pin `weldx-widgets>=0.2.3` for viz \[{pull}`939`\]. - pin `pint>=0.21` \[{pull}`941`\]. +- pin `python<3.13` \[{pull}`896`\]. ## 0.6.8 (07.06.2024) diff --git a/pyproject.toml b/pyproject.toml index 4fd4335f2..1e61ed9b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ authors = [ { name = "Volker Hirthammer", email = "volker.hirthammer@bam.de" }, { name = "Martin K. Scherer", email = "martin.scherer@bam.de" }, ] -requires-python = ">=3.9,<3.12" +requires-python = ">=3.9,<3.13" classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Education", @@ -34,6 +34,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: Physics", # TODO: add more topics here! ] dynamic = [