14
0
Files
python-venusian/fix-pylons-sphinx-theme.diff
Tomáš Chvátal ed90a75846 Accepting request 783366 from home:pgajdos:python
- version update to 3.0.0
  3.0.0 (2019-10-04)
  - This release matches 2.0.0 other than in the version number. This fixes an
    issue with Requires-Python metadata not being uploaded correctly to PyPi.
    This version is only compatible with Python 3.5+
  2.0.0 (2019-10-04)
  - Drop support for Python 2.7, 3.3, and 3.4
  - Removed the usage of the ``imp`` module to squelch the warnings regarding a
    deprecated modules. See https://github.com/Pylons/venusian/pull/63 and
    https://github.com/Pylons/venusian/issues/57
- modified patches
  % fix-pylons-sphinx-theme.diff (refreshed)

OBS-URL: https://build.opensuse.org/request/show/783366
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-venusian?expand=0&rev=18
2020-03-10 12:39:35 +00:00

48 lines
1.5 KiB
Diff

Index: venusian-3.0.0/docs/conf.py
===================================================================
--- venusian-3.0.0.orig/docs/conf.py 2020-03-10 12:14:58.987113508 +0100
+++ venusian-3.0.0/docs/conf.py 2020-03-10 12:21:03.213085906 +0100
@@ -16,40 +16,10 @@ import sys
import os
import datetime
import pkg_resources
+import pylons_sphinx_themes
-# Add and use Pylons theme
-if "sphinx-build" in " ".join(sys.argv): # protect against dumb importers
- from subprocess import call, Popen, PIPE
-
- p = Popen("which git", shell=True, stdout=PIPE)
- git = p.stdout.read().strip()
- cwd = os.getcwd()
- _themes = os.path.join(cwd, "_themes")
-
- if not os.path.isdir(_themes):
- call(
- [git, "clone", "git://github.com/Pylons/pylons_sphinx_theme.git", "_themes"]
- )
- else:
- os.chdir(_themes)
- call([git, "checkout", "master"])
- call([git, "pull"])
- os.chdir(cwd)
-
- sys.path.append(os.path.abspath("_themes"))
-
- parent = os.path.dirname(os.path.dirname(__file__))
- sys.path.append(os.path.abspath(parent))
- wd = os.getcwd()
- os.chdir(parent)
- sys.path.append(parent)
-
-# Options for HTML output
-# -----------------------
-
-sys.path.append(os.path.abspath("_themes"))
-html_theme_path = ["_themes"]
html_theme = "pylons"
+html_theme_path = pylons_sphinx_themes.get_html_themes_path()
html_theme_options = dict(github_url="https://github.com/Pylons/venusian")
# If your extensions are in another directory, add it here. If the