Package Details: python-sphinxext-rediraffe 0.2.7-2

Git Clone URL: https://aur.archlinux.org/python-sphinxext-rediraffe.git (read-only, click to copy)
Package Base: python-sphinxext-rediraffe
Description: Sphinx Extension that redirects non-existent pages to working pages
Upstream URL: https://sphinxext-rediraffe.readthedocs.io
Licenses: MIT
Submitter: Universebenzene
Maintainer: Universebenzene
Last Packager: Universebenzene
Votes: 0
Popularity: 0.000000
First Submitted: 2022-01-16 08:42 (UTC)
Last Updated: 2024-05-02 11:07 (UTC)

Latest Comments

peippo commented on 2024-05-02 10:35 (UTC)

something along the lines of this:

diff --unified --recursive --text a/setup.py b/setup.py
--- a/setup.py  2024-05-02 12:31:39.541210675 +0200
+++ b/setup.py  2024-05-02 12:32:06.548315469 +0200
@@ -1,14 +1,6 @@
-import subprocess
 import setuptools

-try:
-    ret = subprocess.check_output(
-        "git describe --tags --abbrev=0",
-        shell=True,
-    )
-    version = ret.decode("utf-8").strip()
-except:
-    version = "main"
+version = "2.7"

 with open("README.md", "r", encoding="utf-8") as readme:
     long_description = readme.read()

peippo commented on 2024-05-02 10:27 (UTC)

This package has a bit of a funny setup.py upstream, see https://github.com/wpilibsuite/sphinxext-rediraffe/blob/main/setup.py#L4. Could you add patch to this PKGBUILD that hardcodes the current version into the setup.py instead of trying to call git? Thanks!