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

MAINT: drop Python 3.7 support #717

Merged
merged 1 commit into from
Jan 16, 2025
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
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-cp38/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
Loading