Skip to content

Commit 3a095f6

Browse files
committed
Drop Python 2 support and require Python 3.7+
- Updated `requires-python` to `>=3.7, <4` - Removed Python 2.x classifiers and setuptools fallback - Switched build backend to `hatchling.build` - Added Python 3.13 classifier - Updated release notes and migration guide to reflect change - Removed unused `build_backend.py` and `setup.py` from sdist
1 parent 567b7a8 commit 3a095f6

File tree

5 files changed

+17
-95
lines changed

5 files changed

+17
-95
lines changed

build_backend.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

doc/release/migration_notes.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ Migration notes
66

77
This section will show more detailed information when relevant for switching to
88
a new version, such as when upgrading involves backwards incompatibilities.
9+
10+
.. _release/migration/1.0.0:
11+
12+
Migrate to 1.0.0
13+
================
14+
15+
Dropped support for Python 2.x. The minimum supported version is now Python 3.7.

doc/release/release_notes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Release Notes
66

77
.. release:: Upcoming
88

9+
.. change:: changed
10+
11+
Dropped support for Python 2.x. The minimum supported version is now
12+
Python 3.7.
13+
914
.. change:: new
1015

1116
Added compatibility with CMake 4.1.

pyproject.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
[build-system]
22
requires = [
3-
"hatchling >= 1.4; python_version >= '3'",
4-
"setuptools >= 44; python_version < '3'",
3+
"hatchling >= 1.4",
54
"cmake >= 3.20, < 4.2"
65
]
7-
build-backend = "build_backend"
8-
backend-path = ["."]
6+
build-backend = "hatchling.build"
97

108
[project]
119
name = "pytest-cmake"
1210
version = "0.13.0"
1311
description = "Provide CMake module for Pytest"
1412
readme = "README.md"
15-
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4"
13+
requires-python = ">=3.7, <4"
1614
license = {file = "LICENSE"}
1715
keywords = ["cmake", "pytest", "development"]
1816
authors = [
@@ -25,15 +23,14 @@ classifiers = [
2523
"Intended Audience :: Developers",
2624
"Topic :: Software Development :: Build Tools",
2725
"License :: OSI Approved :: MIT License",
28-
"Programming Language :: Python :: 2",
29-
"Programming Language :: Python :: 2.7",
3026
"Programming Language :: Python :: 3",
3127
"Programming Language :: Python :: 3.7",
3228
"Programming Language :: Python :: 3.8",
3329
"Programming Language :: Python :: 3.9",
3430
"Programming Language :: Python :: 3.10",
3531
"Programming Language :: Python :: 3.11",
3632
"Programming Language :: Python :: 3.12",
33+
"Programming Language :: Python :: 3.13",
3734
]
3835

3936
[project.urls]
@@ -56,4 +53,4 @@ path = "build_config.py"
5653
only-include = ["*.cmake"]
5754

5855
[tool.hatch.build.targets.sdist]
59-
only-include = ["cmake", "build_config.py", "build_backend.py", "setup.py"]
56+
only-include = ["cmake", "build_config.py"]

setup.py

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)