From dbf56c376901fa97c3b4774134e8d4b859521082 Mon Sep 17 00:00:00 2001 From: Callum Forrester Date: Fri, 14 Jul 2023 13:28:32 +0100 Subject: [PATCH 1/2] Drop support for Python3.8 --- .github/workflows/code.yml | 4 ++-- docs/developer/how-to/pin-requirements.rst | 2 +- docs/developer/tutorials/dev-install.rst | 2 +- docs/user/tutorials/installation.rst | 2 +- pyproject.toml | 3 +-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index 11adf733..b93be4bd 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -32,12 +32,12 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] # can add windows-latest, macos-latest - python: ["3.8", "3.9", "3.10"] + python: ["3.9", "3.10"] install: ["-e .[dev]"] # Make one version be non-editable to test both paths of version code include: - os: "ubuntu-latest" - python: "3.8" + python: "3.9" install: ".[dev]" runs-on: ${{ matrix.os }} diff --git a/docs/developer/how-to/pin-requirements.rst b/docs/developer/how-to/pin-requirements.rst index 89639623..6791659a 100644 --- a/docs/developer/how-to/pin-requirements.rst +++ b/docs/developer/how-to/pin-requirements.rst @@ -46,7 +46,7 @@ of the dependencies and sub-dependencies with pinned versions. You can download any of these files by clicking on them. It is best to use the one that ran with the lowest Python version as this is more likely to be compatible with all the versions of Python in the test matrix. -i.e. ``requirements-test-ubuntu-latest-3.8.txt`` in this example. +i.e. ``requirements-test-ubuntu-latest-3.9.txt`` in this example. Applying the lock file ---------------------- diff --git a/docs/developer/tutorials/dev-install.rst b/docs/developer/tutorials/dev-install.rst index 0b217b82..0f7694fd 100644 --- a/docs/developer/tutorials/dev-install.rst +++ b/docs/developer/tutorials/dev-install.rst @@ -16,7 +16,7 @@ Install dependencies -------------------- You can choose to either develop on the host machine using a `venv` (which -requires python 3.8 or later) or to run in a container under `VSCode +requires python 3.9 or later) or to run in a container under `VSCode `_ .. tab-set:: diff --git a/docs/user/tutorials/installation.rst b/docs/user/tutorials/installation.rst index 78b68b59..cf190c83 100644 --- a/docs/user/tutorials/installation.rst +++ b/docs/user/tutorials/installation.rst @@ -4,7 +4,7 @@ Installation Check your version of python ---------------------------- -You will need python 3.8 or later. You can check your version of python by +You will need python 3.9 or later. You can check your version of python by typing into a terminal:: $ python3 --version diff --git a/pyproject.toml b/pyproject.toml index 36666f29..3be211ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,6 @@ name = "tickit-devices" classifiers = [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", ] @@ -20,7 +19,7 @@ dependencies = [ dynamic = ["version"] license.file = "LICENSE" readme = "README.rst" -requires-python = ">=3.8" +requires-python = ">=3.9" [project.optional-dependencies] dev = [ From addfdd4185e4ac8b506b5e2f23ee2110279eb3b0 Mon Sep 17 00:00:00 2001 From: Callum Forrester Date: Fri, 14 Jul 2023 13:30:20 +0100 Subject: [PATCH 2/2] Pin tickit to avoid breaking changes --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3be211ef..096aa30d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ classifiers = [ ] description = "Devices for tickit, an event-based device simulation framework" dependencies = [ - "tickit", + "tickit<0.2.3", "typing_extensions", "softioc", ]