|
|
@ -1,13 +1,14 @@
|
|
|
|
diff -up fmt-5.3.0/doc/build.py.orig fmt-5.3.0/doc/build.py
|
|
|
|
diff --git a/doc/build.py b/doc/build.py
|
|
|
|
--- fmt-5.3.0/doc/build.py.orig 2019-06-10 14:34:44.351430493 +0200
|
|
|
|
index 31049716..f46d483e 100755
|
|
|
|
+++ fmt-5.3.0/doc/build.py 2019-06-10 14:36:25.608248599 +0200
|
|
|
|
--- a/doc/build.py
|
|
|
|
|
|
|
|
+++ b/doc/build.py
|
|
|
|
@@ -4,27 +4,9 @@
|
|
|
|
@@ -4,27 +4,9 @@
|
|
|
|
from __future__ import print_function
|
|
|
|
from __future__ import print_function
|
|
|
|
import errno, os, shutil, sys, tempfile
|
|
|
|
import errno, os, shutil, sys, tempfile
|
|
|
|
from subprocess import check_call, check_output, CalledProcessError, Popen, PIPE
|
|
|
|
from subprocess import check_call, check_output, CalledProcessError, Popen, PIPE
|
|
|
|
-from distutils.version import LooseVersion
|
|
|
|
-from distutils.version import LooseVersion
|
|
|
|
|
|
|
|
|
|
|
|
versions = ['1.0.0', '1.1.0', '2.0.0', '3.0.2', '4.0.0', '4.1.0', '5.0.0', '5.1.0', '5.2.0', '5.2.1', '5.3.0']
|
|
|
|
versions = ['1.0.0', '1.1.0', '2.0.0', '3.0.2', '4.0.0', '4.1.0', '5.0.0', '5.1.0', '5.2.0', '5.2.1', '5.3.0', '6.0.0', '6.1.0', '6.1.1', '6.1.2']
|
|
|
|
|
|
|
|
|
|
|
|
-def pip_install(package, commit=None, **kwargs):
|
|
|
|
-def pip_install(package, commit=None, **kwargs):
|
|
|
|
- "Install package using pip."
|
|
|
|
- "Install package using pip."
|
|
|
@ -29,7 +30,7 @@ diff -up fmt-5.3.0/doc/build.py.orig fmt-5.3.0/doc/build.py
|
|
|
|
def create_build_env(dirname='virtualenv'):
|
|
|
|
def create_build_env(dirname='virtualenv'):
|
|
|
|
# Create virtualenv.
|
|
|
|
# Create virtualenv.
|
|
|
|
if not os.path.exists(dirname):
|
|
|
|
if not os.path.exists(dirname):
|
|
|
|
@@ -34,30 +16,6 @@ def create_build_env(dirname='virtualenv
|
|
|
|
@@ -34,30 +16,6 @@ def create_build_env(dirname='virtualenv'):
|
|
|
|
activate_this_file = os.path.join(dirname, scripts_dir, 'activate_this.py')
|
|
|
|
activate_this_file = os.path.join(dirname, scripts_dir, 'activate_this.py')
|
|
|
|
with open(activate_this_file) as f:
|
|
|
|
with open(activate_this_file) as f:
|
|
|
|
exec(f.read(), dict(__file__=activate_this_file))
|
|
|
|
exec(f.read(), dict(__file__=activate_this_file))
|
|
|
@ -60,3 +61,6 @@ diff -up fmt-5.3.0/doc/build.py.orig fmt-5.3.0/doc/build.py
|
|
|
|
|
|
|
|
|
|
|
|
def build_docs(version='dev', **kwargs):
|
|
|
|
def build_docs(version='dev', **kwargs):
|
|
|
|
doc_dir = kwargs.get('doc_dir', os.path.dirname(os.path.realpath(__file__)))
|
|
|
|
doc_dir = kwargs.get('doc_dir', os.path.dirname(os.path.realpath(__file__)))
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
2.24.1
|
|
|
|
|
|
|
|
|
|
|
|