From d24a0f115a3b7f7ff357d5f23d9a625c247ea32e Mon Sep 17 00:00:00 2001 From: Nate Parsons Date: Tue, 14 May 2024 08:17:34 -0500 Subject: [PATCH] Support Python 3.12 --- .github/workflows/install_test.yaml | 2 +- .github/workflows/lint_check.yaml | 2 +- .github/workflows/unit_tests_with_latest_deps.yaml | 6 +++--- pyproject.toml | 1 + release_notes.rst | 1 + 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/install_test.yaml b/.github/workflows/install_test.yaml index 4d8a4a8..879007b 100644 --- a/.github/workflows/install_test.yaml +++ b/.github/workflows/install_test.yaml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - python_version: ["3.9", "3.10", "3.11"] + python_version: ["3.9", "3.10", "3.11", "3.12"] os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/lint_check.yaml b/.github/workflows/lint_check.yaml index 4fa412b..ddbd453 100644 --- a/.github/workflows/lint_check.yaml +++ b/.github/workflows/lint_check.yaml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python_version: ["3.11"] + python_version: ["3.12"] steps: - name: Checkout repository uses: actions/checkout@v3 diff --git a/.github/workflows/unit_tests_with_latest_deps.yaml b/.github/workflows/unit_tests_with_latest_deps.yaml index b7011bc..e967f67 100644 --- a/.github/workflows/unit_tests_with_latest_deps.yaml +++ b/.github/workflows/unit_tests_with_latest_deps.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python_version: ["3.9", "3.10", "3.11"] + python_version: ["3.9", "3.10", "3.11", "3.12"] featuretools_version: ["main", "release"] steps: - name: Checkout repository @@ -40,14 +40,14 @@ jobs: name: Install latest release of Featuretools run: | python -m pip install --force-reinstall featuretools - - if: ${{ matrix.python_version == 3.9 && matrix.featuretools_version == 'main'}} + - if: ${{ matrix.python_version == 3.9 && matrix.featuretools_version == 'release'}} name: Generate coverage args run: echo "coverage_args=--cov=premium_primitives --cov-config=../pyproject.toml --cov-report=xml:../coverage.xml" >> $GITHUB_ENV - name: Run unit tests run: | cd unpacked_sdist python -m pytest -n auto -s -vv premium_primitives/ ${{ env.coverage_args }} - - if: ${{ matrix.python_version == 3.9 && matrix.featuretools_version == 'main'}} + - if: ${{ matrix.python_version == 3.8 && matrix.featuretools_version == 'release'}} name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: diff --git a/pyproject.toml b/pyproject.toml index 1a9065b..05d9e92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", diff --git a/release_notes.rst b/release_notes.rst index b42fb85..af427b5 100644 --- a/release_notes.rst +++ b/release_notes.rst @@ -6,6 +6,7 @@ Release Notes Future Release ============== * Enhancements + * Add support for Python 3.12 (:pr:``) * Fixes * Changes * Documentation Changes