From 9e757bf3850e5e7bef28efa8cbbe3e4cea5b6857 Mon Sep 17 00:00:00 2001 From: Nathan Patton Date: Tue, 12 Aug 2025 12:07:03 -0500 Subject: [PATCH 1/3] minimum python version = 3.9, maximum python version = 3.14 --- .github/workflows/tests.yml | 2 +- .sourcery.yaml | 2 +- README.md | 2 +- docs/source/conf.py | 4 ++-- docs/source/installation.rst | 3 ++- noxfile.py | 6 ++++-- pyproject.toml | 4 ++-- requirements-test.txt | 2 +- 8 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index eba6e0a6..85fd7aa3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v5 - uses: wntrblm/nox@2025.05.01 with: - python-versions: "3.8, 3.9, 3.10, 3.11, 3.12, 3.13" + python-versions: "3.9, 3.10, 3.11, 3.12, 3.13, 3.14" - name: Test with NOX run: | nox --session tests diff --git a/.sourcery.yaml b/.sourcery.yaml index 9095ce5e..6bd2dfe7 100644 --- a/.sourcery.yaml +++ b/.sourcery.yaml @@ -12,4 +12,4 @@ ignore: - docs/build rule_settings: - python_version: '3.8' + python_version: '3.9' diff --git a/README.md b/README.md index 5717550d..739becb6 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ The pythonbible library serves several purposes related to the Christian Bible a Supported Python Versions - + diff --git a/docs/source/conf.py b/docs/source/conf.py index e2b93dfc..742d7387 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,11 +19,11 @@ # -- Project information ----------------------------------------------------- project = "pythonbible" -copyright = "2020-2023 Nathan Patton" +copyright = "2020-2025 Nathan Patton" author = "Nathan Patton" # The full version, including alpha/beta/rc tags -release = "0.12.0" +release = "0.13.1" # -- General configuration --------------------------------------------------- diff --git a/docs/source/installation.rst b/docs/source/installation.rst index bbdc5bbd..6dd3ef09 100644 --- a/docs/source/installation.rst +++ b/docs/source/installation.rst @@ -6,11 +6,12 @@ Requirements **pythonbible** requires Python and is tested with the following versions: -* 3.8 * 3.9 * 3.10 * 3.11 * 3.12 +* 3.13 +* 3.14 **pythonbible** has no other dependencies. diff --git a/noxfile.py b/noxfile.py index 607f731f..620cceec 100644 --- a/noxfile.py +++ b/noxfile.py @@ -5,14 +5,16 @@ PYTEST = "pytest" COVERAGE = "coverage" +nox.options.default_venv_backend = "uv" -@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]) + +@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]) def tests(session: nox.Session) -> None: session.install(PYTEST) session.run(PYTEST) -@nox.session(python=["3.11"]) +@nox.session(python=["3.13"]) def coverage(session: nox.Session) -> None: session.install("coverage[toml]", PYTEST) session.run(COVERAGE, "run", "-m", PYTEST) diff --git a/pyproject.toml b/pyproject.toml index 40a36fdc..aea202df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,17 +17,17 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "License :: OSI Approved :: MIT License" ] requires = [] description-file = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" [tool.flit.metadata.urls] Documentation = "https://docs.python.bible" diff --git a/requirements-test.txt b/requirements-test.txt index 1c886a8e..e1a41ab6 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,2 +1,2 @@ -nox==2025.5.1 +nox[uv]==2025.5.1 pytest-cov==6.2.1 From 4e2699f9094f79f01512ba23a311130c0a1ec62b Mon Sep 17 00:00:00 2001 From: Nathan Patton Date: Tue, 12 Aug 2025 12:09:21 -0500 Subject: [PATCH 2/3] updated CHANGELOG.md --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07449ee2..dce0cd52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Added Python 3.14 to the list of supported Python versions. + ### Changed - Modified the header image url to be an absolute url so that it hopefully shows up in PyPI correctly. +### Removed + +- Removed Python 3.8 from the list of supported Python versions. + ## [0.13.1] - 2024-05-21 ### Changed From a007f0b27a44449d674916346fdf437312c85cb3 Mon Sep 17 00:00:00 2001 From: Nathan Patton Date: Tue, 12 Aug 2025 12:20:12 -0500 Subject: [PATCH 3/3] setup uv in tests GitHub action workflow --- .github/workflows/tests.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 85fd7aa3..8f517f1e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,22 +8,13 @@ on: jobs: tests: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: - [ -# ubuntu-20.04, - ubuntu-22.04, -# windows-2019, -# windows-2022, -# macos-11, -# macos-12, -# macos-13, - ] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: wntrblm/nox@2025.05.01 + - name: Install uv + uses: astral-sh/setup-uv@v6 + - name: Setup NOX + uses: wntrblm/nox@2025.05.01 with: python-versions: "3.9, 3.10, 3.11, 3.12, 3.13, 3.14" - name: Test with NOX