From f9771dcb4c9ccdbf8b7cc1b9c1f167a5acddcc7a Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 20 Dec 2023 19:30:12 -0600 Subject: [PATCH 1/5] Support python 3.12 --- .github/workflows/ci.yml | 8 ++++---- pyproject.toml | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64bf5fb67..058fb3348 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 @@ -43,7 +43,7 @@ jobs: timeout-minutes: 15 if: ${{ !startsWith( matrix.python-version, 'pypy' ) && !startsWith(matrix.os, 'windows') }} run: | - hatch run cov:test --cov-fail-under 50 || hatch run test:test --lf + python -m hatch run cov:test --cov-fail-under 50 || python -m hatch run test:test --lf - name: Run the tests on pypy timeout-minutes: 15 diff --git a/pyproject.toml b/pyproject.toml index dec3ae13a..8f105da7c 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" @@ -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] From cc03ad39cbb4ea622586527fb0997c2dc7dad67d Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 20 Dec 2023 19:31:08 -0600 Subject: [PATCH 2/5] add debug --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 058fb3348..997dd60e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 From 5ac415fef5267742db1bd10a8bc6fa19b0336221 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 20 Dec 2023 19:38:10 -0600 Subject: [PATCH 3/5] fix hatch usage --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 997dd60e8..e6d7e864a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: timeout-minutes: 15 if: ${{ !startsWith( matrix.python-version, 'pypy' ) && !startsWith(matrix.os, 'windows') }} run: | - python -m hatch run cov:test --cov-fail-under 50 || python -m hatch run test:test --lf + hatch run cov:test --cov-fail-under 50 || hatch run test:test --lf - name: Run the tests on pypy timeout-minutes: 15 From b38acc5b3d880f8f0377ea15715cd002acfe2472 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 20 Dec 2023 19:41:15 -0600 Subject: [PATCH 4/5] do not try to list installed packages --- .github/workflows/ci.yml | 4 ---- pyproject.toml | 1 - 2 files changed, 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6d7e864a..8fc247ec4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,10 +151,6 @@ jobs: with: dependency_type: minimum - - name: List installed packages - run: | - hatch -v run test:list - - name: Run the unit tests run: | hatch -v run test:nowarn || hatch run test:nowarn --lf diff --git a/pyproject.toml b/pyproject.toml index 8f105da7c..d1024db8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,7 +87,6 @@ api = "sphinx-apidoc -o docs/api -f -E ipykernel tests ipykernel/datapub.py ipyk [tool.hatch.envs.test] features = ["test"] [tool.hatch.envs.test.scripts] -list = "python -m pip freeze" test = "python -m pytest -vv {args}" nowarn = "test -W default {args}" From 3b8a0b02b30fd4cea8c7e5bae529a586929ab013 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 20 Dec 2023 19:46:14 -0600 Subject: [PATCH 5/5] update min pyzmq --- .github/workflows/ci.yml | 4 ++++ pyproject.toml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fc247ec4..e6d7e864a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,6 +151,10 @@ jobs: with: dependency_type: minimum + - name: List installed packages + run: | + hatch -v run test:list + - name: Run the unit tests run: | hatch -v run test:nowarn || hatch run test:nowarn --lf diff --git a/pyproject.toml b/pyproject.toml index d1024db8e..57379b4b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ dependencies = [ "tornado>=6.1", "matplotlib-inline>=0.1", 'appnope;platform_system=="Darwin"', - "pyzmq>=20", + "pyzmq>=24", "psutil", "packaging", ] @@ -87,6 +87,7 @@ api = "sphinx-apidoc -o docs/api -f -E ipykernel tests ipykernel/datapub.py ipyk [tool.hatch.envs.test] features = ["test"] [tool.hatch.envs.test.scripts] +list = "python -m pip freeze" test = "python -m pytest -vv {args}" nowarn = "test -W default {args}"