Skip to content

Commit

Permalink
Drop Python 3.8 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin authored Dec 9, 2024
1 parent 0916aef commit 081cfef
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
]
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<D>(self, deserializer: D) -> Result<Self::Value, D::Error>
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ macro_rules! serde_err {
};
}

impl<'py> Serialize for SerializePyObject<'py> {
impl Serialize for SerializePyObject<'_> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 081cfef

Please # to comment.