From c288849367744b440e9fead0f378dca70f60df19 Mon Sep 17 00:00:00 2001 From: Rachael Esler Date: Thu, 4 Dec 2025 15:00:10 +1100 Subject: [PATCH] Update GitHub Actions and use Python 3.10+ * Update range of Python versions supported * Create Python package in GitHub Actions * Add requirements.txt --- .github/workflows/python-package.yml | 12 ++++++++---- pyproject.toml | 2 +- requirements.txt | 2 ++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 requirements.txt diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index d327d8c..a079a00 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -1,5 +1,6 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python +# This workflow will install Python dependencies, lint the code, and +# build a package +# TODO (usr) update or delete this file based on your project needs name: Python package @@ -16,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 @@ -27,9 +28,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install ruff + pip install ruff if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with ruff run: | ruff format ruff check + - name: Package Python code + run: | + python -m build diff --git a/pyproject.toml b/pyproject.toml index 2c01a4c..76cbd1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ description = "" # {name = "YOURNAME", email = "YOUREMAIL@gmail.com"}, # ] readme = "README.md" -requires-python = ">=3.7" +requires-python = ">=3.10" dependencies = [ # TODO (usr) add your project dependencies here ] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d508051 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +# TODO (usr) add your project dependencies here +build