From 0f4fc612beaba2b1335252a701024d47dd7d8648 Mon Sep 17 00:00:00 2001 From: Bartek Sokorski Date: Mon, 23 Oct 2023 00:05:00 +0200 Subject: [PATCH] Drop Python 3.7 --- pyproject.toml | 8 +++----- src/pythonfinder/models/path.py | 5 +---- tox.ini | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 73a3c85..65fdf7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,6 @@ classifiers = [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -32,9 +31,8 @@ classifiers = [ "Topic :: Utilities", ] dynamic = ["version"] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ - "cached-property; python_version < \"3.8\"", "packaging>=22.0", "pydantic>=1.10.7,<2", ] @@ -98,13 +96,13 @@ filterwarnings = [ ignore_missing_imports = true follow_imports = "skip" html_report = "mypyhtml" -python_version = "3.7" +python_version = "3.8" [tool.black] line-length = 90 [tool.ruff] -target-version = "py37" +target-version = "py38" fix = true line-length = 90 select = [ diff --git a/src/pythonfinder/models/path.py b/src/pythonfinder/models/path.py index fe98054..107c9e6 100644 --- a/src/pythonfinder/models/path.py +++ b/src/pythonfinder/models/path.py @@ -5,6 +5,7 @@ import os import sys from collections import ChainMap, defaultdict +from functools import cached_property from itertools import chain from pathlib import Path from typing import ( @@ -19,10 +20,6 @@ Union, ) -if sys.version_info >= (3, 8): - from functools import cached_property -else: - from cached_property import cached_property from pydantic import Field, root_validator from ..environment import ( diff --git a/tox.ini b/tox.ini index beb61f1..9d91bc2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - docs, packaging, py37, py38, py39, py310, py311, coverage-report + docs, packaging, py38, py39, py310, py311, coverage-report [gh-actions] python =