Skip to content

Commit ec42b20

Browse files
committed
MAINT: drop Python 3.7 support
1 parent b7ef032 commit ec42b20

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

.cirrus.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ manylinux-python3.13t_task:
5555
PATH: "/opt/python/cp313-cp313t/bin/:${PATH}"
5656
<< : *test
5757

58-
manylinux-python3.7_task:
58+
manylinux-python3.8_task:
5959
container:
6060
dockerfile: ci/manylinux.docker
6161
cpu: 1
6262
env:
63-
PATH: "/opt/python/cp37-cp37m/bin/:${PATH}"
63+
PATH: "/opt/python/cp38-cp38/bin/:${PATH}"
6464
<< : *test
6565

6666
miniconda_task:

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- macos-13
5151
- windows-latest
5252
python:
53-
- '3.7'
53+
- '3.8'
5454
- '3.13'
5555
meson:
5656
-

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ name = 'meson-python'
1818
version = '0.18.0.dev0'
1919
description = 'Meson Python build backend (PEP 517)'
2020
readme = 'README.rst'
21-
requires-python = '>= 3.7'
21+
requires-python = '>= 3.8'
2222
license = { file = 'LICENSES/MIT.txt' }
2323
keywords = ['meson', 'build', 'backend', 'pep517', 'package']
2424
maintainers = [

tests/conftest.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
import contextlib
6+
import importlib.metadata
67
import os
78
import os.path
89
import pathlib
@@ -58,8 +59,8 @@ def adjust_packaging_platform_tag(platform: str) -> str:
5859

5960
@contextlib.contextmanager
6061
def in_git_repo_context(path=os.path.curdir):
61-
# Resist the tentation of using pathlib.Path here: it is not
62-
# supporded by subprocess in Python 3.7.
62+
# Resist the temptation of using pathlib.Path here: it is not
63+
# supported by subprocess in Python 3.7.
6364
path = os.path.abspath(path)
6465
shutil.rmtree(os.path.join(path, '.git'), ignore_errors=True)
6566
try:
@@ -96,10 +97,6 @@ def __init__(self, env_dir):
9697

9798
# Free-threaded Python 3.13 requires pip 24.1b1 or later.
9899
if sysconfig.get_config_var('Py_GIL_DISABLED'):
99-
# importlib.metadata is not available on Python 3.7 and
100-
# earlier, however no-gil builds are available only for
101-
# Python 3.13 and later.
102-
import importlib.metadata
103100
if packaging.version.Version(importlib.metadata.version('pip')) < packaging.version.Version('24.1b1'):
104101
self.pip('install', '--upgrade', 'pip >= 24.1b1')
105102

0 commit comments

Comments
 (0)