Skip to content
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
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ jobs:
fail-fast: false
matrix:
sphinx: [ "5", "6", "7", "8" ]
cmake: [ "3.20", "3.30" ]
cmake: [ "3.20", "4.1" ]
os: [ "ubuntu", "macos", "windows" ]
python: [ "3.8", "3.11", "3.12" ]
python: [ "3.8", "3.12", "3.13" ]
exclude:
- sphinx: "8"
python: "3.8"
- sphinx: "5"
python: "3.13"

name: |
v${{ matrix.sphinx }}-${{ matrix.cmake }}
Expand Down
6 changes: 0 additions & 6 deletions .versup.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
"version = \"[version]\""
]
],
"setup.py": [
[
"version=\"([\\d\\.]+)\"",
"version=\"[version]\""
]
],
"doc/release/release_notes.rst": [
[
".. release:: Upcoming",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Sphinx CMake

[![PyPi version](https://img.shields.io/pypi/v/sphinx-cmake.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.python.org/pypi/sphinx-cmake)
[![CMake](https://img.shields.io/badge/CMake-3.20...3.30-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
[![CMake](https://img.shields.io/badge/CMake-3.20...4.1-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
[![Test](https://github.com/python-cmake/sphinx-cmake/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/python-cmake/sphinx-cmake/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Expand Down
9 changes: 0 additions & 9 deletions build_backend.py

This file was deleted.

2 changes: 1 addition & 1 deletion build_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def initialize(self, version, build_data):
stream.write(
"include(CMakePackageConfigHelpers)\n"
"write_basic_package_version_file(\n"
f" \"{str(version_config_path)}\"\n"
f" \"{str(version_config_path.as_posix())}\"\n"
f" VERSION {sphinx.__version__}\n"
" COMPATIBILITY AnyNewerVersion\n"
")"
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindSphinx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# prepend a custom search path.
# (https://cmake.org/cmake/help/latest/policy/CMP0074.html)

cmake_minimum_required(VERSION 3.20...3.30)
cmake_minimum_required(VERSION 3.20...4.1)

include(FindPackageHandleStandardArgs)

Expand Down
7 changes: 7 additions & 0 deletions doc/release/migration_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ Migration notes

This section will show more detailed information when relevant for switching to
a new version, such as when upgrading involves backwards incompatibilities.

.. _release/migration/1.0.0:

Migrate to 1.0.0
================

Dropped support for Python 2.x. The minimum supported version is now Python 3.7.
11 changes: 11 additions & 0 deletions doc/release/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
Release Notes
*************

.. release:: Upcoming

.. change:: new

Added compatibility with CMake 4.1.

.. change:: changed

Dropped support for Python 2.x. The minimum supported version is now
Python 3.7.

.. release:: 0.2.2
:date: 2024-10-06

Expand Down
15 changes: 6 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
[build-system]
requires = [
"hatchling >= 1.4; python_version >= '3'",
"setuptools >= 44; python_version < '3'",
"cmake >= 3.20, < 3.31"
"hatchling >= 1.4",
"cmake >= 3.20, < 4.2"
]
build-backend = "build_backend"
backend-path = ["."]
build-backend = "hatchling.build"

[project]
name = "sphinx-cmake"
version = "0.2.2"
description = "Provide CMake module for Sphinx"
readme = "README.md"
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4"
requires-python = ">=3.7, <4"
license = {file = "LICENSE"}
keywords = ["cmake", "sphinx", "development"]
authors = [
Expand All @@ -25,15 +23,14 @@ classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

[project.urls]
Expand All @@ -55,4 +52,4 @@ path = "build_config.py"
only-include = ["*.cmake"]

[tool.hatch.build.targets.sdist]
only-include = ["cmake", "build_config.py", "build_backend.py", "setup.py"]
only-include = ["cmake", "build_config.py"]
77 changes: 0 additions & 77 deletions setup.py

This file was deleted.

Loading