diff --git a/pyproject.toml b/pyproject.toml index fce04ee..e0d0ef9 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", @@ -33,9 +32,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", ] @@ -99,13 +97,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 b864a68..b67025d 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,7 @@ envlist = docs, packaging, py37, py38, py39, py310, py311, py312, coverage-report + [gh-actions] python = 3.7: py37