File: 0006-no-sphinx_pyproject.patch

package info (click to toggle)
xrayutilities 1.7.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,660 kB
  • sloc: python: 49,871; ansic: 4,585; makefile: 15
file content (37 lines) | stat: -rw-r--r-- 1,629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Index: python-xrayutilities/doc/source/conf.py
===================================================================
--- python-xrayutilities.orig/doc/source/conf.py	2025-11-17 21:45:18.392604061 +0100
+++ python-xrayutilities/doc/source/conf.py	2025-11-17 21:45:48.503472430 +0100
@@ -16,22 +16,22 @@
 from pathlib import Path
 
 import sphinx_rtd_theme
-from sphinx_pyproject import SphinxConfig
+#from sphinx_pyproject import SphinxConfig
 from xrayutilities import __version__ as xu_version
 
 # Load configuration from pyproject.toml
 
-config = SphinxConfig(
-    Path(__file__).parent.parent.parent / "pyproject.toml",
-    config_overrides = {"version": xu_version},
-)
+#config = SphinxConfig(
+#    Path(__file__).parent.parent.parent / "pyproject.toml",
+#    config_overrides = {"version": xu_version},
+#)
 
 # Project information (auto-extracted from pyproject.toml)
-project = config.name     # Automatically gets the project name
-author = config.author    # Automatically gets the author(s)
-copyright = f"%Y, {config.author}"
-release = config.version  # Full version (e.g., "1.2.3")
-version = config.version.split(".")[0] + "." + config.version.split(".")[1]  # Short version (e.g., "1.2")
+#project = config.name     # Automatically gets the project name
+#author = config.author    # Automatically gets the author(s)
+#copyright = f"%Y, {config.author}"
+#release = config.version  # Full version (e.g., "1.2.3")
+#version = config.version.split(".")[0] + "." + config.version.split(".")[1]  # Short version (e.g., "1.2")
 
 # Add any Sphinx extension module names here, as strings. They can be
 # extensions