Skip to content

Commit

Permalink
Merge pull request #157 from XAITK/update-to-v0.9.0
Browse files Browse the repository at this point in the history
Update to v0.9.0
  • Loading branch information
bjrichardwebster authored Oct 16, 2024
2 parents 06c23ae + 5294bdb commit 60a510f
Show file tree
Hide file tree
Showing 10 changed files with 411 additions and 589 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-example-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# Just one python version, using our base supported version.
container:
image: python:3.8
image: python:3.9
options: "--shm-size 2GB"

# Steps represent a sequence of tasks that will be executed as part of the job
Expand Down Expand Up @@ -72,9 +72,9 @@ jobs:
~/.local
# Using a different key due to additional things the notebook
# examples ad-hoc install.
key: python-3.8-${{ hashFiles('poetry.lock') }}-Examples
key: python-3.9-${{ hashFiles('poetry.lock') }}-Examples
restore-keys: |
python-3.8-${{ hashFiles('poetry.lock') }}
python-3.9-${{ hashFiles('poetry.lock') }}
- name: Setup Environment
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-using-a-public-action-in-a-subdirectory
Expand All @@ -89,7 +89,7 @@ jobs:
path: |
~/.cache/torch/
examples/data/
key: python-3.8-${{ hashFiles('poetry.lock') }}-ExampleData-${{ matrix.notebook-file }}
key: python-3.9-${{ hashFiles('poetry.lock') }}-ExampleData-${{ matrix.notebook-file }}
# pretty unique, no restore-keys.

- name: Run Notebook
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defaults:
jobs:
lint:
runs-on: ubuntu-latest
container: python:3.8
container: python:3.9
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
Expand All @@ -45,7 +45,7 @@ jobs:
path: |
~/.cache/pypoetry/virtualenvs/
~/.local
key: python-3.8-${{ hashFiles('poetry.lock') }}
key: python-3.9-${{ hashFiles('poetry.lock') }}
- name: Setup Environment
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-using-a-public-action-in-a-subdirectory
uses: Kitware/SMQTK-Core/.github/actions/python-poetry-setup@master
Expand All @@ -54,7 +54,7 @@ jobs:

typecheck:
runs-on: ubuntu-latest
container: python:3.8
container: python:3.9
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
Expand All @@ -71,7 +71,7 @@ jobs:
path: |
~/.cache/pypoetry/virtualenvs/
~/.local
key: python-3.8-${{ hashFiles('poetry.lock') }}
key: python-3.9-${{ hashFiles('poetry.lock') }}
- name: Setup Environment
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-using-a-public-action-in-a-subdirectory
uses: Kitware/SMQTK-Core/.github/actions/python-poetry-setup@master
Expand All @@ -82,7 +82,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8","3.9","3.10","3.11","3.12"]
python-version: ["3.9","3.10","3.11","3.12"]
# Extras for included, optional plugin support (space-separated lists)
opt-extra: [
"", # no extras
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defaults:
jobs:
publish:
runs-on: ubuntu-latest
container: python:3.8
container: python:3.9
# This should only be run for tags on the "official" repository org.
if: github.repository_owner == 'XAITK'
steps:
Expand All @@ -41,7 +41,7 @@ jobs:
path: |
~/.cache/pypoetry/virtualenvs/
~/.local
key: python-3.8-${{ hashFiles('poetry.lock') }}
key: python-3.9-${{ hashFiles('poetry.lock') }}

- name: Setup Environment
# Using non-relative path for correct behavior when used as a remote
Expand Down
21 changes: 13 additions & 8 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@ version: 2
formats:
- pdf
build:
os: ubuntu-22.04
os: "ubuntu-22.04"
tools:
python: "3.8"

python:
install:
- requirements: docs/readthedocs-reqs.txt
- method: pip
path: .
python: "3.9"
jobs:
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
- pip install poetry
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
# VIRTUAL_ENV needs to be set manually for now.
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install

sphinx:
builder: html
Expand Down
3 changes: 0 additions & 3 deletions docs/readthedocs-reqs.txt

This file was deleted.

1 change: 1 addition & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Release Notes
release_notes/v0.8.1
release_notes/v0.8.2
release_notes/v0.8.3
release_notes/v0.9.0
28 changes: 28 additions & 0 deletions docs/release_notes/v0.9.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
v0.9.0
======

Dropped support for ``Python 3.8`` and addressed dependency vulnerabilities.

Updates / New Features
----------------------

Python

* Dropped support for ``Python 3.8``.

CI/CD

* Dropped scanning for ``Python 3.8`` and changed default to ``Python 3.9``.

Documentation

* ``ReadTheDocs`` now uses ``Python 3.9``.

* ``ReadTheDocs`` now uses poetry install.

Fixes
-----

Notebooks

* Added ``pandas`` to ``examples/MNIST_scikit_saliency.ipynb``.
16 changes: 9 additions & 7 deletions examples/MNIST_scikit_saliency.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 60a510f

Please sign in to comment.