Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python 3.7 #152

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading