File: 001.change-to-not-check-repo-git.patch

package info (click to toggle)
python-cyclopts 3.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,288 kB
  • sloc: python: 11,445; makefile: 24
file content (28 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (2)
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
Description: Added a try-except block to handle cases in absence of the `git` module
Author: Josenilson Ferreira da Silva <nilsonfsilva@hotmail.com>
Forwarded: not-needed
Last-Update: 2024-11-30

Index: python-cyclopts/docs/source/conf.py
===================================================================
--- python-cyclopts.orig/docs/source/conf.py
+++ python-cyclopts/docs/source/conf.py
@@ -11,7 +11,6 @@ import sys
 from datetime import date
 from pathlib import Path
 
-import git
 from sphinx.application import Sphinx
 from sphinx.ext.autodoc import Options
 
@@ -19,9 +18,7 @@ from cyclopts import __version__
 
 sys.path.insert(0, str(Path("../..").absolute()))
 
-
-git_repo = git.Repo(".", search_parent_directories=True)  # type: ignore[reportPrivateImportUsage]
-git_commit = git_repo.head.commit
+git_commit = "main"
 
 # -- Project information -----------------------------------------------------