Skip to content

Commit 584801e

Browse files
committed
drop support for python 3.7
1 parent cbfdc62 commit 584801e

File tree

16 files changed

+21
-109
lines changed

16 files changed

+21
-109
lines changed

.cirrus.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ test_task:
1212
# avoid failures on tests that depend on it.
1313
SHELL: sh
1414
matrix:
15-
- PYTHON: python3.7
1615
- PYTHON: python3.8
1716
- PYTHON: python3.9
1817
- PYTHON: python3.10

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
min_python_version = 3.7.0
2+
min_python_version = 3.8.0
33
max-line-length = 88
44
ban-relative-imports = true
55
# flake8-use-fstring: https://github.com/MichaelKim0407/flake8-use-fstring#--percent-greedy-and---format-greedy

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
os: [Ubuntu, macOS, Windows]
31-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
31+
python-version: ["3.8", "3.9", "3.10", "3.11"]
3232
include:
3333
- os: Ubuntu
3434
image: ubuntu-22.04

.github/workflows/skip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
strategy:
2929
matrix:
3030
os: [Ubuntu, macOS, Windows]
31-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
31+
python-version: ["3.8", "3.9", "3.10", "3.11"]
3232
steps:
3333
- run: exit 0

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ repos:
4949
rev: v3.3.1
5050
hooks:
5151
- id: pyupgrade
52-
args: [--py37-plus]
52+
args: [--py38-plus]
5353
exclude: ^(install|get)-poetry.py$
5454

5555
- repo: https://github.com/hadialqattan/pycln

docs/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Poetry offers a lockfile to ensure repeatable installs, and can build your proje
1818

1919
## System requirements
2020

21-
Poetry requires **Python 3.7+**. It is multi-platform and the goal is to make it work equally well
21+
Poetry requires **Python 3.8+**. It is multi-platform and the goal is to make it work equally well
2222
on Linux, macOS and Windows.
2323

2424
## Installation

poetry.lock

Lines changed: 3 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ generate-setup-file = false
4545

4646
# Requirements
4747
[tool.poetry.dependencies]
48-
python = "^3.7"
48+
python = "^3.8"
4949

5050
poetry-core = "1.5.2"
5151
poetry-plugin-export = "^1.3.0"
52-
"backports.cached-property" = { version = "^1.0.2", python = "<3.8" }
5352
build = "^0.10.0"
5453
cachecontrol = { version = "^0.12.9", extras = ["filecache"] }
5554
cleo = "^2.0.0"
@@ -103,14 +102,12 @@ pytest-cov = "^4.0"
103102
pytest-mock = "^3.9"
104103
pytest-randomly = "^3.12"
105104
pytest-xdist = { version = "^3.1", extras = ["psutil"] }
106-
zipp = { version = "^3.4", python = "<3.8" }
107105

108106
[tool.poetry.group.typing.dependencies]
109107
mypy = ">=1.0"
110108
types-html5lib = ">=1.1.9"
111109
types-jsonschema = ">=4.9.0"
112110
types-requests = ">=2.28.8"
113-
typing-extensions = { version = "^4.0.0", python = "<3.8" }
114111

115112
# only used in github actions
116113
[tool.poetry.group.github-actions]
@@ -129,7 +126,7 @@ build-backend = "poetry.core.masonry.api"
129126

130127

131128
[tool.isort]
132-
py_version = 37
129+
py_version = 38
133130
profile = "black"
134131
force_single_line = true
135132
combine_as_imports = true
@@ -141,7 +138,7 @@ known_third_party = ["poetry.core"]
141138

142139

143140
[tool.black]
144-
target-version = ['py37']
141+
target-version = ['py38']
145142
preview = true
146143
force-exclude = '''
147144
.*/setup\.py$
@@ -161,9 +158,9 @@ enable_error_code = [
161158
"truthy-bool",
162159
]
163160

164-
# use of importlib-metadata backport at python3.7 makes it impossible to
165-
# satisfy mypy without some ignores: but we get a different set of ignores at
166-
# different python versions.
161+
# use of importlib-metadata backport makes it impossible to satisfy mypy
162+
# without some ignores: but we get a different set of ignores at different
163+
# python versions.
167164
#
168165
# <https://github.com/python/mypy/issues/8823>, meanwhile suppress that
169166
# warning.

src/poetry/repositories/link_sources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import logging
44
import re
55

6+
from functools import cached_property
67
from typing import TYPE_CHECKING
78
from typing import DefaultDict
89
from typing import List
@@ -11,7 +12,6 @@
1112
from poetry.core.packages.package import Package
1213
from poetry.core.version.exceptions import InvalidVersion
1314

14-
from poetry.utils._compat import cached_property
1515
from poetry.utils.patterns import sdist_file_re
1616
from poetry.utils.patterns import wheel_file_re
1717

src/poetry/repositories/link_sources/html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import warnings
55

66
from collections import defaultdict
7+
from functools import cached_property
78
from html import unescape
89
from typing import TYPE_CHECKING
910

1011
from poetry.core.packages.utils.link import Link
1112

1213
from poetry.repositories.link_sources.base import LinkSource
13-
from poetry.utils._compat import cached_property
1414

1515

1616
if TYPE_CHECKING:

0 commit comments

Comments
 (0)