Skip to content

Commit

Permalink
Drop Python 3.7 (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: Oz Tiram <[email protected]>
  • Loading branch information
Secrus and oz123 authored Dec 4, 2023
1 parent 5086628 commit 0c2fc55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
]
Expand Down Expand Up @@ -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 = [
Expand Down
5 changes: 1 addition & 4 deletions src/pythonfinder/models/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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 (
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
envlist =
docs, packaging, py37, py38, py39, py310, py311, py312, coverage-report


[gh-actions]
python =
3.7: py37
Expand Down

0 comments on commit 0c2fc55

Please sign in to comment.