Skip to content

Commit 0fa27fe

Browse files
committed
drop support for python 3.7
1 parent 605823e commit 0fa27fe

File tree

15 files changed

+21
-111
lines changed

15 files changed

+21
-111
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

.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
@@ -31,7 +31,7 @@ repos:
3131
rev: v3.3.2
3232
hooks:
3333
- id: pyupgrade
34-
args: [--py37-plus]
34+
args: [--py38-plus]
3535
exclude: ^install-poetry.py$
3636

3737
- 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: 7 additions & 10 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.1"
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"
@@ -97,14 +96,12 @@ pytest-cov = "^4.0"
9796
pytest-mock = "^3.9"
9897
pytest-randomly = "^3.12"
9998
pytest-xdist = { version = "^3.1", extras = ["psutil"] }
100-
zipp = { version = "^3.4", python = "<3.8" }
10199

102100
[tool.poetry.group.typing.dependencies]
103101
mypy = ">=1.0"
104102
types-html5lib = ">=1.1.9"
105103
types-jsonschema = ">=4.9.0"
106104
types-requests = ">=2.28.8"
107-
typing-extensions = { version = "^4.0.0", python = "<3.8" }
108105

109106
# only used in github actions
110107
[tool.poetry.group.github-actions]
@@ -127,7 +124,7 @@ fix = true
127124
unfixable = [
128125
"ERA", # do not autoremove commented out code
129126
]
130-
target-version = "py37"
127+
target-version = "py38"
131128
line-length = 88
132129
extend-select = [
133130
"B", # flake8-bugbear
@@ -158,7 +155,7 @@ ban-relative-imports = "all"
158155

159156

160157
[tool.isort]
161-
py_version = 37
158+
py_version = 38
162159
profile = "black"
163160
force_single_line = true
164161
combine_as_imports = true
@@ -170,7 +167,7 @@ known_third_party = ["poetry.core"]
170167

171168

172169
[tool.black]
173-
target-version = ['py37']
170+
target-version = ['py38']
174171
preview = true
175172
force-exclude = '''
176173
.*/setup\.py$
@@ -195,9 +192,9 @@ exclude = [
195192
"tests/utils/fixtures"
196193
]
197194

198-
# use of importlib-metadata backport at python3.7 makes it impossible to
199-
# satisfy mypy without some ignores: but we get a different set of ignores at
200-
# different python versions.
195+
# use of importlib-metadata backport makes it impossible to satisfy mypy
196+
# without some ignores: but we get a different set of ignores at different
197+
# python versions.
201198
#
202199
# <https://github.com/python/mypy/issues/8823>, meanwhile suppress that
203200
# 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:

src/poetry/repositories/link_sources/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from __future__ import annotations
22

33
from collections import defaultdict
4+
from functools import cached_property
45
from typing import TYPE_CHECKING
56
from typing import Any
67

78
from poetry.core.packages.utils.link import Link
89

910
from poetry.repositories.link_sources.base import LinkSource
10-
from poetry.utils._compat import cached_property
1111

1212

1313
if TYPE_CHECKING:

0 commit comments

Comments
 (0)