/[smecontribs]/rpms/fmt/contribs10/doc-build-removed-all-pip-internet-stuff.patch
ViewVC logotype

Contents of /rpms/fmt/contribs10/doc-build-removed-all-pip-internet-stuff.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Nov 11 05:30:15 2021 UTC (3 years ago) by jpp
Branch: MAIN
CVS Tags: fmt-7_1_3-2_fc34, fmt-7_1_3-2_el7_sme, HEAD
Error occurred while calculating annotation data.
Initial import

1 diff --git a/doc/build.py b/doc/build.py
2 index 4651756e..0943505b 100755
3 --- a/doc/build.py
4 +++ b/doc/build.py
5 @@ -4,17 +4,9 @@
6 from __future__ import print_function
7 import errno, os, shutil, sys, tempfile
8 from subprocess import check_call, check_output, CalledProcessError, Popen, PIPE
9 -from distutils.version import LooseVersion
10
11 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', '6.2.0', '6.2.1', '7.0.0', '7.0.1', '7.0.2', '7.0.3', '7.1.0', '7.1.1', '7.1.2', '7.1.3']
12
13 -def pip_install(package, commit=None, **kwargs):
14 - "Install package using pip."
15 - if commit:
16 - package = 'git+https://github.com/{0}.git@{1}'.format(package, commit)
17 - print('Installing {0}'.format(package))
18 - check_call(['pip', 'install', package])
19 -
20 def create_build_env(dirname='virtualenv'):
21 # Create virtualenv.
22 if not os.path.exists(dirname):
23 @@ -24,29 +16,6 @@ def create_build_env(dirname='virtualenv'):
24 activate_this_file = os.path.join(dirname, scripts_dir, 'activate_this.py')
25 with open(activate_this_file) as f:
26 exec(f.read(), dict(__file__=activate_this_file))
27 - # Import get_distribution after activating virtualenv to get info about
28 - # the correct packages.
29 - from pkg_resources import get_distribution, DistributionNotFound
30 - # Upgrade pip because installation of sphinx with pip 1.1 available on Travis
31 - # is broken (see #207) and it doesn't support the show command.
32 - pip_version = get_distribution('pip').version
33 - if LooseVersion(pip_version) < LooseVersion('1.5.4'):
34 - print("Updating pip")
35 - check_call(['pip', 'install', '--upgrade', 'pip'])
36 - # Upgrade distribute because installation of sphinx with distribute 0.6.24
37 - # available on Travis is broken (see #207).
38 - try:
39 - distribute_version = get_distribution('distribute').version
40 - if LooseVersion(distribute_version) <= LooseVersion('0.6.24'):
41 - print("Updating distribute")
42 - check_call(['pip', 'install', '--upgrade', 'distribute'])
43 - except DistributionNotFound:
44 - pass
45 - # Install Sphinx and Breathe. Require the exact version of Sphinx which is
46 - # compatible with Breathe.
47 - pip_install('sphinx-doc/sphinx', '12b83372ac9316e8cbe86e7fed889296a4cc29ee')
48 - pip_install('michaeljones/breathe',
49 - '129222318f7c8f865d2631e7da7b033567e7f56a')
50
51 def build_docs(version='dev', **kwargs):
52 doc_dir = kwargs.get('doc_dir', os.path.dirname(os.path.realpath(__file__)))
53 --
54 2.28.0
55

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed