From 081cfef55b780ef497b905e823cfac524d6df227 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Mon, 9 Dec 2024 11:08:56 +0000 Subject: [PATCH] Drop Python 3.8 (#84) --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- pyproject.toml | 3 +-- src/de.rs | 4 ++-- src/ser.rs | 2 +- tests/requirements.txt | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9911519..7ff6ef3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12'] env: PYTHON: ${{ matrix.python-version }} @@ -177,7 +177,7 @@ jobs: with: target: ${{ matrix.target }} manylinux: ${{ matrix.manylinux || 'auto' }} - args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12' }} + args: --release --out dist --interpreter ${{ matrix.interpreter || '3.9 3.10 3.11 3.12' }} rust-toolchain: stable docker-options: -e CI env: diff --git a/README.md b/README.md index b9af05c..edc229d 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ coverage on python code. Other TOML libraries for python I tried all failed to p ## Install -Requires `python>=3.7`, binaries are available from pypi for Linux, macOS and Windows, +Requires `python>=3.9`, binaries are available from PyPI for Linux, macOS and Windows, see [here](https://pypi.org/project/rtoml/#files). ```bash diff --git a/pyproject.toml b/pyproject.toml index f26f5e0..7e19734 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "rtoml" -requires-python = ">=3.8" +requires-python = ">=3.9" authors = [ {name = "Samuel Colvin", email = "s@muelcolvin.com"} ] @@ -13,7 +13,6 @@ 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", diff --git a/src/de.rs b/src/de.rs index c38074d..7a87800 100644 --- a/src/de.rs +++ b/src/de.rs @@ -29,7 +29,7 @@ impl<'py> PyDeserializer<'py> { } } -impl<'de, 'py> DeserializeSeed<'de> for PyDeserializer<'py> { +impl<'de> DeserializeSeed<'de> for PyDeserializer<'_> { type Value = PyObject; fn deserialize(self, deserializer: D) -> Result @@ -40,7 +40,7 @@ impl<'de, 'py> DeserializeSeed<'de> for PyDeserializer<'py> { } } -impl<'de, 'py> Visitor<'de> for PyDeserializer<'py> { +impl<'de> Visitor<'de> for PyDeserializer<'_> { type Value = PyObject; fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { diff --git a/src/ser.rs b/src/ser.rs index eedef90..b5b0986 100644 --- a/src/ser.rs +++ b/src/ser.rs @@ -51,7 +51,7 @@ macro_rules! serde_err { }; } -impl<'py> Serialize for SerializePyObject<'py> { +impl Serialize for SerializePyObject<'_> { fn serialize(&self, serializer: S) -> Result where S: Serializer, diff --git a/tests/requirements.txt b/tests/requirements.txt index 17f94c7..e95be0c 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -2,5 +2,5 @@ coverage[toml]==7.3.4 dirty_equals==0.7.1 maturin==1.4.0 pytest==7.4.3 -pytest-speed==0.3.2; python_version >= "3.8" +pytest-speed==0.3.2 pytest-pretty==1.2.0