From de45c7a49e197f0889f867f33f24cce322768a0e Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 20 Dec 2023 20:03:50 -0600 Subject: [PATCH] Support python 3.12 (#1185) --- .github/workflows/ci.yml | 10 +++++----- pyproject.toml | 9 ++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64bf5fb6..e6d7e864 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,16 +22,16 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.8", "3.11"] + python-version: ["3.8", "3.12"] include: - os: windows-latest python-version: "3.9" - os: ubuntu-latest - python-version: "pypy-3.8" + python-version: "pypy-3.9" - os: macos-latest python-version: "3.10" - os: ubuntu-latest - python-version: "3.8" + python-version: "3.11" steps: - name: Checkout uses: actions/checkout@v4 @@ -153,11 +153,11 @@ jobs: - name: List installed packages run: | - hatch run test:list + hatch -v run test:list - name: Run the unit tests run: | - hatch run test:nowarn || hatch run test:nowarn --lf + hatch -v run test:nowarn || hatch run test:nowarn --lf test_prereleases: name: Test Prereleases diff --git a/pyproject.toml b/pyproject.toml index dec3ae13..57379b4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,10 +17,6 @@ classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", ] urls = {Homepage = "https://ipython.org"} requires-python = ">=3.8" @@ -36,7 +32,7 @@ dependencies = [ "tornado>=6.1", "matplotlib-inline>=0.1", 'appnope;platform_system=="Darwin"', - "pyzmq>=20", + "pyzmq>=24", "psutil", "packaging", ] @@ -175,6 +171,9 @@ filterwarnings= [ "ignore:unclosed event loop:ResourceWarning", "ignore:There is no current event loop:DeprecationWarning", "module:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning", + + # Ignore datetime warning. + "ignore:datetime.datetime.utc:DeprecationWarning", ] [tool.coverage.report]