Skip to content

Commit

Permalink
MAINT: drop Python 3.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Oct 28, 2024
1 parent 518c583 commit 89dbcc7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ manylinux-python3.13t_task:
PATH: "/opt/python/cp313-cp313t/bin/:${PATH}"
<< : *test

manylinux-python3.7_task:
manylinux-python3.8_task:
container:
dockerfile: ci/manylinux.docker
cpu: 1
env:
PATH: "/opt/python/cp37-cp37m/bin/:${PATH}"
PATH: "/opt/python/cp38-cp38m/bin/:${PATH}"
<< : *test

miniconda_task:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- macos-13
- windows-latest
python:
- '3.7'
- '3.8'
- '3.13'
meson:
-
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name = 'meson-python'
version = '0.18.0.dev0'
description = 'Meson Python build backend (PEP 517)'
readme = 'README.rst'
requires-python = '>= 3.7'
requires-python = '>= 3.8'
license = { file = 'LICENSES/MIT.txt' }
keywords = ['meson', 'build', 'backend', 'pep517', 'package']
maintainers = [
Expand Down
9 changes: 3 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# SPDX-License-Identifier: MIT

import contextlib
import importlib.metadata
import os
import os.path
import pathlib
Expand Down Expand Up @@ -58,8 +59,8 @@ def adjust_packaging_platform_tag(platform: str) -> str:

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

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

Expand Down

0 comments on commit 89dbcc7

Please sign in to comment.